; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (optimization)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::minnlcstate" = type { double, double, i64, i64, i64, double, i64, double, i64, i64, i8, double, double, double, %"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, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", i64, i64, %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i8, i8, i8, %"struct.alglib_impl::rcommstate", %"struct.alglib_impl::rcommstate", %"struct.alglib_impl::rcommstate", %"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::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_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", double, i8, %"struct.alglib_impl::minlbfgsstate", %"struct.alglib_impl::minlbfgsreport", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, %"struct.alglib_impl::minslpstate", i64, %"struct.alglib_impl::smoothnessmonitor", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, double, i64, double, i64, double, i64, i64 }
%"struct.alglib_impl::rcommstate" = type { i32, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"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, %"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, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", i8, i8, i8, i8, 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::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::minlbfgsreport" = type { i64, i64, i64 }
%"struct.alglib_impl::minslpstate" = type { i64, i64, i64, i64, i64, %"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", double, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", double, i8, i8, double, double, %"struct.alglib_impl::minslpsubsolver", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::linminstate", i64, i64, %"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::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", double, double, double, %"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", double, i64, double, i64, %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64, i64, double, i64, double, i64, double, i64, %"struct.alglib_impl::rcommstate", %"struct.alglib_impl::rcommstate", %"struct.alglib_impl::rcommstate" }
%"struct.alglib_impl::minslpsubsolver" = type { %"struct.alglib_impl::dualsimplexstate", %"struct.alglib_impl::dualsimplexsettings", %"struct.alglib_impl::dualsimplexbasis", i8, %"struct.alglib_impl::ae_matrix", i64, %"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::sparsematrix", %"struct.alglib_impl::sparsematrix", i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"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::dualsimplexstate" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::dualsimplexbasis", %"struct.alglib_impl::dualsimplexsubproblem", %"struct.alglib_impl::dualsimplexsubproblem", %"struct.alglib_impl::dualsimplexsubproblem", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, double, i64, i64, i64, i64, i64, %"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_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_vector" }
%"struct.alglib_impl::dualsimplexsubproblem" = type { i64, i64, %"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", i64, %"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::dualsimplexsettings" = type { double, double, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::dualsimplexbasis" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i8, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"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_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, double, %"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_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sluv2buffer", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsematrix" }
%"struct.alglib_impl::sluv2buffer" = type { i64, %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sluv2list1matrix", %"struct.alglib_impl::sluv2list1matrix", %"struct.alglib_impl::sluv2sparsetrail", %"struct.alglib_impl::sluv2densetrail", %"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::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::sluv2list1matrix" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64 }
%"struct.alglib_impl::sluv2sparsetrail" = type { i64, i64, %"struct.alglib_impl::ae_vector", i64, i64, i64, %"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", i64, %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::sluv2densetrail" = type { i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector" }
%"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::smoothnessmonitor" = type { i64, i64, i8, %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i8, i8, double, double, i8, %"struct.alglib_impl::optguardreport", double, double, %"struct.alglib_impl::optguardnonc1test0report", %"struct.alglib_impl::optguardnonc1test0report", double, double, %"struct.alglib_impl::optguardnonc1test1report", %"struct.alglib_impl::optguardnonc1test1report", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::rcommstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::optguardreport" = type { i8, i8, i64, double, i8, i8, i8, i64, double, i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::optguardnonc1test0report" = type { i8, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::optguardnonc1test1report" = type { i8, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64 }
%"struct.alglib_impl::minnlcreport" = type { i64, i64, i64, double, i64, double, i64, double, i64, i64 }
%"struct.alglib_impl::ae_state" = type { i64, double, double, double, ptr, %"struct.alglib_impl::ae_dyn_block", ptr, i32, ptr, i64, ptr, ptr, ptr }

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl16minnlcresultsbufEPNS_11minnlcstateEPNS_9ae_vectorEPNS_12minnlcreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #1 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %10 = load ptr, ptr %6, align 8, !tbaa !5
  %11 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 0
  %12 = load i64, ptr %11, align 8, !tbaa !9
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = getelementptr inbounds %"struct.alglib_impl::minnlcstate", ptr %13, i32 0, i32 6
  %15 = load i64, ptr %14, align 8, !tbaa !14
  %16 = icmp slt i64 %12, %15
  br i1 %16, label %17, label %23

17:                                               ; preds = %4
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %"struct.alglib_impl::minnlcstate", ptr %19, i32 0, i32 6
  %21 = load i64, ptr %20, align 8, !tbaa !14
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %21, ptr noundef %22)
  br label %23

23:                                               ; preds = %17, %4
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.alglib_impl::minnlcstate", ptr %24, i32 0, i32 70
  %26 = load i64, ptr %25, align 8, !tbaa !40
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.alglib_impl::minnlcreport", ptr %27, i32 0, i32 0
  store i64 %26, ptr %28, align 8, !tbaa !41
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.alglib_impl::minnlcstate", ptr %29, i32 0, i32 72
  %31 = load i64, ptr %30, align 8, !tbaa !43
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::minnlcreport", ptr %32, i32 0, i32 1
  store i64 %31, ptr %33, align 8, !tbaa !44
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.alglib_impl::minnlcstate", ptr %34, i32 0, i32 73
  %36 = load i64, ptr %35, align 8, !tbaa !45
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.alglib_impl::minnlcreport", ptr %37, i32 0, i32 2
  store i64 %36, ptr %38, align 8, !tbaa !46
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.alglib_impl::minnlcstate", ptr %39, i32 0, i32 74
  %41 = load double, ptr %40, align 8, !tbaa !47
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.alglib_impl::minnlcreport", ptr %42, i32 0, i32 3
  store double %41, ptr %43, align 8, !tbaa !48
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.alglib_impl::minnlcstate", ptr %44, i32 0, i32 75
  %46 = load i64, ptr %45, align 8, !tbaa !49
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.alglib_impl::minnlcreport", ptr %47, i32 0, i32 4
  store i64 %46, ptr %48, align 8, !tbaa !50
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.alglib_impl::minnlcstate", ptr %49, i32 0, i32 76
  %51 = load double, ptr %50, align 8, !tbaa !51
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::minnlcreport", ptr %52, i32 0, i32 5
  store double %51, ptr %53, align 8, !tbaa !52
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.alglib_impl::minnlcstate", ptr %54, i32 0, i32 77
  %56 = load i64, ptr %55, align 8, !tbaa !53
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.alglib_impl::minnlcreport", ptr %57, i32 0, i32 6
  store i64 %56, ptr %58, align 8, !tbaa !54
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.alglib_impl::minnlcstate", ptr %59, i32 0, i32 78
  %61 = load double, ptr %60, align 8, !tbaa !55
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.alglib_impl::minnlcreport", ptr %62, i32 0, i32 7
  store double %61, ptr %63, align 8, !tbaa !56
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.alglib_impl::minnlcstate", ptr %64, i32 0, i32 79
  %66 = load i64, ptr %65, align 8, !tbaa !57
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.alglib_impl::minnlcreport", ptr %67, i32 0, i32 8
  store i64 %66, ptr %68, align 8, !tbaa !58
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::minnlcstate", ptr %69, i32 0, i32 80
  %71 = load i64, ptr %70, align 8, !tbaa !59
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.alglib_impl::minnlcreport", ptr %72, i32 0, i32 9
  store i64 %71, ptr %73, align 8, !tbaa !60
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.alglib_impl::minnlcstate", ptr %74, i32 0, i32 73
  %76 = load i64, ptr %75, align 8, !tbaa !45
  %77 = icmp sgt i64 %76, 0
  br i1 %77, label %78, label %93

78:                                               ; preds = %23
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %79, i32 0, i32 4
  %81 = load ptr, ptr %80, align 8, !tbaa !61
  %82 = getelementptr inbounds double, ptr %81, i64 0
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.alglib_impl::minnlcstate", ptr %83, i32 0, i32 38
  %85 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %84, i32 0, i32 4
  %86 = load ptr, ptr %85, align 8, !tbaa !61
  %87 = getelementptr inbounds double, ptr %86, i64 0
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.alglib_impl::minnlcstate", ptr %88, i32 0, i32 6
  %90 = load i64, ptr %89, align 8, !tbaa !14
  %91 = sub nsw i64 %90, 1
  %92 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %91)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %82, i64 noundef 1, ptr noundef %87, i64 noundef 1, i64 noundef %92)
  br label %114

93:                                               ; preds = %23
  store i64 0, ptr %9, align 8, !tbaa !62
  br label %94

94:                                               ; preds = %110, %93
  %95 = load i64, ptr %9, align 8, !tbaa !62
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.alglib_impl::minnlcstate", ptr %96, i32 0, i32 6
  %98 = load i64, ptr %97, align 8, !tbaa !14
  %99 = sub nsw i64 %98, 1
  %100 = icmp sle i64 %95, %99
  br i1 %100, label %101, label %113

101:                                              ; preds = %94
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %102, i32 0, i32 1
  %104 = load double, ptr %103, align 8, !tbaa !63
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %105, i32 0, i32 4
  %107 = load ptr, ptr %106, align 8, !tbaa !61
  %108 = load i64, ptr %9, align 8, !tbaa !62
  %109 = getelementptr inbounds double, ptr %107, i64 %108
  store double %104, ptr %109, align 8, !tbaa !67
  br label %110

110:                                              ; preds = %101
  %111 = load i64, ptr %9, align 8, !tbaa !62
  %112 = add nsw i64 %111, 1
  store i64 %112, ptr %9, align 8, !tbaa !62
  br label %94, !llvm.loop !68

113:                                              ; preds = %94
  br label %114

114:                                              ; preds = %113, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  ret void
}

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) #2

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #2

declare void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN11alglib_impl9ae_vectorE", !11, i64 0, !11, i64 8, !12, i64 16, !13, i64 24, !7, i64 56}
!11 = !{!"long", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!14 = !{!15, !11, i64 48}
!15 = !{!"_ZTSN11alglib_impl11minnlcstateE", !16, i64 0, !16, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !16, i64 40, !11, i64 48, !16, i64 56, !11, i64 64, !11, i64 72, !12, i64 80, !16, i64 88, !16, i64 96, !16, i64 104, !10, i64 112, !10, i64 176, !10, i64 240, !10, i64 304, !10, i64 368, !11, i64 432, !11, i64 440, !17, i64 448, !10, i64 528, !11, i64 592, !11, i64 600, !10, i64 608, !16, i64 672, !10, i64 680, !17, i64 744, !12, i64 824, !12, i64 825, !12, i64 826, !18, i64 832, !18, i64 1096, !18, i64 1360, !10, i64 1624, !10, i64 1688, !17, i64 1752, !10, i64 1832, !10, i64 1896, !10, i64 1960, !10, i64 2024, !10, i64 2088, !10, i64 2152, !10, i64 2216, !10, i64 2280, !10, i64 2344, !10, i64 2408, !10, i64 2472, !10, i64 2536, !10, i64 2600, !10, i64 2664, !17, i64 2728, !17, i64 2808, !10, i64 2888, !10, i64 2952, !10, i64 3016, !10, i64 3080, !16, i64 3144, !12, i64 3152, !20, i64 3160, !28, i64 10032, !10, i64 10056, !10, i64 10120, !10, i64 10184, !12, i64 10248, !29, i64 10256, !11, i64 33080, !24, i64 33088, !10, i64 37056, !11, i64 37120, !11, i64 37128, !11, i64 37136, !11, i64 37144, !16, i64 37152, !11, i64 37160, !16, i64 37168, !11, i64 37176, !16, i64 37184, !11, i64 37192, !11, i64 37200}
!16 = !{!"double", !7, i64 0}
!17 = !{!"_ZTSN11alglib_impl9ae_matrixE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !13, i64 40, !7, i64 72}
!18 = !{!"_ZTSN11alglib_impl10rcommstateE", !19, i64 0, !10, i64 8, !10, i64 72, !10, i64 136, !10, i64 200}
!19 = !{!"int", !7, i64 0}
!20 = !{!"_ZTSN11alglib_impl13minlbfgsstateE", !11, i64 0, !11, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !11, i64 40, !12, i64 48, !16, i64 56, !10, i64 64, !16, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !10, i64 176, !17, i64 240, !17, i64 320, !10, i64 400, !10, i64 464, !10, i64 528, !16, i64 592, !10, i64 600, !16, i64 664, !16, i64 672, !10, i64 680, !11, i64 744, !16, i64 752, !17, i64 760, !10, i64 840, !10, i64 904, !10, i64 968, !17, i64 1032, !11, i64 1112, !21, i64 1120, !22, i64 1584, !16, i64 2032, !16, i64 2040, !16, i64 2048, !16, i64 2056, !16, i64 2064, !10, i64 2072, !10, i64 2136, !10, i64 2200, !16, i64 2264, !10, i64 2272, !12, i64 2336, !12, i64 2337, !12, i64 2338, !12, i64 2339, !16, i64 2344, !18, i64 2352, !11, i64 2616, !11, i64 2624, !11, i64 2632, !23, i64 2640, !11, i64 2832, !24, i64 2840, !10, i64 6808}
!21 = !{!"_ZTSN11alglib_impl12precbuflbfgsE", !10, i64 0, !10, i64 64, !10, i64 128, !17, i64 192, !10, i64 272, !10, i64 336, !10, i64 400}
!22 = !{!"_ZTSN11alglib_impl14precbuflowrankE", !11, i64 0, !11, i64 8, !10, i64 16, !17, i64 80, !10, i64 160, !17, i64 224, !17, i64 304, !10, i64 384}
!23 = !{!"_ZTSN11alglib_impl11linminstateE", !12, i64 0, !12, i64 1, !11, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !16, i64 88, !16, i64 96, !16, i64 104, !16, i64 112, !16, i64 120, !16, i64 128, !16, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !16, i64 168, !16, i64 176, !16, i64 184}
!24 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !11, i64 0, !11, i64 8, !12, i64 16, !10, i64 24, !11, i64 88, !10, i64 96, !10, i64 160, !10, i64 224, !17, i64 288, !10, i64 368, !10, i64 432, !11, i64 496, !12, i64 504, !12, i64 505, !16, i64 512, !16, i64 520, !12, i64 528, !25, i64 536, !16, i64 832, !16, i64 840, !26, i64 848, !26, i64 1152, !16, i64 1456, !16, i64 1464, !27, i64 1472, !27, i64 1784, !12, i64 2096, !10, i64 2104, !10, i64 2168, !17, i64 2232, !18, i64 2312, !10, i64 2576, !10, i64 2640, !10, i64 2704, !10, i64 2768, !10, i64 2832, !10, i64 2896, !10, i64 2960, !10, i64 3024, !17, i64 3088, !17, i64 3168, !10, i64 3248, !10, i64 3312, !10, i64 3376, !10, i64 3440, !10, i64 3504, !10, i64 3568, !10, i64 3632, !10, i64 3696, !10, i64 3760, !10, i64 3824, !17, i64 3888}
!25 = !{!"_ZTSN11alglib_impl14optguardreportE", !12, i64 0, !12, i64 1, !11, i64 8, !16, i64 16, !12, i64 24, !12, i64 25, !12, i64 26, !11, i64 32, !16, i64 40, !12, i64 48, !11, i64 56, !11, i64 64, !10, i64 72, !17, i64 136, !17, i64 216}
!26 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !12, i64 0, !11, i64 8, !10, i64 16, !10, i64 80, !11, i64 144, !10, i64 152, !10, i64 216, !11, i64 280, !11, i64 288, !11, i64 296}
!27 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !12, i64 0, !11, i64 8, !11, i64 16, !10, i64 24, !10, i64 88, !11, i64 152, !10, i64 160, !10, i64 224, !11, i64 288, !11, i64 296, !11, i64 304}
!28 = !{!"_ZTSN11alglib_impl14minlbfgsreportE", !11, i64 0, !11, i64 8, !11, i64 16}
!29 = !{!"_ZTSN11alglib_impl11minslpstateE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !17, i64 40, !10, i64 120, !10, i64 184, !10, i64 248, !10, i64 312, !10, i64 376, !16, i64 440, !11, i64 448, !11, i64 456, !10, i64 464, !10, i64 528, !17, i64 592, !16, i64 672, !12, i64 680, !12, i64 681, !16, i64 688, !16, i64 696, !30, i64 704, !10, i64 20000, !10, i64 20064, !10, i64 20128, !23, i64 20192, !11, i64 20384, !11, i64 20392, !10, i64 20400, !10, i64 20464, !10, i64 20528, !10, i64 20592, !10, i64 20656, !10, i64 20720, !10, i64 20784, !10, i64 20848, !10, i64 20912, !17, i64 20976, !17, i64 21056, !17, i64 21136, !17, i64 21216, !16, i64 21296, !16, i64 21304, !16, i64 21312, !10, i64 21320, !10, i64 21384, !10, i64 21448, !10, i64 21512, !10, i64 21576, !10, i64 21640, !10, i64 21704, !10, i64 21768, !16, i64 21832, !11, i64 21840, !16, i64 21848, !11, i64 21856, !10, i64 21864, !11, i64 21928, !11, i64 21936, !11, i64 21944, !11, i64 21952, !11, i64 21960, !11, i64 21968, !11, i64 21976, !16, i64 21984, !11, i64 21992, !16, i64 22000, !11, i64 22008, !16, i64 22016, !11, i64 22024, !18, i64 22032, !18, i64 22296, !18, i64 22560}
!30 = !{!"_ZTSN11alglib_impl15minslpsubsolverE", !31, i64 0, !39, i64 10944, !33, i64 11000, !12, i64 17272, !17, i64 17280, !11, i64 17360, !10, i64 17368, !10, i64 17432, !10, i64 17496, !10, i64 17560, !10, i64 17624, !32, i64 17688, !32, i64 18056, !11, i64 18424, !17, i64 18432, !17, i64 18512, !17, i64 18592, !32, i64 18672, !10, i64 19040, !10, i64 19104, !10, i64 19168, !10, i64 19232}
!31 = !{!"_ZTSN11alglib_impl16dualsimplexstateE", !10, i64 0, !10, i64 64, !10, i64 128, !10, i64 192, !11, i64 256, !11, i64 264, !32, i64 272, !32, i64 640, !33, i64 1008, !38, i64 7280, !38, i64 8072, !38, i64 8864, !10, i64 9656, !10, i64 9720, !10, i64 9784, !10, i64 9848, !16, i64 9912, !16, i64 9920, !16, i64 9928, !11, i64 9936, !11, i64 9944, !11, i64 9952, !11, i64 9960, !11, i64 9968, !10, i64 9976, !11, i64 10040, !10, i64 10048, !10, i64 10112, !10, i64 10176, !10, i64 10240, !10, i64 10304, !10, i64 10368, !10, i64 10432, !10, i64 10496, !10, i64 10560, !10, i64 10624, !10, i64 10688, !10, i64 10752, !10, i64 10816, !10, i64 10880}
!32 = !{!"_ZTSN11alglib_impl12sparsematrixE", !10, i64 0, !10, i64 64, !10, i64 128, !10, i64 192, !10, i64 256, !11, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !11, i64 360}
!33 = !{!"_ZTSN11alglib_impl16dualsimplexbasisE", !11, i64 0, !11, i64 8, !10, i64 16, !10, i64 80, !10, i64 144, !11, i64 208, !12, i64 216, !11, i64 224, !17, i64 232, !32, i64 312, !32, i64 680, !32, i64 1048, !10, i64 1416, !10, i64 1480, !10, i64 1544, !10, i64 1608, !10, i64 1672, !10, i64 1736, !10, i64 1800, !12, i64 1864, !16, i64 1872, !10, i64 1880, !10, i64 1944, !10, i64 2008, !10, i64 2072, !10, i64 2136, !17, i64 2200, !10, i64 2280, !10, i64 2344, !32, i64 2408, !32, i64 2776, !34, i64 3144, !10, i64 5712, !10, i64 5776, !10, i64 5840, !32, i64 5904}
!34 = !{!"_ZTSN11alglib_impl11sluv2bufferE", !11, i64 0, !32, i64 8, !32, i64 376, !35, i64 744, !35, i64 968, !36, i64 1192, !37, i64 1816, !10, i64 1976, !17, i64 2040, !10, i64 2120, !10, i64 2184, !10, i64 2248, !10, i64 2312, !10, i64 2376, !10, i64 2440, !10, i64 2504}
!35 = !{!"_ZTSN11alglib_impl16sluv2list1matrixE", !11, i64 0, !11, i64 8, !10, i64 16, !10, i64 80, !10, i64 144, !11, i64 208, !11, i64 216}
!36 = !{!"_ZTSN11alglib_impl16sluv2sparsetrailE", !11, i64 0, !11, i64 8, !10, i64 16, !11, i64 80, !11, i64 88, !11, i64 96, !10, i64 104, !10, i64 168, !10, i64 232, !10, i64 296, !10, i64 360, !10, i64 424, !10, i64 488, !11, i64 552, !10, i64 560}
!37 = !{!"_ZTSN11alglib_impl15sluv2densetrailE", !11, i64 0, !11, i64 8, !17, i64 16, !10, i64 96}
!38 = !{!"_ZTSN11alglib_impl21dualsimplexsubproblemE", !11, i64 0, !11, i64 8, !10, i64 16, !10, i64 80, !10, i64 144, !10, i64 208, !10, i64 272, !10, i64 336, !11, i64 400, !10, i64 408, !10, i64 472, !10, i64 536, !10, i64 600, !10, i64 664, !10, i64 728}
!39 = !{!"_ZTSN11alglib_impl19dualsimplexsettingsE", !16, i64 0, !16, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48}
!40 = !{!15, !11, i64 37120}
!41 = !{!42, !11, i64 0}
!42 = !{!"_ZTSN11alglib_impl12minnlcreportE", !11, i64 0, !11, i64 8, !11, i64 16, !16, i64 24, !11, i64 32, !16, i64 40, !11, i64 48, !16, i64 56, !11, i64 64, !11, i64 72}
!43 = !{!15, !11, i64 37136}
!44 = !{!42, !11, i64 8}
!45 = !{!15, !11, i64 37144}
!46 = !{!42, !11, i64 16}
!47 = !{!15, !16, i64 37152}
!48 = !{!42, !16, i64 24}
!49 = !{!15, !11, i64 37160}
!50 = !{!42, !11, i64 32}
!51 = !{!15, !16, i64 37168}
!52 = !{!42, !16, i64 40}
!53 = !{!15, !11, i64 37176}
!54 = !{!42, !11, i64 48}
!55 = !{!15, !16, i64 37184}
!56 = !{!42, !16, i64 56}
!57 = !{!15, !11, i64 37192}
!58 = !{!42, !11, i64 64}
!59 = !{!15, !11, i64 37200}
!60 = !{!42, !11, i64 72}
!61 = !{!7, !7, i64 0}
!62 = !{!11, !11, i64 0}
!63 = !{!64, !16, i64 8}
!64 = !{!"_ZTSN11alglib_impl8ae_stateE", !11, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !6, i64 32, !13, i64 40, !6, i64 72, !65, i64 80, !6, i64 88, !66, i64 96, !6, i64 104, !6, i64 112, !6, i64 120}
!65 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !7, i64 0}
!66 = !{!"long long", !7, i64 0}
!67 = !{!16, !16, i64 0}
!68 = distinct !{!68, !69}
!69 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl16minnlcresultsbufEPNS_11minnlcstateEPNS_9ae_vectorEPNS_12minnlcreportEPNS_8ae_stateE(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef writeonly %2, ptr noundef %3) local_unnamed_addr #0 {
  %5 = load i64, ptr %1, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 48
  %7 = load i64, ptr %6, align 8, !tbaa !13
  %8 = icmp slt i64 %5, %7
  br i1 %8, label %9, label %10

9:                                                ; preds = %4
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %7, ptr noundef %3)
  br label %10

10:                                               ; preds = %9, %4
  %11 = getelementptr inbounds i8, ptr %0, i64 37120
  %12 = load i64, ptr %11, align 8, !tbaa !39
  store i64 %12, ptr %2, align 8, !tbaa !40
  %13 = getelementptr inbounds i8, ptr %0, i64 37136
  %14 = load i64, ptr %13, align 8, !tbaa !42
  %15 = getelementptr inbounds i8, ptr %2, i64 8
  store i64 %14, ptr %15, align 8, !tbaa !43
  %16 = getelementptr inbounds i8, ptr %0, i64 37144
  %17 = load i64, ptr %16, align 8, !tbaa !44
  %18 = getelementptr inbounds i8, ptr %2, i64 16
  store i64 %17, ptr %18, align 8, !tbaa !45
  %19 = getelementptr inbounds i8, ptr %0, i64 37152
  %20 = load double, ptr %19, align 8, !tbaa !46
  %21 = getelementptr inbounds i8, ptr %2, i64 24
  store double %20, ptr %21, align 8, !tbaa !47
  %22 = getelementptr inbounds i8, ptr %0, i64 37160
  %23 = load i64, ptr %22, align 8, !tbaa !48
  %24 = getelementptr inbounds i8, ptr %2, i64 32
  store i64 %23, ptr %24, align 8, !tbaa !49
  %25 = getelementptr inbounds i8, ptr %0, i64 37168
  %26 = load double, ptr %25, align 8, !tbaa !50
  %27 = getelementptr inbounds i8, ptr %2, i64 40
  store double %26, ptr %27, align 8, !tbaa !51
  %28 = getelementptr inbounds i8, ptr %0, i64 37176
  %29 = load i64, ptr %28, align 8, !tbaa !52
  %30 = getelementptr inbounds i8, ptr %2, i64 48
  store i64 %29, ptr %30, align 8, !tbaa !53
  %31 = getelementptr inbounds i8, ptr %0, i64 37184
  %32 = load double, ptr %31, align 8, !tbaa !54
  %33 = getelementptr inbounds i8, ptr %2, i64 56
  store double %32, ptr %33, align 8, !tbaa !55
  %34 = getelementptr inbounds i8, ptr %0, i64 37192
  %35 = getelementptr inbounds i8, ptr %2, i64 64
  %36 = load <2 x i64>, ptr %34, align 8, !tbaa !56
  store <2 x i64> %36, ptr %35, align 8, !tbaa !56
  %37 = icmp sgt i64 %17, 0
  br i1 %37, label %42, label %.preheader

.preheader:                                       ; preds = %10
  %38 = load i64, ptr %6, align 8, !tbaa !13
  %.not.not35 = icmp sgt i64 %38, 0
  br i1 %.not.not35, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.preheader
  %39 = getelementptr inbounds i8, ptr %3, i64 8
  %40 = getelementptr inbounds i8, ptr %1, i64 56
  %.pre = load double, ptr %39, align 8, !tbaa !57
  %xtraiter = and i64 %38, 3
  %41 = icmp ult i64 %38, 4
  br i1 %41, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph.new

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

42:                                               ; preds = %10
  %43 = getelementptr inbounds i8, ptr %1, i64 56
  %44 = load ptr, ptr %43, align 8, !tbaa !61
  %45 = getelementptr inbounds i8, ptr %0, i64 1888
  %46 = load ptr, ptr %45, align 8, !tbaa !61
  %47 = load i64, ptr %6, align 8, !tbaa !13
  %48 = add nsw i64 %47, -1
  %49 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %48)
  tail call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %44, i64 noundef 1, ptr noundef %46, i64 noundef 1, i64 noundef %49)
  br label %.loopexit

50:                                               ; preds = %50, %.lr.ph.new
  %.036 = phi i64 [ 0, %.lr.ph.new ], [ %62, %50 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %50 ]
  %51 = load ptr, ptr %40, align 8, !tbaa !61
  %52 = getelementptr inbounds double, ptr %51, i64 %.036
  store double %.pre, ptr %52, align 8, !tbaa !62
  %53 = or disjoint i64 %.036, 1
  %54 = load ptr, ptr %40, align 8, !tbaa !61
  %55 = getelementptr inbounds double, ptr %54, i64 %53
  store double %.pre, ptr %55, align 8, !tbaa !62
  %56 = or disjoint i64 %.036, 2
  %57 = load ptr, ptr %40, align 8, !tbaa !61
  %58 = getelementptr inbounds double, ptr %57, i64 %56
  store double %.pre, ptr %58, align 8, !tbaa !62
  %59 = or disjoint i64 %.036, 3
  %60 = load ptr, ptr %40, align 8, !tbaa !61
  %61 = getelementptr inbounds double, ptr %60, i64 %59
  store double %.pre, ptr %61, align 8, !tbaa !62
  %62 = add nuw nsw i64 %.036, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.loopexit.loopexit.unr-lcssa, label %50, !llvm.loop !63

.loopexit.loopexit.unr-lcssa:                     ; preds = %50, %.lr.ph
  %.036.unr = phi i64 [ 0, %.lr.ph ], [ %62, %50 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit, label %.epil.preheader

.epil.preheader:                                  ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader
  %.036.epil = phi i64 [ %65, %.epil.preheader ], [ %.036.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %63 = load ptr, ptr %40, align 8, !tbaa !61
  %64 = getelementptr inbounds double, ptr %63, i64 %.036.epil
  store double %.pre, ptr %64, align 8, !tbaa !62
  %65 = add nuw nsw i64 %.036.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.loopexit, label %.epil.preheader, !llvm.loop !65

.loopexit:                                        ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader, %.preheader, %42
  ret void
}

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

attributes #0 = { 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 #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" }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !8, i64 56}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !7, i64 48}
!14 = !{!"_ZTSN11alglib_impl11minnlcstateE", !15, i64 0, !15, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !15, i64 40, !7, i64 48, !15, i64 56, !7, i64 64, !7, i64 72, !10, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !6, i64 112, !6, i64 176, !6, i64 240, !6, i64 304, !6, i64 368, !7, i64 432, !7, i64 440, !16, i64 448, !6, i64 528, !7, i64 592, !7, i64 600, !6, i64 608, !15, i64 672, !6, i64 680, !16, i64 744, !10, i64 824, !10, i64 825, !10, i64 826, !17, i64 832, !17, i64 1096, !17, i64 1360, !6, i64 1624, !6, i64 1688, !16, i64 1752, !6, i64 1832, !6, i64 1896, !6, i64 1960, !6, i64 2024, !6, i64 2088, !6, i64 2152, !6, i64 2216, !6, i64 2280, !6, i64 2344, !6, i64 2408, !6, i64 2472, !6, i64 2536, !6, i64 2600, !6, i64 2664, !16, i64 2728, !16, i64 2808, !6, i64 2888, !6, i64 2952, !6, i64 3016, !6, i64 3080, !15, i64 3144, !10, i64 3152, !19, i64 3160, !27, i64 10032, !6, i64 10056, !6, i64 10120, !6, i64 10184, !10, i64 10248, !28, i64 10256, !7, i64 33080, !23, i64 33088, !6, i64 37056, !7, i64 37120, !7, i64 37128, !7, i64 37136, !7, i64 37144, !15, i64 37152, !7, i64 37160, !15, i64 37168, !7, i64 37176, !15, i64 37184, !7, i64 37192, !7, i64 37200}
!15 = !{!"double", !8, i64 0}
!16 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 40, !8, i64 72}
!17 = !{!"_ZTSN11alglib_impl10rcommstateE", !18, i64 0, !6, i64 8, !6, i64 72, !6, i64 136, !6, i64 200}
!18 = !{!"int", !8, i64 0}
!19 = !{!"_ZTSN11alglib_impl13minlbfgsstateE", !7, i64 0, !7, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !7, i64 40, !10, i64 48, !15, i64 56, !6, i64 64, !15, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !6, i64 176, !16, i64 240, !16, i64 320, !6, i64 400, !6, i64 464, !6, i64 528, !15, i64 592, !6, i64 600, !15, i64 664, !15, i64 672, !6, i64 680, !7, i64 744, !15, i64 752, !16, i64 760, !6, i64 840, !6, i64 904, !6, i64 968, !16, i64 1032, !7, i64 1112, !20, i64 1120, !21, i64 1584, !15, i64 2032, !15, i64 2040, !15, i64 2048, !15, i64 2056, !15, i64 2064, !6, i64 2072, !6, i64 2136, !6, i64 2200, !15, i64 2264, !6, i64 2272, !10, i64 2336, !10, i64 2337, !10, i64 2338, !10, i64 2339, !15, i64 2344, !17, i64 2352, !7, i64 2616, !7, i64 2624, !7, i64 2632, !22, i64 2640, !7, i64 2832, !23, i64 2840, !6, i64 6808}
!20 = !{!"_ZTSN11alglib_impl12precbuflbfgsE", !6, i64 0, !6, i64 64, !6, i64 128, !16, i64 192, !6, i64 272, !6, i64 336, !6, i64 400}
!21 = !{!"_ZTSN11alglib_impl14precbuflowrankE", !7, i64 0, !7, i64 8, !6, i64 16, !16, i64 80, !6, i64 160, !16, i64 224, !16, i64 304, !6, i64 384}
!22 = !{!"_ZTSN11alglib_impl11linminstateE", !10, i64 0, !10, i64 1, !7, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !15, i64 112, !15, i64 120, !15, i64 128, !15, i64 136, !15, i64 144, !15, i64 152, !15, i64 160, !15, i64 168, !15, i64 176, !15, i64 184}
!23 = !{!"_ZTSN11alglib_impl17smoothnessmonitorE", !7, i64 0, !7, i64 8, !10, i64 16, !6, i64 24, !7, i64 88, !6, i64 96, !6, i64 160, !6, i64 224, !16, i64 288, !6, i64 368, !6, i64 432, !7, i64 496, !10, i64 504, !10, i64 505, !15, i64 512, !15, i64 520, !10, i64 528, !24, i64 536, !15, i64 832, !15, i64 840, !25, i64 848, !25, i64 1152, !15, i64 1456, !15, i64 1464, !26, i64 1472, !26, i64 1784, !10, i64 2096, !6, i64 2104, !6, i64 2168, !16, i64 2232, !17, i64 2312, !6, i64 2576, !6, i64 2640, !6, i64 2704, !6, i64 2768, !6, i64 2832, !6, i64 2896, !6, i64 2960, !6, i64 3024, !16, i64 3088, !16, i64 3168, !6, i64 3248, !6, i64 3312, !6, i64 3376, !6, i64 3440, !6, i64 3504, !6, i64 3568, !6, i64 3632, !6, i64 3696, !6, i64 3760, !6, i64 3824, !16, i64 3888}
!24 = !{!"_ZTSN11alglib_impl14optguardreportE", !10, i64 0, !10, i64 1, !7, i64 8, !15, i64 16, !10, i64 24, !10, i64 25, !10, i64 26, !7, i64 32, !15, i64 40, !10, i64 48, !7, i64 56, !7, i64 64, !6, i64 72, !16, i64 136, !16, i64 216}
!25 = !{!"_ZTSN11alglib_impl24optguardnonc1test0reportE", !10, i64 0, !7, i64 8, !6, i64 16, !6, i64 80, !7, i64 144, !6, i64 152, !6, i64 216, !7, i64 280, !7, i64 288, !7, i64 296}
!26 = !{!"_ZTSN11alglib_impl24optguardnonc1test1reportE", !10, i64 0, !7, i64 8, !7, i64 16, !6, i64 24, !6, i64 88, !7, i64 152, !6, i64 160, !6, i64 224, !7, i64 288, !7, i64 296, !7, i64 304}
!27 = !{!"_ZTSN11alglib_impl14minlbfgsreportE", !7, i64 0, !7, i64 8, !7, i64 16}
!28 = !{!"_ZTSN11alglib_impl11minslpstateE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !16, i64 40, !6, i64 120, !6, i64 184, !6, i64 248, !6, i64 312, !6, i64 376, !15, i64 440, !7, i64 448, !7, i64 456, !6, i64 464, !6, i64 528, !16, i64 592, !15, i64 672, !10, i64 680, !10, i64 681, !15, i64 688, !15, i64 696, !29, i64 704, !6, i64 20000, !6, i64 20064, !6, i64 20128, !22, i64 20192, !7, i64 20384, !7, i64 20392, !6, i64 20400, !6, i64 20464, !6, i64 20528, !6, i64 20592, !6, i64 20656, !6, i64 20720, !6, i64 20784, !6, i64 20848, !6, i64 20912, !16, i64 20976, !16, i64 21056, !16, i64 21136, !16, i64 21216, !15, i64 21296, !15, i64 21304, !15, i64 21312, !6, i64 21320, !6, i64 21384, !6, i64 21448, !6, i64 21512, !6, i64 21576, !6, i64 21640, !6, i64 21704, !6, i64 21768, !15, i64 21832, !7, i64 21840, !15, i64 21848, !7, i64 21856, !6, i64 21864, !7, i64 21928, !7, i64 21936, !7, i64 21944, !7, i64 21952, !7, i64 21960, !7, i64 21968, !7, i64 21976, !15, i64 21984, !7, i64 21992, !15, i64 22000, !7, i64 22008, !15, i64 22016, !7, i64 22024, !17, i64 22032, !17, i64 22296, !17, i64 22560}
!29 = !{!"_ZTSN11alglib_impl15minslpsubsolverE", !30, i64 0, !38, i64 10944, !32, i64 11000, !10, i64 17272, !16, i64 17280, !7, i64 17360, !6, i64 17368, !6, i64 17432, !6, i64 17496, !6, i64 17560, !6, i64 17624, !31, i64 17688, !31, i64 18056, !7, i64 18424, !16, i64 18432, !16, i64 18512, !16, i64 18592, !31, i64 18672, !6, i64 19040, !6, i64 19104, !6, i64 19168, !6, i64 19232}
!30 = !{!"_ZTSN11alglib_impl16dualsimplexstateE", !6, i64 0, !6, i64 64, !6, i64 128, !6, i64 192, !7, i64 256, !7, i64 264, !31, i64 272, !31, i64 640, !32, i64 1008, !37, i64 7280, !37, i64 8072, !37, i64 8864, !6, i64 9656, !6, i64 9720, !6, i64 9784, !6, i64 9848, !15, i64 9912, !15, i64 9920, !15, i64 9928, !7, i64 9936, !7, i64 9944, !7, i64 9952, !7, i64 9960, !7, i64 9968, !6, i64 9976, !7, i64 10040, !6, i64 10048, !6, i64 10112, !6, i64 10176, !6, i64 10240, !6, i64 10304, !6, i64 10368, !6, i64 10432, !6, i64 10496, !6, i64 10560, !6, i64 10624, !6, i64 10688, !6, i64 10752, !6, i64 10816, !6, i64 10880}
!31 = !{!"_ZTSN11alglib_impl12sparsematrixE", !6, i64 0, !6, i64 64, !6, i64 128, !6, i64 192, !6, i64 256, !7, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !7, i64 360}
!32 = !{!"_ZTSN11alglib_impl16dualsimplexbasisE", !7, i64 0, !7, i64 8, !6, i64 16, !6, i64 80, !6, i64 144, !7, i64 208, !10, i64 216, !7, i64 224, !16, i64 232, !31, i64 312, !31, i64 680, !31, i64 1048, !6, i64 1416, !6, i64 1480, !6, i64 1544, !6, i64 1608, !6, i64 1672, !6, i64 1736, !6, i64 1800, !10, i64 1864, !15, i64 1872, !6, i64 1880, !6, i64 1944, !6, i64 2008, !6, i64 2072, !6, i64 2136, !16, i64 2200, !6, i64 2280, !6, i64 2344, !31, i64 2408, !31, i64 2776, !33, i64 3144, !6, i64 5712, !6, i64 5776, !6, i64 5840, !31, i64 5904}
!33 = !{!"_ZTSN11alglib_impl11sluv2bufferE", !7, i64 0, !31, i64 8, !31, i64 376, !34, i64 744, !34, i64 968, !35, i64 1192, !36, i64 1816, !6, i64 1976, !16, i64 2040, !6, i64 2120, !6, i64 2184, !6, i64 2248, !6, i64 2312, !6, i64 2376, !6, i64 2440, !6, i64 2504}
!34 = !{!"_ZTSN11alglib_impl16sluv2list1matrixE", !7, i64 0, !7, i64 8, !6, i64 16, !6, i64 80, !6, i64 144, !7, i64 208, !7, i64 216}
!35 = !{!"_ZTSN11alglib_impl16sluv2sparsetrailE", !7, i64 0, !7, i64 8, !6, i64 16, !7, i64 80, !7, i64 88, !7, i64 96, !6, i64 104, !6, i64 168, !6, i64 232, !6, i64 296, !6, i64 360, !6, i64 424, !6, i64 488, !7, i64 552, !6, i64 560}
!36 = !{!"_ZTSN11alglib_impl15sluv2densetrailE", !7, i64 0, !7, i64 8, !16, i64 16, !6, i64 96}
!37 = !{!"_ZTSN11alglib_impl21dualsimplexsubproblemE", !7, i64 0, !7, i64 8, !6, i64 16, !6, i64 80, !6, i64 144, !6, i64 208, !6, i64 272, !6, i64 336, !7, i64 400, !6, i64 408, !6, i64 472, !6, i64 536, !6, i64 600, !6, i64 664, !6, i64 728}
!38 = !{!"_ZTSN11alglib_impl19dualsimplexsettingsE", !15, i64 0, !15, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48}
!39 = !{!14, !7, i64 37120}
!40 = !{!41, !7, i64 0}
!41 = !{!"_ZTSN11alglib_impl12minnlcreportE", !7, i64 0, !7, i64 8, !7, i64 16, !15, i64 24, !7, i64 32, !15, i64 40, !7, i64 48, !15, i64 56, !7, i64 64, !7, i64 72}
!42 = !{!14, !7, i64 37136}
!43 = !{!41, !7, i64 8}
!44 = !{!14, !7, i64 37144}
!45 = !{!41, !7, i64 16}
!46 = !{!14, !15, i64 37152}
!47 = !{!41, !15, i64 24}
!48 = !{!14, !7, i64 37160}
!49 = !{!41, !7, i64 32}
!50 = !{!14, !15, i64 37168}
!51 = !{!41, !15, i64 40}
!52 = !{!14, !7, i64 37176}
!53 = !{!41, !7, i64 48}
!54 = !{!14, !15, i64 37184}
!55 = !{!41, !15, i64 56}
!56 = !{!7, !7, i64 0}
!57 = !{!58, !15, i64 8}
!58 = !{!"_ZTSN11alglib_impl8ae_stateE", !7, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !12, i64 32, !11, i64 40, !12, i64 72, !59, i64 80, !12, i64 88, !60, i64 96, !12, i64 104, !12, i64 112, !12, i64 120}
!59 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !8, i64 0}
!60 = !{!"long long", !8, i64 0}
!61 = !{!8, !8, i64 0}
!62 = !{!15, !15, i64 0}
!63 = distinct !{!63, !64}
!64 = !{!"llvm.loop.mustprogress"}
!65 = distinct !{!65, !66}
!66 = !{!"llvm.loop.unroll.disable"}


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