; LLVM IR from Dimandragon/non-parametric-dsp :: 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::multiobjectivetestfunction" = type { i64, i64, i64, i64, %"struct.alglib_impl::ae_matrix", i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", i64, %"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_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_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"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", i64 }
%"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 }

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

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

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

declare void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl14motfcreatenls2ElPNS_10hqrndstateEPNS_26multiobjectivetestfunctionEPNS_8ae_stateE(i64 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2 {
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  store i64 %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #3
  %10 = load ptr, ptr %7, align 8, !tbaa !9
  call void @_ZN11alglib_impl33_multiobjectivetestfunction_clearEPv(ptr noundef %10)
  %11 = load ptr, ptr %7, align 8, !tbaa !9
  %12 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %11, i32 0, i32 0
  store i64 51, ptr %12, align 8, !tbaa !11
  %13 = load i64, ptr %5, align 8, !tbaa !5
  %14 = load ptr, ptr %7, align 8, !tbaa !9
  %15 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %14, i32 0, i32 1
  store i64 %13, ptr %15, align 8, !tbaa !17
  %16 = load ptr, ptr %7, align 8, !tbaa !9
  %17 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %16, i32 0, i32 2
  store i64 0, ptr %17, align 8, !tbaa !18
  %18 = load ptr, ptr %7, align 8, !tbaa !9
  %19 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %18, i32 0, i32 3
  store i64 0, ptr %19, align 8, !tbaa !19
  %20 = load ptr, ptr %7, align 8, !tbaa !9
  %21 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %20, i32 0, i32 23
  store i64 0, ptr %21, align 8, !tbaa !20
  %22 = load ptr, ptr %7, align 8, !tbaa !9
  %23 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %22, i32 0, i32 30
  store i64 0, ptr %23, align 8, !tbaa !21
  %24 = load ptr, ptr %7, align 8, !tbaa !9
  %25 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %24, i32 0, i32 4
  %26 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %25, i64 noundef 0, i64 noundef 0, ptr noundef %26)
  %27 = load ptr, ptr %7, align 8, !tbaa !9
  %28 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %27, i32 0, i32 5
  store i64 0, ptr %28, align 8, !tbaa !22
  %29 = load ptr, ptr %7, align 8, !tbaa !9
  %30 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %29, i32 0, i32 8
  store i64 0, ptr %30, align 8, !tbaa !23
  %31 = load ptr, ptr %7, align 8, !tbaa !9
  %32 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %31, i32 0, i32 6
  %33 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %32, i64 noundef 0, i64 noundef 0, ptr noundef %33)
  %34 = load ptr, ptr %7, align 8, !tbaa !9
  %35 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %34, i32 0, i32 7
  %36 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %35, i64 noundef 0, i64 noundef 0, ptr noundef %36)
  %37 = load ptr, ptr %7, align 8, !tbaa !9
  %38 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %37, i32 0, i32 9
  %39 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %38, i64 noundef 0, ptr noundef %39)
  %40 = load ptr, ptr %7, align 8, !tbaa !9
  %41 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %40, i32 0, i32 10
  %42 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %41, i64 noundef 0, ptr noundef %42)
  %43 = load ptr, ptr %7, align 8, !tbaa !9
  %44 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %43, i32 0, i32 11
  %45 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %44, i64 noundef 0, ptr noundef %45)
  store i8 0, ptr %9, align 1, !tbaa !24
  %46 = load i64, ptr %5, align 8, !tbaa !5
  %47 = icmp eq i64 %46, 0
  br i1 %47, label %48, label %106

48:                                               ; preds = %4
  %49 = load ptr, ptr %7, align 8, !tbaa !9
  %50 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %49, i32 0, i32 2
  store i64 3, ptr %50, align 8, !tbaa !18
  %51 = load ptr, ptr %7, align 8, !tbaa !9
  %52 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %51, i32 0, i32 3
  store i64 16, ptr %52, align 8, !tbaa !19
  %53 = load ptr, ptr %7, align 8, !tbaa !9
  %54 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %53, i32 0, i32 2
  %55 = load i64, ptr %54, align 8, !tbaa !18
  %56 = load ptr, ptr %8, align 8, !tbaa !9
  %57 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %56, i32 0, i32 3
  %58 = load double, ptr %57, align 8, !tbaa !25
  %59 = load ptr, ptr %7, align 8, !tbaa !9
  %60 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %59, i32 0, i32 18
  %61 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %55, double noundef %58, ptr noundef %60, ptr noundef %61)
  %62 = load ptr, ptr %7, align 8, !tbaa !9
  %63 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %62, i32 0, i32 2
  %64 = load i64, ptr %63, align 8, !tbaa !18
  %65 = load ptr, ptr %8, align 8, !tbaa !9
  %66 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %65, i32 0, i32 2
  %67 = load double, ptr %66, align 8, !tbaa !30
  %68 = load ptr, ptr %7, align 8, !tbaa !9
  %69 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %68, i32 0, i32 19
  %70 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %64, double noundef %67, ptr noundef %69, ptr noundef %70)
  %71 = load ptr, ptr %7, align 8, !tbaa !9
  %72 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %71, i32 0, i32 2
  %73 = load i64, ptr %72, align 8, !tbaa !18
  %74 = load ptr, ptr %7, align 8, !tbaa !9
  %75 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %74, i32 0, i32 9
  %76 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %73, double noundef 0.000000e+00, ptr noundef %75, ptr noundef %76)
  %77 = load ptr, ptr %7, align 8, !tbaa !9
  %78 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %77, i32 0, i32 5
  store i64 1, ptr %78, align 8, !tbaa !22
  %79 = load ptr, ptr %7, align 8, !tbaa !9
  %80 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %79, i32 0, i32 2
  %81 = load i64, ptr %80, align 8, !tbaa !18
  %82 = load ptr, ptr %7, align 8, !tbaa !9
  %83 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %82, i32 0, i32 4
  %84 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl7rallocmEllPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef 1, i64 noundef %81, ptr noundef %83, ptr noundef %84)
  %85 = load ptr, ptr %7, align 8, !tbaa !9
  %86 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %85, i32 0, i32 4
  %87 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %86, i32 0, i32 6
  %88 = load ptr, ptr %87, align 8, !tbaa !31
  %89 = getelementptr inbounds ptr, ptr %88, i64 0
  %90 = load ptr, ptr %89, align 8, !tbaa !9
  %91 = getelementptr inbounds double, ptr %90, i64 0
  store double 2.000000e-02, ptr %91, align 8, !tbaa !32
  %92 = load ptr, ptr %7, align 8, !tbaa !9
  %93 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %92, i32 0, i32 4
  %94 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %93, i32 0, i32 6
  %95 = load ptr, ptr %94, align 8, !tbaa !31
  %96 = getelementptr inbounds ptr, ptr %95, i64 0
  %97 = load ptr, ptr %96, align 8, !tbaa !9
  %98 = getelementptr inbounds double, ptr %97, i64 1
  store double 4.000000e+03, ptr %98, align 8, !tbaa !32
  %99 = load ptr, ptr %7, align 8, !tbaa !9
  %100 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %99, i32 0, i32 4
  %101 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %100, i32 0, i32 6
  %102 = load ptr, ptr %101, align 8, !tbaa !31
  %103 = getelementptr inbounds ptr, ptr %102, i64 0
  %104 = load ptr, ptr %103, align 8, !tbaa !9
  %105 = getelementptr inbounds double, ptr %104, i64 2
  store double 2.500000e+02, ptr %105, align 8, !tbaa !32
  store i8 1, ptr %9, align 1, !tbaa !24
  br label %106

106:                                              ; preds = %48, %4
  %107 = load i8, ptr %9, align 1, !tbaa !24, !range !33, !noundef !34
  %108 = trunc i8 %107 to i1
  %109 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %108, ptr noundef @.str.312, ptr noundef %109)
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #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_impl26multiobjectivetestfunctionE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !13, i64 32, !6, i64 112, !13, i64 120, !13, i64 200, !6, i64 280, !16, i64 288, !16, i64 352, !16, i64 416, !14, i64 480, !13, i64 488, !16, i64 568, !13, i64 632, !13, i64 712, !13, i64 792, !16, i64 872, !16, i64 936, !13, i64 1000, !16, i64 1080, !16, i64 1144, !6, i64 1208, !16, i64 1216, !13, i64 1280, !13, i64 1360, !13, i64 1440, !16, i64 1520, !16, i64 1584, !6, i64 1648}
!13 = !{!"_ZTSN11alglib_impl9ae_matrixE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !14, i64 32, !15, i64 40, !7, i64 72}
!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_vectorE", !6, i64 0, !6, i64 8, !14, i64 16, !15, i64 24, !7, i64 56}
!17 = !{!12, !6, i64 8}
!18 = !{!12, !6, i64 16}
!19 = !{!12, !6, i64 24}
!20 = !{!12, !6, i64 1208}
!21 = !{!12, !6, i64 1648}
!22 = !{!12, !6, i64 112}
!23 = !{!12, !6, i64 280}
!24 = !{!14, !14, i64 0}
!25 = !{!26, !27, i64 24}
!26 = !{!"_ZTSN11alglib_impl8ae_stateE", !6, i64 0, !27, i64 8, !27, i64 16, !27, i64 24, !10, i64 32, !15, i64 40, !10, i64 72, !28, i64 80, !10, i64 88, !29, i64 96, !10, i64 104, !10, i64 112, !10, i64 120}
!27 = !{!"double", !7, i64 0}
!28 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !7, i64 0}
!29 = !{!"long long", !7, i64 0}
!30 = !{!26, !27, i64 16}
!31 = !{!7, !7, i64 0}
!32 = !{!27, !27, i64 0}
!33 = !{i8 0, i8 2}
!34 = !{}


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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl14motfcreatenls2ElPNS_10hqrndstateEPNS_26multiobjectivetestfunctionEPNS_8ae_stateE(i64 noundef %0, ptr nocapture noundef readnone %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #1 {
  tail call void @_ZN11alglib_impl33_multiobjectivetestfunction_clearEPv(ptr noundef %2)
  store i64 51, ptr %2, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %2, i64 8
  store i64 %0, ptr %5, align 8, !tbaa !15
  %6 = getelementptr inbounds i8, ptr %2, i64 16
  %7 = getelementptr inbounds i8, ptr %2, i64 1208
  store i64 0, ptr %7, align 8, !tbaa !16
  %8 = getelementptr inbounds i8, ptr %2, i64 1648
  store i64 0, ptr %8, align 8, !tbaa !17
  %9 = getelementptr inbounds i8, ptr %2, i64 32
  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_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 0, ptr noundef %3)
  %10 = getelementptr inbounds i8, ptr %2, i64 112
  store i64 0, ptr %10, align 8, !tbaa !18
  %11 = getelementptr inbounds i8, ptr %2, i64 280
  store i64 0, ptr %11, align 8, !tbaa !19
  %12 = getelementptr inbounds i8, ptr %2, i64 120
  tail call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 0, ptr noundef %3)
  %13 = getelementptr inbounds i8, ptr %2, i64 200
  tail call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef 0, i64 noundef 0, ptr noundef %3)
  %14 = getelementptr inbounds i8, ptr %2, i64 288
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef 0, ptr noundef %3)
  %15 = getelementptr inbounds i8, ptr %2, i64 352
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef 0, ptr noundef %3)
  %16 = getelementptr inbounds i8, ptr %2, i64 416
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef 0, ptr noundef %3)
  %17 = icmp eq i64 %0, 0
  br i1 %17, label %18, label %38

18:                                               ; preds = %4
  %19 = getelementptr inbounds i8, ptr %2, i64 24
  store i64 3, ptr %6, align 8, !tbaa !20
  store i64 16, ptr %19, align 8, !tbaa !21
  %20 = getelementptr inbounds i8, ptr %3, i64 24
  %21 = load double, ptr %20, align 8, !tbaa !22
  %22 = getelementptr inbounds i8, ptr %2, i64 872
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef 3, double noundef %21, ptr noundef nonnull %22, ptr noundef %3)
  %23 = load i64, ptr %6, align 8, !tbaa !20
  %24 = getelementptr inbounds i8, ptr %3, i64 16
  %25 = load double, ptr %24, align 8, !tbaa !27
  %26 = getelementptr inbounds i8, ptr %2, i64 936
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %23, double noundef %25, ptr noundef nonnull %26, ptr noundef %3)
  %27 = load i64, ptr %6, align 8, !tbaa !20
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %27, double noundef 0.000000e+00, ptr noundef nonnull %14, ptr noundef %3)
  store i64 1, ptr %10, align 8, !tbaa !18
  %28 = load i64, ptr %6, align 8, !tbaa !20
  tail call void @_ZN11alglib_impl7rallocmEllPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef 1, i64 noundef %28, ptr noundef nonnull %9, ptr noundef %3)
  %29 = getelementptr inbounds i8, ptr %2, i64 104
  %30 = load ptr, ptr %29, align 8, !tbaa !28
  %31 = load ptr, ptr %30, align 8, !tbaa !29
  store double 2.000000e-02, ptr %31, align 8, !tbaa !30
  %32 = load ptr, ptr %29, align 8, !tbaa !28
  %33 = load ptr, ptr %32, align 8, !tbaa !29
  %34 = getelementptr inbounds i8, ptr %33, i64 8
  store double 4.000000e+03, ptr %34, align 8, !tbaa !30
  %35 = load ptr, ptr %29, align 8, !tbaa !28
  %36 = load ptr, ptr %35, align 8, !tbaa !29
  %37 = getelementptr inbounds i8, ptr %36, i64 16
  store double 2.500000e+02, ptr %37, align 8, !tbaa !30
  br label %38

38:                                               ; preds = %18, %4
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.312, ptr noundef %3)
  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_impl26multiobjectivetestfunctionE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !7, i64 112, !10, i64 120, !10, i64 200, !7, i64 280, !14, i64 288, !14, i64 352, !14, i64 416, !11, i64 480, !10, i64 488, !14, i64 568, !10, i64 632, !10, i64 712, !10, i64 792, !14, i64 872, !14, i64 936, !10, i64 1000, !14, i64 1080, !14, i64 1144, !7, i64 1208, !14, i64 1216, !10, i64 1280, !10, i64 1360, !10, i64 1440, !14, i64 1520, !14, i64 1584, !7, i64 1648}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !12, i64 40, !8, i64 72}
!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_vectorE", !7, i64 0, !7, i64 8, !11, i64 16, !12, i64 24, !8, i64 56}
!15 = !{!6, !7, i64 8}
!16 = !{!6, !7, i64 1208}
!17 = !{!6, !7, i64 1648}
!18 = !{!6, !7, i64 112}
!19 = !{!6, !7, i64 280}
!20 = !{!6, !7, i64 16}
!21 = !{!6, !7, i64 24}
!22 = !{!23, !24, i64 24}
!23 = !{!"_ZTSN11alglib_impl8ae_stateE", !7, i64 0, !24, i64 8, !24, i64 16, !24, i64 24, !13, i64 32, !12, i64 40, !13, i64 72, !25, i64 80, !13, i64 88, !26, i64 96, !13, i64 104, !13, i64 112, !13, i64 120}
!24 = !{!"double", !8, i64 0}
!25 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !8, i64 0}
!26 = !{!"long long", !8, i64 0}
!27 = !{!23, !24, i64 16}
!28 = !{!8, !8, i64 0}
!29 = !{!13, !13, i64 0}
!30 = !{!24, !24, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,TailCallElimPass