; 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::gqpipmstate" = type { i8, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", i64, double, 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_matrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::xquadraticconstraints", %"struct.alglib_impl::xconicconstraints", double, i64, i64, i64, i8, i8, %"struct.alglib_impl::stimer", %"struct.alglib_impl::gipmstate", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::spcholanalysis", %"struct.alglib_impl::ae_nxpool", %"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_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::xquadraticconstraints" = type { i64, %"struct.alglib_impl::ae_obj_array", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::ae_obj_array" = type { i64, i64, i8, ptr, ptr, ptr, ptr, %"struct.alglib_impl::ae_lock", %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_lock" = type { ptr, %"struct.alglib_impl::ae_dyn_block", i8 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::xconicconstraints" = type { i64, %"struct.alglib_impl::ae_obj_array" }
%"struct.alglib_impl::stimer" = type { i64, i64, i8 }
%"struct.alglib_impl::gipmstate" = type { 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", double, i64, i64, %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, i8, i8, %"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, double, double, double, double, i64, %"struct.alglib_impl::gipmvars", %"struct.alglib_impl::gipmvars", %"struct.alglib_impl::varsfuncjac", %"struct.alglib_impl::varsfuncjac", double, i64, %"struct.alglib_impl::nlpfilter", i8, i8, i8, i64, i64, %"struct.alglib_impl::stimer", %"struct.alglib_impl::ae_nxpool", %"struct.alglib_impl::gipmrhs", %"struct.alglib_impl::gipmcondensedsystem", %"struct.alglib_impl::gipmvars", %"struct.alglib_impl::gipmvars", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::gipmvars", %"struct.alglib_impl::varsfuncjac", %"struct.alglib_impl::rcommstate" }
%"struct.alglib_impl::nlpfilter" = type { double, i64, double, double, i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::gipmrhs" = 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", %"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::gipmcondensedsystem" = 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", %"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::gipmvars" = type { i64, 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", %"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::varsfuncjac" = type { i64, i64, i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::sparsematrix" }
%"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::spcholanalysis" = type { i64, i64, i64, i8, i64, double, double, double, double, %"struct.alglib_impl::ae_vector", i8, i8, i8, i8, 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_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, %"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, i8, %"struct.alglib_impl::spcholadj", %"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_nxpool", %"struct.alglib_impl::ae_nxpool", %"struct.alglib_impl::ae_nxpool", %"struct.alglib_impl::ae_nxpool", %"struct.alglib_impl::ae_nxpool", %"struct.alglib_impl::ae_nxpool", %"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::amdbuffer", %"struct.alglib_impl::priorityamdbuffers", %"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::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::spcholadj" = 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", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::amdbuffer" = type { i64, i8, i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::amdknset", %"struct.alglib_impl::amdknset", %"struct.alglib_impl::amdknset", %"struct.alglib_impl::amdllmatrix", %"struct.alglib_impl::amdvertexset", %"struct.alglib_impl::niset", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::niset", %"struct.alglib_impl::niset", %"struct.alglib_impl::niset", %"struct.alglib_impl::niset", %"struct.alglib_impl::niset", %"struct.alglib_impl::niset", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::niset", %"struct.alglib_impl::niset", %"struct.alglib_impl::amdknset", %"struct.alglib_impl::niset", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::amdllmatrix" = type { i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64 }
%"struct.alglib_impl::amdvertexset" = type { i64, i8, 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::amdknset" = 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", i64, i64, i64 }
%"struct.alglib_impl::niset" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64 }
%"struct.alglib_impl::priorityamdbuffers" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::amdbuffer", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix" }
%"struct.alglib_impl::ae_nxpool" = type { i64, i64, i64, i64, %"struct.alglib_impl::ae_dyn_block", %"struct.alglib_impl::ae_lock", %"struct.alglib_impl::ae_dyn_block" }
%"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::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::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.787 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.788 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.789 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.790 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.791 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.792 = external hidden unnamed_addr constant [54 x i8], align 1

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, ptr noundef) #1

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

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef, ptr noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef, ptr noundef) #1

declare void @_ZN11alglib_impl18sparsecopytocrsbufEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl20gqpipmsetconstraintsEPNS_11gqpipmstateEPKNS_12sparsematrixEPKNS_9ae_vectorES7_lPNS_21xquadraticconstraintsEPNS_17xconicconstraintsEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #2 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store i64 %4, ptr %13, align 8, !tbaa !9
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %19 = load ptr, ptr %9, align 8, !tbaa !5
  %20 = getelementptr inbounds %"struct.alglib_impl::gqpipmstate", ptr %19, i32 0, i32 1
  %21 = load i64, ptr %20, align 8, !tbaa !11
  store i64 %21, ptr %17, align 8, !tbaa !9
  %22 = load i64, ptr %13, align 8, !tbaa !9
  %23 = icmp sge i64 %22, 0
  %24 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %23, ptr noundef @.str.787, ptr noundef %24)
  %25 = load i64, ptr %13, align 8, !tbaa !9
  %26 = icmp eq i64 %25, 0
  br i1 %26, label %46, label %27

27:                                               ; preds = %8
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %28, i32 0, i32 5
  %30 = load i64, ptr %29, align 8, !tbaa !41
  %31 = icmp eq i64 %30, 1
  br i1 %31, label %32, label %44

32:                                               ; preds = %27
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %33, i32 0, i32 6
  %35 = load i64, ptr %34, align 8, !tbaa !42
  %36 = load i64, ptr %13, align 8, !tbaa !9
  %37 = icmp eq i64 %35, %36
  br i1 %37, label %38, label %44

38:                                               ; preds = %32
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %39, i32 0, i32 7
  %41 = load i64, ptr %40, align 8, !tbaa !43
  %42 = load i64, ptr %17, align 8, !tbaa !9
  %43 = icmp eq i64 %41, %42
  br label %44

44:                                               ; preds = %38, %32, %27
  %45 = phi i1 [ false, %32 ], [ false, %27 ], [ %43, %38 ]
  br label %46

46:                                               ; preds = %44, %8
  %47 = phi i1 [ true, %8 ], [ %45, %44 ]
  %48 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %47, ptr noundef @.str.788, ptr noundef %48)
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %49, i32 0, i32 0
  %51 = load i64, ptr %50, align 8, !tbaa !44
  %52 = load i64, ptr %13, align 8, !tbaa !9
  %53 = icmp sge i64 %51, %52
  %54 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %53, ptr noundef @.str.789, ptr noundef %54)
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %55, i32 0, i32 0
  %57 = load i64, ptr %56, align 8, !tbaa !44
  %58 = load i64, ptr %13, align 8, !tbaa !9
  %59 = icmp sge i64 %57, %58
  %60 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %59, ptr noundef @.str.790, ptr noundef %60)
  %61 = load i64, ptr %13, align 8, !tbaa !9
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.alglib_impl::gqpipmstate", ptr %62, i32 0, i32 2
  store i64 %61, ptr %63, align 8, !tbaa !45
  %64 = load i64, ptr %13, align 8, !tbaa !9
  %65 = icmp sgt i64 %64, 0
  br i1 %65, label %66, label %153

66:                                               ; preds = %46
  %67 = load ptr, ptr %10, align 8, !tbaa !5
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.alglib_impl::gqpipmstate", ptr %68, i32 0, i32 20
  %70 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl18sparsecopytocrsbufEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef %67, ptr noundef %69, ptr noundef %70)
  %71 = load i64, ptr %13, align 8, !tbaa !9
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.alglib_impl::gqpipmstate", ptr %72, i32 0, i32 21
  %74 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %71, ptr noundef %73, ptr noundef %74)
  %75 = load i64, ptr %13, align 8, !tbaa !9
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.alglib_impl::gqpipmstate", ptr %76, i32 0, i32 22
  %78 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %75, ptr noundef %77, ptr noundef %78)
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %79

79:                                               ; preds = %149, %66
  %80 = load i64, ptr %18, align 8, !tbaa !9
  %81 = load i64, ptr %13, align 8, !tbaa !9
  %82 = sub nsw i64 %81, 1
  %83 = icmp sle i64 %80, %82
  br i1 %83, label %84, label %152

84:                                               ; preds = %79
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %85, i32 0, i32 4
  %87 = load ptr, ptr %86, align 8, !tbaa !46
  %88 = load i64, ptr %18, align 8, !tbaa !9
  %89 = getelementptr inbounds double, ptr %87, i64 %88
  %90 = load double, ptr %89, align 8, !tbaa !47
  %91 = load ptr, ptr %16, align 8, !tbaa !5
  %92 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %90, ptr noundef %91)
  br i1 %92, label %102, label %93

93:                                               ; preds = %84
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %94, i32 0, i32 4
  %96 = load ptr, ptr %95, align 8, !tbaa !46
  %97 = load i64, ptr %18, align 8, !tbaa !9
  %98 = getelementptr inbounds double, ptr %96, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !47
  %100 = load ptr, ptr %16, align 8, !tbaa !5
  %101 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef %99, ptr noundef %100)
  br label %102

102:                                              ; preds = %93, %84
  %103 = phi i1 [ true, %84 ], [ %101, %93 ]
  %104 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %103, ptr noundef @.str.791, ptr noundef %104)
  %105 = load ptr, ptr %12, 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 !46
  %108 = load i64, ptr %18, align 8, !tbaa !9
  %109 = getelementptr inbounds double, ptr %107, i64 %108
  %110 = load double, ptr %109, align 8, !tbaa !47
  %111 = load ptr, ptr %16, align 8, !tbaa !5
  %112 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %110, ptr noundef %111)
  br i1 %112, label %122, label %113

113:                                              ; preds = %102
  %114 = load ptr, ptr %12, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %114, i32 0, i32 4
  %116 = load ptr, ptr %115, align 8, !tbaa !46
  %117 = load i64, ptr %18, align 8, !tbaa !9
  %118 = getelementptr inbounds double, ptr %116, i64 %117
  %119 = load double, ptr %118, align 8, !tbaa !47
  %120 = load ptr, ptr %16, align 8, !tbaa !5
  %121 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef %119, ptr noundef %120)
  br label %122

122:                                              ; preds = %113, %102
  %123 = phi i1 [ true, %102 ], [ %121, %113 ]
  %124 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %123, ptr noundef @.str.792, ptr noundef %124)
  %125 = load ptr, ptr %11, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %125, i32 0, i32 4
  %127 = load ptr, ptr %126, align 8, !tbaa !46
  %128 = load i64, ptr %18, align 8, !tbaa !9
  %129 = getelementptr inbounds double, ptr %127, i64 %128
  %130 = load double, ptr %129, align 8, !tbaa !47
  %131 = load ptr, ptr %9, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.alglib_impl::gqpipmstate", ptr %131, i32 0, i32 21
  %133 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %132, i32 0, i32 4
  %134 = load ptr, ptr %133, align 8, !tbaa !46
  %135 = load i64, ptr %18, align 8, !tbaa !9
  %136 = getelementptr inbounds double, ptr %134, i64 %135
  store double %130, ptr %136, align 8, !tbaa !47
  %137 = load ptr, ptr %12, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %137, i32 0, i32 4
  %139 = load ptr, ptr %138, align 8, !tbaa !46
  %140 = load i64, ptr %18, align 8, !tbaa !9
  %141 = getelementptr inbounds double, ptr %139, i64 %140
  %142 = load double, ptr %141, align 8, !tbaa !47
  %143 = load ptr, ptr %9, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.alglib_impl::gqpipmstate", ptr %143, i32 0, i32 22
  %145 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %144, i32 0, i32 4
  %146 = load ptr, ptr %145, align 8, !tbaa !46
  %147 = load i64, ptr %18, align 8, !tbaa !9
  %148 = getelementptr inbounds double, ptr %146, i64 %147
  store double %142, ptr %148, align 8, !tbaa !47
  br label %149

149:                                              ; preds = %122
  %150 = load i64, ptr %18, align 8, !tbaa !9
  %151 = add nsw i64 %150, 1
  store i64 %151, ptr %18, align 8, !tbaa !9
  br label %79, !llvm.loop !48

152:                                              ; preds = %79
  br label %153

153:                                              ; preds = %152, %46
  %154 = load ptr, ptr %14, align 8, !tbaa !5
  %155 = load ptr, ptr %16, align 8, !tbaa !5
  %156 = call noundef i64 @_ZN11alglib_impl11xqcgetcountEPKNS_21xquadraticconstraintsEPNS_8ae_stateE(ptr noundef %154, ptr noundef %155)
  %157 = load ptr, ptr %9, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.alglib_impl::gqpipmstate", ptr %157, i32 0, i32 3
  store i64 %156, ptr %158, align 8, !tbaa !50
  %159 = load ptr, ptr %14, align 8, !tbaa !5
  %160 = load ptr, ptr %9, align 8, !tbaa !5
  %161 = getelementptr inbounds %"struct.alglib_impl::gqpipmstate", ptr %160, i32 0, i32 23
  %162 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl7xqccopyEPNS_21xquadraticconstraintsES1_PNS_8ae_stateE(ptr noundef %159, ptr noundef %161, ptr noundef %162)
  %163 = load ptr, ptr %15, align 8, !tbaa !5
  %164 = load ptr, ptr %16, align 8, !tbaa !5
  %165 = call noundef i64 @_ZN11alglib_impl11xccgetcountEPKNS_17xconicconstraintsEPNS_8ae_stateE(ptr noundef %163, ptr noundef %164)
  %166 = load ptr, ptr %9, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.alglib_impl::gqpipmstate", ptr %166, i32 0, i32 4
  store i64 %165, ptr %167, align 8, !tbaa !51
  %168 = load ptr, ptr %15, align 8, !tbaa !5
  %169 = load ptr, ptr %9, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.alglib_impl::gqpipmstate", ptr %169, i32 0, i32 24
  %171 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl7xcccopyEPNS_17xconicconstraintsES1_PNS_8ae_stateE(ptr noundef %168, ptr noundef %170, ptr noundef %171)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_ZTSN11alglib_impl11gqpipmstateE", !13, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !14, i64 40, !10, i64 104, !16, i64 112, !10, i64 120, !14, i64 128, !14, i64 192, !14, i64 256, !14, i64 320, !14, i64 384, !14, i64 448, !10, i64 512, !14, i64 520, !14, i64 584, !17, i64 648, !18, i64 728, !18, i64 1096, !14, i64 1464, !14, i64 1528, !19, i64 1592, !22, i64 1800, !16, i64 1944, !10, i64 1952, !10, i64 1960, !10, i64 1968, !13, i64 1976, !13, i64 1977, !23, i64 1984, !24, i64 2008, !17, i64 12320, !17, i64 12400, !14, i64 12480, !14, i64 12544, !17, i64 12608, !17, i64 12688, !14, i64 12768, !14, i64 12832, !18, i64 12896, !18, i64 13264, !18, i64 13632, !18, i64 14000, !14, i64 14368, !33, i64 14432, !28, i64 29496, !14, i64 29640, !14, i64 29704, !18, i64 29768, !14, i64 30136, !14, i64 30200, !14, i64 30264, !14, i64 30328, !14, i64 30392, !14, i64 30456, !17, i64 30520, !14, i64 30600, !14, i64 30664, !14, i64 30728, !14, i64 30792, !14, i64 30856, !14, i64 30920, !14, i64 30984, !14, i64 31048, !14, i64 31112}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !13, i64 16, !15, i64 24, !7, i64 56}
!15 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!16 = !{!"double", !7, i64 0}
!17 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !15, i64 40, !7, i64 72}
!18 = !{!"_ZTSN11alglib_impl12sparsematrixE", !14, i64 0, !14, i64 64, !14, i64 128, !14, i64 192, !14, i64 256, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360}
!19 = !{!"_ZTSN11alglib_impl21xquadraticconstraintsE", !10, i64 0, !20, i64 8, !14, i64 144}
!20 = !{!"_ZTSN11alglib_impl12ae_obj_arrayE", !10, i64 0, !10, i64 8, !13, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !21, i64 56, !15, i64 104}
!21 = !{!"_ZTSN11alglib_impl7ae_lockE", !6, i64 0, !15, i64 8, !13, i64 40}
!22 = !{!"_ZTSN11alglib_impl17xconicconstraintsE", !10, i64 0, !20, i64 8}
!23 = !{!"_ZTSN11alglib_impl6stimerE", !10, i64 0, !10, i64 8, !13, i64 16}
!24 = !{!"_ZTSN11alglib_impl9gipmstateE", !10, i64 0, !10, i64 8, !10, i64 16, !14, i64 24, !14, i64 88, !14, i64 152, !14, i64 216, !14, i64 280, !14, i64 344, !14, i64 408, !16, i64 472, !10, i64 480, !10, i64 488, !14, i64 496, !16, i64 560, !14, i64 568, !14, i64 632, !18, i64 696, !14, i64 1064, !14, i64 1128, !13, i64 1192, !13, i64 1193, !13, i64 1194, !14, i64 1200, !14, i64 1264, !14, i64 1328, !14, i64 1392, !14, i64 1456, !14, i64 1520, !14, i64 1584, !14, i64 1648, !16, i64 1712, !16, i64 1720, !16, i64 1728, !16, i64 1736, !16, i64 1744, !10, i64 1752, !25, i64 1760, !25, i64 2560, !26, i64 3360, !26, i64 3960, !16, i64 4560, !10, i64 4568, !27, i64 4576, !13, i64 4744, !13, i64 4745, !13, i64 4746, !10, i64 4752, !10, i64 4760, !23, i64 4768, !28, i64 4792, !29, i64 4936, !30, i64 5704, !25, i64 6856, !25, i64 7656, !14, i64 8456, !14, i64 8520, !14, i64 8584, !25, i64 8648, !26, i64 9448, !31, i64 10048}
!25 = !{!"_ZTSN11alglib_impl8gipmvarsE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !14, i64 32, !14, i64 96, !14, i64 160, !14, i64 224, !14, i64 288, !14, i64 352, !14, i64 416, !14, i64 480, !14, i64 544, !14, i64 608, !14, i64 672, !14, i64 736}
!26 = !{!"_ZTSN11alglib_impl11varsfuncjacE", !10, i64 0, !10, i64 8, !13, i64 16, !14, i64 24, !14, i64 88, !17, i64 152, !18, i64 232}
!27 = !{!"_ZTSN11alglib_impl9nlpfilterE", !16, i64 0, !10, i64 8, !16, i64 16, !16, i64 24, !13, i64 32, !14, i64 40, !14, i64 104}
!28 = !{!"_ZTSN11alglib_impl9ae_nxpoolE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !15, i64 32, !21, i64 64, !15, i64 112}
!29 = !{!"_ZTSN11alglib_impl7gipmrhsE", !14, i64 0, !14, i64 64, !14, i64 128, !14, i64 192, !14, i64 256, !14, i64 320, !14, i64 384, !14, i64 448, !14, i64 512, !14, i64 576, !14, i64 640, !14, i64 704}
!30 = !{!"_ZTSN11alglib_impl19gipmcondensedsystemE", !14, i64 0, !14, i64 64, !14, i64 128, !14, i64 192, !14, i64 256, !14, i64 320, !14, i64 384, !14, i64 448, !14, i64 512, !14, i64 576, !14, i64 640, !14, i64 704, !14, i64 768, !14, i64 832, !14, i64 896, !14, i64 960, !14, i64 1024, !14, i64 1088}
!31 = !{!"_ZTSN11alglib_impl10rcommstateE", !32, i64 0, !14, i64 8, !14, i64 72, !14, i64 136, !14, i64 200}
!32 = !{!"int", !7, i64 0}
!33 = !{!"_ZTSN11alglib_impl14spcholanalysisE", !10, i64 0, !10, i64 8, !10, i64 16, !13, i64 24, !10, i64 32, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !14, i64 72, !13, i64 136, !13, i64 137, !13, i64 138, !13, i64 139, !13, i64 140, !14, i64 144, !10, i64 208, !14, i64 216, !14, i64 280, !14, i64 344, !14, i64 408, !14, i64 472, !14, i64 536, !13, i64 600, !14, i64 608, !14, i64 672, !14, i64 736, !14, i64 800, !14, i64 864, !14, i64 928, !13, i64 992, !13, i64 993, !34, i64 1000, !14, i64 1512, !14, i64 1576, !14, i64 1640, !14, i64 1704, !14, i64 1768, !14, i64 1832, !28, i64 1896, !28, i64 2040, !28, i64 2184, !28, i64 2328, !28, i64 2472, !28, i64 2616, !14, i64 2760, !14, i64 2824, !14, i64 2888, !14, i64 2952, !14, i64 3016, !35, i64 3080, !40, i64 7464, !14, i64 13816, !14, i64 13880, !14, i64 13944, !14, i64 14008, !14, i64 14072, !14, i64 14136, !18, i64 14200, !18, i64 14568, !14, i64 14936, !14, i64 15000}
!34 = !{!"_ZTSN11alglib_impl9spcholadjE", !14, i64 0, !14, i64 64, !14, i64 128, !14, i64 192, !14, i64 256, !14, i64 320, !14, i64 384, !14, i64 448}
!35 = !{!"_ZTSN11alglib_impl9amdbufferE", !10, i64 0, !13, i64 8, !13, i64 9, !14, i64 16, !14, i64 80, !14, i64 144, !36, i64 208, !36, i64 568, !36, i64 928, !37, i64 1288, !38, i64 1496, !39, i64 1968, !14, i64 2120, !14, i64 2184, !14, i64 2248, !39, i64 2312, !39, i64 2464, !39, i64 2616, !39, i64 2768, !39, i64 2920, !39, i64 3072, !14, i64 3224, !10, i64 3288, !39, i64 3296, !39, i64 3448, !36, i64 3600, !39, i64 3960, !14, i64 4112, !14, i64 4176, !14, i64 4240, !17, i64 4304}
!36 = !{!"_ZTSN11alglib_impl8amdknsetE", !10, i64 0, !10, i64 8, !14, i64 16, !14, i64 80, !14, i64 144, !14, i64 208, !14, i64 272, !10, i64 336, !10, i64 344, !10, i64 352}
!37 = !{!"_ZTSN11alglib_impl11amdllmatrixE", !10, i64 0, !14, i64 8, !14, i64 72, !14, i64 136, !10, i64 200}
!38 = !{!"_ZTSN11alglib_impl12amdvertexsetE", !10, i64 0, !13, i64 8, !10, i64 16, !14, i64 24, !14, i64 88, !14, i64 152, !14, i64 216, !14, i64 280, !14, i64 344, !14, i64 408}
!39 = !{!"_ZTSN11alglib_impl5nisetE", !10, i64 0, !10, i64 8, !14, i64 16, !14, i64 80, !10, i64 144}
!40 = !{!"_ZTSN11alglib_impl18priorityamdbuffersE", !14, i64 0, !14, i64 64, !35, i64 128, !18, i64 4512, !18, i64 4880, !18, i64 5248, !18, i64 5616, !18, i64 5984}
!41 = !{!18, !10, i64 320}
!42 = !{!18, !10, i64 328}
!43 = !{!18, !10, i64 336}
!44 = !{!14, !10, i64 0}
!45 = !{!12, !10, i64 16}
!46 = !{!7, !7, i64 0}
!47 = !{!16, !16, i64 0}
!48 = distinct !{!48, !49}
!49 = !{!"llvm.loop.mustprogress"}
!50 = !{!12, !10, i64 24}
!51 = !{!12, !10, i64 32}


; 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.787 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.788 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.789 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.790 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.791 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.792 = external hidden unnamed_addr constant [54 x i8], align 1

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

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #0

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

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #0

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #0

declare void @_ZN11alglib_impl18sparsecopytocrsbufEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl20gqpipmsetconstraintsEPNS_11gqpipmstateEPKNS_12sparsematrixEPKNS_9ae_vectorES7_lPNS_21xquadraticconstraintsEPNS_17xconicconstraintsEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, i64 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) local_unnamed_addr #1 {
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load i64, ptr %9, align 8, !tbaa !5
  %11 = icmp sgt i64 %4, -1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.787, ptr noundef %7)
  %12 = icmp eq i64 %4, 0
  br i1 %12, label %25, label %13

13:                                               ; preds = %8
  %14 = getelementptr inbounds i8, ptr %1, i64 320
  %15 = load i64, ptr %14, align 8, !tbaa !39
  %16 = icmp eq i64 %15, 1
  br i1 %16, label %17, label %25

17:                                               ; preds = %13
  %18 = getelementptr inbounds i8, ptr %1, i64 328
  %19 = load i64, ptr %18, align 8, !tbaa !40
  %20 = icmp eq i64 %19, %4
  br i1 %20, label %21, label %25

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %1, i64 336
  %23 = load i64, ptr %22, align 8, !tbaa !41
  %24 = icmp eq i64 %23, %10
  br label %25

25:                                               ; preds = %13, %17, %21, %8
  %26 = phi i1 [ true, %8 ], [ false, %17 ], [ false, %13 ], [ %24, %21 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %26, ptr noundef nonnull @.str.788, ptr noundef %7)
  %27 = load i64, ptr %2, align 8, !tbaa !42
  %28 = icmp sge i64 %27, %4
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %28, ptr noundef nonnull @.str.789, ptr noundef %7)
  %29 = load i64, ptr %3, align 8, !tbaa !42
  %30 = icmp sge i64 %29, %4
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %30, ptr noundef nonnull @.str.790, ptr noundef %7)
  %31 = getelementptr inbounds i8, ptr %0, i64 16
  store i64 %4, ptr %31, align 8, !tbaa !43
  %32 = icmp sgt i64 %4, 0
  br i1 %32, label %33, label %.loopexit

33:                                               ; preds = %25
  %34 = getelementptr inbounds i8, ptr %0, i64 1096
  tail call void @_ZN11alglib_impl18sparsecopytocrsbufEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef %1, ptr noundef nonnull %34, ptr noundef %7)
  %35 = getelementptr inbounds i8, ptr %0, i64 1464
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %4, ptr noundef nonnull %35, ptr noundef %7)
  %36 = getelementptr inbounds i8, ptr %0, i64 1528
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %4, ptr noundef nonnull %36, ptr noundef %7)
  %37 = getelementptr inbounds i8, ptr %2, i64 56
  %38 = getelementptr inbounds i8, ptr %3, i64 56
  %39 = getelementptr inbounds i8, ptr %0, i64 1520
  %40 = getelementptr inbounds i8, ptr %0, i64 1584
  br label %41

41:                                               ; preds = %33, %62
  %.065 = phi i64 [ 0, %33 ], [ %74, %62 ]
  %42 = load ptr, ptr %37, align 8, !tbaa !44
  %43 = getelementptr inbounds double, ptr %42, i64 %.065
  %44 = load double, ptr %43, align 8, !tbaa !45
  %45 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %44, ptr noundef %7)
  br i1 %45, label %51, label %46

46:                                               ; preds = %41
  %47 = load ptr, ptr %37, align 8, !tbaa !44
  %48 = getelementptr inbounds double, ptr %47, i64 %.065
  %49 = load double, ptr %48, align 8, !tbaa !45
  %50 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef %49, ptr noundef %7)
  br label %51

51:                                               ; preds = %46, %41
  %52 = phi i1 [ true, %41 ], [ %50, %46 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %52, ptr noundef nonnull @.str.791, ptr noundef %7)
  %53 = load ptr, ptr %38, align 8, !tbaa !44
  %54 = getelementptr inbounds double, ptr %53, i64 %.065
  %55 = load double, ptr %54, align 8, !tbaa !45
  %56 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %55, ptr noundef %7)
  br i1 %56, label %62, label %57

57:                                               ; preds = %51
  %58 = load ptr, ptr %38, align 8, !tbaa !44
  %59 = getelementptr inbounds double, ptr %58, i64 %.065
  %60 = load double, ptr %59, align 8, !tbaa !45
  %61 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef %60, ptr noundef %7)
  br label %62

62:                                               ; preds = %57, %51
  %63 = phi i1 [ true, %51 ], [ %61, %57 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %63, ptr noundef nonnull @.str.792, ptr noundef %7)
  %64 = load ptr, ptr %37, align 8, !tbaa !44
  %65 = getelementptr inbounds double, ptr %64, i64 %.065
  %66 = load double, ptr %65, align 8, !tbaa !45
  %67 = load ptr, ptr %39, align 8, !tbaa !44
  %68 = getelementptr inbounds double, ptr %67, i64 %.065
  store double %66, ptr %68, align 8, !tbaa !45
  %69 = load ptr, ptr %38, align 8, !tbaa !44
  %70 = getelementptr inbounds double, ptr %69, i64 %.065
  %71 = load double, ptr %70, align 8, !tbaa !45
  %72 = load ptr, ptr %40, align 8, !tbaa !44
  %73 = getelementptr inbounds double, ptr %72, i64 %.065
  store double %71, ptr %73, align 8, !tbaa !45
  %74 = add nuw nsw i64 %.065, 1
  %exitcond.not = icmp eq i64 %74, %4
  br i1 %exitcond.not, label %.loopexit, label %41, !llvm.loop !46

.loopexit:                                        ; preds = %62, %25
  %75 = tail call noundef i64 @_ZN11alglib_impl11xqcgetcountEPKNS_21xquadraticconstraintsEPNS_8ae_stateE(ptr noundef %5, ptr noundef %7)
  %76 = getelementptr inbounds i8, ptr %0, i64 24
  store i64 %75, ptr %76, align 8, !tbaa !48
  %77 = getelementptr inbounds i8, ptr %0, i64 1592
  tail call void @_ZN11alglib_impl7xqccopyEPNS_21xquadraticconstraintsES1_PNS_8ae_stateE(ptr noundef %5, ptr noundef nonnull %77, ptr noundef %7)
  %78 = tail call noundef i64 @_ZN11alglib_impl11xccgetcountEPKNS_17xconicconstraintsEPNS_8ae_stateE(ptr noundef %6, ptr noundef %7)
  %79 = getelementptr inbounds i8, ptr %0, i64 32
  store i64 %78, ptr %79, align 8, !tbaa !49
  %80 = getelementptr inbounds i8, ptr %0, i64 1800
  tail call void @_ZN11alglib_impl7xcccopyEPNS_17xconicconstraintsES1_PNS_8ae_stateE(ptr noundef %6, ptr noundef nonnull %80, ptr noundef %7)
  ret void
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"_ZTSN11alglib_impl11gqpipmstateE", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !11, i64 40, !10, i64 104, !14, i64 112, !10, i64 120, !11, i64 128, !11, i64 192, !11, i64 256, !11, i64 320, !11, i64 384, !11, i64 448, !10, i64 512, !11, i64 520, !11, i64 584, !15, i64 648, !16, i64 728, !16, i64 1096, !11, i64 1464, !11, i64 1528, !17, i64 1592, !20, i64 1800, !14, i64 1944, !10, i64 1952, !10, i64 1960, !10, i64 1968, !7, i64 1976, !7, i64 1977, !21, i64 1984, !22, i64 2008, !15, i64 12320, !15, i64 12400, !11, i64 12480, !11, i64 12544, !15, i64 12608, !15, i64 12688, !11, i64 12768, !11, i64 12832, !16, i64 12896, !16, i64 13264, !16, i64 13632, !16, i64 14000, !11, i64 14368, !31, i64 14432, !26, i64 29496, !11, i64 29640, !11, i64 29704, !16, i64 29768, !11, i64 30136, !11, i64 30200, !11, i64 30264, !11, i64 30328, !11, i64 30392, !11, i64 30456, !15, i64 30520, !11, i64 30600, !11, i64 30664, !11, i64 30728, !11, i64 30792, !11, i64 30856, !11, i64 30920, !11, i64 30984, !11, i64 31048, !11, i64 31112}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !7, i64 16, !12, i64 24, !8, i64 56}
!12 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"double", !8, i64 0}
!15 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !7, i64 32, !12, i64 40, !8, i64 72}
!16 = !{!"_ZTSN11alglib_impl12sparsematrixE", !11, i64 0, !11, i64 64, !11, i64 128, !11, i64 192, !11, i64 256, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360}
!17 = !{!"_ZTSN11alglib_impl21xquadraticconstraintsE", !10, i64 0, !18, i64 8, !11, i64 144}
!18 = !{!"_ZTSN11alglib_impl12ae_obj_arrayE", !10, i64 0, !10, i64 8, !7, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !19, i64 56, !12, i64 104}
!19 = !{!"_ZTSN11alglib_impl7ae_lockE", !13, i64 0, !12, i64 8, !7, i64 40}
!20 = !{!"_ZTSN11alglib_impl17xconicconstraintsE", !10, i64 0, !18, i64 8}
!21 = !{!"_ZTSN11alglib_impl6stimerE", !10, i64 0, !10, i64 8, !7, i64 16}
!22 = !{!"_ZTSN11alglib_impl9gipmstateE", !10, i64 0, !10, i64 8, !10, i64 16, !11, i64 24, !11, i64 88, !11, i64 152, !11, i64 216, !11, i64 280, !11, i64 344, !11, i64 408, !14, i64 472, !10, i64 480, !10, i64 488, !11, i64 496, !14, i64 560, !11, i64 568, !11, i64 632, !16, i64 696, !11, i64 1064, !11, i64 1128, !7, i64 1192, !7, i64 1193, !7, i64 1194, !11, i64 1200, !11, i64 1264, !11, i64 1328, !11, i64 1392, !11, i64 1456, !11, i64 1520, !11, i64 1584, !11, i64 1648, !14, i64 1712, !14, i64 1720, !14, i64 1728, !14, i64 1736, !14, i64 1744, !10, i64 1752, !23, i64 1760, !23, i64 2560, !24, i64 3360, !24, i64 3960, !14, i64 4560, !10, i64 4568, !25, i64 4576, !7, i64 4744, !7, i64 4745, !7, i64 4746, !10, i64 4752, !10, i64 4760, !21, i64 4768, !26, i64 4792, !27, i64 4936, !28, i64 5704, !23, i64 6856, !23, i64 7656, !11, i64 8456, !11, i64 8520, !11, i64 8584, !23, i64 8648, !24, i64 9448, !29, i64 10048}
!23 = !{!"_ZTSN11alglib_impl8gipmvarsE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !11, i64 32, !11, i64 96, !11, i64 160, !11, i64 224, !11, i64 288, !11, i64 352, !11, i64 416, !11, i64 480, !11, i64 544, !11, i64 608, !11, i64 672, !11, i64 736}
!24 = !{!"_ZTSN11alglib_impl11varsfuncjacE", !10, i64 0, !10, i64 8, !7, i64 16, !11, i64 24, !11, i64 88, !15, i64 152, !16, i64 232}
!25 = !{!"_ZTSN11alglib_impl9nlpfilterE", !14, i64 0, !10, i64 8, !14, i64 16, !14, i64 24, !7, i64 32, !11, i64 40, !11, i64 104}
!26 = !{!"_ZTSN11alglib_impl9ae_nxpoolE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !12, i64 32, !19, i64 64, !12, i64 112}
!27 = !{!"_ZTSN11alglib_impl7gipmrhsE", !11, i64 0, !11, i64 64, !11, i64 128, !11, i64 192, !11, i64 256, !11, i64 320, !11, i64 384, !11, i64 448, !11, i64 512, !11, i64 576, !11, i64 640, !11, i64 704}
!28 = !{!"_ZTSN11alglib_impl19gipmcondensedsystemE", !11, i64 0, !11, i64 64, !11, i64 128, !11, i64 192, !11, i64 256, !11, i64 320, !11, i64 384, !11, i64 448, !11, i64 512, !11, i64 576, !11, i64 640, !11, i64 704, !11, i64 768, !11, i64 832, !11, i64 896, !11, i64 960, !11, i64 1024, !11, i64 1088}
!29 = !{!"_ZTSN11alglib_impl10rcommstateE", !30, i64 0, !11, i64 8, !11, i64 72, !11, i64 136, !11, i64 200}
!30 = !{!"int", !8, i64 0}
!31 = !{!"_ZTSN11alglib_impl14spcholanalysisE", !10, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !10, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !11, i64 72, !7, i64 136, !7, i64 137, !7, i64 138, !7, i64 139, !7, i64 140, !11, i64 144, !10, i64 208, !11, i64 216, !11, i64 280, !11, i64 344, !11, i64 408, !11, i64 472, !11, i64 536, !7, i64 600, !11, i64 608, !11, i64 672, !11, i64 736, !11, i64 800, !11, i64 864, !11, i64 928, !7, i64 992, !7, i64 993, !32, i64 1000, !11, i64 1512, !11, i64 1576, !11, i64 1640, !11, i64 1704, !11, i64 1768, !11, i64 1832, !26, i64 1896, !26, i64 2040, !26, i64 2184, !26, i64 2328, !26, i64 2472, !26, i64 2616, !11, i64 2760, !11, i64 2824, !11, i64 2888, !11, i64 2952, !11, i64 3016, !33, i64 3080, !38, i64 7464, !11, i64 13816, !11, i64 13880, !11, i64 13944, !11, i64 14008, !11, i64 14072, !11, i64 14136, !16, i64 14200, !16, i64 14568, !11, i64 14936, !11, i64 15000}
!32 = !{!"_ZTSN11alglib_impl9spcholadjE", !11, i64 0, !11, i64 64, !11, i64 128, !11, i64 192, !11, i64 256, !11, i64 320, !11, i64 384, !11, i64 448}
!33 = !{!"_ZTSN11alglib_impl9amdbufferE", !10, i64 0, !7, i64 8, !7, i64 9, !11, i64 16, !11, i64 80, !11, i64 144, !34, i64 208, !34, i64 568, !34, i64 928, !35, i64 1288, !36, i64 1496, !37, i64 1968, !11, i64 2120, !11, i64 2184, !11, i64 2248, !37, i64 2312, !37, i64 2464, !37, i64 2616, !37, i64 2768, !37, i64 2920, !37, i64 3072, !11, i64 3224, !10, i64 3288, !37, i64 3296, !37, i64 3448, !34, i64 3600, !37, i64 3960, !11, i64 4112, !11, i64 4176, !11, i64 4240, !15, i64 4304}
!34 = !{!"_ZTSN11alglib_impl8amdknsetE", !10, i64 0, !10, i64 8, !11, i64 16, !11, i64 80, !11, i64 144, !11, i64 208, !11, i64 272, !10, i64 336, !10, i64 344, !10, i64 352}
!35 = !{!"_ZTSN11alglib_impl11amdllmatrixE", !10, i64 0, !11, i64 8, !11, i64 72, !11, i64 136, !10, i64 200}
!36 = !{!"_ZTSN11alglib_impl12amdvertexsetE", !10, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !11, i64 88, !11, i64 152, !11, i64 216, !11, i64 280, !11, i64 344, !11, i64 408}
!37 = !{!"_ZTSN11alglib_impl5nisetE", !10, i64 0, !10, i64 8, !11, i64 16, !11, i64 80, !10, i64 144}
!38 = !{!"_ZTSN11alglib_impl18priorityamdbuffersE", !11, i64 0, !11, i64 64, !33, i64 128, !16, i64 4512, !16, i64 4880, !16, i64 5248, !16, i64 5616, !16, i64 5984}
!39 = !{!16, !10, i64 320}
!40 = !{!16, !10, i64 328}
!41 = !{!16, !10, i64 336}
!42 = !{!11, !10, i64 0}
!43 = !{!6, !10, i64 16}
!44 = !{!8, !8, i64 0}
!45 = !{!14, !14, i64 0}
!46 = distinct !{!46, !47}
!47 = !{!"llvm.loop.mustprogress"}
!48 = !{!6, !10, i64 24}
!49 = !{!6, !10, i64 32}


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