; 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::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::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 }

@.str.1108 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.1109 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.1110 = external hidden unnamed_addr constant [53 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; 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) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN11alglib_impl14qpxproblemgetnEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN11alglib_impl16qpxproblemgetmlcEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN11alglib_impl16qpxproblemgetmqcEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN11alglib_impl16qpxproblemgetmccEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN11alglib_impl29qpxproblemgettotalconstraintsEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef, ptr noundef) #3

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl17qpxproblemgetqc2iEPNS_10qpxproblemElPNS_12sparsematrixEPbPNS_9ae_vectorEPdS7_S4_PNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl27minqpsetquadratictermsparseEPNS_10minqpstateEPKNS_12sparsematrixEbPNS_8ae_stateE(ptr noundef, ptr noundef, i1 noundef zeroext, ptr noundef) #4

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl11minqpsetlc2EPNS_10minqpstateEPKNS_12sparsematrixEPKNS_9ae_vectorES7_lPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN11alglib_impl11minqpaddqc2EPNS_10minqpstateEPKNS_12sparsematrixEbPKNS_9ae_vectorEddbPNS_8ae_stateE(ptr noundef, ptr noundef, i1 noundef zeroext, ptr noundef, double noundef, double noundef, i1 noundef zeroext, ptr noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl11minqpimportEPNS_10qpxproblemEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.alglib_impl::ae_frame", align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca i8, align 1
  %14 = alloca %"struct.alglib_impl::ae_vector", align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %17 = alloca i8, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #5
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %18, ptr noundef %7)
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 368, i1 false)
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11alglib_impl17_minqpstate_clearEPv(ptr noundef %19)
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %14, i64 noundef 0, i64 noundef 3, ptr noundef %20, i1 noundef zeroext true)
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %15, i64 noundef 0, i64 noundef 3, ptr noundef %21, i1 noundef zeroext true)
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %16, ptr noundef %22, i1 noundef zeroext true)
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = call noundef zeroext i1 @_ZN11alglib_impl30qpxproblemisquadraticobjectiveEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %23, ptr noundef %24)
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %25, ptr noundef @.str.1108, ptr noundef %26)
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = call noundef i64 @_ZN11alglib_impl29qpxproblemgettotalconstraintsEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %27, ptr noundef %28)
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = call noundef i64 @_ZN11alglib_impl16qpxproblemgetmlcEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %30, ptr noundef %31)
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = call noundef i64 @_ZN11alglib_impl16qpxproblemgetmqcEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %33, ptr noundef %34)
  %36 = add nsw i64 %32, %35
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = call noundef i64 @_ZN11alglib_impl16qpxproblemgetmccEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %37, ptr noundef %38)
  %40 = add nsw i64 %36, %39
  %41 = icmp eq i64 %29, %40
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %41, ptr noundef @.str.1109, ptr noundef %42)
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = call noundef i64 @_ZN11alglib_impl14qpxproblemgetnEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %43, ptr noundef %44)
  store i64 %45, ptr %9, align 8, !tbaa !9
  %46 = load i64, ptr %9, align 8, !tbaa !9
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %46, ptr noundef %47, ptr noundef %48)
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = call noundef zeroext i1 @_ZN11alglib_impl25qpxproblemhasinitialpointEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %49, ptr noundef %50)
  br i1 %51, label %52, label %57

52:                                               ; preds = %3
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl25qpxproblemgetinitialpointEPNS_10qpxproblemEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %53, ptr noundef %14, ptr noundef %54)
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl21minqpsetstartingpointEPNS_10minqpstateEPKNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %55, ptr noundef %14, ptr noundef %56)
  br label %57

57:                                               ; preds = %52, %3
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = call noundef zeroext i1 @_ZN11alglib_impl18qpxproblemhasscaleEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %58, ptr noundef %59)
  br i1 %60, label %61, label %66

61:                                               ; preds = %57
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl18qpxproblemgetscaleEPNS_10qpxproblemEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %62, ptr noundef %14, ptr noundef %63)
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl13minqpsetscaleEPNS_10minqpstateEPKNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %64, ptr noundef %14, ptr noundef %65)
  br label %66

66:                                               ; preds = %61, %57
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = call noundef zeroext i1 @_ZN11alglib_impl19qpxproblemhasoriginEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %67, ptr noundef %68)
  br i1 %69, label %70, label %75

70:                                               ; preds = %66
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl19qpxproblemgetoriginEPNS_10qpxproblemEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %71, ptr noundef %14, ptr noundef %72)
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14minqpsetoriginEPNS_10minqpstateEPKNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %73, ptr noundef %14, ptr noundef %74)
  br label %75

75:                                               ; preds = %70, %66
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl23qpxproblemgetlineartermEPNS_10qpxproblemEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %76, ptr noundef %14, ptr noundef %77)
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPKNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %78, ptr noundef %14, ptr noundef %79)
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl26qpxproblemgetquadratictermEPNS_10qpxproblemEPNS_12sparsematrixEPbPNS_8ae_stateE(ptr noundef %80, ptr noundef %16, ptr noundef %17, ptr noundef %81)
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = load i8, ptr %17, align 1, !tbaa !11, !range !13, !noundef !14
  %84 = trunc i8 %83 to i1
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl27minqpsetquadratictermsparseEPNS_10minqpstateEPKNS_12sparsematrixEbPNS_8ae_stateE(ptr noundef %82, ptr noundef %16, i1 noundef zeroext %84, ptr noundef %85)
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl15qpxproblemgetbcEPNS_10qpxproblemEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %86, ptr noundef %14, ptr noundef %15, ptr noundef %87)
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl10minqpsetbcEPNS_10minqpstateEPKNS_9ae_vectorES4_PNS_8ae_stateE(ptr noundef %88, ptr noundef %14, ptr noundef %15, ptr noundef %89)
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = call noundef i64 @_ZN11alglib_impl16qpxproblemgetmlcEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %90, ptr noundef %91)
  %93 = icmp sgt i64 %92, 0
  br i1 %93, label %94, label %100

94:                                               ; preds = %75
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl16qpxproblemgetlc2EPNS_10qpxproblemEPNS_12sparsematrixEPNS_9ae_vectorES5_PlPNS_8ae_stateE(ptr noundef %95, ptr noundef %16, ptr noundef %14, ptr noundef %15, ptr noundef %10, ptr noundef %96)
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = load i64, ptr %10, align 8, !tbaa !9
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl11minqpsetlc2EPNS_10minqpstateEPKNS_12sparsematrixEPKNS_9ae_vectorES7_lPNS_8ae_stateE(ptr noundef %97, ptr noundef %16, ptr noundef %14, ptr noundef %15, i64 noundef %98, ptr noundef %99)
  br label %100

100:                                              ; preds = %94, %75
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = call noundef i64 @_ZN11alglib_impl16qpxproblemgetmqcEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %101, ptr noundef %102)
  %104 = icmp sgt i64 %103, 0
  br i1 %104, label %105, label %131

105:                                              ; preds = %100
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = call noundef i64 @_ZN11alglib_impl16qpxproblemgetmqcEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %106, ptr noundef %107)
  store i64 %108, ptr %10, align 8, !tbaa !9
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %109

109:                                              ; preds = %127, %105
  %110 = load i64, ptr %8, align 8, !tbaa !9
  %111 = load i64, ptr %10, align 8, !tbaa !9
  %112 = sub nsw i64 %111, 1
  %113 = icmp sle i64 %110, %112
  br i1 %113, label %114, label %130

114:                                              ; preds = %109
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = load i64, ptr %8, align 8, !tbaa !9
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl17qpxproblemgetqc2iEPNS_10qpxproblemElPNS_12sparsematrixEPbPNS_9ae_vectorEPdS7_S4_PNS_8ae_stateE(ptr noundef %115, i64 noundef %116, ptr noundef %16, ptr noundef %17, ptr noundef %14, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %117)
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = load i8, ptr %17, align 1, !tbaa !11, !range !13, !noundef !14
  %120 = trunc i8 %119 to i1
  %121 = load double, ptr %11, align 8, !tbaa !15
  %122 = load double, ptr %12, align 8, !tbaa !15
  %123 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %124 = trunc i8 %123 to i1
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = call noundef i64 @_ZN11alglib_impl11minqpaddqc2EPNS_10minqpstateEPKNS_12sparsematrixEbPKNS_9ae_vectorEddbPNS_8ae_stateE(ptr noundef %118, ptr noundef %16, i1 noundef zeroext %120, ptr noundef %14, double noundef %121, double noundef %122, i1 noundef zeroext %124, ptr noundef %125)
  br label %127

127:                                              ; preds = %114
  %128 = load i64, ptr %8, align 8, !tbaa !9
  %129 = add nsw i64 %128, 1
  store i64 %129, ptr %8, align 8, !tbaa !9
  br label %109, !llvm.loop !17

130:                                              ; preds = %109
  br label %131

131:                                              ; preds = %130, %100
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = call noundef i64 @_ZN11alglib_impl16qpxproblemgetmccEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %132, ptr noundef %133)
  %135 = icmp eq i64 %134, 0
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %135, ptr noundef @.str.1110, ptr noundef %136)
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %137)
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #5
  ret void
}

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #2

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

declare void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl17_minqpstate_clearEPv(ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"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"

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::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 }

@.str.1108 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.1109 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.1110 = external hidden unnamed_addr constant [53 x i8], align 1

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: mustprogress 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) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN11alglib_impl14qpxproblemgetnEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN11alglib_impl16qpxproblemgetmlcEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN11alglib_impl16qpxproblemgetmqcEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN11alglib_impl16qpxproblemgetmccEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN11alglib_impl29qpxproblemgettotalconstraintsEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl17qpxproblemgetqc2iEPNS_10qpxproblemElPNS_12sparsematrixEPbPNS_9ae_vectorEPdS7_S4_PNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl27minqpsetquadratictermsparseEPNS_10minqpstateEPKNS_12sparsematrixEbPNS_8ae_stateE(ptr noundef, ptr noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #4

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl11minqpsetlc2EPNS_10minqpstateEPKNS_12sparsematrixEPKNS_9ae_vectorES7_lPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN11alglib_impl11minqpaddqc2EPNS_10minqpstateEPKNS_12sparsematrixEbPKNS_9ae_vectorEddbPNS_8ae_stateE(ptr noundef, ptr noundef, i1 noundef zeroext, ptr noundef, double noundef, double noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl11minqpimportEPNS_10qpxproblemEPNS_10minqpstateEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #4 {
  %4 = alloca %"struct.alglib_impl::ae_frame", align 8
  %5 = alloca i64, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca i8, align 1
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %12 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %2, ptr noundef nonnull %4)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %11, i8 0, i64 368, i1 false)
  call void @_ZN11alglib_impl17_minqpstate_clearEPv(ptr noundef %1)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %2, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 3, ptr noundef %2, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %11, ptr noundef %2, i1 noundef zeroext true)
  %13 = call noundef zeroext i1 @_ZN11alglib_impl30qpxproblemisquadraticobjectiveEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %0, ptr noundef %2)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.1108, ptr noundef %2)
  %14 = call noundef i64 @_ZN11alglib_impl29qpxproblemgettotalconstraintsEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %0, ptr noundef %2)
  %15 = call noundef i64 @_ZN11alglib_impl16qpxproblemgetmlcEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %0, ptr noundef %2)
  %16 = call noundef i64 @_ZN11alglib_impl16qpxproblemgetmqcEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %0, ptr noundef %2)
  %17 = add nsw i64 %16, %15
  %18 = call noundef i64 @_ZN11alglib_impl16qpxproblemgetmccEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %0, ptr noundef %2)
  %19 = add nsw i64 %17, %18
  %20 = icmp eq i64 %14, %19
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef nonnull @.str.1109, ptr noundef %2)
  %21 = call noundef i64 @_ZN11alglib_impl14qpxproblemgetnEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %0, ptr noundef %2)
  call void @_ZN11alglib_impl11minqpcreateElPNS_10minqpstateEPNS_8ae_stateE(i64 noundef %21, ptr noundef %1, ptr noundef %2)
  %22 = call noundef zeroext i1 @_ZN11alglib_impl25qpxproblemhasinitialpointEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %0, ptr noundef %2)
  br i1 %22, label %23, label %24

23:                                               ; preds = %3
  call void @_ZN11alglib_impl25qpxproblemgetinitialpointEPNS_10qpxproblemEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %9, ptr noundef %2)
  call void @_ZN11alglib_impl21minqpsetstartingpointEPNS_10minqpstateEPKNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %1, ptr noundef nonnull %9, ptr noundef %2)
  br label %24

24:                                               ; preds = %23, %3
  %25 = call noundef zeroext i1 @_ZN11alglib_impl18qpxproblemhasscaleEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %0, ptr noundef %2)
  br i1 %25, label %26, label %27

26:                                               ; preds = %24
  call void @_ZN11alglib_impl18qpxproblemgetscaleEPNS_10qpxproblemEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %9, ptr noundef %2)
  call void @_ZN11alglib_impl13minqpsetscaleEPNS_10minqpstateEPKNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %1, ptr noundef nonnull %9, ptr noundef %2)
  br label %27

27:                                               ; preds = %26, %24
  %28 = call noundef zeroext i1 @_ZN11alglib_impl19qpxproblemhasoriginEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %0, ptr noundef %2)
  br i1 %28, label %29, label %30

29:                                               ; preds = %27
  call void @_ZN11alglib_impl19qpxproblemgetoriginEPNS_10qpxproblemEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %9, ptr noundef %2)
  call void @_ZN11alglib_impl14minqpsetoriginEPNS_10minqpstateEPKNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %1, ptr noundef nonnull %9, ptr noundef %2)
  br label %30

30:                                               ; preds = %29, %27
  call void @_ZN11alglib_impl23qpxproblemgetlineartermEPNS_10qpxproblemEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %9, ptr noundef %2)
  call void @_ZN11alglib_impl18minqpsetlineartermEPNS_10minqpstateEPKNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %1, ptr noundef nonnull %9, ptr noundef %2)
  call void @_ZN11alglib_impl26qpxproblemgetquadratictermEPNS_10qpxproblemEPNS_12sparsematrixEPbPNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %2)
  %31 = load i8, ptr %12, align 1, !tbaa !5, !range !9, !noundef !10
  %32 = trunc nuw i8 %31 to i1
  call void @_ZN11alglib_impl27minqpsetquadratictermsparseEPNS_10minqpstateEPKNS_12sparsematrixEbPNS_8ae_stateE(ptr noundef %1, ptr noundef nonnull %11, i1 noundef zeroext %32, ptr noundef %2)
  call void @_ZN11alglib_impl15qpxproblemgetbcEPNS_10qpxproblemEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %2)
  call void @_ZN11alglib_impl10minqpsetbcEPNS_10minqpstateEPKNS_9ae_vectorES4_PNS_8ae_stateE(ptr noundef %1, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %2)
  %33 = call noundef i64 @_ZN11alglib_impl16qpxproblemgetmlcEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %0, ptr noundef %2)
  %34 = icmp sgt i64 %33, 0
  br i1 %34, label %35, label %37

35:                                               ; preds = %30
  call void @_ZN11alglib_impl16qpxproblemgetlc2EPNS_10qpxproblemEPNS_12sparsematrixEPNS_9ae_vectorES5_PlPNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %11, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %5, ptr noundef %2)
  %36 = load i64, ptr %5, align 8, !tbaa !11
  call void @_ZN11alglib_impl11minqpsetlc2EPNS_10minqpstateEPKNS_12sparsematrixEPKNS_9ae_vectorES7_lPNS_8ae_stateE(ptr noundef %1, ptr noundef nonnull %11, ptr noundef nonnull %9, ptr noundef nonnull %10, i64 noundef %36, ptr noundef %2)
  br label %37

37:                                               ; preds = %35, %30
  %38 = call noundef i64 @_ZN11alglib_impl16qpxproblemgetmqcEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %0, ptr noundef %2)
  %39 = icmp sgt i64 %38, 0
  br i1 %39, label %40, label %.loopexit

40:                                               ; preds = %37
  %41 = call noundef i64 @_ZN11alglib_impl16qpxproblemgetmqcEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %0, ptr noundef %2)
  store i64 %41, ptr %5, align 8, !tbaa !11
  %.not.not72 = icmp sgt i64 %41, 0
  br i1 %.not.not72, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %40, %.lr.ph
  %.073 = phi i64 [ %49, %.lr.ph ], [ 0, %40 ]
  call void @_ZN11alglib_impl17qpxproblemgetqc2iEPNS_10qpxproblemElPNS_12sparsematrixEPbPNS_9ae_vectorEPdS7_S4_PNS_8ae_stateE(ptr noundef %0, i64 noundef %.073, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %9, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef %2)
  %42 = load i8, ptr %12, align 1, !tbaa !5, !range !9, !noundef !10
  %43 = trunc nuw i8 %42 to i1
  %44 = load double, ptr %6, align 8, !tbaa !13
  %45 = load double, ptr %7, align 8, !tbaa !13
  %46 = load i8, ptr %8, align 1, !tbaa !5, !range !9, !noundef !10
  %47 = trunc nuw i8 %46 to i1
  %48 = call noundef i64 @_ZN11alglib_impl11minqpaddqc2EPNS_10minqpstateEPKNS_12sparsematrixEbPKNS_9ae_vectorEddbPNS_8ae_stateE(ptr noundef %1, ptr noundef nonnull %11, i1 noundef zeroext %43, ptr noundef nonnull %9, double noundef %44, double noundef %45, i1 noundef zeroext %47, ptr noundef %2)
  %49 = add nuw nsw i64 %.073, 1
  %50 = load i64, ptr %5, align 8, !tbaa !11
  %.not.not = icmp slt i64 %49, %50
  br i1 %.not.not, label %.lr.ph, label %.loopexit, !llvm.loop !15

.loopexit:                                        ; preds = %.lr.ph, %40, %37
  %51 = call noundef i64 @_ZN11alglib_impl16qpxproblemgetmccEPNS_10qpxproblemEPNS_8ae_stateE(ptr noundef %0, ptr noundef %2)
  %52 = icmp eq i64 %51, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %52, ptr noundef nonnull @.str.1110, ptr noundef %2)
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %2)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  ret void
}

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass