; 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::minlbfgsstate" = type { i64, i64, double, double, double, i64, i8, double, %"struct.alglib_impl::ae_vector", double, i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, %"struct.alglib_impl::ae_vector", double, double, %"struct.alglib_impl::ae_vector", i64, double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i64, %"struct.alglib_impl::precbuflbfgs", %"struct.alglib_impl::precbuflowrank", double, double, double, double, double, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i8, %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", i8, i8, i8, i64, %"struct.alglib_impl::ae_vector", double, i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsematrix", %"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::sparsematrix", double, %"struct.alglib_impl::rcommstate", i64, i64, i64, %"struct.alglib_impl::linminstate", i64, %"struct.alglib_impl::smoothnessmonitor", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::precbuflbfgs" = type { %"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", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::precbuflowrank" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector" }
%"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::sparsematrix" = type { %"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", i64, i64, i64, 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::linminstate" = type { i8, i8, i64, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%"struct.alglib_impl::smoothnessmonitor" = type { i64, i64, i8, %"struct.alglib_impl::ae_vector", %"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, i64, i64, double, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"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::rcommstate", i8, i8, i64, i64, double, double, i8, %"struct.alglib_impl::optguardreport", double, double, %"struct.alglib_impl::optguardnonc0report", %"struct.alglib_impl::optguardnonc0report", 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::optguardnonc0report" = 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, i64, i64 }
%"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, 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, i64, i64 }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.454 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.455 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.456 = external hidden unnamed_addr constant [23 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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11alglib_impl15minlbfgssetxrepEPNS_13minlbfgsstateEbPNS_8ae_stateE(ptr noundef, i1 noundef zeroext, ptr noundef) #3

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

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

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_impl21smoothnessmonitorinitEPNS_17smoothnessmonitorEPKNS_9ae_vectorEllbPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl15minlbfgscreatexEllPKNS_9ae_vectorEldPNS_13minlbfgsstateEPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, double noundef %4, ptr noundef %5, ptr noundef %6) #2 {
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca double, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i8, align 1
  %16 = alloca i64, align 8
  store i64 %0, ptr %8, align 8, !tbaa !5
  store i64 %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !9
  store i64 %3, ptr %11, align 8, !tbaa !5
  store double %4, ptr %12, align 8, !tbaa !11
  store ptr %5, ptr %13, align 8, !tbaa !9
  store ptr %6, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %17 = load i64, ptr %8, align 8, !tbaa !5
  %18 = icmp sge i64 %17, 1
  %19 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef @.str.454, ptr noundef %19)
  %20 = load i64, ptr %9, align 8, !tbaa !5
  %21 = icmp sge i64 %20, 1
  %22 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %21, ptr noundef @.str.455, ptr noundef %22)
  %23 = load i64, ptr %9, align 8, !tbaa !5
  %24 = load i64, ptr %8, align 8, !tbaa !5
  %25 = icmp sle i64 %23, %24
  %26 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %25, ptr noundef @.str.456, ptr noundef %26)
  %27 = load ptr, ptr %13, align 8, !tbaa !9
  %28 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %27, i32 0, i32 45
  store i64 1, ptr %28, align 8, !tbaa !13
  %29 = load ptr, ptr %13, align 8, !tbaa !9
  %30 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %29, i32 0, i32 71
  store double 0.000000e+00, ptr %30, align 8, !tbaa !30
  %31 = load ptr, ptr %13, align 8, !tbaa !9
  %32 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %31, i32 0, i32 77
  store i64 0, ptr %32, align 8, !tbaa !31
  %33 = load ptr, ptr %13, align 8, !tbaa !9
  %34 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %33, i32 0, i32 78
  %35 = load ptr, ptr %13, align 8, !tbaa !9
  %36 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %35, i32 0, i32 8
  %37 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl21smoothnessmonitorinitEPNS_17smoothnessmonitorEPKNS_9ae_vectorEllbPNS_8ae_stateE(ptr noundef %34, ptr noundef %36, i64 noundef 0, i64 noundef 0, i1 noundef zeroext false, ptr noundef %37)
  %38 = load double, ptr %12, align 8, !tbaa !11
  %39 = load ptr, ptr %13, align 8, !tbaa !9
  %40 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %39, i32 0, i32 9
  store double %38, ptr %40, align 8, !tbaa !32
  %41 = load i64, ptr %8, align 8, !tbaa !5
  %42 = load ptr, ptr %13, align 8, !tbaa !9
  %43 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %42, i32 0, i32 0
  store i64 %41, ptr %43, align 8, !tbaa !33
  %44 = load i64, ptr %9, align 8, !tbaa !5
  %45 = load ptr, ptr %13, align 8, !tbaa !9
  %46 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %45, i32 0, i32 1
  store i64 %44, ptr %46, align 8, !tbaa !34
  %47 = load i64, ptr %11, align 8, !tbaa !5
  %48 = srem i64 %47, 2
  %49 = icmp eq i64 %48, 0
  %50 = zext i1 %49 to i8
  store i8 %50, ptr %15, align 1, !tbaa !35
  %51 = load i64, ptr %11, align 8, !tbaa !5
  %52 = sdiv i64 %51, 2
  store i64 %52, ptr %11, align 8, !tbaa !5
  %53 = load i8, ptr %15, align 1, !tbaa !35, !range !36, !noundef !37
  %54 = trunc i8 %53 to i1
  br i1 %54, label %55, label %110

55:                                               ; preds = %7
  %56 = load ptr, ptr %13, align 8, !tbaa !9
  %57 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %56, i32 0, i32 15
  %58 = load i64, ptr %9, align 8, !tbaa !5
  %59 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %57, i64 noundef %58, ptr noundef %59)
  %60 = load ptr, ptr %13, align 8, !tbaa !9
  %61 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %60, i32 0, i32 19
  %62 = load i64, ptr %9, align 8, !tbaa !5
  %63 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %61, i64 noundef %62, ptr noundef %63)
  %64 = load ptr, ptr %13, align 8, !tbaa !9
  %65 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %64, i32 0, i32 16
  %66 = load i64, ptr %9, align 8, !tbaa !5
  %67 = load i64, ptr %8, align 8, !tbaa !5
  %68 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %65, i64 noundef %66, i64 noundef %67, ptr noundef %68)
  %69 = load ptr, ptr %13, align 8, !tbaa !9
  %70 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %69, i32 0, i32 17
  %71 = load i64, ptr %9, align 8, !tbaa !5
  %72 = load i64, ptr %8, align 8, !tbaa !5
  %73 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %70, i64 noundef %71, i64 noundef %72, ptr noundef %73)
  %74 = load ptr, ptr %13, align 8, !tbaa !9
  %75 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %74, i32 0, i32 20
  %76 = load i64, ptr %8, align 8, !tbaa !5
  %77 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %75, i64 noundef %76, ptr noundef %77)
  %78 = load ptr, ptr %13, align 8, !tbaa !9
  %79 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %78, i32 0, i32 18
  %80 = load i64, ptr %8, align 8, !tbaa !5
  %81 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %79, i64 noundef %80, ptr noundef %81)
  %82 = load ptr, ptr %13, align 8, !tbaa !9
  %83 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %82, i32 0, i32 47
  %84 = load i64, ptr %8, align 8, !tbaa !5
  %85 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %83, i64 noundef %84, ptr noundef %85)
  %86 = load ptr, ptr %13, align 8, !tbaa !9
  %87 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %86, i32 0, i32 26
  %88 = load i64, ptr %8, align 8, !tbaa !5
  %89 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %87, i64 noundef %88, ptr noundef %89)
  %90 = load ptr, ptr %13, align 8, !tbaa !9
  %91 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %90, i32 0, i32 8
  %92 = load i64, ptr %8, align 8, !tbaa !5
  %93 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %91, i64 noundef %92, ptr noundef %93)
  %94 = load ptr, ptr %13, align 8, !tbaa !9
  %95 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %94, i32 0, i32 44
  %96 = load i64, ptr %8, align 8, !tbaa !5
  %97 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %95, i64 noundef %96, ptr noundef %97)
  %98 = load ptr, ptr %13, align 8, !tbaa !9
  %99 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %98, i32 0, i32 79
  %100 = load i64, ptr %8, align 8, !tbaa !5
  %101 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %99, i64 noundef %100, ptr noundef %101)
  %102 = load ptr, ptr %13, align 8, !tbaa !9
  %103 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %102, i32 0, i32 49
  %104 = load i64, ptr %8, align 8, !tbaa !5
  %105 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %103, i64 noundef %104, ptr noundef %105)
  %106 = load ptr, ptr %13, align 8, !tbaa !9
  %107 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %106, i32 0, i32 23
  %108 = load i64, ptr %8, align 8, !tbaa !5
  %109 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %107, i64 noundef %108, ptr noundef %109)
  br label %110

110:                                              ; preds = %55, %7
  store i64 0, ptr %16, align 8, !tbaa !5
  br label %111

111:                                              ; preds = %135, %110
  %112 = load i64, ptr %16, align 8, !tbaa !5
  %113 = load i64, ptr %8, align 8, !tbaa !5
  %114 = sub nsw i64 %113, 1
  %115 = icmp sle i64 %112, %114
  br i1 %115, label %116, label %138

116:                                              ; preds = %111
  %117 = load ptr, ptr %13, align 8, !tbaa !9
  %118 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %117, i32 0, i32 8
  %119 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %118, i32 0, i32 4
  %120 = load ptr, ptr %119, align 8, !tbaa !38
  %121 = load i64, ptr %16, align 8, !tbaa !5
  %122 = getelementptr inbounds double, ptr %120, i64 %121
  store double 1.000000e+00, ptr %122, align 8, !tbaa !11
  %123 = load ptr, ptr %13, align 8, !tbaa !9
  %124 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %123, i32 0, i32 44
  %125 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %124, i32 0, i32 4
  %126 = load ptr, ptr %125, align 8, !tbaa !38
  %127 = load i64, ptr %16, align 8, !tbaa !5
  %128 = getelementptr inbounds double, ptr %126, i64 %127
  store double 1.000000e+00, ptr %128, align 8, !tbaa !11
  %129 = load ptr, ptr %13, align 8, !tbaa !9
  %130 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %129, i32 0, i32 79
  %131 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %130, i32 0, i32 4
  %132 = load ptr, ptr %131, align 8, !tbaa !38
  %133 = load i64, ptr %16, align 8, !tbaa !5
  %134 = getelementptr inbounds double, ptr %132, i64 %133
  store double 1.000000e+00, ptr %134, align 8, !tbaa !11
  br label %135

135:                                              ; preds = %116
  %136 = load i64, ptr %16, align 8, !tbaa !5
  %137 = add nsw i64 %136, 1
  store i64 %137, ptr %16, align 8, !tbaa !5
  br label %111, !llvm.loop !39

138:                                              ; preds = %111
  %139 = load ptr, ptr %13, align 8, !tbaa !9
  %140 = getelementptr inbounds %"struct.alglib_impl::minlbfgsstate", ptr %139, i32 0, i32 27
  store i64 0, ptr %140, align 8, !tbaa !41
  %141 = load ptr, ptr %13, align 8, !tbaa !9
  %142 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl15minlbfgssetcondEPNS_13minlbfgsstateEdddlPNS_8ae_stateE(ptr noundef %141, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 0, ptr noundef %142)
  %143 = load ptr, ptr %13, align 8, !tbaa !9
  %144 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl15minlbfgssetxrepEPNS_13minlbfgsstateEbPNS_8ae_stateE(ptr noundef %143, i1 noundef zeroext false, ptr noundef %144)
  %145 = load ptr, ptr %13, align 8, !tbaa !9
  %146 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl17minlbfgssetstpmaxEPNS_13minlbfgsstateEdPNS_8ae_stateE(ptr noundef %145, double noundef 0.000000e+00, ptr noundef %146)
  %147 = load ptr, ptr %13, align 8, !tbaa !9
  %148 = load ptr, ptr %10, align 8, !tbaa !9
  %149 = load ptr, ptr %14, align 8, !tbaa !9
  call void @_ZN11alglib_impl19minlbfgsrestartfromEPNS_13minlbfgsstateEPKNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %147, ptr noundef %148, ptr noundef %149)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
  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 = { mustprogress nounwind 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, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !6, i64 2216}
!14 = !{!"_ZTSN11alglib_impl13minlbfgsstateE", !6, i64 0, !6, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !6, i64 40, !15, i64 48, !12, i64 56, !16, i64 64, !12, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !16, i64 176, !18, i64 240, !18, i64 320, !16, i64 400, !16, i64 464, !16, i64 528, !12, i64 592, !12, i64 600, !16, i64 608, !12, i64 672, !12, i64 680, !16, i64 688, !6, i64 752, !12, i64 760, !18, i64 768, !16, i64 848, !16, i64 912, !16, i64 976, !18, i64 1040, !6, i64 1120, !19, i64 1128, !20, i64 1592, !12, i64 2040, !12, i64 2048, !12, i64 2056, !12, i64 2064, !12, i64 2072, !12, i64 2080, !16, i64 2088, !16, i64 2152, !6, i64 2216, !15, i64 2224, !16, i64 2232, !12, i64 2296, !16, i64 2304, !15, i64 2368, !15, i64 2369, !15, i64 2370, !6, i64 2376, !16, i64 2384, !12, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !6, i64 2480, !6, i64 2488, !16, i64 2496, !16, i64 2560, !16, i64 2624, !21, i64 2688, !16, i64 3056, !16, i64 3120, !16, i64 3184, !16, i64 3248, !18, i64 3312, !21, i64 3392, !12, i64 3760, !22, i64 3768, !6, i64 4032, !6, i64 4040, !6, i64 4048, !24, i64 4056, !6, i64 4248, !25, i64 4256, !16, i64 9960}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSN11alglib_impl9ae_vectorE", !6, i64 0, !6, i64 8, !15, i64 16, !17, i64 24, !7, i64 56}
!17 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!18 = !{!"_ZTSN11alglib_impl9ae_matrixE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !15, i64 32, !17, i64 40, !7, i64 72}
!19 = !{!"_ZTSN11alglib_impl12precbuflbfgsE", !16, i64 0, !16, i64 64, !16, i64 128, !18, i64 192, !16, i64 272, !16, i64 336, !16, i64 400}
!20 = !{!"_ZTSN11alglib_impl14precbuflowrankE", !6, i64 0, !6, i64 8, !16, i64 16, !18, i64 80, !16, i64 160, !18, i64 224, !18, i64 304, !16, i64 384}
!21 = !{!"_ZTSN11alglib_impl12sparsematrixE", !16, i64 0, !16, i64 64, !16, i64 128, !16, i64 192, !16, i64 256, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360}
!22 = !{!"_ZTSN11alglib_impl10rcommstateE", !23, i64 0, !16, i64 8, !16, i64 72, !16, i64 136, !16, i64 200}
!23 = !{!"int", !7, i64 0}
!24 = !{!"_ZTSN11alglib_impl11linminstateE", !15, i64 0, !15, i64 1, !6, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184}
!25 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !6, i64 0, !6, i64 8, !15, i64 16, !16, i64 24, !16, i64 88, !6, i64 152, !16, i64 160, !16, i64 224, !16, i64 288, !18, i64 352, !16, i64 432, !16, i64 496, !6, i64 560, !6, i64 568, !6, i64 576, !12, i64 584, !6, i64 592, !16, i64 600, !16, i64 664, !12, i64 728, !16, i64 736, !16, i64 800, !12, i64 864, !18, i64 872, !18, i64 952, !18, i64 1032, !16, i64 1112, !16, i64 1176, !22, i64 1240, !15, i64 1504, !15, i64 1505, !6, i64 1512, !6, i64 1520, !12, i64 1528, !12, i64 1536, !15, i64 1544, !26, i64 1552, !12, i64 1848, !12, i64 1856, !27, i64 1864, !27, i64 2184, !12, i64 2504, !12, i64 2512, !28, i64 2520, !28, i64 2840, !12, i64 3160, !12, i64 3168, !29, i64 3176, !29, i64 3504, !15, i64 3832, !16, i64 3840, !16, i64 3904, !18, i64 3968, !22, i64 4048, !16, i64 4312, !16, i64 4376, !16, i64 4440, !16, i64 4504, !16, i64 4568, !16, i64 4632, !16, i64 4696, !16, i64 4760, !18, i64 4824, !18, i64 4904, !16, i64 4984, !16, i64 5048, !16, i64 5112, !16, i64 5176, !16, i64 5240, !16, i64 5304, !16, i64 5368, !16, i64 5432, !16, i64 5496, !16, i64 5560, !18, i64 5624}
!26 = !{!"_ZTSN11alglib_impl14optguardreportE", !15, i64 0, !15, i64 1, !6, i64 8, !12, i64 16, !15, i64 24, !15, i64 25, !15, i64 26, !6, i64 32, !12, i64 40, !15, i64 48, !6, i64 56, !6, i64 64, !16, i64 72, !18, i64 136, !18, i64 216}
!27 = !{!"_ZTSN11alglib_impl19optguardnonc0reportE", !15, i64 0, !6, i64 8, !16, i64 16, !16, i64 80, !6, i64 144, !16, i64 152, !16, i64 216, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312}
!28 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !15, i64 0, !6, i64 8, !16, i64 16, !16, i64 80, !6, i64 144, !16, i64 152, !16, i64 216, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312}
!29 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !15, i64 0, !6, i64 8, !6, i64 16, !16, i64 24, !16, i64 88, !6, i64 152, !16, i64 160, !16, i64 224, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320}
!30 = !{!14, !12, i64 3760}
!31 = !{!14, !6, i64 4248}
!32 = !{!14, !12, i64 128}
!33 = !{!14, !6, i64 0}
!34 = !{!14, !6, i64 8}
!35 = !{!15, !15, i64 0}
!36 = !{i8 0, i8 2}
!37 = !{}
!38 = !{!7, !7, i64 0}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = !{!14, !6, i64 752}


; 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.454 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.455 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.456 = external hidden unnamed_addr constant [23 x i8], align 1

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11alglib_impl15minlbfgssetxrepEPNS_13minlbfgsstateEbPNS_8ae_stateE(ptr noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #2

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

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

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_impl21smoothnessmonitorinitEPNS_17smoothnessmonitorEPKNS_9ae_vectorEllbPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl15minlbfgscreatexEllPKNS_9ae_vectorEldPNS_13minlbfgsstateEPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, double noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #1 {
  %8 = icmp sgt i64 %0, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %8, ptr noundef nonnull @.str.454, ptr noundef %6)
  %9 = icmp sgt i64 %1, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %9, ptr noundef nonnull @.str.455, ptr noundef %6)
  %10 = icmp sle i64 %1, %0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %10, ptr noundef nonnull @.str.456, ptr noundef %6)
  %11 = getelementptr inbounds i8, ptr %5, i64 2216
  store i64 1, ptr %11, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %5, i64 3760
  store double 0.000000e+00, ptr %12, align 8, !tbaa !27
  %13 = getelementptr inbounds i8, ptr %5, i64 4248
  store i64 0, ptr %13, align 8, !tbaa !28
  %14 = getelementptr inbounds i8, ptr %5, i64 4256
  %15 = getelementptr inbounds i8, ptr %5, i64 64
  tail call void @_ZN11alglib_impl21smoothnessmonitorinitEPNS_17smoothnessmonitorEPKNS_9ae_vectorEllbPNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef nonnull %15, i64 noundef 0, i64 noundef 0, i1 noundef zeroext false, ptr noundef %6)
  %16 = getelementptr inbounds i8, ptr %5, i64 128
  store double %4, ptr %16, align 8, !tbaa !29
  store i64 %0, ptr %5, align 8, !tbaa !30
  %17 = getelementptr inbounds i8, ptr %5, i64 8
  store i64 %1, ptr %17, align 8, !tbaa !31
  %18 = and i64 %3, 1
  %19 = icmp eq i64 %18, 0
  br i1 %19, label %20, label %33

20:                                               ; preds = %7
  %21 = getelementptr inbounds i8, ptr %5, i64 176
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %21, i64 noundef %1, ptr noundef %6)
  %22 = getelementptr inbounds i8, ptr %5, i64 464
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %22, i64 noundef %1, ptr noundef %6)
  %23 = getelementptr inbounds i8, ptr %5, i64 240
  tail call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %23, i64 noundef %1, i64 noundef %0, ptr noundef %6)
  %24 = getelementptr inbounds i8, ptr %5, i64 320
  tail call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %24, i64 noundef %1, i64 noundef %0, ptr noundef %6)
  %25 = getelementptr inbounds i8, ptr %5, i64 528
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %25, i64 noundef %0, ptr noundef %6)
  %26 = getelementptr inbounds i8, ptr %5, i64 400
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %26, i64 noundef %0, ptr noundef %6)
  %27 = getelementptr inbounds i8, ptr %5, i64 2232
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %27, i64 noundef %0, ptr noundef %6)
  %28 = getelementptr inbounds i8, ptr %5, i64 688
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %28, i64 noundef %0, ptr noundef %6)
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef %0, ptr noundef %6)
  %29 = getelementptr inbounds i8, ptr %5, i64 2152
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %29, i64 noundef %0, ptr noundef %6)
  %30 = getelementptr inbounds i8, ptr %5, i64 9960
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %30, i64 noundef %0, ptr noundef %6)
  %31 = getelementptr inbounds i8, ptr %5, i64 2304
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %31, i64 noundef %0, ptr noundef %6)
  %32 = getelementptr inbounds i8, ptr %5, i64 608
  tail call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %32, i64 noundef %0, ptr noundef %6)
  br label %33

33:                                               ; preds = %20, %7
  br i1 %8, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %33
  %34 = getelementptr inbounds i8, ptr %5, i64 120
  %35 = getelementptr inbounds i8, ptr %5, i64 2208
  %36 = getelementptr inbounds i8, ptr %5, i64 10016
  %xtraiter = and i64 %0, 1
  %37 = icmp eq i64 %0, 1
  br i1 %37, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %0, 9223372036854775806
  br label %38

38:                                               ; preds = %38, %.lr.ph.new
  %.082 = phi i64 [ 0, %.lr.ph.new ], [ %52, %38 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %38 ]
  %39 = load ptr, ptr %34, align 8, !tbaa !32
  %40 = getelementptr inbounds double, ptr %39, i64 %.082
  store double 1.000000e+00, ptr %40, align 8, !tbaa !33
  %41 = load ptr, ptr %35, align 8, !tbaa !32
  %42 = getelementptr inbounds double, ptr %41, i64 %.082
  store double 1.000000e+00, ptr %42, align 8, !tbaa !33
  %43 = load ptr, ptr %36, align 8, !tbaa !32
  %44 = getelementptr inbounds double, ptr %43, i64 %.082
  store double 1.000000e+00, ptr %44, align 8, !tbaa !33
  %45 = or disjoint i64 %.082, 1
  %46 = load ptr, ptr %34, align 8, !tbaa !32
  %47 = getelementptr inbounds double, ptr %46, i64 %45
  store double 1.000000e+00, ptr %47, align 8, !tbaa !33
  %48 = load ptr, ptr %35, align 8, !tbaa !32
  %49 = getelementptr inbounds double, ptr %48, i64 %45
  store double 1.000000e+00, ptr %49, align 8, !tbaa !33
  %50 = load ptr, ptr %36, align 8, !tbaa !32
  %51 = getelementptr inbounds double, ptr %50, i64 %45
  store double 1.000000e+00, ptr %51, align 8, !tbaa !33
  %52 = add nuw nsw i64 %.082, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %38, !llvm.loop !34

._crit_edge.loopexit.unr-lcssa:                   ; preds = %38, %.lr.ph
  %.082.unr = phi i64 [ 0, %.lr.ph ], [ %52, %38 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %._crit_edge.loopexit.epilog-lcssa

._crit_edge.loopexit.epilog-lcssa:                ; preds = %._crit_edge.loopexit.unr-lcssa
  %53 = load ptr, ptr %34, align 8, !tbaa !32
  %54 = getelementptr inbounds double, ptr %53, i64 %.082.unr
  store double 1.000000e+00, ptr %54, align 8, !tbaa !33
  %55 = load ptr, ptr %35, align 8, !tbaa !32
  %56 = getelementptr inbounds double, ptr %55, i64 %.082.unr
  store double 1.000000e+00, ptr %56, align 8, !tbaa !33
  %57 = load ptr, ptr %36, align 8, !tbaa !32
  %58 = getelementptr inbounds double, ptr %57, i64 %.082.unr
  store double 1.000000e+00, ptr %58, align 8, !tbaa !33
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %33
  %59 = getelementptr inbounds i8, ptr %5, i64 752
  store i64 0, ptr %59, align 8, !tbaa !36
  tail call void @_ZN11alglib_impl15minlbfgssetcondEPNS_13minlbfgsstateEdddlPNS_8ae_stateE(ptr noundef nonnull %5, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, i64 noundef 0, ptr noundef %6)
  tail call void @_ZN11alglib_impl15minlbfgssetxrepEPNS_13minlbfgsstateEbPNS_8ae_stateE(ptr noundef nonnull %5, i1 noundef zeroext false, ptr noundef %6)
  tail call void @_ZN11alglib_impl17minlbfgssetstpmaxEPNS_13minlbfgsstateEdPNS_8ae_stateE(ptr noundef nonnull %5, double noundef 0.000000e+00, ptr noundef %6)
  tail call void @_ZN11alglib_impl19minlbfgsrestartfromEPNS_13minlbfgsstateEPKNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef %2, ptr noundef %6)
  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" }
attributes #2 = { mustprogress nounwind 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 2216}
!6 = !{!"_ZTSN11alglib_impl13minlbfgsstateE", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !7, i64 40, !11, i64 48, !10, i64 56, !12, i64 64, !10, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !12, i64 176, !15, i64 240, !15, i64 320, !12, i64 400, !12, i64 464, !12, i64 528, !10, i64 592, !10, i64 600, !12, i64 608, !10, i64 672, !10, i64 680, !12, i64 688, !7, i64 752, !10, i64 760, !15, i64 768, !12, i64 848, !12, i64 912, !12, i64 976, !15, i64 1040, !7, i64 1120, !16, i64 1128, !17, i64 1592, !10, i64 2040, !10, i64 2048, !10, i64 2056, !10, i64 2064, !10, i64 2072, !10, i64 2080, !12, i64 2088, !12, i64 2152, !7, i64 2216, !11, i64 2224, !12, i64 2232, !10, i64 2296, !12, i64 2304, !11, i64 2368, !11, i64 2369, !11, i64 2370, !7, i64 2376, !12, i64 2384, !10, i64 2448, !7, i64 2456, !7, i64 2464, !7, i64 2472, !7, i64 2480, !7, i64 2488, !12, i64 2496, !12, i64 2560, !12, i64 2624, !18, i64 2688, !12, i64 3056, !12, i64 3120, !12, i64 3184, !12, i64 3248, !15, i64 3312, !18, i64 3392, !10, i64 3760, !19, i64 3768, !7, i64 4032, !7, i64 4040, !7, i64 4048, !21, i64 4056, !7, i64 4248, !22, i64 4256, !12, i64 9960}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !11, i64 16, !13, i64 24, !8, i64 56}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !13, i64 40, !8, i64 72}
!16 = !{!"_ZTSN11alglib_impl12precbuflbfgsE", !12, i64 0, !12, i64 64, !12, i64 128, !15, i64 192, !12, i64 272, !12, i64 336, !12, i64 400}
!17 = !{!"_ZTSN11alglib_impl14precbuflowrankE", !7, i64 0, !7, i64 8, !12, i64 16, !15, i64 80, !12, i64 160, !15, i64 224, !15, i64 304, !12, i64 384}
!18 = !{!"_ZTSN11alglib_impl12sparsematrixE", !12, i64 0, !12, i64 64, !12, i64 128, !12, i64 192, !12, i64 256, !7, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !7, i64 360}
!19 = !{!"_ZTSN11alglib_impl10rcommstateE", !20, i64 0, !12, i64 8, !12, i64 72, !12, i64 136, !12, i64 200}
!20 = !{!"int", !8, i64 0}
!21 = !{!"_ZTSN11alglib_impl11linminstateE", !11, i64 0, !11, i64 1, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184}
!22 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !7, i64 0, !7, i64 8, !11, i64 16, !12, i64 24, !12, i64 88, !7, i64 152, !12, i64 160, !12, i64 224, !12, i64 288, !15, i64 352, !12, i64 432, !12, i64 496, !7, i64 560, !7, i64 568, !7, i64 576, !10, i64 584, !7, i64 592, !12, i64 600, !12, i64 664, !10, i64 728, !12, i64 736, !12, i64 800, !10, i64 864, !15, i64 872, !15, i64 952, !15, i64 1032, !12, i64 1112, !12, i64 1176, !19, i64 1240, !11, i64 1504, !11, i64 1505, !7, i64 1512, !7, i64 1520, !10, i64 1528, !10, i64 1536, !11, i64 1544, !23, i64 1552, !10, i64 1848, !10, i64 1856, !24, i64 1864, !24, i64 2184, !10, i64 2504, !10, i64 2512, !25, i64 2520, !25, i64 2840, !10, i64 3160, !10, i64 3168, !26, i64 3176, !26, i64 3504, !11, i64 3832, !12, i64 3840, !12, i64 3904, !15, i64 3968, !19, i64 4048, !12, i64 4312, !12, i64 4376, !12, i64 4440, !12, i64 4504, !12, i64 4568, !12, i64 4632, !12, i64 4696, !12, i64 4760, !15, i64 4824, !15, i64 4904, !12, i64 4984, !12, i64 5048, !12, i64 5112, !12, i64 5176, !12, i64 5240, !12, i64 5304, !12, i64 5368, !12, i64 5432, !12, i64 5496, !12, i64 5560, !15, i64 5624}
!23 = !{!"_ZTSN11alglib_impl14optguardreportE", !11, i64 0, !11, i64 1, !7, i64 8, !10, i64 16, !11, i64 24, !11, i64 25, !11, i64 26, !7, i64 32, !10, i64 40, !11, i64 48, !7, i64 56, !7, i64 64, !12, i64 72, !15, i64 136, !15, i64 216}
!24 = !{!"_ZTSN11alglib_impl19optguardnonc0reportE", !11, i64 0, !7, i64 8, !12, i64 16, !12, i64 80, !7, i64 144, !12, i64 152, !12, i64 216, !7, i64 280, !7, i64 288, !7, i64 296, !7, i64 304, !7, i64 312}
!25 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !11, i64 0, !7, i64 8, !12, i64 16, !12, i64 80, !7, i64 144, !12, i64 152, !12, i64 216, !7, i64 280, !7, i64 288, !7, i64 296, !7, i64 304, !7, i64 312}
!26 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !11, i64 0, !7, i64 8, !7, i64 16, !12, i64 24, !12, i64 88, !7, i64 152, !12, i64 160, !12, i64 224, !7, i64 288, !7, i64 296, !7, i64 304, !7, i64 312, !7, i64 320}
!27 = !{!6, !10, i64 3760}
!28 = !{!6, !7, i64 4248}
!29 = !{!6, !10, i64 128}
!30 = !{!6, !7, i64 0}
!31 = !{!6, !7, i64 8}
!32 = !{!8, !8, i64 0}
!33 = !{!10, !10, i64 0}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!6, !7, i64 752}


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