; 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_smart_ptr" = type { ptr, ptr, i8, i8, i64, ptr, ptr, %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::qpxproblem" = type { i64, i8, double, i8, %"struct.alglib_impl::ae_vector", i8, %"struct.alglib_impl::ae_vector", i8, %"struct.alglib_impl::ae_vector", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, %"struct.alglib_impl::sparsematrix", i8, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::xquadraticconstraints", i64, %"struct.alglib_impl::sparsematrix" }
%"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::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::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::xquadraticconstraint" = type { i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsematrix", double, double, i8 }

@.str.983 = external hidden unnamed_addr constant [51 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 uwtable
define dso_local void @_ZN11alglib_impl17qpxproblemgetqc2iEPNS_10qpxproblemElPNS_12sparsematrixEPbPNS_9ae_vectorEPdS7_S4_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #3 {
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"struct.alglib_impl::ae_frame", align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"struct.alglib_impl::ae_smart_ptr", align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca double, align 8
  %28 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store i64 %1, ptr %11, align 8, !tbaa !9
  store ptr %2, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %29 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %29, ptr noundef %19)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 80, i1 false)
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl19_sparsematrix_clearEPv(ptr noundef %30)
  %31 = load ptr, ptr %13, align 8, !tbaa !5
  store i8 0, ptr %31, align 1, !tbaa !11
  %32 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %32)
  %33 = load ptr, ptr %15, align 8, !tbaa !5
  store double 0.000000e+00, ptr %33, align 8, !tbaa !13
  %34 = load ptr, ptr %16, align 8, !tbaa !5
  store double 0.000000e+00, ptr %34, align 8, !tbaa !13
  %35 = load ptr, ptr %17, align 8, !tbaa !5
  store i8 0, ptr %35, align 1, !tbaa !11
  %36 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl17ae_smart_ptr_initEPNS_12ae_smart_ptrEPPvPNS_8ae_stateEb(ptr noundef %21, ptr noundef %20, ptr noundef %36, i1 noundef zeroext true)
  %37 = load i64, ptr %11, align 8, !tbaa !9
  %38 = icmp sge i64 %37, 0
  br i1 %38, label %39, label %45

39:                                               ; preds = %9
  %40 = load i64, ptr %11, align 8, !tbaa !9
  %41 = load ptr, ptr %10, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.alglib_impl::qpxproblem", ptr %41, i32 0, i32 21
  %43 = load i64, ptr %42, align 8, !tbaa !15
  %44 = icmp slt i64 %40, %43
  br label %45

45:                                               ; preds = %39, %9
  %46 = phi i1 [ false, %9 ], [ %44, %39 ]
  %47 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %46, ptr noundef @.str.983, ptr noundef %47)
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.alglib_impl::qpxproblem", ptr %48, i32 0, i32 22
  %50 = getelementptr inbounds %"struct.alglib_impl::xquadraticconstraints", ptr %49, i32 0, i32 1
  %51 = load i64, ptr %11, align 8, !tbaa !9
  %52 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl16ae_obj_array_getEPNS_12ae_obj_arrayElPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef %50, i64 noundef %51, ptr noundef %21, ptr noundef %52)
  %53 = load ptr, ptr %20, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.alglib_impl::xquadraticconstraint", ptr %53, i32 0, i32 0
  %55 = load i64, ptr %54, align 8, !tbaa !23
  %56 = icmp eq i64 %55, 0
  br i1 %56, label %57, label %112

57:                                               ; preds = %45
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %58, i32 0, i32 5
  store i64 1, ptr %59, align 8, !tbaa !25
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::qpxproblem", ptr %60, i32 0, i32 0
  %62 = load i64, ptr %61, align 8, !tbaa !26
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %63, i32 0, i32 6
  store i64 %62, ptr %64, align 8, !tbaa !27
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::qpxproblem", ptr %65, i32 0, i32 0
  %67 = load i64, ptr %66, align 8, !tbaa !26
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %68, i32 0, i32 7
  store i64 %67, ptr %69, align 8, !tbaa !28
  %70 = load ptr, ptr %12, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %70, i32 0, i32 9
  store i64 0, ptr %71, align 8, !tbaa !29
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.alglib_impl::qpxproblem", ptr %72, i32 0, i32 0
  %74 = load i64, ptr %73, align 8, !tbaa !26
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %75, i32 0, i32 3
  %77 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl10isetallocvEllPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %74, i64 noundef 0, ptr noundef %76, ptr noundef %77)
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.alglib_impl::qpxproblem", ptr %78, i32 0, i32 0
  %80 = load i64, ptr %79, align 8, !tbaa !26
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %81, i32 0, i32 4
  %83 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl10isetallocvEllPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %80, i64 noundef 0, ptr noundef %82, ptr noundef %83)
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.alglib_impl::qpxproblem", ptr %84, i32 0, i32 0
  %86 = load i64, ptr %85, align 8, !tbaa !26
  %87 = add nsw i64 %86, 1
  %88 = load ptr, ptr %12, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %88, i32 0, i32 2
  %90 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl10isetallocvEllPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %87, i64 noundef 0, ptr noundef %89, ptr noundef %90)
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  store i8 0, ptr %91, align 1, !tbaa !11
  %92 = load ptr, ptr %10, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.alglib_impl::qpxproblem", ptr %92, i32 0, i32 0
  %94 = load i64, ptr %93, align 8, !tbaa !26
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  %96 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %94, double noundef 0.000000e+00, ptr noundef %95, ptr noundef %96)
  %97 = load ptr, ptr %20, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.alglib_impl::xquadraticconstraint", ptr %97, i32 0, i32 4
  %99 = load double, ptr %98, align 8, !tbaa !30
  %100 = load ptr, ptr %15, align 8, !tbaa !5
  store double %99, ptr %100, align 8, !tbaa !13
  %101 = load ptr, ptr %20, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.alglib_impl::xquadraticconstraint", ptr %101, i32 0, i32 5
  %103 = load double, ptr %102, align 8, !tbaa !31
  %104 = load ptr, ptr %16, align 8, !tbaa !5
  store double %103, ptr %104, align 8, !tbaa !13
  %105 = load ptr, ptr %20, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.alglib_impl::xquadraticconstraint", ptr %105, i32 0, i32 6
  %107 = load i8, ptr %106, align 8, !tbaa !32, !range !33, !noundef !34
  %108 = trunc i8 %107 to i1
  %109 = load ptr, ptr %17, align 8, !tbaa !5
  %110 = zext i1 %108 to i8
  store i8 %110, ptr %109, align 1, !tbaa !11
  %111 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %111)
  store i32 1, ptr %28, align 4
  br label %257

112:                                              ; preds = %45
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.alglib_impl::qpxproblem", ptr %113, i32 0, i32 0
  %115 = load i64, ptr %114, align 8, !tbaa !26
  %116 = load ptr, ptr %10, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.alglib_impl::qpxproblem", ptr %116, i32 0, i32 0
  %118 = load i64, ptr %117, align 8, !tbaa !26
  %119 = load ptr, ptr %20, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.alglib_impl::xquadraticconstraint", ptr %119, i32 0, i32 3
  %121 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %120, i32 0, i32 2
  %122 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %121, i32 0, i32 4
  %123 = load ptr, ptr %122, align 8, !tbaa !35
  %124 = load ptr, ptr %20, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.alglib_impl::xquadraticconstraint", ptr %124, i32 0, i32 0
  %126 = load i64, ptr %125, align 8, !tbaa !23
  %127 = getelementptr inbounds i64, ptr %123, i64 %126
  %128 = load i64, ptr %127, align 8, !tbaa !9
  %129 = load ptr, ptr %12, align 8, !tbaa !5
  %130 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl15sparsecreatebufElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %115, i64 noundef %118, i64 noundef %128, ptr noundef %129, ptr noundef %130)
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %131

131:                                              ; preds = %200, %112
  %132 = load i64, ptr %22, align 8, !tbaa !9
  %133 = load ptr, ptr %20, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.alglib_impl::xquadraticconstraint", ptr %133, i32 0, i32 0
  %135 = load i64, ptr %134, align 8, !tbaa !23
  %136 = sub nsw i64 %135, 1
  %137 = icmp sle i64 %132, %136
  br i1 %137, label %138, label %203

138:                                              ; preds = %131
  %139 = load ptr, ptr %20, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.alglib_impl::xquadraticconstraint", ptr %139, i32 0, i32 3
  %141 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %140, i32 0, i32 2
  %142 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %141, i32 0, i32 4
  %143 = load ptr, ptr %142, align 8, !tbaa !35
  %144 = load i64, ptr %22, align 8, !tbaa !9
  %145 = getelementptr inbounds i64, ptr %143, i64 %144
  %146 = load i64, ptr %145, align 8, !tbaa !9
  store i64 %146, ptr %23, align 8, !tbaa !9
  %147 = load ptr, ptr %20, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.alglib_impl::xquadraticconstraint", ptr %147, i32 0, i32 3
  %149 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %148, i32 0, i32 2
  %150 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %149, i32 0, i32 4
  %151 = load ptr, ptr %150, align 8, !tbaa !35
  %152 = load i64, ptr %22, align 8, !tbaa !9
  %153 = add nsw i64 %152, 1
  %154 = getelementptr inbounds i64, ptr %151, i64 %153
  %155 = load i64, ptr %154, align 8, !tbaa !9
  %156 = sub nsw i64 %155, 1
  store i64 %156, ptr %24, align 8, !tbaa !9
  %157 = load i64, ptr %23, align 8, !tbaa !9
  store i64 %157, ptr %25, align 8, !tbaa !9
  br label %158

158:                                              ; preds = %196, %138
  %159 = load i64, ptr %25, align 8, !tbaa !9
  %160 = load i64, ptr %24, align 8, !tbaa !9
  %161 = icmp sle i64 %159, %160
  br i1 %161, label %162, label %199

162:                                              ; preds = %158
  %163 = load ptr, ptr %20, align 8, !tbaa !5
  %164 = getelementptr inbounds %"struct.alglib_impl::xquadraticconstraint", ptr %163, i32 0, i32 3
  %165 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %164, i32 0, i32 1
  %166 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %165, i32 0, i32 4
  %167 = load ptr, ptr %166, align 8, !tbaa !35
  %168 = load i64, ptr %25, align 8, !tbaa !9
  %169 = getelementptr inbounds i64, ptr %167, i64 %168
  %170 = load i64, ptr %169, align 8, !tbaa !9
  store i64 %170, ptr %26, align 8, !tbaa !9
  %171 = load ptr, ptr %20, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.alglib_impl::xquadraticconstraint", ptr %171, i32 0, i32 3
  %173 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %172, i32 0, i32 0
  %174 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %173, i32 0, i32 4
  %175 = load ptr, ptr %174, align 8, !tbaa !35
  %176 = load i64, ptr %25, align 8, !tbaa !9
  %177 = getelementptr inbounds double, ptr %175, i64 %176
  %178 = load double, ptr %177, align 8, !tbaa !13
  store double %178, ptr %27, align 8, !tbaa !13
  %179 = load ptr, ptr %12, align 8, !tbaa !5
  %180 = load ptr, ptr %20, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.alglib_impl::xquadraticconstraint", ptr %180, i32 0, i32 1
  %182 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %181, i32 0, i32 4
  %183 = load ptr, ptr %182, align 8, !tbaa !35
  %184 = load i64, ptr %22, align 8, !tbaa !9
  %185 = getelementptr inbounds i64, ptr %183, i64 %184
  %186 = load i64, ptr %185, align 8, !tbaa !9
  %187 = load ptr, ptr %20, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.alglib_impl::xquadraticconstraint", ptr %187, i32 0, i32 1
  %189 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %188, i32 0, i32 4
  %190 = load ptr, ptr %189, align 8, !tbaa !35
  %191 = load i64, ptr %26, align 8, !tbaa !9
  %192 = getelementptr inbounds i64, ptr %190, i64 %191
  %193 = load i64, ptr %192, align 8, !tbaa !9
  %194 = load double, ptr %27, align 8, !tbaa !13
  %195 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %179, i64 noundef %186, i64 noundef %193, double noundef %194, ptr noundef %195)
  br label %196

196:                                              ; preds = %162
  %197 = load i64, ptr %25, align 8, !tbaa !9
  %198 = add nsw i64 %197, 1
  store i64 %198, ptr %25, align 8, !tbaa !9
  br label %158, !llvm.loop !36

199:                                              ; preds = %158
  br label %200

200:                                              ; preds = %199
  %201 = load i64, ptr %22, align 8, !tbaa !9
  %202 = add nsw i64 %201, 1
  store i64 %202, ptr %22, align 8, !tbaa !9
  br label %131, !llvm.loop !38

203:                                              ; preds = %131
  %204 = load ptr, ptr %12, align 8, !tbaa !5
  %205 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %204, ptr noundef %205)
  %206 = load ptr, ptr %13, align 8, !tbaa !5
  store i8 0, ptr %206, align 1, !tbaa !11
  %207 = load ptr, ptr %10, align 8, !tbaa !5
  %208 = getelementptr inbounds %"struct.alglib_impl::qpxproblem", ptr %207, i32 0, i32 0
  %209 = load i64, ptr %208, align 8, !tbaa !26
  %210 = load ptr, ptr %14, align 8, !tbaa !5
  %211 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %209, double noundef 0.000000e+00, ptr noundef %210, ptr noundef %211)
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %212

212:                                              ; preds = %238, %203
  %213 = load i64, ptr %22, align 8, !tbaa !9
  %214 = load ptr, ptr %20, align 8, !tbaa !5
  %215 = getelementptr inbounds %"struct.alglib_impl::xquadraticconstraint", ptr %214, i32 0, i32 0
  %216 = load i64, ptr %215, align 8, !tbaa !23
  %217 = sub nsw i64 %216, 1
  %218 = icmp sle i64 %213, %217
  br i1 %218, label %219, label %241

219:                                              ; preds = %212
  %220 = load ptr, ptr %20, align 8, !tbaa !5
  %221 = getelementptr inbounds %"struct.alglib_impl::xquadraticconstraint", ptr %220, i32 0, i32 2
  %222 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %221, i32 0, i32 4
  %223 = load ptr, ptr %222, align 8, !tbaa !35
  %224 = load i64, ptr %22, align 8, !tbaa !9
  %225 = getelementptr inbounds double, ptr %223, i64 %224
  %226 = load double, ptr %225, align 8, !tbaa !13
  %227 = load ptr, ptr %14, align 8, !tbaa !5
  %228 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %227, i32 0, i32 4
  %229 = load ptr, ptr %228, align 8, !tbaa !35
  %230 = load ptr, ptr %20, align 8, !tbaa !5
  %231 = getelementptr inbounds %"struct.alglib_impl::xquadraticconstraint", ptr %230, i32 0, i32 1
  %232 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %231, i32 0, i32 4
  %233 = load ptr, ptr %232, align 8, !tbaa !35
  %234 = load i64, ptr %22, align 8, !tbaa !9
  %235 = getelementptr inbounds i64, ptr %233, i64 %234
  %236 = load i64, ptr %235, align 8, !tbaa !9
  %237 = getelementptr inbounds double, ptr %229, i64 %236
  store double %226, ptr %237, align 8, !tbaa !13
  br label %238

238:                                              ; preds = %219
  %239 = load i64, ptr %22, align 8, !tbaa !9
  %240 = add nsw i64 %239, 1
  store i64 %240, ptr %22, align 8, !tbaa !9
  br label %212, !llvm.loop !39

241:                                              ; preds = %212
  %242 = load ptr, ptr %20, align 8, !tbaa !5
  %243 = getelementptr inbounds %"struct.alglib_impl::xquadraticconstraint", ptr %242, i32 0, i32 4
  %244 = load double, ptr %243, align 8, !tbaa !30
  %245 = load ptr, ptr %15, align 8, !tbaa !5
  store double %244, ptr %245, align 8, !tbaa !13
  %246 = load ptr, ptr %20, align 8, !tbaa !5
  %247 = getelementptr inbounds %"struct.alglib_impl::xquadraticconstraint", ptr %246, i32 0, i32 5
  %248 = load double, ptr %247, align 8, !tbaa !31
  %249 = load ptr, ptr %16, align 8, !tbaa !5
  store double %248, ptr %249, align 8, !tbaa !13
  %250 = load ptr, ptr %20, align 8, !tbaa !5
  %251 = getelementptr inbounds %"struct.alglib_impl::xquadraticconstraint", ptr %250, i32 0, i32 6
  %252 = load i8, ptr %251, align 8, !tbaa !32, !range !33, !noundef !34
  %253 = trunc i8 %252 to i1
  %254 = load ptr, ptr %17, align 8, !tbaa !5
  %255 = zext i1 %253 to i8
  store i8 %255, ptr %254, align 1, !tbaa !11
  %256 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %256)
  store i32 0, ptr %28, align 4
  br label %257

257:                                              ; preds = %241, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #4
  %258 = load i32, ptr %28, align 4
  switch i32 %258, label %260 [
    i32 0, label %259
    i32 1, label %259
  ]

259:                                              ; preds = %257, %257
  ret void

260:                                              ; preds = %257
  unreachable
}

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #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_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef) #2

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

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

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

declare void @_ZN11alglib_impl19_sparsematrix_clearEPv(ptr noundef) #2

declare void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef) #2

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

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

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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !10, i64 1392}
!16 = !{!"_ZTSN11alglib_impl10qpxproblemE", !10, i64 0, !12, i64 8, !14, i64 16, !12, i64 24, !17, i64 32, !12, i64 96, !17, i64 104, !12, i64 168, !17, i64 176, !12, i64 240, !17, i64 248, !17, i64 312, !12, i64 376, !19, i64 384, !12, i64 752, !17, i64 760, !17, i64 824, !10, i64 888, !19, i64 896, !17, i64 1264, !17, i64 1328, !10, i64 1392, !20, i64 1400, !10, i64 1608, !19, i64 1616}
!17 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !12, i64 16, !18, i64 24, !7, i64 56}
!18 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!19 = !{!"_ZTSN11alglib_impl12sparsematrixE", !17, i64 0, !17, i64 64, !17, i64 128, !17, i64 192, !17, i64 256, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360}
!20 = !{!"_ZTSN11alglib_impl21xquadraticconstraintsE", !10, i64 0, !21, i64 8, !17, i64 144}
!21 = !{!"_ZTSN11alglib_impl12ae_obj_arrayE", !10, i64 0, !10, i64 8, !12, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !22, i64 56, !18, i64 104}
!22 = !{!"_ZTSN11alglib_impl7ae_lockE", !6, i64 0, !18, i64 8, !12, i64 40}
!23 = !{!24, !10, i64 0}
!24 = !{!"_ZTSN11alglib_impl20xquadraticconstraintE", !10, i64 0, !17, i64 8, !17, i64 72, !19, i64 136, !14, i64 504, !14, i64 512, !12, i64 520}
!25 = !{!19, !10, i64 320}
!26 = !{!16, !10, i64 0}
!27 = !{!19, !10, i64 328}
!28 = !{!19, !10, i64 336}
!29 = !{!19, !10, i64 352}
!30 = !{!24, !14, i64 504}
!31 = !{!24, !14, i64 512}
!32 = !{!24, !12, i64 520}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!7, !7, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !37}
!39 = distinct !{!39, !37}


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

@.str.983 = external hidden unnamed_addr constant [51 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 uwtable
define dso_local void @_ZN11alglib_impl17qpxproblemgetqc2iEPNS_10qpxproblemElPNS_12sparsematrixEPbPNS_9ae_vectorEPdS7_S4_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr nocapture noundef writeonly %3, ptr noundef %4, ptr nocapture noundef writeonly %5, ptr nocapture noundef writeonly %6, ptr nocapture noundef writeonly %7, ptr noundef %8) local_unnamed_addr #3 {
  %10 = alloca %"struct.alglib_impl::ae_frame", align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.alglib_impl::ae_smart_ptr", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %8, ptr noundef nonnull %10)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %12, i8 0, i64 80, i1 false)
  call void @_ZN11alglib_impl19_sparsematrix_clearEPv(ptr noundef %2)
  store i8 0, ptr %3, align 1, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %4)
  store double 0.000000e+00, ptr %5, align 8, !tbaa !9
  store double 0.000000e+00, ptr %6, align 8, !tbaa !9
  store i8 0, ptr %7, align 1, !tbaa !5
  call void @_ZN11alglib_impl17ae_smart_ptr_initEPNS_12ae_smart_ptrEPPvPNS_8ae_stateEb(ptr noundef nonnull %12, ptr noundef nonnull %11, ptr noundef %8, i1 noundef zeroext true)
  %13 = icmp sgt i64 %1, -1
  br i1 %13, label %14, label %18

14:                                               ; preds = %9
  %15 = getelementptr inbounds i8, ptr %0, i64 1392
  %16 = load i64, ptr %15, align 8, !tbaa !11
  %17 = icmp sgt i64 %16, %1
  br label %18

18:                                               ; preds = %14, %9
  %19 = phi i1 [ false, %9 ], [ %17, %14 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.983, ptr noundef %8)
  %20 = getelementptr inbounds i8, ptr %0, i64 1408
  call void @_ZN11alglib_impl16ae_obj_array_getEPNS_12ae_obj_arrayElPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef nonnull %20, i64 noundef %1, ptr noundef nonnull %12, ptr noundef %8)
  %21 = load ptr, ptr %11, align 8, !tbaa !21
  %22 = load i64, ptr %21, align 8, !tbaa !22
  %23 = icmp eq i64 %22, 0
  br i1 %23, label %24, label %38

24:                                               ; preds = %18
  %25 = getelementptr inbounds i8, ptr %2, i64 320
  store i64 1, ptr %25, align 8, !tbaa !24
  %26 = load i64, ptr %0, align 8, !tbaa !25
  %27 = getelementptr inbounds i8, ptr %2, i64 328
  store i64 %26, ptr %27, align 8, !tbaa !26
  %28 = getelementptr inbounds i8, ptr %2, i64 336
  store i64 %26, ptr %28, align 8, !tbaa !27
  %29 = getelementptr inbounds i8, ptr %2, i64 352
  store i64 0, ptr %29, align 8, !tbaa !28
  %30 = getelementptr inbounds i8, ptr %2, i64 192
  call void @_ZN11alglib_impl10isetallocvEllPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %26, i64 noundef 0, ptr noundef nonnull %30, ptr noundef %8)
  %31 = load i64, ptr %0, align 8, !tbaa !25
  %32 = getelementptr inbounds i8, ptr %2, i64 256
  call void @_ZN11alglib_impl10isetallocvEllPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %31, i64 noundef 0, ptr noundef nonnull %32, ptr noundef %8)
  %33 = load i64, ptr %0, align 8, !tbaa !25
  %34 = add nsw i64 %33, 1
  %35 = getelementptr inbounds i8, ptr %2, i64 128
  call void @_ZN11alglib_impl10isetallocvEllPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %34, i64 noundef 0, ptr noundef nonnull %35, ptr noundef %8)
  store i8 0, ptr %3, align 1, !tbaa !5
  %36 = load i64, ptr %0, align 8, !tbaa !25
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %36, double noundef 0.000000e+00, ptr noundef %4, ptr noundef %8)
  %37 = load ptr, ptr %11, align 8, !tbaa !21
  br label %._crit_edge85

38:                                               ; preds = %18
  %39 = load i64, ptr %0, align 8, !tbaa !25
  %40 = getelementptr inbounds i8, ptr %21, i64 320
  %41 = load ptr, ptr %40, align 8, !tbaa !29
  %42 = getelementptr inbounds i64, ptr %41, i64 %22
  %43 = load i64, ptr %42, align 8, !tbaa !30
  call void @_ZN11alglib_impl15sparsecreatebufElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %39, i64 noundef %39, i64 noundef %43, ptr noundef %2, ptr noundef %8)
  %44 = load ptr, ptr %11, align 8, !tbaa !21
  %45 = load i64, ptr %44, align 8, !tbaa !22
  %.not.not78 = icmp sgt i64 %45, 0
  br i1 %.not.not78, label %.lr.ph80, label %._crit_edge

.loopexit.loopexit:                               ; preds = %.lr.ph
  %.pre = load ptr, ptr %11, align 8, !tbaa !21
  %.pre87 = load i64, ptr %.pre, align 8, !tbaa !22
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %.lr.ph80
  %46 = phi i64 [ %.pre87, %.loopexit.loopexit ], [ %48, %.lr.ph80 ]
  %47 = phi ptr [ %.pre, %.loopexit.loopexit ], [ %49, %.lr.ph80 ]
  %.not.not = icmp slt i64 %54, %46
  br i1 %.not.not, label %.lr.ph80, label %._crit_edge, !llvm.loop !31

.lr.ph80:                                         ; preds = %38, %.loopexit
  %48 = phi i64 [ %46, %.loopexit ], [ %45, %38 ]
  %49 = phi ptr [ %47, %.loopexit ], [ %44, %38 ]
  %.079 = phi i64 [ %54, %.loopexit ], [ 0, %38 ]
  %50 = getelementptr inbounds i8, ptr %49, i64 320
  %51 = load ptr, ptr %50, align 8, !tbaa !29
  %52 = getelementptr inbounds i64, ptr %51, i64 %.079
  %53 = load i64, ptr %52, align 8, !tbaa !30
  %54 = add nuw nsw i64 %.079, 1
  %55 = getelementptr inbounds i64, ptr %51, i64 %54
  %56 = load i64, ptr %55, align 8, !tbaa !30
  %.not.not7576 = icmp slt i64 %53, %56
  br i1 %.not.not7576, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.lr.ph80, %.lr.ph
  %.07177 = phi i64 [ %72, %.lr.ph ], [ %53, %.lr.ph80 ]
  %57 = load ptr, ptr %11, align 8, !tbaa !21
  %58 = getelementptr inbounds i8, ptr %57, i64 256
  %59 = load ptr, ptr %58, align 8, !tbaa !29
  %60 = getelementptr inbounds i64, ptr %59, i64 %.07177
  %61 = load i64, ptr %60, align 8, !tbaa !30
  %62 = getelementptr inbounds i8, ptr %57, i64 192
  %63 = load ptr, ptr %62, align 8, !tbaa !29
  %64 = getelementptr inbounds double, ptr %63, i64 %.07177
  %65 = load double, ptr %64, align 8, !tbaa !9
  %66 = getelementptr inbounds i8, ptr %57, i64 64
  %67 = load ptr, ptr %66, align 8, !tbaa !29
  %68 = getelementptr inbounds i64, ptr %67, i64 %.079
  %69 = load i64, ptr %68, align 8, !tbaa !30
  %70 = getelementptr inbounds i64, ptr %67, i64 %61
  %71 = load i64, ptr %70, align 8, !tbaa !30
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %2, i64 noundef %69, i64 noundef %71, double noundef %65, ptr noundef %8)
  %72 = add i64 %.07177, 1
  %exitcond.not = icmp eq i64 %72, %56
  br i1 %exitcond.not, label %.loopexit.loopexit, label %.lr.ph, !llvm.loop !33

._crit_edge:                                      ; preds = %.loopexit, %38
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %2, ptr noundef %8)
  store i8 0, ptr %3, align 1, !tbaa !5
  %73 = load i64, ptr %0, align 8, !tbaa !25
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %73, double noundef 0.000000e+00, ptr noundef %4, ptr noundef %8)
  %74 = load ptr, ptr %11, align 8, !tbaa !21
  %75 = load i64, ptr %74, align 8, !tbaa !22
  %.not.not7481 = icmp sgt i64 %75, 0
  br i1 %.not.not7481, label %.lr.ph84, label %._crit_edge85

.lr.ph84:                                         ; preds = %._crit_edge
  %76 = getelementptr inbounds i8, ptr %74, i64 128
  %77 = getelementptr inbounds i8, ptr %4, i64 56
  %78 = getelementptr inbounds i8, ptr %74, i64 64
  %xtraiter = and i64 %75, 1
  %79 = icmp eq i64 %75, 1
  br i1 %79, label %._crit_edge85.loopexit.unr-lcssa, label %.lr.ph84.new

.lr.ph84.new:                                     ; preds = %.lr.ph84
  %unroll_iter = and i64 %75, 9223372036854775806
  br label %80

80:                                               ; preds = %80, %.lr.ph84.new
  %.182 = phi i64 [ 0, %.lr.ph84.new ], [ %98, %80 ]
  %niter = phi i64 [ 0, %.lr.ph84.new ], [ %niter.next.1, %80 ]
  %81 = load ptr, ptr %76, align 8, !tbaa !29
  %82 = getelementptr inbounds double, ptr %81, i64 %.182
  %83 = load double, ptr %82, align 8, !tbaa !9
  %84 = load ptr, ptr %77, align 8, !tbaa !29
  %85 = load ptr, ptr %78, align 8, !tbaa !29
  %86 = getelementptr inbounds i64, ptr %85, i64 %.182
  %87 = load i64, ptr %86, align 8, !tbaa !30
  %88 = getelementptr inbounds double, ptr %84, i64 %87
  store double %83, ptr %88, align 8, !tbaa !9
  %89 = or disjoint i64 %.182, 1
  %90 = load ptr, ptr %76, align 8, !tbaa !29
  %91 = getelementptr inbounds double, ptr %90, i64 %89
  %92 = load double, ptr %91, align 8, !tbaa !9
  %93 = load ptr, ptr %77, align 8, !tbaa !29
  %94 = load ptr, ptr %78, align 8, !tbaa !29
  %95 = getelementptr inbounds i64, ptr %94, i64 %89
  %96 = load i64, ptr %95, align 8, !tbaa !30
  %97 = getelementptr inbounds double, ptr %93, i64 %96
  store double %92, ptr %97, align 8, !tbaa !9
  %98 = add nuw nsw i64 %.182, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge85.loopexit.unr-lcssa, label %80, !llvm.loop !34

._crit_edge85.loopexit.unr-lcssa:                 ; preds = %80, %.lr.ph84
  %.182.unr = phi i64 [ 0, %.lr.ph84 ], [ %98, %80 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge85, label %._crit_edge85.loopexit.epilog-lcssa

._crit_edge85.loopexit.epilog-lcssa:              ; preds = %._crit_edge85.loopexit.unr-lcssa
  %99 = load ptr, ptr %76, align 8, !tbaa !29
  %100 = getelementptr inbounds double, ptr %99, i64 %.182.unr
  %101 = load double, ptr %100, align 8, !tbaa !9
  %102 = load ptr, ptr %77, align 8, !tbaa !29
  %103 = load ptr, ptr %78, align 8, !tbaa !29
  %104 = getelementptr inbounds i64, ptr %103, i64 %.182.unr
  %105 = load i64, ptr %104, align 8, !tbaa !30
  %106 = getelementptr inbounds double, ptr %102, i64 %105
  store double %101, ptr %106, align 8, !tbaa !9
  br label %._crit_edge85

._crit_edge85:                                    ; preds = %._crit_edge85.loopexit.epilog-lcssa, %._crit_edge85.loopexit.unr-lcssa, %._crit_edge, %24
  %.sink94 = phi ptr [ %37, %24 ], [ %74, %._crit_edge ], [ %74, %._crit_edge85.loopexit.unr-lcssa ], [ %74, %._crit_edge85.loopexit.epilog-lcssa ]
  %107 = getelementptr inbounds i8, ptr %.sink94, i64 504
  %108 = load double, ptr %107, align 8, !tbaa !35
  store double %108, ptr %5, align 8, !tbaa !9
  %109 = getelementptr inbounds i8, ptr %.sink94, i64 512
  %110 = load double, ptr %109, align 8, !tbaa !36
  store double %110, ptr %6, align 8, !tbaa !9
  %111 = getelementptr inbounds i8, ptr %.sink94, i64 520
  %112 = load i8, ptr %111, align 8, !tbaa !37, !range !38, !noundef !39
  store i8 %112, ptr %7, align 1, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %8)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #4
  ret void
}

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) 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_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl10isetallocvEllPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare void @_ZN11alglib_impl16ae_obj_array_getEPNS_12ae_obj_arrayElPNS_12ae_smart_ptrEPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl19_sparsematrix_clearEPv(ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef) local_unnamed_addr #2

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

declare void @_ZN11alglib_impl15sparsecreatebufElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !13, i64 1392}
!12 = !{!"_ZTSN11alglib_impl10qpxproblemE", !13, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !14, i64 32, !6, i64 96, !14, i64 104, !6, i64 168, !14, i64 176, !6, i64 240, !14, i64 248, !14, i64 312, !6, i64 376, !17, i64 384, !6, i64 752, !14, i64 760, !14, i64 824, !13, i64 888, !17, i64 896, !14, i64 1264, !14, i64 1328, !13, i64 1392, !18, i64 1400, !13, i64 1608, !17, i64 1616}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_vectorE", !13, i64 0, !13, i64 8, !6, i64 16, !15, i64 24, !7, i64 56}
!15 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!"_ZTSN11alglib_impl12sparsematrixE", !14, i64 0, !14, i64 64, !14, i64 128, !14, i64 192, !14, i64 256, !13, i64 320, !13, i64 328, !13, i64 336, !13, i64 344, !13, i64 352, !13, i64 360}
!18 = !{!"_ZTSN11alglib_impl21xquadraticconstraintsE", !13, i64 0, !19, i64 8, !14, i64 144}
!19 = !{!"_ZTSN11alglib_impl12ae_obj_arrayE", !13, i64 0, !13, i64 8, !6, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !20, i64 56, !15, i64 104}
!20 = !{!"_ZTSN11alglib_impl7ae_lockE", !16, i64 0, !15, i64 8, !6, i64 40}
!21 = !{!16, !16, i64 0}
!22 = !{!23, !13, i64 0}
!23 = !{!"_ZTSN11alglib_impl20xquadraticconstraintE", !13, i64 0, !14, i64 8, !14, i64 72, !17, i64 136, !10, i64 504, !10, i64 512, !6, i64 520}
!24 = !{!17, !13, i64 320}
!25 = !{!12, !13, i64 0}
!26 = !{!17, !13, i64 328}
!27 = !{!17, !13, i64 336}
!28 = !{!17, !13, i64 352}
!29 = !{!7, !7, i64 0}
!30 = !{!13, !13, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}
!34 = distinct !{!34, !32}
!35 = !{!23, !10, i64 504}
!36 = !{!23, !10, i64 512}
!37 = !{!23, !6, i64 520}
!38 = !{i8 0, i8 2}
!39 = !{}


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