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

@.str.310 = external hidden unnamed_addr constant [48 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

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

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef, ptr noundef) #1

declare void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef, i64 noundef, double 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) #3

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

49:                                               ; preds = %4
  %50 = load ptr, ptr %7, align 8, !tbaa !9
  %51 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %50, i32 0, i32 2
  store i64 20, ptr %51, align 8, !tbaa !25
  %52 = load ptr, ptr %7, align 8, !tbaa !9
  %53 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %52, i32 0, i32 2
  %54 = load i64, ptr %53, align 8, !tbaa !25
  %55 = load ptr, ptr %7, align 8, !tbaa !9
  %56 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %55, i32 0, i32 18
  %57 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %54, double noundef 0.000000e+00, ptr noundef %56, ptr noundef %57)
  %58 = load ptr, ptr %7, align 8, !tbaa !9
  %59 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %58, i32 0, i32 2
  %60 = load i64, ptr %59, align 8, !tbaa !25
  %61 = load ptr, ptr %7, align 8, !tbaa !9
  %62 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %61, i32 0, i32 19
  %63 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %60, double noundef 0x400921FB54442D18, ptr noundef %62, ptr noundef %63)
  %64 = load ptr, ptr %7, align 8, !tbaa !9
  %65 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %64, i32 0, i32 8
  store i64 1, ptr %65, align 8, !tbaa !22
  %66 = load ptr, ptr %7, align 8, !tbaa !9
  %67 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %66, i32 0, i32 2
  %68 = load i64, ptr %67, align 8, !tbaa !25
  %69 = load ptr, ptr %7, align 8, !tbaa !9
  %70 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %69, i32 0, i32 6
  %71 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef 1, i64 noundef %68, double noundef 0.000000e+00, ptr noundef %70, ptr noundef %71)
  %72 = load ptr, ptr %7, align 8, !tbaa !9
  %73 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %72, i32 0, i32 7
  %74 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef 1, i64 noundef 1, double noundef 0.000000e+00, ptr noundef %73, ptr noundef %74)
  %75 = load ptr, ptr %7, align 8, !tbaa !9
  %76 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %75, i32 0, i32 2
  %77 = load i64, ptr %76, align 8, !tbaa !25
  %78 = load ptr, ptr %7, align 8, !tbaa !9
  %79 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %78, i32 0, i32 9
  %80 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %77, double noundef 0.000000e+00, ptr noundef %79, ptr noundef %80)
  store i8 1, ptr %9, align 1, !tbaa !24
  br label %81

81:                                               ; preds = %49, %4
  %82 = load i64, ptr %5, align 8, !tbaa !5
  %83 = icmp eq i64 %82, 1
  br i1 %83, label %84, label %174

84:                                               ; preds = %81
  %85 = load ptr, ptr %7, align 8, !tbaa !9
  %86 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %85, i32 0, i32 2
  store i64 2, ptr %86, align 8, !tbaa !25
  %87 = load ptr, ptr %7, align 8, !tbaa !9
  %88 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %87, i32 0, i32 2
  %89 = load i64, ptr %88, align 8, !tbaa !25
  %90 = load ptr, ptr %7, align 8, !tbaa !9
  %91 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %90, i32 0, i32 18
  %92 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %89, double noundef 0xC01921FB54442D18, ptr noundef %91, ptr noundef %92)
  %93 = load ptr, ptr %7, align 8, !tbaa !9
  %94 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %93, i32 0, i32 2
  %95 = load i64, ptr %94, align 8, !tbaa !25
  %96 = load ptr, ptr %7, align 8, !tbaa !9
  %97 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %96, i32 0, i32 19
  %98 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %95, double noundef 0x401921FB54442D18, ptr noundef %97, ptr noundef %98)
  store i64 0, ptr %10, align 8, !tbaa !5
  br label %99

99:                                               ; preds = %153, %84
  %100 = load i64, ptr %10, align 8, !tbaa !5
  %101 = load ptr, ptr %7, align 8, !tbaa !9
  %102 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %101, i32 0, i32 2
  %103 = load i64, ptr %102, align 8, !tbaa !25
  %104 = sub nsw i64 %103, 1
  %105 = icmp sle i64 %100, %104
  br i1 %105, label %106, label %156

106:                                              ; preds = %99
  %107 = load ptr, ptr %7, align 8, !tbaa !9
  %108 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %107, i32 0, i32 18
  %109 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %108, i32 0, i32 4
  %110 = load ptr, ptr %109, align 8, !tbaa !26
  %111 = load i64, ptr %10, align 8, !tbaa !5
  %112 = getelementptr inbounds double, ptr %110, i64 %111
  %113 = load double, ptr %112, align 8, !tbaa !27
  %114 = load i64, ptr %10, align 8, !tbaa !5
  %115 = mul nsw i64 89, %114
  %116 = add nsw i64 117, %115
  %117 = sitofp i64 %116 to double
  %118 = load ptr, ptr %8, align 8, !tbaa !9
  %119 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %117, ptr noundef %118)
  %120 = load ptr, ptr %8, align 8, !tbaa !9
  %121 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %119, ptr noundef %120)
  %122 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %121, double 5.000000e-01)
  %123 = fmul double %113, %122
  %124 = load ptr, ptr %7, align 8, !tbaa !9
  %125 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %124, i32 0, i32 18
  %126 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %125, i32 0, i32 4
  %127 = load ptr, ptr %126, align 8, !tbaa !26
  %128 = load i64, ptr %10, align 8, !tbaa !5
  %129 = getelementptr inbounds double, ptr %127, i64 %128
  store double %123, ptr %129, align 8, !tbaa !27
  %130 = load ptr, ptr %7, align 8, !tbaa !9
  %131 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %130, i32 0, i32 19
  %132 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %131, i32 0, i32 4
  %133 = load ptr, ptr %132, align 8, !tbaa !26
  %134 = load i64, ptr %10, align 8, !tbaa !5
  %135 = getelementptr inbounds double, ptr %133, i64 %134
  %136 = load double, ptr %135, align 8, !tbaa !27
  %137 = load i64, ptr %10, align 8, !tbaa !5
  %138 = mul nsw i64 83, %137
  %139 = add nsw i64 653, %138
  %140 = sitofp i64 %139 to double
  %141 = load ptr, ptr %8, align 8, !tbaa !9
  %142 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %140, ptr noundef %141)
  %143 = load ptr, ptr %8, align 8, !tbaa !9
  %144 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %142, ptr noundef %143)
  %145 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %144, double 5.000000e-01)
  %146 = fmul double %136, %145
  %147 = load ptr, ptr %7, align 8, !tbaa !9
  %148 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %147, i32 0, i32 19
  %149 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %148, i32 0, i32 4
  %150 = load ptr, ptr %149, align 8, !tbaa !26
  %151 = load i64, ptr %10, align 8, !tbaa !5
  %152 = getelementptr inbounds double, ptr %150, i64 %151
  store double %146, ptr %152, align 8, !tbaa !27
  br label %153

153:                                              ; preds = %106
  %154 = load i64, ptr %10, align 8, !tbaa !5
  %155 = add nsw i64 %154, 1
  store i64 %155, ptr %10, align 8, !tbaa !5
  br label %99, !llvm.loop !29

156:                                              ; preds = %99
  %157 = load ptr, ptr %7, align 8, !tbaa !9
  %158 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %157, i32 0, i32 8
  store i64 1, ptr %158, align 8, !tbaa !22
  %159 = load ptr, ptr %7, align 8, !tbaa !9
  %160 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %159, i32 0, i32 2
  %161 = load i64, ptr %160, align 8, !tbaa !25
  %162 = load ptr, ptr %7, align 8, !tbaa !9
  %163 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %162, i32 0, i32 6
  %164 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef 1, i64 noundef %161, double noundef 0.000000e+00, ptr noundef %163, ptr noundef %164)
  %165 = load ptr, ptr %7, align 8, !tbaa !9
  %166 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %165, i32 0, i32 7
  %167 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef 1, i64 noundef 1, double noundef 0.000000e+00, ptr noundef %166, ptr noundef %167)
  %168 = load ptr, ptr %7, align 8, !tbaa !9
  %169 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %168, i32 0, i32 2
  %170 = load i64, ptr %169, align 8, !tbaa !25
  %171 = load ptr, ptr %7, align 8, !tbaa !9
  %172 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %171, i32 0, i32 9
  %173 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %170, double noundef 0.000000e+00, ptr noundef %172, ptr noundef %173)
  store i8 1, ptr %9, align 1, !tbaa !24
  br label %174

174:                                              ; preds = %156, %81
  %175 = load i64, ptr %5, align 8, !tbaa !5
  %176 = icmp eq i64 %175, 2
  br i1 %176, label %177, label %267

177:                                              ; preds = %174
  %178 = load ptr, ptr %7, align 8, !tbaa !9
  %179 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %178, i32 0, i32 2
  store i64 2, ptr %179, align 8, !tbaa !25
  %180 = load ptr, ptr %7, align 8, !tbaa !9
  %181 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %180, i32 0, i32 2
  %182 = load i64, ptr %181, align 8, !tbaa !25
  %183 = load ptr, ptr %7, align 8, !tbaa !9
  %184 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %183, i32 0, i32 18
  %185 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %182, double noundef -1.000000e+01, ptr noundef %184, ptr noundef %185)
  %186 = load ptr, ptr %7, align 8, !tbaa !9
  %187 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %186, i32 0, i32 2
  %188 = load i64, ptr %187, align 8, !tbaa !25
  %189 = load ptr, ptr %7, align 8, !tbaa !9
  %190 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %189, i32 0, i32 19
  %191 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %188, double noundef 1.000000e+01, ptr noundef %190, ptr noundef %191)
  store i64 0, ptr %10, align 8, !tbaa !5
  br label %192

192:                                              ; preds = %246, %177
  %193 = load i64, ptr %10, align 8, !tbaa !5
  %194 = load ptr, ptr %7, align 8, !tbaa !9
  %195 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %194, i32 0, i32 2
  %196 = load i64, ptr %195, align 8, !tbaa !25
  %197 = sub nsw i64 %196, 1
  %198 = icmp sle i64 %193, %197
  br i1 %198, label %199, label %249

199:                                              ; preds = %192
  %200 = load ptr, ptr %7, align 8, !tbaa !9
  %201 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %200, i32 0, i32 18
  %202 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %201, i32 0, i32 4
  %203 = load ptr, ptr %202, align 8, !tbaa !26
  %204 = load i64, ptr %10, align 8, !tbaa !5
  %205 = getelementptr inbounds double, ptr %203, i64 %204
  %206 = load double, ptr %205, align 8, !tbaa !27
  %207 = load i64, ptr %10, align 8, !tbaa !5
  %208 = mul nsw i64 89, %207
  %209 = add nsw i64 117, %208
  %210 = sitofp i64 %209 to double
  %211 = load ptr, ptr %8, align 8, !tbaa !9
  %212 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %210, ptr noundef %211)
  %213 = load ptr, ptr %8, align 8, !tbaa !9
  %214 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %212, ptr noundef %213)
  %215 = call double @llvm.fmuladd.f64(double 9.000000e-01, double %214, double 1.000000e-01)
  %216 = fmul double %206, %215
  %217 = load ptr, ptr %7, align 8, !tbaa !9
  %218 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %217, i32 0, i32 18
  %219 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %218, i32 0, i32 4
  %220 = load ptr, ptr %219, align 8, !tbaa !26
  %221 = load i64, ptr %10, align 8, !tbaa !5
  %222 = getelementptr inbounds double, ptr %220, i64 %221
  store double %216, ptr %222, align 8, !tbaa !27
  %223 = load ptr, ptr %7, align 8, !tbaa !9
  %224 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %223, i32 0, i32 19
  %225 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %224, i32 0, i32 4
  %226 = load ptr, ptr %225, align 8, !tbaa !26
  %227 = load i64, ptr %10, align 8, !tbaa !5
  %228 = getelementptr inbounds double, ptr %226, i64 %227
  %229 = load double, ptr %228, align 8, !tbaa !27
  %230 = load i64, ptr %10, align 8, !tbaa !5
  %231 = mul nsw i64 83, %230
  %232 = add nsw i64 653, %231
  %233 = sitofp i64 %232 to double
  %234 = load ptr, ptr %8, align 8, !tbaa !9
  %235 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %233, ptr noundef %234)
  %236 = load ptr, ptr %8, align 8, !tbaa !9
  %237 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %235, ptr noundef %236)
  %238 = call double @llvm.fmuladd.f64(double 9.000000e-01, double %237, double 1.000000e-01)
  %239 = fmul double %229, %238
  %240 = load ptr, ptr %7, align 8, !tbaa !9
  %241 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %240, i32 0, i32 19
  %242 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %241, i32 0, i32 4
  %243 = load ptr, ptr %242, align 8, !tbaa !26
  %244 = load i64, ptr %10, align 8, !tbaa !5
  %245 = getelementptr inbounds double, ptr %243, i64 %244
  store double %239, ptr %245, align 8, !tbaa !27
  br label %246

246:                                              ; preds = %199
  %247 = load i64, ptr %10, align 8, !tbaa !5
  %248 = add nsw i64 %247, 1
  store i64 %248, ptr %10, align 8, !tbaa !5
  br label %192, !llvm.loop !31

249:                                              ; preds = %192
  %250 = load ptr, ptr %7, align 8, !tbaa !9
  %251 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %250, i32 0, i32 8
  store i64 1, ptr %251, align 8, !tbaa !22
  %252 = load ptr, ptr %7, align 8, !tbaa !9
  %253 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %252, i32 0, i32 2
  %254 = load i64, ptr %253, align 8, !tbaa !25
  %255 = load ptr, ptr %7, align 8, !tbaa !9
  %256 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %255, i32 0, i32 6
  %257 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef 1, i64 noundef %254, double noundef 0.000000e+00, ptr noundef %256, ptr noundef %257)
  %258 = load ptr, ptr %7, align 8, !tbaa !9
  %259 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %258, i32 0, i32 7
  %260 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef 1, i64 noundef 1, double noundef -1.000000e+00, ptr noundef %259, ptr noundef %260)
  %261 = load ptr, ptr %7, align 8, !tbaa !9
  %262 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %261, i32 0, i32 2
  %263 = load i64, ptr %262, align 8, !tbaa !25
  %264 = load ptr, ptr %7, align 8, !tbaa !9
  %265 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %264, i32 0, i32 9
  %266 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %263, double noundef 0.000000e+00, ptr noundef %265, ptr noundef %266)
  store i8 1, ptr %9, align 1, !tbaa !24
  br label %267

267:                                              ; preds = %249, %174
  %268 = load i64, ptr %5, align 8, !tbaa !5
  %269 = icmp eq i64 %268, 3
  br i1 %269, label %270, label %360

270:                                              ; preds = %267
  %271 = load ptr, ptr %7, align 8, !tbaa !9
  %272 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %271, i32 0, i32 2
  store i64 5, ptr %272, align 8, !tbaa !25
  %273 = load ptr, ptr %7, align 8, !tbaa !9
  %274 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %273, i32 0, i32 2
  %275 = load i64, ptr %274, align 8, !tbaa !25
  %276 = load ptr, ptr %7, align 8, !tbaa !9
  %277 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %276, i32 0, i32 18
  %278 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %275, double noundef -3.000000e+01, ptr noundef %277, ptr noundef %278)
  %279 = load ptr, ptr %7, align 8, !tbaa !9
  %280 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %279, i32 0, i32 2
  %281 = load i64, ptr %280, align 8, !tbaa !25
  %282 = load ptr, ptr %7, align 8, !tbaa !9
  %283 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %282, i32 0, i32 19
  %284 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %281, double noundef 3.000000e+01, ptr noundef %283, ptr noundef %284)
  store i64 0, ptr %10, align 8, !tbaa !5
  br label %285

285:                                              ; preds = %339, %270
  %286 = load i64, ptr %10, align 8, !tbaa !5
  %287 = load ptr, ptr %7, align 8, !tbaa !9
  %288 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %287, i32 0, i32 2
  %289 = load i64, ptr %288, align 8, !tbaa !25
  %290 = sub nsw i64 %289, 1
  %291 = icmp sle i64 %286, %290
  br i1 %291, label %292, label %342

292:                                              ; preds = %285
  %293 = load ptr, ptr %7, align 8, !tbaa !9
  %294 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %293, i32 0, i32 18
  %295 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %294, i32 0, i32 4
  %296 = load ptr, ptr %295, align 8, !tbaa !26
  %297 = load i64, ptr %10, align 8, !tbaa !5
  %298 = getelementptr inbounds double, ptr %296, i64 %297
  %299 = load double, ptr %298, align 8, !tbaa !27
  %300 = load i64, ptr %10, align 8, !tbaa !5
  %301 = mul nsw i64 89, %300
  %302 = add nsw i64 117, %301
  %303 = sitofp i64 %302 to double
  %304 = load ptr, ptr %8, align 8, !tbaa !9
  %305 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %303, ptr noundef %304)
  %306 = load ptr, ptr %8, align 8, !tbaa !9
  %307 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %305, ptr noundef %306)
  %308 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %307, double 5.000000e-01)
  %309 = fmul double %299, %308
  %310 = load ptr, ptr %7, align 8, !tbaa !9
  %311 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %310, i32 0, i32 18
  %312 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %311, i32 0, i32 4
  %313 = load ptr, ptr %312, align 8, !tbaa !26
  %314 = load i64, ptr %10, align 8, !tbaa !5
  %315 = getelementptr inbounds double, ptr %313, i64 %314
  store double %309, ptr %315, align 8, !tbaa !27
  %316 = load ptr, ptr %7, align 8, !tbaa !9
  %317 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %316, i32 0, i32 19
  %318 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %317, i32 0, i32 4
  %319 = load ptr, ptr %318, align 8, !tbaa !26
  %320 = load i64, ptr %10, align 8, !tbaa !5
  %321 = getelementptr inbounds double, ptr %319, i64 %320
  %322 = load double, ptr %321, align 8, !tbaa !27
  %323 = load i64, ptr %10, align 8, !tbaa !5
  %324 = mul nsw i64 83, %323
  %325 = add nsw i64 653, %324
  %326 = sitofp i64 %325 to double
  %327 = load ptr, ptr %8, align 8, !tbaa !9
  %328 = call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %326, ptr noundef %327)
  %329 = load ptr, ptr %8, align 8, !tbaa !9
  %330 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %328, ptr noundef %329)
  %331 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %330, double 5.000000e-01)
  %332 = fmul double %322, %331
  %333 = load ptr, ptr %7, align 8, !tbaa !9
  %334 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %333, i32 0, i32 19
  %335 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %334, i32 0, i32 4
  %336 = load ptr, ptr %335, align 8, !tbaa !26
  %337 = load i64, ptr %10, align 8, !tbaa !5
  %338 = getelementptr inbounds double, ptr %336, i64 %337
  store double %332, ptr %338, align 8, !tbaa !27
  br label %339

339:                                              ; preds = %292
  %340 = load i64, ptr %10, align 8, !tbaa !5
  %341 = add nsw i64 %340, 1
  store i64 %341, ptr %10, align 8, !tbaa !5
  br label %285, !llvm.loop !32

342:                                              ; preds = %285
  %343 = load ptr, ptr %7, align 8, !tbaa !9
  %344 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %343, i32 0, i32 8
  store i64 1, ptr %344, align 8, !tbaa !22
  %345 = load ptr, ptr %7, align 8, !tbaa !9
  %346 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %345, i32 0, i32 2
  %347 = load i64, ptr %346, align 8, !tbaa !25
  %348 = load ptr, ptr %7, align 8, !tbaa !9
  %349 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %348, i32 0, i32 6
  %350 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef 1, i64 noundef %347, double noundef 0.000000e+00, ptr noundef %349, ptr noundef %350)
  %351 = load ptr, ptr %7, align 8, !tbaa !9
  %352 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %351, i32 0, i32 7
  %353 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef 1, i64 noundef 1, double noundef 0.000000e+00, ptr noundef %352, ptr noundef %353)
  %354 = load ptr, ptr %7, align 8, !tbaa !9
  %355 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %354, i32 0, i32 2
  %356 = load i64, ptr %355, align 8, !tbaa !25
  %357 = load ptr, ptr %7, align 8, !tbaa !9
  %358 = getelementptr inbounds %"struct.alglib_impl::multiobjectivetestfunction", ptr %357, i32 0, i32 9
  %359 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %356, double noundef 0.000000e+00, ptr noundef %358, ptr noundef %359)
  store i8 1, ptr %9, align 1, !tbaa !24
  br label %360

360:                                              ; preds = %342, %267
  %361 = load i8, ptr %9, align 1, !tbaa !24, !range !33, !noundef !34
  %362 = trunc i8 %361 to i1
  %363 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %362, ptr noundef @.str.310, ptr noundef %363)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  ret void
}

declare noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double 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 = !{!"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, !14, i64 480}
!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 0}
!18 = !{!12, !6, i64 8}
!19 = !{!12, !6, i64 24}
!20 = !{!12, !6, i64 1208}
!21 = !{!12, !6, i64 1648}
!22 = !{!12, !6, i64 280}
!23 = !{!12, !6, i64 112}
!24 = !{!14, !14, i64 0}
!25 = !{!12, !6, i64 16}
!26 = !{!7, !7, i64 0}
!27 = !{!28, !28, i64 0}
!28 = !{!"double", !7, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !30}
!32 = distinct !{!32, !30}
!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.310 = external hidden unnamed_addr constant [48 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

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

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #0

declare void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef, i64 noundef, double 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 #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl25motfcreatemetaheuristicu3ElPNS_10hqrndstateEPNS_26multiobjectivetestfunctionEPNS_8ae_stateE(i64 noundef %0, ptr nocapture noundef readnone %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #2 {
  tail call void @_ZN11alglib_impl33_multiobjectivetestfunction_clearEPv(ptr noundef %2)
  %5 = getelementptr inbounds i8, ptr %2, i64 480
  store i8 0, ptr %5, align 8, !tbaa !5
  store i64 3, ptr %2, align 8, !tbaa !15
  %6 = getelementptr inbounds i8, ptr %2, i64 8
  store i64 %0, ptr %6, align 8, !tbaa !16
  %7 = getelementptr inbounds i8, ptr %2, i64 24
  store i64 1, ptr %7, align 8, !tbaa !17
  %8 = getelementptr inbounds i8, ptr %2, i64 1208
  store i64 0, ptr %8, align 8, !tbaa !18
  %9 = getelementptr inbounds i8, ptr %2, i64 1648
  store i64 0, ptr %9, align 8, !tbaa !19
  %10 = getelementptr inbounds i8, ptr %2, i64 280
  store i64 0, ptr %10, align 8, !tbaa !20
  %11 = getelementptr inbounds i8, ptr %2, i64 112
  store i64 0, ptr %11, align 8, !tbaa !21
  %12 = getelementptr inbounds i8, ptr %2, i64 32
  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 120
  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 200
  tail call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef 0, i64 noundef 0, ptr noundef %3)
  %15 = getelementptr inbounds i8, ptr %2, i64 288
  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 352
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef 0, ptr noundef %3)
  %17 = getelementptr inbounds i8, ptr %2, i64 416
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef 0, ptr noundef %3)
  switch i64 %0, label %59 [
    i64 0, label %.thread149
    i64 1, label %23
  ]

.thread149:                                       ; preds = %4
  %18 = getelementptr inbounds i8, ptr %2, i64 16
  store i64 20, ptr %18, align 8, !tbaa !22
  %19 = getelementptr inbounds i8, ptr %2, i64 872
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef 20, double noundef 0.000000e+00, ptr noundef nonnull %19, ptr noundef %3)
  %20 = load i64, ptr %18, align 8, !tbaa !22
  %21 = getelementptr inbounds i8, ptr %2, i64 936
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %20, double noundef 0x400921FB54442D18, ptr noundef nonnull %21, ptr noundef %3)
  store i64 1, ptr %10, align 8, !tbaa !20
  %22 = load i64, ptr %18, align 8, !tbaa !22
  br label %.sink.split

23:                                               ; preds = %4
  %24 = getelementptr inbounds i8, ptr %2, i64 16
  store i64 2, ptr %24, align 8, !tbaa !22
  %25 = getelementptr inbounds i8, ptr %2, i64 872
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef 2, double noundef 0xC01921FB54442D18, ptr noundef nonnull %25, ptr noundef %3)
  %26 = load i64, ptr %24, align 8, !tbaa !22
  %27 = getelementptr inbounds i8, ptr %2, i64 936
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %26, double noundef 0x401921FB54442D18, ptr noundef nonnull %27, ptr noundef %3)
  %28 = load i64, ptr %24, align 8, !tbaa !22
  %.not.not153 = icmp sgt i64 %28, 0
  br i1 %.not.not153, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %23
  %29 = getelementptr inbounds i8, ptr %2, i64 928
  %30 = getelementptr inbounds i8, ptr %2, i64 992
  br label %31

31:                                               ; preds = %.lr.ph, %31
  %.0154 = phi i64 [ 0, %.lr.ph ], [ %56, %31 ]
  %32 = load ptr, ptr %29, align 8, !tbaa !23
  %33 = getelementptr inbounds double, ptr %32, i64 %.0154
  %34 = load double, ptr %33, align 8, !tbaa !24
  %35 = mul nuw nsw i64 %.0154, 89
  %36 = add nuw nsw i64 %35, 117
  %37 = uitofp nneg i64 %36 to double
  %38 = tail call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %37, ptr noundef %3)
  %39 = tail call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %38, ptr noundef %3)
  %40 = tail call double @llvm.fmuladd.f64(double %39, double 5.000000e-01, double 5.000000e-01)
  %41 = fmul double %34, %40
  %42 = load ptr, ptr %29, align 8, !tbaa !23
  %43 = getelementptr inbounds double, ptr %42, i64 %.0154
  store double %41, ptr %43, align 8, !tbaa !24
  %44 = load ptr, ptr %30, align 8, !tbaa !23
  %45 = getelementptr inbounds double, ptr %44, i64 %.0154
  %46 = load double, ptr %45, align 8, !tbaa !24
  %47 = mul nuw nsw i64 %.0154, 83
  %48 = add nuw nsw i64 %47, 653
  %49 = uitofp nneg i64 %48 to double
  %50 = tail call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %49, ptr noundef %3)
  %51 = tail call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %50, ptr noundef %3)
  %52 = tail call double @llvm.fmuladd.f64(double %51, double 5.000000e-01, double 5.000000e-01)
  %53 = fmul double %46, %52
  %54 = load ptr, ptr %30, align 8, !tbaa !23
  %55 = getelementptr inbounds double, ptr %54, i64 %.0154
  store double %53, ptr %55, align 8, !tbaa !24
  %56 = add nuw nsw i64 %.0154, 1
  %57 = load i64, ptr %24, align 8, !tbaa !22
  %.not.not = icmp slt i64 %56, %57
  br i1 %.not.not, label %31, label %._crit_edge, !llvm.loop !26

._crit_edge:                                      ; preds = %31, %23
  %.lcssa152 = phi i64 [ %28, %23 ], [ %57, %31 ]
  store i64 1, ptr %10, align 8, !tbaa !20
  tail call void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef 1, i64 noundef %.lcssa152, double noundef 0.000000e+00, ptr noundef nonnull %13, ptr noundef %3)
  tail call void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef 1, i64 noundef 1, double noundef 0.000000e+00, ptr noundef nonnull %14, ptr noundef %3)
  %58 = load i64, ptr %24, align 8, !tbaa !22
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %58, double noundef 0.000000e+00, ptr noundef nonnull %15, ptr noundef %3)
  br label %59

59:                                               ; preds = %4, %._crit_edge
  %.1143 = phi i1 [ true, %._crit_edge ], [ false, %4 ]
  %60 = icmp eq i64 %0, 2
  br i1 %60, label %61, label %97

61:                                               ; preds = %59
  %62 = getelementptr inbounds i8, ptr %2, i64 16
  store i64 2, ptr %62, align 8, !tbaa !22
  %63 = getelementptr inbounds i8, ptr %2, i64 872
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef 2, double noundef -1.000000e+01, ptr noundef nonnull %63, ptr noundef %3)
  %64 = load i64, ptr %62, align 8, !tbaa !22
  %65 = getelementptr inbounds i8, ptr %2, i64 936
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %64, double noundef 1.000000e+01, ptr noundef nonnull %65, ptr noundef %3)
  %66 = load i64, ptr %62, align 8, !tbaa !22
  %.not.not145155 = icmp sgt i64 %66, 0
  br i1 %.not.not145155, label %.lr.ph158, label %._crit_edge159

.lr.ph158:                                        ; preds = %61
  %67 = getelementptr inbounds i8, ptr %2, i64 928
  %68 = getelementptr inbounds i8, ptr %2, i64 992
  br label %69

69:                                               ; preds = %.lr.ph158, %69
  %.1156 = phi i64 [ 0, %.lr.ph158 ], [ %94, %69 ]
  %70 = load ptr, ptr %67, align 8, !tbaa !23
  %71 = getelementptr inbounds double, ptr %70, i64 %.1156
  %72 = load double, ptr %71, align 8, !tbaa !24
  %73 = mul nuw nsw i64 %.1156, 89
  %74 = add nuw nsw i64 %73, 117
  %75 = uitofp nneg i64 %74 to double
  %76 = tail call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %75, ptr noundef %3)
  %77 = tail call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %76, ptr noundef %3)
  %78 = tail call double @llvm.fmuladd.f64(double %77, double 9.000000e-01, double 1.000000e-01)
  %79 = fmul double %72, %78
  %80 = load ptr, ptr %67, align 8, !tbaa !23
  %81 = getelementptr inbounds double, ptr %80, i64 %.1156
  store double %79, ptr %81, align 8, !tbaa !24
  %82 = load ptr, ptr %68, align 8, !tbaa !23
  %83 = getelementptr inbounds double, ptr %82, i64 %.1156
  %84 = load double, ptr %83, align 8, !tbaa !24
  %85 = mul nuw nsw i64 %.1156, 83
  %86 = add nuw nsw i64 %85, 653
  %87 = uitofp nneg i64 %86 to double
  %88 = tail call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %87, ptr noundef %3)
  %89 = tail call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %88, ptr noundef %3)
  %90 = tail call double @llvm.fmuladd.f64(double %89, double 9.000000e-01, double 1.000000e-01)
  %91 = fmul double %84, %90
  %92 = load ptr, ptr %68, align 8, !tbaa !23
  %93 = getelementptr inbounds double, ptr %92, i64 %.1156
  store double %91, ptr %93, align 8, !tbaa !24
  %94 = add nuw nsw i64 %.1156, 1
  %95 = load i64, ptr %62, align 8, !tbaa !22
  %.not.not145 = icmp slt i64 %94, %95
  br i1 %.not.not145, label %69, label %._crit_edge159, !llvm.loop !28

._crit_edge159:                                   ; preds = %69, %61
  %.lcssa151 = phi i64 [ %66, %61 ], [ %95, %69 ]
  store i64 1, ptr %10, align 8, !tbaa !20
  tail call void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef 1, i64 noundef %.lcssa151, double noundef 0.000000e+00, ptr noundef nonnull %13, ptr noundef %3)
  tail call void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef 1, i64 noundef 1, double noundef -1.000000e+00, ptr noundef nonnull %14, ptr noundef %3)
  %96 = load i64, ptr %62, align 8, !tbaa !22
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %96, double noundef 0.000000e+00, ptr noundef nonnull %15, ptr noundef %3)
  br label %97

97:                                               ; preds = %._crit_edge159, %59
  %.2144 = phi i1 [ true, %._crit_edge159 ], [ %.1143, %59 ]
  %98 = icmp eq i64 %0, 3
  br i1 %98, label %99, label %135

99:                                               ; preds = %97
  %100 = getelementptr inbounds i8, ptr %2, i64 16
  store i64 5, ptr %100, align 8, !tbaa !22
  %101 = getelementptr inbounds i8, ptr %2, i64 872
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef 5, double noundef -3.000000e+01, ptr noundef nonnull %101, ptr noundef %3)
  %102 = load i64, ptr %100, align 8, !tbaa !22
  %103 = getelementptr inbounds i8, ptr %2, i64 936
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %102, double noundef 3.000000e+01, ptr noundef nonnull %103, ptr noundef %3)
  %104 = load i64, ptr %100, align 8, !tbaa !22
  %.not.not146161 = icmp sgt i64 %104, 0
  br i1 %.not.not146161, label %.lr.ph164, label %._crit_edge165

.lr.ph164:                                        ; preds = %99
  %105 = getelementptr inbounds i8, ptr %2, i64 928
  %106 = getelementptr inbounds i8, ptr %2, i64 992
  br label %107

107:                                              ; preds = %.lr.ph164, %107
  %.2162 = phi i64 [ 0, %.lr.ph164 ], [ %132, %107 ]
  %108 = load ptr, ptr %105, align 8, !tbaa !23
  %109 = getelementptr inbounds double, ptr %108, i64 %.2162
  %110 = load double, ptr %109, align 8, !tbaa !24
  %111 = mul nuw nsw i64 %.2162, 89
  %112 = add nuw nsw i64 %111, 117
  %113 = uitofp nneg i64 %112 to double
  %114 = tail call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %113, ptr noundef %3)
  %115 = tail call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %114, ptr noundef %3)
  %116 = tail call double @llvm.fmuladd.f64(double %115, double 5.000000e-01, double 5.000000e-01)
  %117 = fmul double %110, %116
  %118 = load ptr, ptr %105, align 8, !tbaa !23
  %119 = getelementptr inbounds double, ptr %118, i64 %.2162
  store double %117, ptr %119, align 8, !tbaa !24
  %120 = load ptr, ptr %106, align 8, !tbaa !23
  %121 = getelementptr inbounds double, ptr %120, i64 %.2162
  %122 = load double, ptr %121, align 8, !tbaa !24
  %123 = mul nuw nsw i64 %.2162, 83
  %124 = add nuw nsw i64 %123, 653
  %125 = uitofp nneg i64 %124 to double
  %126 = tail call noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double noundef %125, ptr noundef %3)
  %127 = tail call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %126, ptr noundef %3)
  %128 = tail call double @llvm.fmuladd.f64(double %127, double 5.000000e-01, double 5.000000e-01)
  %129 = fmul double %122, %128
  %130 = load ptr, ptr %106, align 8, !tbaa !23
  %131 = getelementptr inbounds double, ptr %130, i64 %.2162
  store double %129, ptr %131, align 8, !tbaa !24
  %132 = add nuw nsw i64 %.2162, 1
  %133 = load i64, ptr %100, align 8, !tbaa !22
  %.not.not146 = icmp slt i64 %132, %133
  br i1 %.not.not146, label %107, label %._crit_edge165, !llvm.loop !29

._crit_edge165:                                   ; preds = %107, %99
  %.lcssa = phi i64 [ %104, %99 ], [ %133, %107 ]
  store i64 1, ptr %10, align 8, !tbaa !20
  br label %.sink.split

.sink.split:                                      ; preds = %._crit_edge165, %.thread149
  %.sink = phi i64 [ %22, %.thread149 ], [ %.lcssa, %._crit_edge165 ]
  %.sink173 = phi ptr [ %18, %.thread149 ], [ %100, %._crit_edge165 ]
  tail call void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef 1, i64 noundef %.sink, double noundef 0.000000e+00, ptr noundef nonnull %13, ptr noundef %3)
  tail call void @_ZN11alglib_impl10rsetallocmElldPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef 1, i64 noundef 1, double noundef 0.000000e+00, ptr noundef nonnull %14, ptr noundef %3)
  %134 = load i64, ptr %.sink173, align 8, !tbaa !22
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %134, double noundef 0.000000e+00, ptr noundef nonnull %15, ptr noundef %3)
  br label %135

135:                                              ; preds = %.sink.split, %97
  %.3 = phi i1 [ %.2144, %97 ], [ true, %.sink.split ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %.3, ptr noundef nonnull @.str.310, ptr noundef %3)
  ret void
}

declare noundef double @_ZN11alglib_impl6ae_sinEdPNS_8ae_stateE(double 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, !11, i64 480}
!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 0}
!16 = !{!6, !7, i64 8}
!17 = !{!6, !7, i64 24}
!18 = !{!6, !7, i64 1208}
!19 = !{!6, !7, i64 1648}
!20 = !{!6, !7, i64 280}
!21 = !{!6, !7, i64 112}
!22 = !{!6, !7, i64 16}
!23 = !{!8, !8, i64 0}
!24 = !{!25, !25, i64 0}
!25 = !{!"double", !8, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = distinct !{!29, !27}


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