; 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::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 }

; 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

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

declare noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #2

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl16checklcviolationEPNS_9ae_matrixEPNS_9ae_vectorEllS3_lPdPlPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, i64 noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #3 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store i64 %2, ptr %12, align 8, !tbaa !9
  store i64 %3, ptr %13, align 8, !tbaa !9
  store ptr %4, ptr %14, align 8, !tbaa !5
  store i64 %5, ptr %15, align 8, !tbaa !9
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %24 = load ptr, ptr %16, align 8, !tbaa !5
  store double 0.000000e+00, ptr %24, align 8, !tbaa !11
  %25 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 0, ptr %25, align 8, !tbaa !9
  %26 = load ptr, ptr %16, align 8, !tbaa !5
  store double 0.000000e+00, ptr %26, align 8, !tbaa !11
  %27 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 -1, ptr %27, align 8, !tbaa !9
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %28

28:                                               ; preds = %113, %9
  %29 = load i64, ptr %19, align 8, !tbaa !9
  %30 = load i64, ptr %12, align 8, !tbaa !9
  %31 = load i64, ptr %13, align 8, !tbaa !9
  %32 = add nsw i64 %30, %31
  %33 = sub nsw i64 %32, 1
  %34 = icmp sle i64 %29, %33
  br i1 %34, label %35, label %116

35:                                               ; preds = %28
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %36, i32 0, i32 6
  %38 = load ptr, ptr %37, align 8, !tbaa !13
  %39 = load i64, ptr %19, align 8, !tbaa !9
  %40 = getelementptr inbounds ptr, ptr %38, i64 %39
  %41 = load ptr, ptr %40, align 8, !tbaa !5
  %42 = load i64, ptr %15, align 8, !tbaa !9
  %43 = getelementptr inbounds double, ptr %41, i64 %42
  %44 = load double, ptr %43, align 8, !tbaa !11
  %45 = fneg double %44
  store double %45, ptr %21, align 8, !tbaa !11
  store double 0.000000e+00, ptr %22, align 8, !tbaa !11
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %46

46:                                               ; preds = %74, %35
  %47 = load i64, ptr %20, align 8, !tbaa !9
  %48 = load i64, ptr %15, align 8, !tbaa !9
  %49 = sub nsw i64 %48, 1
  %50 = icmp sle i64 %47, %49
  br i1 %50, label %51, label %77

51:                                               ; preds = %46
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %52, i32 0, i32 6
  %54 = load ptr, ptr %53, align 8, !tbaa !13
  %55 = load i64, ptr %19, align 8, !tbaa !9
  %56 = getelementptr inbounds ptr, ptr %54, i64 %55
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  %58 = load i64, ptr %20, align 8, !tbaa !9
  %59 = getelementptr inbounds double, ptr %57, i64 %58
  %60 = load double, ptr %59, align 8, !tbaa !11
  store double %60, ptr %23, align 8, !tbaa !11
  %61 = load double, ptr %21, align 8, !tbaa !11
  %62 = load double, ptr %23, align 8, !tbaa !11
  %63 = load ptr, ptr %14, 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 !13
  %66 = load i64, ptr %20, align 8, !tbaa !9
  %67 = getelementptr inbounds double, ptr %65, i64 %66
  %68 = load double, ptr %67, align 8, !tbaa !11
  %69 = call double @llvm.fmuladd.f64(double %62, double %68, double %61)
  store double %69, ptr %21, align 8, !tbaa !11
  %70 = load double, ptr %22, align 8, !tbaa !11
  %71 = load double, ptr %23, align 8, !tbaa !11
  %72 = load double, ptr %23, align 8, !tbaa !11
  %73 = call double @llvm.fmuladd.f64(double %71, double %72, double %70)
  store double %73, ptr %22, align 8, !tbaa !11
  br label %74

74:                                               ; preds = %51
  %75 = load i64, ptr %20, align 8, !tbaa !9
  %76 = add nsw i64 %75, 1
  store i64 %76, ptr %20, align 8, !tbaa !9
  br label %46, !llvm.loop !14

77:                                               ; preds = %46
  %78 = load double, ptr %22, align 8, !tbaa !11
  %79 = load ptr, ptr %18, align 8, !tbaa !5
  %80 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %78, ptr noundef %79)
  store double %80, ptr %22, align 8, !tbaa !11
  %81 = load double, ptr %21, align 8, !tbaa !11
  %82 = load double, ptr %22, align 8, !tbaa !11
  %83 = load ptr, ptr %18, align 8, !tbaa !5
  %84 = call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %82, double noundef 1.000000e+00, ptr noundef %83)
  %85 = fdiv double %81, %84
  store double %85, ptr %21, align 8, !tbaa !11
  %86 = load i64, ptr %19, align 8, !tbaa !9
  %87 = load i64, ptr %12, align 8, !tbaa !9
  %88 = icmp slt i64 %86, %87
  br i1 %88, label %89, label %93

89:                                               ; preds = %77
  %90 = load double, ptr %21, align 8, !tbaa !11
  %91 = load ptr, ptr %18, align 8, !tbaa !5
  %92 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %90, ptr noundef %91)
  store double %92, ptr %21, align 8, !tbaa !11
  br label %97

93:                                               ; preds = %77
  %94 = load double, ptr %21, align 8, !tbaa !11
  %95 = load ptr, ptr %18, align 8, !tbaa !5
  %96 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %94, double noundef 0.000000e+00, ptr noundef %95)
  store double %96, ptr %21, align 8, !tbaa !11
  br label %97

97:                                               ; preds = %93, %89
  %98 = load double, ptr %21, align 8, !tbaa !11
  %99 = load ptr, ptr %16, align 8, !tbaa !5
  %100 = load double, ptr %99, align 8, !tbaa !11
  %101 = fcmp ogt double %98, %100
  br i1 %101, label %102, label %112

102:                                              ; preds = %97
  %103 = load double, ptr %21, align 8, !tbaa !11
  %104 = load ptr, ptr %16, align 8, !tbaa !5
  store double %103, ptr %104, align 8, !tbaa !11
  %105 = load ptr, ptr %11, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %105, i32 0, i32 4
  %107 = load ptr, ptr %106, align 8, !tbaa !13
  %108 = load i64, ptr %19, align 8, !tbaa !9
  %109 = getelementptr inbounds i64, ptr %107, i64 %108
  %110 = load i64, ptr %109, align 8, !tbaa !9
  %111 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 %110, ptr %111, align 8, !tbaa !9
  br label %112

112:                                              ; preds = %102, %97
  br label %113

113:                                              ; preds = %112
  %114 = load i64, ptr %19, align 8, !tbaa !9
  %115 = add nsw i64 %114, 1
  store i64 %115, ptr %19, align 8, !tbaa !9
  br label %28, !llvm.loop !16

116:                                              ; preds = %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  ret void
}

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) #2

declare noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!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, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


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

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

declare noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl16checklcviolationEPNS_9ae_matrixEPNS_9ae_vectorEllS3_lPdPlPNS_8ae_stateE(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, i64 noundef %2, i64 noundef %3, ptr nocapture noundef readonly %4, i64 noundef %5, ptr nocapture noundef %6, ptr nocapture noundef writeonly %7, ptr noundef %8) local_unnamed_addr #2 {
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  store i64 -1, ptr %7, align 8, !tbaa !9
  %10 = add nsw i64 %3, %2
  %.not.not50 = icmp sgt i64 %10, 0
  br i1 %.not.not50, label %.lr.ph53, label %._crit_edge54

.lr.ph53:                                         ; preds = %9
  %11 = getelementptr inbounds i8, ptr %0, i64 72
  %.not.not4445 = icmp sgt i64 %5, 0
  %12 = getelementptr inbounds i8, ptr %4, i64 56
  %13 = getelementptr inbounds i8, ptr %1, i64 56
  br i1 %.not.not4445, label %.lr.ph.us.preheader, label %.lr.ph53.split

.lr.ph.us.preheader:                              ; preds = %.lr.ph53
  %xtraiter = and i64 %5, 1
  %14 = icmp eq i64 %5, 1
  %unroll_iter = and i64 %5, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %33
  %.051.us = phi i64 [ %34, %33 ], [ 0, %.lr.ph.us.preheader ]
  %15 = load ptr, ptr %11, align 8, !tbaa !11
  %16 = getelementptr inbounds ptr, ptr %15, i64 %.051.us
  %17 = load ptr, ptr %16, align 8, !tbaa !12
  %18 = getelementptr inbounds double, ptr %17, i64 %5
  %19 = load double, ptr %18, align 8, !tbaa !5
  %20 = fneg double %19
  %21 = load ptr, ptr %12, align 8, !tbaa !11
  br i1 %14, label %._crit_edge.us.unr-lcssa, label %.lr.ph.us.new

22:                                               ; preds = %._crit_edge.us
  %23 = tail call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %57, double noundef 0.000000e+00, ptr noundef %8)
  br label %26

24:                                               ; preds = %._crit_edge.us
  %25 = tail call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %57, ptr noundef %8)
  br label %26

26:                                               ; preds = %24, %22
  %.1.us = phi double [ %25, %24 ], [ %23, %22 ]
  %27 = load double, ptr %6, align 8, !tbaa !5
  %28 = fcmp ogt double %.1.us, %27
  br i1 %28, label %29, label %33

29:                                               ; preds = %26
  store double %.1.us, ptr %6, align 8, !tbaa !5
  %30 = load ptr, ptr %13, align 8, !tbaa !11
  %31 = getelementptr inbounds i64, ptr %30, i64 %.051.us
  %32 = load i64, ptr %31, align 8, !tbaa !9
  store i64 %32, ptr %7, align 8, !tbaa !9
  br label %33

33:                                               ; preds = %29, %26
  %34 = add nuw nsw i64 %.051.us, 1
  %exitcond58.not = icmp eq i64 %34, %10
  br i1 %exitcond58.not, label %._crit_edge54, label %.lr.ph.us, !llvm.loop !14

.lr.ph.us.new:                                    ; preds = %.lr.ph.us, %.lr.ph.us.new
  %.04148.us = phi double [ %47, %.lr.ph.us.new ], [ 0.000000e+00, %.lr.ph.us ]
  %.04247.us = phi double [ %46, %.lr.ph.us.new ], [ %20, %.lr.ph.us ]
  %.04346.us = phi i64 [ %48, %.lr.ph.us.new ], [ 0, %.lr.ph.us ]
  %niter = phi i64 [ %niter.next.1, %.lr.ph.us.new ], [ 0, %.lr.ph.us ]
  %35 = getelementptr inbounds double, ptr %17, i64 %.04346.us
  %36 = load double, ptr %35, align 8, !tbaa !5
  %37 = getelementptr inbounds double, ptr %21, i64 %.04346.us
  %38 = load double, ptr %37, align 8, !tbaa !5
  %39 = tail call double @llvm.fmuladd.f64(double %36, double %38, double %.04247.us)
  %40 = tail call double @llvm.fmuladd.f64(double %36, double %36, double %.04148.us)
  %41 = or disjoint i64 %.04346.us, 1
  %42 = getelementptr inbounds double, ptr %17, i64 %41
  %43 = load double, ptr %42, align 8, !tbaa !5
  %44 = getelementptr inbounds double, ptr %21, i64 %41
  %45 = load double, ptr %44, align 8, !tbaa !5
  %46 = tail call double @llvm.fmuladd.f64(double %43, double %45, double %39)
  %47 = tail call double @llvm.fmuladd.f64(double %43, double %43, double %40)
  %48 = add nuw nsw i64 %.04346.us, 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.us.unr-lcssa, label %.lr.ph.us.new, !llvm.loop !16

._crit_edge.us.unr-lcssa:                         ; preds = %.lr.ph.us.new, %.lr.ph.us
  %.lcssa63.ph = phi double [ poison, %.lr.ph.us ], [ %46, %.lr.ph.us.new ]
  %.lcssa.ph = phi double [ poison, %.lr.ph.us ], [ %47, %.lr.ph.us.new ]
  %.04148.us.unr = phi double [ 0.000000e+00, %.lr.ph.us ], [ %47, %.lr.ph.us.new ]
  %.04247.us.unr = phi double [ %20, %.lr.ph.us ], [ %46, %.lr.ph.us.new ]
  %.04346.us.unr = phi i64 [ 0, %.lr.ph.us ], [ %48, %.lr.ph.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %._crit_edge.us.epilog-lcssa

._crit_edge.us.epilog-lcssa:                      ; preds = %._crit_edge.us.unr-lcssa
  %49 = getelementptr inbounds double, ptr %17, i64 %.04346.us.unr
  %50 = load double, ptr %49, align 8, !tbaa !5
  %51 = getelementptr inbounds double, ptr %21, i64 %.04346.us.unr
  %52 = load double, ptr %51, align 8, !tbaa !5
  %53 = tail call double @llvm.fmuladd.f64(double %50, double %52, double %.04247.us.unr)
  %54 = tail call double @llvm.fmuladd.f64(double %50, double %50, double %.04148.us.unr)
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %.lcssa63 = phi double [ %.lcssa63.ph, %._crit_edge.us.unr-lcssa ], [ %53, %._crit_edge.us.epilog-lcssa ]
  %.lcssa = phi double [ %.lcssa.ph, %._crit_edge.us.unr-lcssa ], [ %54, %._crit_edge.us.epilog-lcssa ]
  %55 = tail call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %.lcssa, ptr noundef %8)
  %56 = tail call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %55, double noundef 1.000000e+00, ptr noundef %8)
  %57 = fdiv double %.lcssa63, %56
  %58 = icmp slt i64 %.051.us, %2
  br i1 %58, label %24, label %22

.lr.ph53.split:                                   ; preds = %.lr.ph53, %80
  %.051 = phi i64 [ %81, %80 ], [ 0, %.lr.ph53 ]
  %59 = load ptr, ptr %11, align 8, !tbaa !11
  %60 = getelementptr inbounds ptr, ptr %59, i64 %.051
  %61 = load ptr, ptr %60, align 8, !tbaa !12
  %62 = getelementptr inbounds double, ptr %61, i64 %5
  %63 = load double, ptr %62, align 8, !tbaa !5
  %64 = fneg double %63
  %65 = tail call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef 0.000000e+00, ptr noundef %8)
  %66 = tail call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %65, double noundef 1.000000e+00, ptr noundef %8)
  %67 = fdiv double %64, %66
  %68 = icmp slt i64 %.051, %2
  br i1 %68, label %69, label %71

69:                                               ; preds = %.lr.ph53.split
  %70 = tail call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %67, ptr noundef %8)
  br label %73

71:                                               ; preds = %.lr.ph53.split
  %72 = tail call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %67, double noundef 0.000000e+00, ptr noundef %8)
  br label %73

73:                                               ; preds = %71, %69
  %.1 = phi double [ %70, %69 ], [ %72, %71 ]
  %74 = load double, ptr %6, align 8, !tbaa !5
  %75 = fcmp ogt double %.1, %74
  br i1 %75, label %76, label %80

76:                                               ; preds = %73
  store double %.1, ptr %6, align 8, !tbaa !5
  %77 = load ptr, ptr %13, align 8, !tbaa !11
  %78 = getelementptr inbounds i64, ptr %77, i64 %.051
  %79 = load i64, ptr %78, align 8, !tbaa !9
  store i64 %79, ptr %7, align 8, !tbaa !9
  br label %80

80:                                               ; preds = %73, %76
  %81 = add nuw nsw i64 %.051, 1
  %exitcond.not = icmp eq i64 %81, %10
  br i1 %exitcond.not, label %._crit_edge54, label %.lr.ph53.split, !llvm.loop !14

._crit_edge54:                                    ; preds = %80, %33, %9
  ret void
}

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #1

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

!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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


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