; 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::xlinearconstraints" = type { i64, i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, %"struct.alglib_impl::ae_matrix", %"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::sparsematrix" }
%"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::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_state" = type { i64, double, double, double, ptr, %"struct.alglib_impl::ae_dyn_block", ptr, i32, ptr, i64, ptr, ptr, ptr }

@.str.371 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.372 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.373 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.374 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.375 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.376 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.377 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.378 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.379 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.380 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.381 = 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 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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, 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_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #2

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

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

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

declare noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #2

declare noundef i64 @_ZN11alglib_impl14sparsegetncolsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13xlcsetlcmixedEPNS_18xlinearconstraintsEPKNS_12sparsematrixEPKNS_9ae_vectorElPKNS_9ae_matrixES7_lPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5, i64 noundef %6, ptr noundef %7) #3 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.alglib_impl::ae_frame", align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca double, align 8
  %23 = alloca %"struct.alglib_impl::ae_vector", align 8
  %24 = alloca %"struct.alglib_impl::ae_vector", align 8
  %25 = alloca %"struct.alglib_impl::ae_vector", align 8
  %26 = alloca %"struct.alglib_impl::ae_vector", align 8
  %27 = alloca %"struct.alglib_impl::ae_vector", align 8
  %28 = alloca %"struct.alglib_impl::ae_vector", align 8
  %29 = alloca %"struct.alglib_impl::ae_vector", align 8
  %30 = alloca %"struct.alglib_impl::ae_vector", align 8
  %31 = alloca %"struct.alglib_impl::ae_vector", align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = 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 i64 %3, ptr %12, align 8, !tbaa !9
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store i64 %6, ptr %15, align 8, !tbaa !9
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #4
  %35 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %35, ptr noundef %17)
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %24, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %25, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %26, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %27, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %28, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %29, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %30, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %31, i8 0, i64 64, i1 false)
  %36 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %23, i64 noundef 0, i64 noundef 2, ptr noundef %36, i1 noundef zeroext true)
  %37 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %24, i64 noundef 0, i64 noundef 2, ptr noundef %37, i1 noundef zeroext true)
  %38 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %25, i64 noundef 0, i64 noundef 3, ptr noundef %38, i1 noundef zeroext true)
  %39 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %26, i64 noundef 0, i64 noundef 2, ptr noundef %39, i1 noundef zeroext true)
  %40 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %27, i64 noundef 0, i64 noundef 2, ptr noundef %40, i1 noundef zeroext true)
  %41 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %28, i64 noundef 0, i64 noundef 2, ptr noundef %41, i1 noundef zeroext true)
  %42 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %29, i64 noundef 0, i64 noundef 3, ptr noundef %42, i1 noundef zeroext true)
  %43 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %30, i64 noundef 0, i64 noundef 2, ptr noundef %43, i1 noundef zeroext true)
  %44 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %31, i64 noundef 0, i64 noundef 3, ptr noundef %44, i1 noundef zeroext true)
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %45, i32 0, i32 0
  %47 = load i64, ptr %46, align 8, !tbaa !11
  store i64 %47, ptr %18, align 8, !tbaa !9
  %48 = load i64, ptr %15, align 8, !tbaa !9
  %49 = icmp sge i64 %48, 0
  %50 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %49, ptr noundef @.str.371, ptr noundef %50)
  %51 = load i64, ptr %15, align 8, !tbaa !9
  %52 = icmp eq i64 %51, 0
  br i1 %52, label %60, label %53

53:                                               ; preds = %8
  %54 = load ptr, ptr %13, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %54, i32 0, i32 1
  %56 = load i64, ptr %55, align 8, !tbaa !18
  %57 = load i64, ptr %18, align 8, !tbaa !9
  %58 = add nsw i64 %57, 1
  %59 = icmp sge i64 %56, %58
  br label %60

60:                                               ; preds = %53, %8
  %61 = phi i1 [ true, %8 ], [ %59, %53 ]
  %62 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %61, ptr noundef @.str.372, ptr noundef %62)
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %63, i32 0, i32 0
  %65 = load i64, ptr %64, align 8, !tbaa !19
  %66 = load i64, ptr %15, align 8, !tbaa !9
  %67 = icmp sge i64 %65, %66
  %68 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %67, ptr noundef @.str.373, ptr noundef %68)
  %69 = load ptr, ptr %14, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %69, i32 0, i32 0
  %71 = load i64, ptr %70, align 8, !tbaa !20
  %72 = load i64, ptr %15, align 8, !tbaa !9
  %73 = icmp sge i64 %71, %72
  %74 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %73, ptr noundef @.str.374, ptr noundef %74)
  %75 = load ptr, ptr %13, align 8, !tbaa !5
  %76 = load i64, ptr %15, align 8, !tbaa !9
  %77 = load i64, ptr %18, align 8, !tbaa !9
  %78 = add nsw i64 %77, 1
  %79 = load ptr, ptr %16, align 8, !tbaa !5
  %80 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %75, i64 noundef %76, i64 noundef %78, ptr noundef %79)
  %81 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %80, ptr noundef @.str.375, ptr noundef %81)
  %82 = load i64, ptr %12, align 8, !tbaa !9
  %83 = icmp sge i64 %82, 0
  %84 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %83, ptr noundef @.str.376, ptr noundef %84)
  %85 = load i64, ptr %12, align 8, !tbaa !9
  %86 = icmp eq i64 %85, 0
  br i1 %86, label %94, label %87

87:                                               ; preds = %60
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = load ptr, ptr %16, align 8, !tbaa !5
  %90 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %88, ptr noundef %89)
  %91 = load i64, ptr %18, align 8, !tbaa !9
  %92 = add nsw i64 %91, 1
  %93 = icmp sge i64 %90, %92
  br label %94

94:                                               ; preds = %87, %60
  %95 = phi i1 [ true, %60 ], [ %93, %87 ]
  %96 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %95, ptr noundef @.str.377, ptr noundef %96)
  %97 = load i64, ptr %12, align 8, !tbaa !9
  %98 = icmp eq i64 %97, 0
  br i1 %98, label %105, label %99

99:                                               ; preds = %94
  %100 = load ptr, ptr %10, align 8, !tbaa !5
  %101 = load ptr, ptr %16, align 8, !tbaa !5
  %102 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %100, ptr noundef %101)
  %103 = load i64, ptr %12, align 8, !tbaa !9
  %104 = icmp sge i64 %102, %103
  br label %105

105:                                              ; preds = %99, %94
  %106 = phi i1 [ true, %94 ], [ %104, %99 ]
  %107 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %106, ptr noundef @.str.378, ptr noundef %107)
  %108 = load ptr, ptr %11, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %108, i32 0, i32 0
  %110 = load i64, ptr %109, align 8, !tbaa !20
  %111 = load i64, ptr %12, align 8, !tbaa !9
  %112 = icmp sge i64 %110, %111
  %113 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %112, ptr noundef @.str.379, ptr noundef %113)
  %114 = load i64, ptr %15, align 8, !tbaa !9
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %115, i32 0, i32 1
  store i64 %114, ptr %116, align 8, !tbaa !21
  %117 = load i64, ptr %12, align 8, !tbaa !9
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %118, i32 0, i32 2
  store i64 %117, ptr %119, align 8, !tbaa !22
  %120 = load i64, ptr %12, align 8, !tbaa !9
  %121 = icmp sgt i64 %120, 0
  br i1 %121, label %122, label %420

122:                                              ; preds = %105
  %123 = load i64, ptr %12, align 8, !tbaa !9
  %124 = load ptr, ptr %9, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %124, i32 0, i32 7
  %126 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %123, ptr noundef %125, ptr noundef %126)
  %127 = load i64, ptr %12, align 8, !tbaa !9
  %128 = load ptr, ptr %9, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %128, i32 0, i32 8
  %130 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %127, ptr noundef %129, ptr noundef %130)
  %131 = load i64, ptr %12, align 8, !tbaa !9
  %132 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %26, i64 noundef %131, ptr noundef %132)
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %133

133:                                              ; preds = %143, %122
  %134 = load i64, ptr %19, align 8, !tbaa !9
  %135 = load i64, ptr %12, align 8, !tbaa !9
  %136 = sub nsw i64 %135, 1
  %137 = icmp sle i64 %134, %136
  br i1 %137, label %138, label %146

138:                                              ; preds = %133
  %139 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %140 = load ptr, ptr %139, align 8, !tbaa !23
  %141 = load i64, ptr %19, align 8, !tbaa !9
  %142 = getelementptr inbounds i64, ptr %140, i64 %141
  store i64 0, ptr %142, align 8, !tbaa !9
  br label %143

143:                                              ; preds = %138
  %144 = load i64, ptr %19, align 8, !tbaa !9
  %145 = add nsw i64 %144, 1
  store i64 %145, ptr %19, align 8, !tbaa !9
  br label %133, !llvm.loop !24

146:                                              ; preds = %133
  store i64 0, ptr %32, align 8, !tbaa !9
  store i64 0, ptr %33, align 8, !tbaa !9
  store i64 0, ptr %34, align 8, !tbaa !9
  br label %147

147:                                              ; preds = %162, %161, %146
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  %149 = load ptr, ptr %16, align 8, !tbaa !5
  %150 = call noundef zeroext i1 @_ZN11alglib_impl15sparseenumerateEPKNS_12sparsematrixEPlS3_S3_S3_PdPNS_8ae_stateE(ptr noundef %148, ptr noundef %32, ptr noundef %33, ptr noundef %19, ptr noundef %20, ptr noundef %22, ptr noundef %149)
  br i1 %150, label %151, label %179

151:                                              ; preds = %147
  %152 = load i64, ptr %19, align 8, !tbaa !9
  %153 = load i64, ptr %12, align 8, !tbaa !9
  %154 = sub nsw i64 %153, 1
  %155 = icmp sgt i64 %152, %154
  br i1 %155, label %161, label %156

156:                                              ; preds = %151
  %157 = load i64, ptr %20, align 8, !tbaa !9
  %158 = load i64, ptr %18, align 8, !tbaa !9
  %159 = sub nsw i64 %158, 1
  %160 = icmp sgt i64 %157, %159
  br i1 %160, label %161, label %162

161:                                              ; preds = %156, %151
  br label %147, !llvm.loop !26

162:                                              ; preds = %156
  %163 = load double, ptr %22, align 8, !tbaa !27
  %164 = load ptr, ptr %16, align 8, !tbaa !5
  %165 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %163, ptr noundef %164)
  %166 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %165, ptr noundef @.str.380, ptr noundef %166)
  %167 = load i64, ptr %34, align 8, !tbaa !9
  %168 = add nsw i64 %167, 1
  store i64 %168, ptr %34, align 8, !tbaa !9
  %169 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %170 = load ptr, ptr %169, align 8, !tbaa !23
  %171 = load i64, ptr %19, align 8, !tbaa !9
  %172 = getelementptr inbounds i64, ptr %170, i64 %171
  %173 = load i64, ptr %172, align 8, !tbaa !9
  %174 = add nsw i64 %173, 1
  %175 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %176 = load ptr, ptr %175, align 8, !tbaa !23
  %177 = load i64, ptr %19, align 8, !tbaa !9
  %178 = getelementptr inbounds i64, ptr %176, i64 %177
  store i64 %174, ptr %178, align 8, !tbaa !9
  br label %147, !llvm.loop !26

179:                                              ; preds = %147
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %180

180:                                              ; preds = %198, %179
  %181 = load i64, ptr %19, align 8, !tbaa !9
  %182 = load i64, ptr %12, align 8, !tbaa !9
  %183 = sub nsw i64 %182, 1
  %184 = icmp sle i64 %181, %183
  br i1 %184, label %185, label %201

185:                                              ; preds = %180
  %186 = load ptr, ptr %9, align 8, !tbaa !5
  %187 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %186, i32 0, i32 7
  %188 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %187, i32 0, i32 4
  %189 = load ptr, ptr %188, align 8, !tbaa !23
  %190 = load i64, ptr %19, align 8, !tbaa !9
  %191 = getelementptr inbounds double, ptr %189, i64 %190
  store double 0.000000e+00, ptr %191, align 8, !tbaa !27
  %192 = load ptr, ptr %9, align 8, !tbaa !5
  %193 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %192, i32 0, i32 8
  %194 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %193, i32 0, i32 4
  %195 = load ptr, ptr %194, align 8, !tbaa !23
  %196 = load i64, ptr %19, align 8, !tbaa !9
  %197 = getelementptr inbounds double, ptr %195, i64 %196
  store double 0.000000e+00, ptr %197, align 8, !tbaa !27
  br label %198

198:                                              ; preds = %185
  %199 = load i64, ptr %19, align 8, !tbaa !9
  %200 = add nsw i64 %199, 1
  store i64 %200, ptr %19, align 8, !tbaa !9
  br label %180, !llvm.loop !29

201:                                              ; preds = %180
  %202 = load i64, ptr %12, align 8, !tbaa !9
  %203 = load ptr, ptr %9, align 8, !tbaa !5
  %204 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %203, i32 0, i32 4
  %205 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %204, i32 0, i32 6
  store i64 %202, ptr %205, align 8, !tbaa !30
  %206 = load i64, ptr %18, align 8, !tbaa !9
  %207 = load ptr, ptr %9, align 8, !tbaa !5
  %208 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %207, i32 0, i32 4
  %209 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %208, i32 0, i32 7
  store i64 %206, ptr %209, align 8, !tbaa !31
  %210 = load ptr, ptr %9, align 8, !tbaa !5
  %211 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %210, i32 0, i32 4
  %212 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %211, i32 0, i32 2
  %213 = load i64, ptr %12, align 8, !tbaa !9
  %214 = add nsw i64 %213, 1
  %215 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %212, i64 noundef %214, ptr noundef %215)
  %216 = load ptr, ptr %9, align 8, !tbaa !5
  %217 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %216, i32 0, i32 4
  %218 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %217, i32 0, i32 1
  %219 = load i64, ptr %34, align 8, !tbaa !9
  %220 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %218, i64 noundef %219, ptr noundef %220)
  %221 = load ptr, ptr %9, align 8, !tbaa !5
  %222 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %221, i32 0, i32 4
  %223 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %222, i32 0, i32 0
  %224 = load i64, ptr %34, align 8, !tbaa !9
  %225 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %223, i64 noundef %224, ptr noundef %225)
  %226 = load i64, ptr %12, align 8, !tbaa !9
  %227 = add nsw i64 %226, 1
  %228 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %27, i64 noundef %227, ptr noundef %228)
  %229 = load ptr, ptr %9, align 8, !tbaa !5
  %230 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %229, i32 0, i32 4
  %231 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %230, i32 0, i32 2
  %232 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %231, i32 0, i32 4
  %233 = load ptr, ptr %232, align 8, !tbaa !23
  %234 = getelementptr inbounds i64, ptr %233, i64 0
  store i64 0, ptr %234, align 8, !tbaa !9
  %235 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %236 = load ptr, ptr %235, align 8, !tbaa !23
  %237 = getelementptr inbounds i64, ptr %236, i64 0
  store i64 0, ptr %237, align 8, !tbaa !9
  store i64 1, ptr %19, align 8, !tbaa !9
  br label %238

238:                                              ; preds = %278, %201
  %239 = load i64, ptr %19, align 8, !tbaa !9
  %240 = load i64, ptr %12, align 8, !tbaa !9
  %241 = icmp sle i64 %239, %240
  br i1 %241, label %242, label %281

242:                                              ; preds = %238
  %243 = load ptr, ptr %9, align 8, !tbaa !5
  %244 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %243, i32 0, i32 4
  %245 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %244, i32 0, i32 2
  %246 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %245, i32 0, i32 4
  %247 = load ptr, ptr %246, align 8, !tbaa !23
  %248 = load i64, ptr %19, align 8, !tbaa !9
  %249 = sub nsw i64 %248, 1
  %250 = getelementptr inbounds i64, ptr %247, i64 %249
  %251 = load i64, ptr %250, align 8, !tbaa !9
  %252 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %253 = load ptr, ptr %252, align 8, !tbaa !23
  %254 = load i64, ptr %19, align 8, !tbaa !9
  %255 = sub nsw i64 %254, 1
  %256 = getelementptr inbounds i64, ptr %253, i64 %255
  %257 = load i64, ptr %256, align 8, !tbaa !9
  %258 = add nsw i64 %251, %257
  %259 = load ptr, ptr %9, align 8, !tbaa !5
  %260 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %259, i32 0, i32 4
  %261 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %260, i32 0, i32 2
  %262 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %261, i32 0, i32 4
  %263 = load ptr, ptr %262, align 8, !tbaa !23
  %264 = load i64, ptr %19, align 8, !tbaa !9
  %265 = getelementptr inbounds i64, ptr %263, i64 %264
  store i64 %258, ptr %265, align 8, !tbaa !9
  %266 = load ptr, ptr %9, align 8, !tbaa !5
  %267 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %266, i32 0, i32 4
  %268 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %267, i32 0, i32 2
  %269 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %268, i32 0, i32 4
  %270 = load ptr, ptr %269, align 8, !tbaa !23
  %271 = load i64, ptr %19, align 8, !tbaa !9
  %272 = getelementptr inbounds i64, ptr %270, i64 %271
  %273 = load i64, ptr %272, align 8, !tbaa !9
  %274 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %275 = load ptr, ptr %274, align 8, !tbaa !23
  %276 = load i64, ptr %19, align 8, !tbaa !9
  %277 = getelementptr inbounds i64, ptr %275, i64 %276
  store i64 %273, ptr %277, align 8, !tbaa !9
  br label %278

278:                                              ; preds = %242
  %279 = load i64, ptr %19, align 8, !tbaa !9
  %280 = add nsw i64 %279, 1
  store i64 %280, ptr %19, align 8, !tbaa !9
  br label %238, !llvm.loop !32

281:                                              ; preds = %238
  store i64 0, ptr %32, align 8, !tbaa !9
  store i64 0, ptr %33, align 8, !tbaa !9
  br label %282

282:                                              ; preds = %343, %295, %281
  %283 = load ptr, ptr %10, align 8, !tbaa !5
  %284 = load ptr, ptr %16, align 8, !tbaa !5
  %285 = call noundef zeroext i1 @_ZN11alglib_impl15sparseenumerateEPKNS_12sparsematrixEPlS3_S3_S3_PdPNS_8ae_stateE(ptr noundef %283, ptr noundef %32, ptr noundef %33, ptr noundef %19, ptr noundef %20, ptr noundef %22, ptr noundef %284)
  br i1 %285, label %286, label %344

286:                                              ; preds = %282
  %287 = load i64, ptr %19, align 8, !tbaa !9
  %288 = load i64, ptr %12, align 8, !tbaa !9
  %289 = sub nsw i64 %288, 1
  %290 = icmp sgt i64 %287, %289
  br i1 %290, label %295, label %291

291:                                              ; preds = %286
  %292 = load i64, ptr %20, align 8, !tbaa !9
  %293 = load i64, ptr %18, align 8, !tbaa !9
  %294 = icmp sgt i64 %292, %293
  br i1 %294, label %295, label %296

295:                                              ; preds = %291, %286
  br label %282, !llvm.loop !33

296:                                              ; preds = %291
  %297 = load i64, ptr %20, align 8, !tbaa !9
  %298 = load i64, ptr %18, align 8, !tbaa !9
  %299 = icmp slt i64 %297, %298
  br i1 %299, label %300, label %328

300:                                              ; preds = %296
  %301 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %302 = load ptr, ptr %301, align 8, !tbaa !23
  %303 = load i64, ptr %19, align 8, !tbaa !9
  %304 = getelementptr inbounds i64, ptr %302, i64 %303
  %305 = load i64, ptr %304, align 8, !tbaa !9
  store i64 %305, ptr %21, align 8, !tbaa !9
  %306 = load i64, ptr %20, align 8, !tbaa !9
  %307 = load ptr, ptr %9, align 8, !tbaa !5
  %308 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %307, i32 0, i32 4
  %309 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %308, i32 0, i32 1
  %310 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %309, i32 0, i32 4
  %311 = load ptr, ptr %310, align 8, !tbaa !23
  %312 = load i64, ptr %21, align 8, !tbaa !9
  %313 = getelementptr inbounds i64, ptr %311, i64 %312
  store i64 %306, ptr %313, align 8, !tbaa !9
  %314 = load double, ptr %22, align 8, !tbaa !27
  %315 = load ptr, ptr %9, align 8, !tbaa !5
  %316 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %315, i32 0, i32 4
  %317 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %316, i32 0, i32 0
  %318 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %317, i32 0, i32 4
  %319 = load ptr, ptr %318, align 8, !tbaa !23
  %320 = load i64, ptr %21, align 8, !tbaa !9
  %321 = getelementptr inbounds double, ptr %319, i64 %320
  store double %314, ptr %321, align 8, !tbaa !27
  %322 = load i64, ptr %21, align 8, !tbaa !9
  %323 = add nsw i64 %322, 1
  %324 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %325 = load ptr, ptr %324, align 8, !tbaa !23
  %326 = load i64, ptr %19, align 8, !tbaa !9
  %327 = getelementptr inbounds i64, ptr %325, i64 %326
  store i64 %323, ptr %327, align 8, !tbaa !9
  br label %343

328:                                              ; preds = %296
  %329 = load double, ptr %22, align 8, !tbaa !27
  %330 = load ptr, ptr %9, align 8, !tbaa !5
  %331 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %330, i32 0, i32 7
  %332 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %331, i32 0, i32 4
  %333 = load ptr, ptr %332, align 8, !tbaa !23
  %334 = load i64, ptr %19, align 8, !tbaa !9
  %335 = getelementptr inbounds double, ptr %333, i64 %334
  store double %329, ptr %335, align 8, !tbaa !27
  %336 = load double, ptr %22, align 8, !tbaa !27
  %337 = load ptr, ptr %9, align 8, !tbaa !5
  %338 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %337, i32 0, i32 8
  %339 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %338, i32 0, i32 4
  %340 = load ptr, ptr %339, align 8, !tbaa !23
  %341 = load i64, ptr %19, align 8, !tbaa !9
  %342 = getelementptr inbounds double, ptr %340, i64 %341
  store double %336, ptr %342, align 8, !tbaa !27
  br label %343

343:                                              ; preds = %328, %300
  br label %282, !llvm.loop !33

344:                                              ; preds = %282
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %345

345:                                              ; preds = %367, %344
  %346 = load i64, ptr %19, align 8, !tbaa !9
  %347 = load i64, ptr %12, align 8, !tbaa !9
  %348 = sub nsw i64 %347, 1
  %349 = icmp sle i64 %346, %348
  br i1 %349, label %350, label %370

350:                                              ; preds = %345
  %351 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %352 = load ptr, ptr %351, align 8, !tbaa !23
  %353 = load i64, ptr %19, align 8, !tbaa !9
  %354 = getelementptr inbounds i64, ptr %352, i64 %353
  %355 = load i64, ptr %354, align 8, !tbaa !9
  %356 = load ptr, ptr %9, align 8, !tbaa !5
  %357 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %356, i32 0, i32 4
  %358 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %357, i32 0, i32 2
  %359 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %358, i32 0, i32 4
  %360 = load ptr, ptr %359, align 8, !tbaa !23
  %361 = load i64, ptr %19, align 8, !tbaa !9
  %362 = add nsw i64 %361, 1
  %363 = getelementptr inbounds i64, ptr %360, i64 %362
  %364 = load i64, ptr %363, align 8, !tbaa !9
  %365 = icmp eq i64 %355, %364
  %366 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %365, ptr noundef @.str.381, ptr noundef %366)
  br label %367

367:                                              ; preds = %350
  %368 = load i64, ptr %19, align 8, !tbaa !9
  %369 = add nsw i64 %368, 1
  store i64 %369, ptr %19, align 8, !tbaa !9
  br label %345, !llvm.loop !34

370:                                              ; preds = %345
  %371 = load ptr, ptr %9, align 8, !tbaa !5
  %372 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %371, i32 0, i32 4
  %373 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl22sparsecreatecrsinplaceEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %372, ptr noundef %373)
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %374

374:                                              ; preds = %416, %370
  %375 = load i64, ptr %19, align 8, !tbaa !9
  %376 = load i64, ptr %12, align 8, !tbaa !9
  %377 = sub nsw i64 %376, 1
  %378 = icmp sle i64 %375, %377
  br i1 %378, label %379, label %419

379:                                              ; preds = %374
  %380 = load ptr, ptr %11, align 8, !tbaa !5
  %381 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %380, i32 0, i32 4
  %382 = load ptr, ptr %381, align 8, !tbaa !23
  %383 = load i64, ptr %19, align 8, !tbaa !9
  %384 = getelementptr inbounds i64, ptr %382, i64 %383
  %385 = load i64, ptr %384, align 8, !tbaa !9
  %386 = icmp sgt i64 %385, 0
  br i1 %386, label %387, label %397

387:                                              ; preds = %379
  %388 = load ptr, ptr %16, align 8, !tbaa !5
  %389 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %388, i32 0, i32 2
  %390 = load double, ptr %389, align 8, !tbaa !35
  %391 = load ptr, ptr %9, align 8, !tbaa !5
  %392 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %391, i32 0, i32 8
  %393 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %392, i32 0, i32 4
  %394 = load ptr, ptr %393, align 8, !tbaa !23
  %395 = load i64, ptr %19, align 8, !tbaa !9
  %396 = getelementptr inbounds double, ptr %394, i64 %395
  store double %390, ptr %396, align 8, !tbaa !27
  br label %397

397:                                              ; preds = %387, %379
  %398 = load ptr, ptr %11, align 8, !tbaa !5
  %399 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %398, i32 0, i32 4
  %400 = load ptr, ptr %399, align 8, !tbaa !23
  %401 = load i64, ptr %19, align 8, !tbaa !9
  %402 = getelementptr inbounds i64, ptr %400, i64 %401
  %403 = load i64, ptr %402, align 8, !tbaa !9
  %404 = icmp slt i64 %403, 0
  br i1 %404, label %405, label %415

405:                                              ; preds = %397
  %406 = load ptr, ptr %16, align 8, !tbaa !5
  %407 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %406, i32 0, i32 3
  %408 = load double, ptr %407, align 8, !tbaa !39
  %409 = load ptr, ptr %9, align 8, !tbaa !5
  %410 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %409, i32 0, i32 7
  %411 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %410, i32 0, i32 4
  %412 = load ptr, ptr %411, align 8, !tbaa !23
  %413 = load i64, ptr %19, align 8, !tbaa !9
  %414 = getelementptr inbounds double, ptr %412, i64 %413
  store double %408, ptr %414, align 8, !tbaa !27
  br label %415

415:                                              ; preds = %405, %397
  br label %416

416:                                              ; preds = %415
  %417 = load i64, ptr %19, align 8, !tbaa !9
  %418 = add nsw i64 %417, 1
  store i64 %418, ptr %19, align 8, !tbaa !9
  br label %374, !llvm.loop !40

419:                                              ; preds = %374
  br label %420

420:                                              ; preds = %419, %105
  %421 = load i64, ptr %15, align 8, !tbaa !9
  %422 = icmp sgt i64 %421, 0
  br i1 %422, label %423, label %571

423:                                              ; preds = %420
  %424 = load i64, ptr %15, align 8, !tbaa !9
  %425 = load ptr, ptr %9, align 8, !tbaa !5
  %426 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %425, i32 0, i32 5
  %427 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %424, ptr noundef %426, ptr noundef %427)
  %428 = load i64, ptr %15, align 8, !tbaa !9
  %429 = load ptr, ptr %9, align 8, !tbaa !5
  %430 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %429, i32 0, i32 6
  %431 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %428, ptr noundef %430, ptr noundef %431)
  %432 = load ptr, ptr %9, align 8, !tbaa !5
  %433 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %432, i32 0, i32 3
  %434 = load i64, ptr %15, align 8, !tbaa !9
  %435 = load i64, ptr %18, align 8, !tbaa !9
  %436 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %433, i64 noundef %434, i64 noundef %435, ptr noundef %436)
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %437

437:                                              ; preds = %567, %423
  %438 = load i64, ptr %19, align 8, !tbaa !9
  %439 = load i64, ptr %15, align 8, !tbaa !9
  %440 = sub nsw i64 %439, 1
  %441 = icmp sle i64 %438, %440
  br i1 %441, label %442, label %570

442:                                              ; preds = %437
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %443

443:                                              ; preds = %467, %442
  %444 = load i64, ptr %20, align 8, !tbaa !9
  %445 = load i64, ptr %18, align 8, !tbaa !9
  %446 = sub nsw i64 %445, 1
  %447 = icmp sle i64 %444, %446
  br i1 %447, label %448, label %470

448:                                              ; preds = %443
  %449 = load ptr, ptr %13, align 8, !tbaa !5
  %450 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %449, i32 0, i32 6
  %451 = load ptr, ptr %450, align 8, !tbaa !23
  %452 = load i64, ptr %19, align 8, !tbaa !9
  %453 = getelementptr inbounds ptr, ptr %451, i64 %452
  %454 = load ptr, ptr %453, align 8, !tbaa !5
  %455 = load i64, ptr %20, align 8, !tbaa !9
  %456 = getelementptr inbounds double, ptr %454, i64 %455
  %457 = load double, ptr %456, align 8, !tbaa !27
  %458 = load ptr, ptr %9, align 8, !tbaa !5
  %459 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %458, i32 0, i32 3
  %460 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %459, i32 0, i32 6
  %461 = load ptr, ptr %460, align 8, !tbaa !23
  %462 = load i64, ptr %19, align 8, !tbaa !9
  %463 = getelementptr inbounds ptr, ptr %461, i64 %462
  %464 = load ptr, ptr %463, align 8, !tbaa !5
  %465 = load i64, ptr %20, align 8, !tbaa !9
  %466 = getelementptr inbounds double, ptr %464, i64 %465
  store double %457, ptr %466, align 8, !tbaa !27
  br label %467

467:                                              ; preds = %448
  %468 = load i64, ptr %20, align 8, !tbaa !9
  %469 = add nsw i64 %468, 1
  store i64 %469, ptr %20, align 8, !tbaa !9
  br label %443, !llvm.loop !41

470:                                              ; preds = %443
  %471 = load ptr, ptr %14, align 8, !tbaa !5
  %472 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %471, i32 0, i32 4
  %473 = load ptr, ptr %472, align 8, !tbaa !23
  %474 = load i64, ptr %19, align 8, !tbaa !9
  %475 = getelementptr inbounds i64, ptr %473, i64 %474
  %476 = load i64, ptr %475, align 8, !tbaa !9
  %477 = icmp sgt i64 %476, 0
  br i1 %477, label %478, label %503

478:                                              ; preds = %470
  %479 = load ptr, ptr %13, align 8, !tbaa !5
  %480 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %479, i32 0, i32 6
  %481 = load ptr, ptr %480, align 8, !tbaa !23
  %482 = load i64, ptr %19, align 8, !tbaa !9
  %483 = getelementptr inbounds ptr, ptr %481, i64 %482
  %484 = load ptr, ptr %483, align 8, !tbaa !5
  %485 = load i64, ptr %18, align 8, !tbaa !9
  %486 = getelementptr inbounds double, ptr %484, i64 %485
  %487 = load double, ptr %486, align 8, !tbaa !27
  %488 = load ptr, ptr %9, align 8, !tbaa !5
  %489 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %488, i32 0, i32 5
  %490 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %489, i32 0, i32 4
  %491 = load ptr, ptr %490, align 8, !tbaa !23
  %492 = load i64, ptr %19, align 8, !tbaa !9
  %493 = getelementptr inbounds double, ptr %491, i64 %492
  store double %487, ptr %493, align 8, !tbaa !27
  %494 = load ptr, ptr %16, align 8, !tbaa !5
  %495 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %494, i32 0, i32 2
  %496 = load double, ptr %495, align 8, !tbaa !35
  %497 = load ptr, ptr %9, align 8, !tbaa !5
  %498 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %497, i32 0, i32 6
  %499 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %498, i32 0, i32 4
  %500 = load ptr, ptr %499, align 8, !tbaa !23
  %501 = load i64, ptr %19, align 8, !tbaa !9
  %502 = getelementptr inbounds double, ptr %500, i64 %501
  store double %496, ptr %502, align 8, !tbaa !27
  br label %567

503:                                              ; preds = %470
  %504 = load ptr, ptr %14, align 8, !tbaa !5
  %505 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %504, i32 0, i32 4
  %506 = load ptr, ptr %505, align 8, !tbaa !23
  %507 = load i64, ptr %19, align 8, !tbaa !9
  %508 = getelementptr inbounds i64, ptr %506, i64 %507
  %509 = load i64, ptr %508, align 8, !tbaa !9
  %510 = icmp slt i64 %509, 0
  br i1 %510, label %511, label %536

511:                                              ; preds = %503
  %512 = load ptr, ptr %16, align 8, !tbaa !5
  %513 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %512, i32 0, i32 3
  %514 = load double, ptr %513, align 8, !tbaa !39
  %515 = load ptr, ptr %9, align 8, !tbaa !5
  %516 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %515, i32 0, i32 5
  %517 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %516, i32 0, i32 4
  %518 = load ptr, ptr %517, align 8, !tbaa !23
  %519 = load i64, ptr %19, align 8, !tbaa !9
  %520 = getelementptr inbounds double, ptr %518, i64 %519
  store double %514, ptr %520, align 8, !tbaa !27
  %521 = load ptr, ptr %13, align 8, !tbaa !5
  %522 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %521, i32 0, i32 6
  %523 = load ptr, ptr %522, align 8, !tbaa !23
  %524 = load i64, ptr %19, align 8, !tbaa !9
  %525 = getelementptr inbounds ptr, ptr %523, i64 %524
  %526 = load ptr, ptr %525, align 8, !tbaa !5
  %527 = load i64, ptr %18, align 8, !tbaa !9
  %528 = getelementptr inbounds double, ptr %526, i64 %527
  %529 = load double, ptr %528, align 8, !tbaa !27
  %530 = load ptr, ptr %9, align 8, !tbaa !5
  %531 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %530, i32 0, i32 6
  %532 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %531, i32 0, i32 4
  %533 = load ptr, ptr %532, align 8, !tbaa !23
  %534 = load i64, ptr %19, align 8, !tbaa !9
  %535 = getelementptr inbounds double, ptr %533, i64 %534
  store double %529, ptr %535, align 8, !tbaa !27
  br label %567

536:                                              ; preds = %503
  %537 = load ptr, ptr %13, align 8, !tbaa !5
  %538 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %537, i32 0, i32 6
  %539 = load ptr, ptr %538, align 8, !tbaa !23
  %540 = load i64, ptr %19, align 8, !tbaa !9
  %541 = getelementptr inbounds ptr, ptr %539, i64 %540
  %542 = load ptr, ptr %541, align 8, !tbaa !5
  %543 = load i64, ptr %18, align 8, !tbaa !9
  %544 = getelementptr inbounds double, ptr %542, i64 %543
  %545 = load double, ptr %544, align 8, !tbaa !27
  %546 = load ptr, ptr %9, align 8, !tbaa !5
  %547 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %546, i32 0, i32 5
  %548 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %547, i32 0, i32 4
  %549 = load ptr, ptr %548, align 8, !tbaa !23
  %550 = load i64, ptr %19, align 8, !tbaa !9
  %551 = getelementptr inbounds double, ptr %549, i64 %550
  store double %545, ptr %551, align 8, !tbaa !27
  %552 = load ptr, ptr %13, align 8, !tbaa !5
  %553 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %552, i32 0, i32 6
  %554 = load ptr, ptr %553, align 8, !tbaa !23
  %555 = load i64, ptr %19, align 8, !tbaa !9
  %556 = getelementptr inbounds ptr, ptr %554, i64 %555
  %557 = load ptr, ptr %556, align 8, !tbaa !5
  %558 = load i64, ptr %18, align 8, !tbaa !9
  %559 = getelementptr inbounds double, ptr %557, i64 %558
  %560 = load double, ptr %559, align 8, !tbaa !27
  %561 = load ptr, ptr %9, align 8, !tbaa !5
  %562 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %561, i32 0, i32 6
  %563 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %562, i32 0, i32 4
  %564 = load ptr, ptr %563, align 8, !tbaa !23
  %565 = load i64, ptr %19, align 8, !tbaa !9
  %566 = getelementptr inbounds double, ptr %564, i64 %565
  store double %560, ptr %566, align 8, !tbaa !27
  br label %567

567:                                              ; preds = %536, %511, %478
  %568 = load i64, ptr %19, align 8, !tbaa !9
  %569 = add nsw i64 %568, 1
  store i64 %569, ptr %19, align 8, !tbaa !9
  br label %437, !llvm.loop !42

570:                                              ; preds = %437
  br label %571

571:                                              ; preds = %570, %420
  %572 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %572)
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #4
  ret void
}

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

declare noundef zeroext i1 @_ZN11alglib_impl15sparseenumerateEPKNS_12sparsematrixEPlS3_S3_S3_PdPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl22sparsecreatecrsinplaceEPNS_12sparsematrixEPNS_8ae_stateE(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, !10, i64 0}
!12 = !{!"_ZTSN11alglib_impl18xlinearconstraintsE", !10, i64 0, !10, i64 8, !10, i64 16, !13, i64 24, !16, i64 104, !17, i64 472, !17, i64 536, !17, i64 600, !17, i64 664, !10, i64 728, !10, i64 736, !13, i64 744, !17, i64 824, !17, i64 888, !16, i64 952, !17, i64 1320, !17, i64 1384, !16, i64 1448}
!13 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !14, i64 32, !15, i64 40, !7, i64 72}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!16 = !{!"_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}
!17 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !14, i64 16, !15, i64 24, !7, i64 56}
!18 = !{!13, !10, i64 8}
!19 = !{!13, !10, i64 0}
!20 = !{!17, !10, i64 0}
!21 = !{!12, !10, i64 8}
!22 = !{!12, !10, i64 16}
!23 = !{!7, !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = !{!28, !28, i64 0}
!28 = !{!"double", !7, i64 0}
!29 = distinct !{!29, !25}
!30 = !{!12, !10, i64 432}
!31 = !{!12, !10, i64 440}
!32 = distinct !{!32, !25}
!33 = distinct !{!33, !25}
!34 = distinct !{!34, !25}
!35 = !{!36, !28, i64 16}
!36 = !{!"_ZTSN11alglib_impl8ae_stateE", !10, i64 0, !28, i64 8, !28, i64 16, !28, i64 24, !6, i64 32, !15, i64 40, !6, i64 72, !37, i64 80, !6, i64 88, !38, i64 96, !6, i64 104, !6, i64 112, !6, i64 120}
!37 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !7, i64 0}
!38 = !{!"long long", !7, i64 0}
!39 = !{!36, !28, i64 24}
!40 = distinct !{!40, !25}
!41 = distinct !{!41, !25}
!42 = distinct !{!42, !25}


; 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 }

@.str.371 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.372 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.373 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.374 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.375 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.376 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.377 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.378 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.379 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.380 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.381 = external hidden unnamed_addr constant [54 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

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

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 noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, 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_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

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

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

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

declare noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #2

declare noundef i64 @_ZN11alglib_impl14sparsegetncolsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13xlcsetlcmixedEPNS_18xlinearconstraintsEPKNS_12sparsematrixEPKNS_9ae_vectorElPKNS_9ae_matrixES7_lPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2, i64 noundef %3, ptr noundef %4, ptr nocapture noundef readonly %5, i64 noundef %6, ptr noundef %7) local_unnamed_addr #3 {
  %9 = alloca %"struct.alglib_impl::ae_frame", align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca double, align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  %14 = alloca %"struct.alglib_impl::ae_vector", align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  %20 = alloca %"struct.alglib_impl::ae_vector", align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %19) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %20) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %7, ptr noundef nonnull %9)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %13, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %14, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %15, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %17, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %18, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %19, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %20, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %21, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %13, i64 noundef 0, i64 noundef 2, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %14, i64 noundef 0, i64 noundef 2, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %15, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %16, i64 noundef 0, i64 noundef 2, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %17, i64 noundef 0, i64 noundef 2, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %18, i64 noundef 0, i64 noundef 2, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %19, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %20, i64 noundef 0, i64 noundef 2, ptr noundef %7, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %21, i64 noundef 0, i64 noundef 3, ptr noundef %7, i1 noundef zeroext true)
  %24 = load i64, ptr %0, align 8, !tbaa !5
  %25 = icmp sgt i64 %6, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %25, ptr noundef nonnull @.str.371, ptr noundef %7)
  %26 = icmp eq i64 %6, 0
  br i1 %26, label %31, label %27

27:                                               ; preds = %8
  %28 = getelementptr inbounds i8, ptr %4, i64 8
  %29 = load i64, ptr %28, align 8, !tbaa !16
  %30 = icmp sgt i64 %29, %24
  br label %31

31:                                               ; preds = %27, %8
  %32 = phi i1 [ true, %8 ], [ %30, %27 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %32, ptr noundef nonnull @.str.372, ptr noundef %7)
  %33 = load i64, ptr %4, align 8, !tbaa !17
  %34 = icmp sge i64 %33, %6
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %34, ptr noundef nonnull @.str.373, ptr noundef %7)
  %35 = load i64, ptr %5, align 8, !tbaa !18
  %36 = icmp sge i64 %35, %6
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %36, ptr noundef nonnull @.str.374, ptr noundef %7)
  %37 = add nsw i64 %24, 1
  %38 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %6, i64 noundef %37, ptr noundef %7)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %38, ptr noundef nonnull @.str.375, ptr noundef %7)
  %39 = icmp sgt i64 %3, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %39, ptr noundef nonnull @.str.376, ptr noundef %7)
  %40 = icmp eq i64 %3, 0
  br i1 %40, label %.critedge, label %41

41:                                               ; preds = %31
  %42 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %1, ptr noundef %7)
  %43 = icmp sgt i64 %42, %24
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %43, ptr noundef nonnull @.str.377, ptr noundef %7)
  %44 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %1, ptr noundef %7)
  %45 = icmp sge i64 %44, %3
  br label %46

.critedge:                                        ; preds = %31
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext true, ptr noundef nonnull @.str.377, ptr noundef %7)
  br label %46

46:                                               ; preds = %.critedge, %41
  %47 = phi i1 [ %45, %41 ], [ true, %.critedge ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %47, ptr noundef nonnull @.str.378, ptr noundef %7)
  %48 = load i64, ptr %2, align 8, !tbaa !18
  %49 = icmp sge i64 %48, %3
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %49, ptr noundef nonnull @.str.379, ptr noundef %7)
  %50 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %6, ptr %50, align 8, !tbaa !19
  %51 = getelementptr inbounds i8, ptr %0, i64 16
  store i64 %3, ptr %51, align 8, !tbaa !20
  %52 = icmp sgt i64 %3, 0
  br i1 %52, label %53, label %.loopexit171

53:                                               ; preds = %46
  %54 = getelementptr inbounds i8, ptr %0, i64 600
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %3, ptr noundef nonnull %54, ptr noundef %7)
  %55 = getelementptr inbounds i8, ptr %0, i64 664
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %3, ptr noundef nonnull %55, ptr noundef %7)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef %3, ptr noundef %7)
  store i64 0, ptr %10, align 8, !tbaa !21
  %56 = getelementptr inbounds i8, ptr %16, i64 56
  br label %57

57:                                               ; preds = %53, %57
  %storemerge174 = phi i64 [ 0, %53 ], [ %61, %57 ]
  %58 = load ptr, ptr %56, align 8, !tbaa !22
  %59 = getelementptr inbounds i64, ptr %58, i64 %storemerge174
  store i64 0, ptr %59, align 8, !tbaa !21
  %60 = load i64, ptr %10, align 8, !tbaa !21
  %61 = add nsw i64 %60, 1
  store i64 %61, ptr %10, align 8, !tbaa !21
  %.not.not = icmp slt i64 %61, %3
  br i1 %.not.not, label %57, label %62, !llvm.loop !23

62:                                               ; preds = %57
  store i64 0, ptr %22, align 8, !tbaa !21
  store i64 0, ptr %23, align 8, !tbaa !21
  br label %.outer

.outer:                                           ; preds = %71, %62
  %.0.ph = phi i64 [ %74, %71 ], [ 0, %62 ]
  br label %63

63:                                               ; preds = %.outer, %68
  %64 = call noundef zeroext i1 @_ZN11alglib_impl15sparseenumerateEPKNS_12sparsematrixEPlS3_S3_S3_PdPNS_8ae_stateE(ptr noundef %1, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %7)
  br i1 %64, label %68, label %.lr.ph

.lr.ph:                                           ; preds = %63
  %65 = getelementptr inbounds i8, ptr %0, i64 656
  %66 = getelementptr inbounds i8, ptr %0, i64 720
  %xtraiter = and i64 %3, 1
  %67 = icmp eq i64 %3, 1
  br i1 %67, label %.lr.ph180.unr-lcssa, label %.lr.ph.new

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

68:                                               ; preds = %63
  %69 = load i64, ptr %10, align 8, !tbaa !21
  %.not169 = icmp slt i64 %69, %3
  %70 = load i64, ptr %11, align 8
  %.not170 = icmp slt i64 %70, %24
  %or.cond = select i1 %.not169, i1 %.not170, i1 false
  br i1 %or.cond, label %71, label %63, !llvm.loop !25

71:                                               ; preds = %68
  %72 = load double, ptr %12, align 8, !tbaa !26
  %73 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %72, ptr noundef %7)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %73, ptr noundef nonnull @.str.380, ptr noundef %7)
  %74 = add nuw nsw i64 %.0.ph, 1
  %75 = load ptr, ptr %56, align 8, !tbaa !22
  %76 = load i64, ptr %10, align 8, !tbaa !21
  %77 = getelementptr inbounds i64, ptr %75, i64 %76
  %78 = load i64, ptr %77, align 8, !tbaa !21
  %79 = add nsw i64 %78, 1
  store i64 %79, ptr %77, align 8, !tbaa !21
  br label %.outer, !llvm.loop !25

80:                                               ; preds = %80, %.lr.ph.new
  %storemerge157176 = phi i64 [ 0, %.lr.ph.new ], [ %90, %80 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %80 ]
  %81 = load ptr, ptr %65, align 8, !tbaa !22
  %82 = getelementptr inbounds double, ptr %81, i64 %storemerge157176
  store double 0.000000e+00, ptr %82, align 8, !tbaa !26
  %83 = load ptr, ptr %66, align 8, !tbaa !22
  %84 = getelementptr inbounds double, ptr %83, i64 %storemerge157176
  store double 0.000000e+00, ptr %84, align 8, !tbaa !26
  %85 = or disjoint i64 %storemerge157176, 1
  %86 = load ptr, ptr %65, align 8, !tbaa !22
  %87 = getelementptr inbounds double, ptr %86, i64 %85
  store double 0.000000e+00, ptr %87, align 8, !tbaa !26
  %88 = load ptr, ptr %66, align 8, !tbaa !22
  %89 = getelementptr inbounds double, ptr %88, i64 %85
  store double 0.000000e+00, ptr %89, align 8, !tbaa !26
  %90 = add nuw nsw i64 %storemerge157176, 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 %.lr.ph180.unr-lcssa, label %80, !llvm.loop !28

.lr.ph180.unr-lcssa:                              ; preds = %80, %.lr.ph
  %storemerge157176.unr = phi i64 [ 0, %.lr.ph ], [ %90, %80 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph180, label %.lr.ph180.epilog-lcssa

.lr.ph180.epilog-lcssa:                           ; preds = %.lr.ph180.unr-lcssa
  %91 = load ptr, ptr %65, align 8, !tbaa !22
  %92 = getelementptr inbounds double, ptr %91, i64 %storemerge157176.unr
  store double 0.000000e+00, ptr %92, align 8, !tbaa !26
  %93 = load ptr, ptr %66, align 8, !tbaa !22
  %94 = getelementptr inbounds double, ptr %93, i64 %storemerge157176.unr
  store double 0.000000e+00, ptr %94, align 8, !tbaa !26
  br label %.lr.ph180

.lr.ph180:                                        ; preds = %.lr.ph180.unr-lcssa, %.lr.ph180.epilog-lcssa
  store i64 %3, ptr %10, align 8, !tbaa !21
  %95 = getelementptr inbounds i8, ptr %0, i64 104
  %96 = getelementptr inbounds i8, ptr %0, i64 432
  store i64 %3, ptr %96, align 8, !tbaa !29
  %97 = getelementptr inbounds i8, ptr %0, i64 440
  store i64 %24, ptr %97, align 8, !tbaa !30
  %98 = getelementptr inbounds i8, ptr %0, i64 232
  %99 = add nuw nsw i64 %3, 1
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %98, i64 noundef %99, ptr noundef %7)
  %100 = getelementptr inbounds i8, ptr %0, i64 168
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %100, i64 noundef %.0.ph, ptr noundef %7)
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %95, i64 noundef %.0.ph, ptr noundef %7)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %99, ptr noundef %7)
  %101 = getelementptr inbounds i8, ptr %0, i64 288
  %102 = load ptr, ptr %101, align 8, !tbaa !22
  store i64 0, ptr %102, align 8, !tbaa !21
  %103 = getelementptr inbounds i8, ptr %17, i64 56
  %104 = load ptr, ptr %103, align 8, !tbaa !22
  store i64 0, ptr %104, align 8, !tbaa !21
  store i64 1, ptr %10, align 8, !tbaa !21
  br label %105

105:                                              ; preds = %.lr.ph180, %105
  %storemerge159178 = phi i64 [ 1, %.lr.ph180 ], [ %122, %105 ]
  %106 = load ptr, ptr %101, align 8, !tbaa !22
  %107 = add nsw i64 %storemerge159178, -1
  %108 = getelementptr inbounds i64, ptr %106, i64 %107
  %109 = load i64, ptr %108, align 8, !tbaa !21
  %110 = load ptr, ptr %56, align 8, !tbaa !22
  %111 = getelementptr inbounds i64, ptr %110, i64 %107
  %112 = load i64, ptr %111, align 8, !tbaa !21
  %113 = add nsw i64 %112, %109
  %114 = getelementptr inbounds i64, ptr %106, i64 %storemerge159178
  store i64 %113, ptr %114, align 8, !tbaa !21
  %115 = load ptr, ptr %101, align 8, !tbaa !22
  %116 = load i64, ptr %10, align 8, !tbaa !21
  %117 = getelementptr inbounds i64, ptr %115, i64 %116
  %118 = load i64, ptr %117, align 8, !tbaa !21
  %119 = load ptr, ptr %103, align 8, !tbaa !22
  %120 = getelementptr inbounds i64, ptr %119, i64 %116
  store i64 %118, ptr %120, align 8, !tbaa !21
  %121 = load i64, ptr %10, align 8, !tbaa !21
  %122 = add nsw i64 %121, 1
  store i64 %122, ptr %10, align 8, !tbaa !21
  %.not.not198 = icmp slt i64 %121, %3
  br i1 %.not.not198, label %105, label %._crit_edge181, !llvm.loop !31

._crit_edge181:                                   ; preds = %105
  store i64 0, ptr %22, align 8, !tbaa !21
  store i64 0, ptr %23, align 8, !tbaa !21
  %123 = call noundef zeroext i1 @_ZN11alglib_impl15sparseenumerateEPKNS_12sparsematrixEPlS3_S3_S3_PdPNS_8ae_stateE(ptr noundef %1, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %7)
  br i1 %123, label %.lr.ph183, label %.lr.ph186.preheader

.lr.ph183:                                        ; preds = %._crit_edge181
  %124 = getelementptr inbounds i8, ptr %0, i64 656
  %125 = getelementptr inbounds i8, ptr %0, i64 720
  %126 = getelementptr inbounds i8, ptr %0, i64 224
  %127 = getelementptr inbounds i8, ptr %0, i64 160
  br label %128

.lr.ph186.preheader:                              ; preds = %.backedge, %._crit_edge181
  store i64 0, ptr %10, align 8, !tbaa !21
  br label %.lr.ph186

128:                                              ; preds = %.lr.ph183, %.backedge
  %129 = load i64, ptr %10, align 8, !tbaa !21
  %.not168 = icmp slt i64 %129, %3
  br i1 %.not168, label %130, label %.backedge

130:                                              ; preds = %128
  %131 = load i64, ptr %11, align 8, !tbaa !21
  %132 = icmp sgt i64 %131, %24
  br i1 %132, label %.backedge, label %134

.backedge:                                        ; preds = %136, %149, %128, %130
  %133 = call noundef zeroext i1 @_ZN11alglib_impl15sparseenumerateEPKNS_12sparsematrixEPlS3_S3_S3_PdPNS_8ae_stateE(ptr noundef %1, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %7)
  br i1 %133, label %128, label %.lr.ph186.preheader, !llvm.loop !32

134:                                              ; preds = %130
  %135 = icmp slt i64 %131, %24
  br i1 %135, label %136, label %149

136:                                              ; preds = %134
  %137 = load ptr, ptr %103, align 8, !tbaa !22
  %138 = getelementptr inbounds i64, ptr %137, i64 %129
  %139 = load i64, ptr %138, align 8, !tbaa !21
  %140 = load ptr, ptr %126, align 8, !tbaa !22
  %141 = getelementptr inbounds i64, ptr %140, i64 %139
  store i64 %131, ptr %141, align 8, !tbaa !21
  %142 = load double, ptr %12, align 8, !tbaa !26
  %143 = load ptr, ptr %127, align 8, !tbaa !22
  %144 = getelementptr inbounds double, ptr %143, i64 %139
  store double %142, ptr %144, align 8, !tbaa !26
  %145 = add nsw i64 %139, 1
  %146 = load ptr, ptr %103, align 8, !tbaa !22
  %147 = load i64, ptr %10, align 8, !tbaa !21
  %148 = getelementptr inbounds i64, ptr %146, i64 %147
  store i64 %145, ptr %148, align 8, !tbaa !21
  br label %.backedge

149:                                              ; preds = %134
  %150 = load double, ptr %12, align 8, !tbaa !26
  %151 = load ptr, ptr %124, align 8, !tbaa !22
  %152 = getelementptr inbounds double, ptr %151, i64 %129
  store double %150, ptr %152, align 8, !tbaa !26
  %153 = load ptr, ptr %125, align 8, !tbaa !22
  %154 = getelementptr inbounds double, ptr %153, i64 %129
  store double %150, ptr %154, align 8, !tbaa !26
  br label %.backedge

.lr.ph186:                                        ; preds = %.lr.ph186.preheader, %.lr.ph186
  %storemerge160185 = phi i64 [ %164, %.lr.ph186 ], [ 0, %.lr.ph186.preheader ]
  %155 = load ptr, ptr %103, align 8, !tbaa !22
  %156 = getelementptr inbounds i64, ptr %155, i64 %storemerge160185
  %157 = load i64, ptr %156, align 8, !tbaa !21
  %158 = load ptr, ptr %101, align 8, !tbaa !22
  %159 = getelementptr i64, ptr %158, i64 %storemerge160185
  %160 = getelementptr i8, ptr %159, i64 8
  %161 = load i64, ptr %160, align 8, !tbaa !21
  %162 = icmp eq i64 %157, %161
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %162, ptr noundef nonnull @.str.381, ptr noundef %7)
  %163 = load i64, ptr %10, align 8, !tbaa !21
  %164 = add nsw i64 %163, 1
  store i64 %164, ptr %10, align 8, !tbaa !21
  %.not161.not = icmp slt i64 %164, %3
  br i1 %.not161.not, label %.lr.ph186, label %.lr.ph191, !llvm.loop !33

.lr.ph191:                                        ; preds = %.lr.ph186
  call void @_ZN11alglib_impl22sparsecreatecrsinplaceEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %95, ptr noundef %7)
  store i64 0, ptr %10, align 8, !tbaa !21
  %165 = getelementptr inbounds i8, ptr %2, i64 56
  %166 = getelementptr inbounds i8, ptr %7, i64 16
  %167 = getelementptr inbounds i8, ptr %0, i64 720
  %168 = getelementptr inbounds i8, ptr %7, i64 24
  %169 = getelementptr inbounds i8, ptr %0, i64 656
  %smax = call i64 @llvm.smax.i64(i64 %3, i64 1)
  br label %170

170:                                              ; preds = %.lr.ph191, %186
  %storemerge162189 = phi i64 [ 0, %.lr.ph191 ], [ %187, %186 ]
  %171 = load ptr, ptr %165, align 8, !tbaa !22
  %172 = getelementptr inbounds i64, ptr %171, i64 %storemerge162189
  %173 = load i64, ptr %172, align 8, !tbaa !21
  %174 = icmp sgt i64 %173, 0
  br i1 %174, label %175, label %179

175:                                              ; preds = %170
  %176 = load double, ptr %166, align 8, !tbaa !34
  %177 = load ptr, ptr %167, align 8, !tbaa !22
  %178 = getelementptr inbounds double, ptr %177, i64 %storemerge162189
  store double %176, ptr %178, align 8, !tbaa !26
  %.pre = load ptr, ptr %165, align 8, !tbaa !22
  %.phi.trans.insert = getelementptr inbounds i64, ptr %.pre, i64 %storemerge162189
  %.pre203 = load i64, ptr %.phi.trans.insert, align 8, !tbaa !21
  br label %179

179:                                              ; preds = %175, %170
  %180 = phi i64 [ %.pre203, %175 ], [ %173, %170 ]
  %181 = icmp slt i64 %180, 0
  br i1 %181, label %182, label %186

182:                                              ; preds = %179
  %183 = load double, ptr %168, align 8, !tbaa !38
  %184 = load ptr, ptr %169, align 8, !tbaa !22
  %185 = getelementptr inbounds double, ptr %184, i64 %storemerge162189
  store double %183, ptr %185, align 8, !tbaa !26
  br label %186

186:                                              ; preds = %179, %182
  %187 = add nuw nsw i64 %storemerge162189, 1
  store i64 %187, ptr %10, align 8, !tbaa !21
  %exitcond200.not = icmp eq i64 %187, %smax
  br i1 %exitcond200.not, label %.loopexit171, label %170, !llvm.loop !39

.loopexit171:                                     ; preds = %186, %46
  %188 = icmp sgt i64 %6, 0
  br i1 %188, label %189, label %.loopexit

189:                                              ; preds = %.loopexit171
  %190 = getelementptr inbounds i8, ptr %0, i64 472
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %6, ptr noundef nonnull %190, ptr noundef %7)
  %191 = getelementptr inbounds i8, ptr %0, i64 536
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %6, ptr noundef nonnull %191, ptr noundef %7)
  %192 = getelementptr inbounds i8, ptr %0, i64 24
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %192, i64 noundef %6, i64 noundef %24, ptr noundef %7)
  store i64 0, ptr %10, align 8, !tbaa !21
  %.not167.not192 = icmp sgt i64 %24, 0
  %193 = getelementptr inbounds i8, ptr %4, i64 72
  %194 = getelementptr inbounds i8, ptr %0, i64 96
  %195 = getelementptr inbounds i8, ptr %5, i64 56
  %196 = getelementptr inbounds i8, ptr %0, i64 528
  %197 = getelementptr inbounds i8, ptr %0, i64 592
  %198 = getelementptr inbounds i8, ptr %7, i64 24
  %199 = getelementptr inbounds i8, ptr %7, i64 16
  %xtraiter207 = and i64 %24, 1
  %200 = icmp eq i64 %24, 1
  %unroll_iter209 = and i64 %24, 9223372036854775806
  %lcmp.mod208.not = icmp eq i64 %xtraiter207, 0
  br label %.preheader

.preheader:                                       ; preds = %189, %264
  %storemerge164197 = phi i64 [ 0, %189 ], [ %268, %264 ]
  br i1 %.not167.not192, label %.lr.ph194.preheader, label %._crit_edge195

.lr.ph194.preheader:                              ; preds = %.preheader
  br i1 %200, label %._crit_edge195.loopexit.unr-lcssa, label %.lr.ph194

.lr.ph194:                                        ; preds = %.lr.ph194.preheader, %.lr.ph194
  %storemerge166193 = phi i64 [ %220, %.lr.ph194 ], [ 0, %.lr.ph194.preheader ]
  %niter210 = phi i64 [ %niter210.next.1, %.lr.ph194 ], [ 0, %.lr.ph194.preheader ]
  %201 = load ptr, ptr %193, align 8, !tbaa !22
  %202 = getelementptr inbounds ptr, ptr %201, i64 %storemerge164197
  %203 = load ptr, ptr %202, align 8, !tbaa !40
  %204 = getelementptr inbounds double, ptr %203, i64 %storemerge166193
  %205 = load double, ptr %204, align 8, !tbaa !26
  %206 = load ptr, ptr %194, align 8, !tbaa !22
  %207 = getelementptr inbounds ptr, ptr %206, i64 %storemerge164197
  %208 = load ptr, ptr %207, align 8, !tbaa !40
  %209 = getelementptr inbounds double, ptr %208, i64 %storemerge166193
  store double %205, ptr %209, align 8, !tbaa !26
  %210 = or disjoint i64 %storemerge166193, 1
  %211 = load ptr, ptr %193, align 8, !tbaa !22
  %212 = getelementptr inbounds ptr, ptr %211, i64 %storemerge164197
  %213 = load ptr, ptr %212, align 8, !tbaa !40
  %214 = getelementptr inbounds double, ptr %213, i64 %210
  %215 = load double, ptr %214, align 8, !tbaa !26
  %216 = load ptr, ptr %194, align 8, !tbaa !22
  %217 = getelementptr inbounds ptr, ptr %216, i64 %storemerge164197
  %218 = load ptr, ptr %217, align 8, !tbaa !40
  %219 = getelementptr inbounds double, ptr %218, i64 %210
  store double %215, ptr %219, align 8, !tbaa !26
  %220 = add nuw nsw i64 %storemerge166193, 2
  %niter210.next.1 = add i64 %niter210, 2
  %niter210.ncmp.1 = icmp eq i64 %niter210.next.1, %unroll_iter209
  br i1 %niter210.ncmp.1, label %._crit_edge195.loopexit.unr-lcssa, label %.lr.ph194, !llvm.loop !41

._crit_edge195.loopexit.unr-lcssa:                ; preds = %.lr.ph194, %.lr.ph194.preheader
  %storemerge166193.unr = phi i64 [ 0, %.lr.ph194.preheader ], [ %220, %.lr.ph194 ]
  br i1 %lcmp.mod208.not, label %._crit_edge195, label %.lr.ph194.epil

.lr.ph194.epil:                                   ; preds = %._crit_edge195.loopexit.unr-lcssa
  %221 = load ptr, ptr %193, align 8, !tbaa !22
  %222 = getelementptr inbounds ptr, ptr %221, i64 %storemerge164197
  %223 = load ptr, ptr %222, align 8, !tbaa !40
  %224 = getelementptr inbounds double, ptr %223, i64 %storemerge166193.unr
  %225 = load double, ptr %224, align 8, !tbaa !26
  %226 = load ptr, ptr %194, align 8, !tbaa !22
  %227 = getelementptr inbounds ptr, ptr %226, i64 %storemerge164197
  %228 = load ptr, ptr %227, align 8, !tbaa !40
  %229 = getelementptr inbounds double, ptr %228, i64 %storemerge166193.unr
  store double %225, ptr %229, align 8, !tbaa !26
  br label %._crit_edge195

._crit_edge195:                                   ; preds = %.lr.ph194.epil, %._crit_edge195.loopexit.unr-lcssa, %.preheader
  %storemerge166.lcssa = phi i64 [ 0, %.preheader ], [ %24, %._crit_edge195.loopexit.unr-lcssa ], [ %24, %.lr.ph194.epil ]
  store i64 %storemerge166.lcssa, ptr %11, align 8, !tbaa !21
  %230 = load ptr, ptr %195, align 8, !tbaa !22
  %231 = getelementptr inbounds i64, ptr %230, i64 %storemerge164197
  %232 = load i64, ptr %231, align 8, !tbaa !21
  %233 = icmp sgt i64 %232, 0
  br i1 %233, label %234, label %242

234:                                              ; preds = %._crit_edge195
  %235 = load ptr, ptr %193, align 8, !tbaa !22
  %236 = getelementptr inbounds ptr, ptr %235, i64 %storemerge164197
  %237 = load ptr, ptr %236, align 8, !tbaa !40
  %238 = getelementptr inbounds double, ptr %237, i64 %24
  %239 = load double, ptr %238, align 8, !tbaa !26
  %240 = load ptr, ptr %196, align 8, !tbaa !22
  %241 = getelementptr inbounds double, ptr %240, i64 %storemerge164197
  store double %239, ptr %241, align 8, !tbaa !26
  br label %264

242:                                              ; preds = %._crit_edge195
  %243 = icmp slt i64 %232, 0
  br i1 %243, label %244, label %252

244:                                              ; preds = %242
  %245 = load double, ptr %198, align 8, !tbaa !38
  %246 = load ptr, ptr %196, align 8, !tbaa !22
  %247 = getelementptr inbounds double, ptr %246, i64 %storemerge164197
  store double %245, ptr %247, align 8, !tbaa !26
  %248 = load ptr, ptr %193, align 8, !tbaa !22
  %249 = getelementptr inbounds ptr, ptr %248, i64 %storemerge164197
  %250 = load ptr, ptr %249, align 8, !tbaa !40
  %251 = getelementptr inbounds double, ptr %250, i64 %24
  br label %264

252:                                              ; preds = %242
  %253 = load ptr, ptr %193, align 8, !tbaa !22
  %254 = getelementptr inbounds ptr, ptr %253, i64 %storemerge164197
  %255 = load ptr, ptr %254, align 8, !tbaa !40
  %256 = getelementptr inbounds double, ptr %255, i64 %24
  %257 = load double, ptr %256, align 8, !tbaa !26
  %258 = load ptr, ptr %196, align 8, !tbaa !22
  %259 = getelementptr inbounds double, ptr %258, i64 %storemerge164197
  store double %257, ptr %259, align 8, !tbaa !26
  %260 = load ptr, ptr %193, align 8, !tbaa !22
  %261 = getelementptr inbounds ptr, ptr %260, i64 %storemerge164197
  %262 = load ptr, ptr %261, align 8, !tbaa !40
  %263 = getelementptr inbounds double, ptr %262, i64 %24
  br label %264

264:                                              ; preds = %252, %244, %234
  %.sink206 = phi ptr [ %263, %252 ], [ %251, %244 ], [ %199, %234 ]
  %265 = load double, ptr %.sink206, align 8, !tbaa !26
  %266 = load ptr, ptr %197, align 8, !tbaa !22
  %267 = getelementptr inbounds double, ptr %266, i64 %storemerge164197
  store double %265, ptr %267, align 8, !tbaa !26
  %268 = add nuw nsw i64 %storemerge164197, 1
  store i64 %268, ptr %10, align 8, !tbaa !21
  %exitcond202.not = icmp eq i64 %268, %6
  br i1 %exitcond202.not, label %.loopexit, label %.preheader, !llvm.loop !42

.loopexit:                                        ; preds = %264, %.loopexit171
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  ret void
}

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #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 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl18xlinearconstraintsE", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !14, i64 104, !15, i64 472, !15, i64 536, !15, i64 600, !15, i64 664, !7, i64 728, !7, i64 736, !10, i64 744, !15, i64 824, !15, i64 888, !14, i64 952, !15, i64 1320, !15, i64 1384, !14, i64 1448}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !12, i64 40, !8, i64 72}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"_ZTSN11alglib_impl12sparsematrixE", !15, i64 0, !15, i64 64, !15, i64 128, !15, i64 192, !15, i64 256, !7, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !7, i64 360}
!15 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !11, i64 16, !12, i64 24, !8, i64 56}
!16 = !{!10, !7, i64 8}
!17 = !{!10, !7, i64 0}
!18 = !{!15, !7, i64 0}
!19 = !{!6, !7, i64 8}
!20 = !{!6, !7, i64 16}
!21 = !{!7, !7, i64 0}
!22 = !{!8, !8, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = !{!27, !27, i64 0}
!27 = !{!"double", !8, i64 0}
!28 = distinct !{!28, !24}
!29 = !{!6, !7, i64 432}
!30 = !{!6, !7, i64 440}
!31 = distinct !{!31, !24}
!32 = distinct !{!32, !24}
!33 = distinct !{!33, !24}
!34 = !{!35, !27, i64 16}
!35 = !{!"_ZTSN11alglib_impl8ae_stateE", !7, i64 0, !27, i64 8, !27, i64 16, !27, i64 24, !13, i64 32, !12, i64 40, !13, i64 72, !36, i64 80, !13, i64 88, !37, i64 96, !13, i64 104, !13, i64 112, !13, i64 120}
!36 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !8, i64 0}
!37 = !{!"long long", !8, i64 0}
!38 = !{!35, !27, i64 24}
!39 = distinct !{!39, !24}
!40 = !{!13, !13, i64 0}
!41 = distinct !{!41, !24}
!42 = distinct !{!42, !24}


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