; 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::smoothnessmonitor" = type { i64, i64, i8, %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i8, i8, double, double, i8, %"struct.alglib_impl::optguardreport", double, double, %"struct.alglib_impl::optguardnonc1test0report", %"struct.alglib_impl::optguardnonc1test0report", double, double, %"struct.alglib_impl::optguardnonc1test1report", %"struct.alglib_impl::optguardnonc1test1report", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::rcommstate", %"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", %"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_matrix" }
%"struct.alglib_impl::optguardreport" = type { i8, i8, i64, double, i8, i8, i8, i64, double, i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::optguardnonc1test0report" = type { i8, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::optguardnonc1test1report" = type { i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::rcommstate" = type { i32, %"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" = 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.140 = external hidden unnamed_addr constant [40 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 void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl32smoothnessmonitorstartlinesearchEPNS_17smoothnessmonitorEPNS_9ae_vectorES3_PNS_9ae_matrixEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

29:                                               ; preds = %7
  store i32 1, ptr %18, align 4
  br label %109

30:                                               ; preds = %7
  %31 = load i64, ptr %16, align 8, !tbaa !23
  %32 = icmp eq i64 %31, 1
  %33 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %32, ptr noundef @.str.140, ptr noundef %33)
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.alglib_impl::smoothnessmonitor", ptr %34, i32 0, i32 48
  %36 = load i64, ptr %15, align 8, !tbaa !23
  %37 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %35, i64 noundef %36, ptr noundef %37)
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.alglib_impl::smoothnessmonitor", ptr %38, i32 0, i32 50
  %40 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %39, i64 noundef 1, ptr noundef %40)
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.alglib_impl::smoothnessmonitor", ptr %41, i32 0, i32 51
  %43 = load i64, ptr %15, align 8, !tbaa !23
  %44 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %42, i64 noundef 1, i64 noundef %43, ptr noundef %44)
  %45 = load double, ptr %12, align 8, !tbaa !9
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::smoothnessmonitor", ptr %46, i32 0, i32 50
  %48 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %47, i32 0, i32 4
  %49 = load ptr, ptr %48, align 8, !tbaa !28
  %50 = getelementptr inbounds double, ptr %49, i64 0
  store double %45, ptr %50, align 8, !tbaa !9
  store i64 0, ptr %17, align 8, !tbaa !23
  br label %51

51:                                               ; preds = %97, %30
  %52 = load i64, ptr %17, align 8, !tbaa !23
  %53 = load i64, ptr %15, align 8, !tbaa !23
  %54 = sub nsw i64 %53, 1
  %55 = icmp sle i64 %52, %54
  br i1 %55, label %56, label %100

56:                                               ; preds = %51
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %57, i32 0, i32 4
  %59 = load ptr, ptr %58, align 8, !tbaa !28
  %60 = load i64, ptr %17, align 8, !tbaa !23
  %61 = getelementptr inbounds double, ptr %59, i64 %60
  %62 = load double, ptr %61, align 8, !tbaa !9
  %63 = load ptr, ptr %10, 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 !28
  %66 = load i64, ptr %17, align 8, !tbaa !23
  %67 = getelementptr inbounds double, ptr %65, i64 %66
  %68 = load double, ptr %67, align 8, !tbaa !9
  %69 = fmul double %62, %68
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.alglib_impl::smoothnessmonitor", ptr %70, i32 0, i32 48
  %72 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %71, i32 0, i32 4
  %73 = load ptr, ptr %72, align 8, !tbaa !28
  %74 = load i64, ptr %17, align 8, !tbaa !23
  %75 = getelementptr inbounds double, ptr %73, i64 %74
  store double %69, ptr %75, align 8, !tbaa !9
  %76 = load ptr, ptr %13, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %76, i32 0, i32 4
  %78 = load ptr, ptr %77, align 8, !tbaa !28
  %79 = load i64, ptr %17, align 8, !tbaa !23
  %80 = getelementptr inbounds double, ptr %78, i64 %79
  %81 = load double, ptr %80, align 8, !tbaa !9
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %82, i32 0, i32 4
  %84 = load ptr, ptr %83, align 8, !tbaa !28
  %85 = load i64, ptr %17, align 8, !tbaa !23
  %86 = getelementptr inbounds double, ptr %84, i64 %85
  %87 = load double, ptr %86, align 8, !tbaa !9
  %88 = fmul double %81, %87
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.alglib_impl::smoothnessmonitor", ptr %89, i32 0, i32 51
  %91 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %90, i32 0, i32 6
  %92 = load ptr, ptr %91, align 8, !tbaa !28
  %93 = getelementptr inbounds ptr, ptr %92, i64 0
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = load i64, ptr %17, align 8, !tbaa !23
  %96 = getelementptr inbounds double, ptr %94, i64 %95
  store double %88, ptr %96, align 8, !tbaa !9
  br label %97

97:                                               ; preds = %56
  %98 = load i64, ptr %17, align 8, !tbaa !23
  %99 = add nsw i64 %98, 1
  store i64 %99, ptr %17, align 8, !tbaa !23
  br label %51, !llvm.loop !29

100:                                              ; preds = %51
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.alglib_impl::smoothnessmonitor", ptr %102, i32 0, i32 48
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.alglib_impl::smoothnessmonitor", ptr %104, i32 0, i32 50
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.alglib_impl::smoothnessmonitor", ptr %106, i32 0, i32 51
  %108 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl32smoothnessmonitorstartlinesearchEPNS_17smoothnessmonitorEPNS_9ae_vectorES3_PNS_9ae_matrixEPNS_8ae_stateE(ptr noundef %101, ptr noundef %103, ptr noundef %105, ptr noundef %107, ptr noundef %108)
  store i32 0, ptr %18, align 4
  br label %109

109:                                              ; preds = %100, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  %110 = load i32, ptr %18, align 4
  switch i32 %110, label %112 [
    i32 0, label %111
    i32 1, label %111
  ]

111:                                              ; preds = %109, %109
  ret void

112:                                              ; preds = %109
  unreachable
}

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 = !{!"double", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !13, i64 0, !13, i64 8, !14, i64 16, !15, i64 24, !13, i64 88, !15, i64 96, !15, i64 160, !15, i64 224, !17, i64 288, !15, i64 368, !15, i64 432, !13, i64 496, !14, i64 504, !14, i64 505, !10, i64 512, !10, i64 520, !14, i64 528, !18, i64 536, !10, i64 832, !10, i64 840, !19, i64 848, !19, i64 1152, !10, i64 1456, !10, i64 1464, !20, i64 1472, !20, i64 1784, !14, i64 2096, !15, i64 2104, !15, i64 2168, !17, i64 2232, !21, i64 2312, !15, i64 2576, !15, i64 2640, !15, i64 2704, !15, i64 2768, !15, i64 2832, !15, i64 2896, !15, i64 2960, !15, i64 3024, !17, i64 3088, !17, i64 3168, !15, i64 3248, !15, i64 3312, !15, i64 3376, !15, i64 3440, !15, i64 3504, !15, i64 3568, !15, i64 3632, !15, i64 3696, !15, i64 3760, !15, i64 3824, !17, i64 3888}
!13 = !{!"long", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl9ae_vectorE", !13, i64 0, !13, i64 8, !14, i64 16, !16, i64 24, !7, i64 56}
!16 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!"_ZTSN11alglib_impl9ae_matrixE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !14, i64 32, !16, i64 40, !7, i64 72}
!18 = !{!"_ZTSN11alglib_impl14optguardreportE", !14, i64 0, !14, i64 1, !13, i64 8, !10, i64 16, !14, i64 24, !14, i64 25, !14, i64 26, !13, i64 32, !10, i64 40, !14, i64 48, !13, i64 56, !13, i64 64, !15, i64 72, !17, i64 136, !17, i64 216}
!19 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !14, i64 0, !13, i64 8, !15, i64 16, !15, i64 80, !13, i64 144, !15, i64 152, !15, i64 216, !13, i64 280, !13, i64 288, !13, i64 296}
!20 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !14, i64 0, !13, i64 8, !13, i64 16, !15, i64 24, !15, i64 88, !13, i64 152, !15, i64 160, !15, i64 224, !13, i64 288, !13, i64 296, !13, i64 304}
!21 = !{!"_ZTSN11alglib_impl10rcommstateE", !22, i64 0, !15, i64 8, !15, i64 72, !15, i64 136, !15, i64 200}
!22 = !{!"int", !7, i64 0}
!23 = !{!13, !13, i64 0}
!24 = !{!12, !13, i64 8}
!25 = !{!12, !14, i64 16}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!7, !7, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}


; 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.140 = external hidden unnamed_addr constant [40 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 void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl32smoothnessmonitorstartlinesearchEPNS_17smoothnessmonitorEPNS_9ae_vectorES3_PNS_9ae_matrixEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl34smoothnessmonitorstartlinesearch1uEPNS_17smoothnessmonitorEPNS_9ae_vectorES3_S3_dS3_PNS_8ae_stateE(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, double noundef %4, ptr nocapture noundef readonly %5, ptr noundef %6) local_unnamed_addr #1 {
  %8 = load i64, ptr %0, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  %10 = load i8, ptr %9, align 8, !tbaa !21, !range !22, !noundef !23
  %11 = trunc nuw i8 %10 to i1
  br i1 %11, label %12, label %48

12:                                               ; preds = %7
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  %14 = load i64, ptr %13, align 8, !tbaa !24
  %15 = icmp eq i64 %14, 1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.140, ptr noundef %6)
  %16 = getelementptr inbounds i8, ptr %0, i64 3696
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef %8, ptr noundef %6)
  %17 = getelementptr inbounds i8, ptr %0, i64 3824
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef 1, ptr noundef %6)
  %18 = getelementptr inbounds i8, ptr %0, i64 3888
  tail call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %18, i64 noundef 1, i64 noundef %8, ptr noundef %6)
  %19 = getelementptr inbounds i8, ptr %0, i64 3880
  %20 = load ptr, ptr %19, align 8, !tbaa !25
  store double %4, ptr %20, align 8, !tbaa !26
  %.not.not34 = icmp sgt i64 %8, 0
  br i1 %.not.not34, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %12
  %21 = getelementptr inbounds i8, ptr %3, i64 56
  %22 = getelementptr inbounds i8, ptr %2, i64 56
  %23 = getelementptr inbounds i8, ptr %0, i64 3752
  %24 = getelementptr inbounds i8, ptr %5, i64 56
  %25 = getelementptr inbounds i8, ptr %1, i64 56
  %26 = getelementptr inbounds i8, ptr %0, i64 3960
  br label %27

27:                                               ; preds = %.lr.ph, %27
  %.035 = phi i64 [ 0, %.lr.ph ], [ %47, %27 ]
  %28 = load ptr, ptr %21, align 8, !tbaa !25
  %29 = getelementptr inbounds double, ptr %28, i64 %.035
  %30 = load double, ptr %29, align 8, !tbaa !26
  %31 = load ptr, ptr %22, align 8, !tbaa !25
  %32 = getelementptr inbounds double, ptr %31, i64 %.035
  %33 = load double, ptr %32, align 8, !tbaa !26
  %34 = fmul double %30, %33
  %35 = load ptr, ptr %23, align 8, !tbaa !25
  %36 = getelementptr inbounds double, ptr %35, i64 %.035
  store double %34, ptr %36, align 8, !tbaa !26
  %37 = load ptr, ptr %24, align 8, !tbaa !25
  %38 = getelementptr inbounds double, ptr %37, i64 %.035
  %39 = load double, ptr %38, align 8, !tbaa !26
  %40 = load ptr, ptr %25, align 8, !tbaa !25
  %41 = getelementptr inbounds double, ptr %40, i64 %.035
  %42 = load double, ptr %41, align 8, !tbaa !26
  %43 = fmul double %39, %42
  %44 = load ptr, ptr %26, align 8, !tbaa !25
  %45 = load ptr, ptr %44, align 8, !tbaa !27
  %46 = getelementptr inbounds double, ptr %45, i64 %.035
  store double %43, ptr %46, align 8, !tbaa !26
  %47 = add nuw nsw i64 %.035, 1
  %exitcond.not = icmp eq i64 %47, %8
  br i1 %exitcond.not, label %._crit_edge, label %27, !llvm.loop !28

._crit_edge:                                      ; preds = %27, %12
  tail call void @_ZN11alglib_impl32smoothnessmonitorstartlinesearchEPNS_17smoothnessmonitorEPNS_9ae_vectorES3_PNS_9ae_matrixEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef %6)
  br label %48

48:                                               ; preds = %7, %._crit_edge
  ret void
}

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !7, i64 88, !11, i64 96, !11, i64 160, !11, i64 224, !14, i64 288, !11, i64 368, !11, i64 432, !7, i64 496, !10, i64 504, !10, i64 505, !15, i64 512, !15, i64 520, !10, i64 528, !16, i64 536, !15, i64 832, !15, i64 840, !17, i64 848, !17, i64 1152, !15, i64 1456, !15, i64 1464, !18, i64 1472, !18, i64 1784, !10, i64 2096, !11, i64 2104, !11, i64 2168, !14, i64 2232, !19, i64 2312, !11, i64 2576, !11, i64 2640, !11, i64 2704, !11, i64 2768, !11, i64 2832, !11, i64 2896, !11, i64 2960, !11, i64 3024, !14, i64 3088, !14, i64 3168, !11, i64 3248, !11, i64 3312, !11, i64 3376, !11, i64 3440, !11, i64 3504, !11, i64 3568, !11, i64 3632, !11, i64 3696, !11, i64 3760, !11, i64 3824, !14, i64 3888}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !12, i64 24, !8, i64 56}
!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, !10, i64 32, !12, i64 40, !8, i64 72}
!15 = !{!"double", !8, i64 0}
!16 = !{!"_ZTSN11alglib_impl14optguardreportE", !10, i64 0, !10, i64 1, !7, i64 8, !15, i64 16, !10, i64 24, !10, i64 25, !10, i64 26, !7, i64 32, !15, i64 40, !10, i64 48, !7, i64 56, !7, i64 64, !11, i64 72, !14, i64 136, !14, i64 216}
!17 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !10, i64 0, !7, i64 8, !11, i64 16, !11, i64 80, !7, i64 144, !11, i64 152, !11, i64 216, !7, i64 280, !7, i64 288, !7, i64 296}
!18 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !10, i64 0, !7, i64 8, !7, i64 16, !11, i64 24, !11, i64 88, !7, i64 152, !11, i64 160, !11, i64 224, !7, i64 288, !7, i64 296, !7, i64 304}
!19 = !{!"_ZTSN11alglib_impl10rcommstateE", !20, i64 0, !11, i64 8, !11, i64 72, !11, i64 136, !11, i64 200}
!20 = !{!"int", !8, i64 0}
!21 = !{!6, !10, i64 16}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!6, !7, i64 8}
!25 = !{!8, !8, i64 0}
!26 = !{!15, !15, i64 0}
!27 = !{!13, !13, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}


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