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

@.str.397 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.398 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.399 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.400 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.401 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.402 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.403 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.404 = external hidden unnamed_addr constant [35 x i8], align 1

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

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

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

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

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

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl9xlcaddlc2EPNS_18xlinearconstraintsEPKNS_9ae_vectorES4_lddPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, double noundef %4, double noundef %5, ptr noundef %6) #2 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store i64 %3, ptr %11, align 8, !tbaa !9
  store double %4, ptr %12, align 8, !tbaa !11
  store double %5, ptr %13, align 8, !tbaa !11
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %24, i32 0, i32 0
  %26 = load i64, ptr %25, align 8, !tbaa !13
  store i64 %26, ptr %20, align 8, !tbaa !9
  %27 = load i64, ptr %11, align 8, !tbaa !9
  %28 = icmp sge i64 %27, 0
  %29 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %28, ptr noundef @.str.397, ptr noundef %29)
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 0
  %32 = load i64, ptr %31, align 8, !tbaa !20
  %33 = load i64, ptr %11, align 8, !tbaa !9
  %34 = icmp sge i64 %32, %33
  %35 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %34, ptr noundef @.str.398, ptr noundef %35)
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %36, i32 0, i32 0
  %38 = load i64, ptr %37, align 8, !tbaa !20
  %39 = load i64, ptr %11, align 8, !tbaa !9
  %40 = icmp sge i64 %38, %39
  %41 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %40, ptr noundef @.str.399, ptr noundef %41)
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %42

42:                                               ; preds = %67, %7
  %43 = load i64, ptr %15, align 8, !tbaa !9
  %44 = load i64, ptr %11, align 8, !tbaa !9
  %45 = sub nsw i64 %44, 1
  %46 = icmp sle i64 %43, %45
  br i1 %46, label %47, label %70

47:                                               ; preds = %42
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %48, i32 0, i32 4
  %50 = load ptr, ptr %49, align 8, !tbaa !21
  %51 = load i64, ptr %15, align 8, !tbaa !9
  %52 = getelementptr inbounds i64, ptr %50, i64 %51
  %53 = load i64, ptr %52, align 8, !tbaa !9
  %54 = icmp sge i64 %53, 0
  br i1 %54, label %55, label %64

55:                                               ; preds = %47
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %56, i32 0, i32 4
  %58 = load ptr, ptr %57, align 8, !tbaa !21
  %59 = load i64, ptr %15, align 8, !tbaa !9
  %60 = getelementptr inbounds i64, ptr %58, i64 %59
  %61 = load i64, ptr %60, align 8, !tbaa !9
  %62 = load i64, ptr %20, align 8, !tbaa !9
  %63 = icmp slt i64 %61, %62
  br label %64

64:                                               ; preds = %55, %47
  %65 = phi i1 [ false, %47 ], [ %63, %55 ]
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %65, ptr noundef @.str.400, ptr noundef %66)
  br label %67

67:                                               ; preds = %64
  %68 = load i64, ptr %15, align 8, !tbaa !9
  %69 = add nsw i64 %68, 1
  store i64 %69, ptr %15, align 8, !tbaa !9
  br label %42, !llvm.loop !22

70:                                               ; preds = %42
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = load i64, ptr %11, align 8, !tbaa !9
  %73 = load ptr, ptr %14, align 8, !tbaa !5
  %74 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %71, i64 noundef %72, ptr noundef %73)
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %74, ptr noundef @.str.401, ptr noundef %75)
  %76 = load double, ptr %12, align 8, !tbaa !11
  %77 = load ptr, ptr %14, align 8, !tbaa !5
  %78 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %76, ptr noundef %77)
  br i1 %78, label %83, label %79

79:                                               ; preds = %70
  %80 = load double, ptr %12, align 8, !tbaa !11
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef %80, ptr noundef %81)
  br label %83

83:                                               ; preds = %79, %70
  %84 = phi i1 [ true, %70 ], [ %82, %79 ]
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %84, ptr noundef @.str.402, ptr noundef %85)
  %86 = load double, ptr %13, align 8, !tbaa !11
  %87 = load ptr, ptr %14, align 8, !tbaa !5
  %88 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %86, ptr noundef %87)
  br i1 %88, label %93, label %89

89:                                               ; preds = %83
  %90 = load double, ptr %13, align 8, !tbaa !11
  %91 = load ptr, ptr %14, align 8, !tbaa !5
  %92 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef %90, ptr noundef %91)
  br label %93

93:                                               ; preds = %89, %83
  %94 = phi i1 [ true, %83 ], [ %92, %89 ]
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %94, ptr noundef @.str.403, ptr noundef %95)
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %96, i32 0, i32 2
  %98 = load i64, ptr %97, align 8, !tbaa !24
  %99 = icmp eq i64 %98, 0
  br i1 %99, label %100, label %124

100:                                              ; preds = %93
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %101, i32 0, i32 4
  %103 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %102, i32 0, i32 5
  store i64 1, ptr %103, align 8, !tbaa !25
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %104, i32 0, i32 4
  %106 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %105, i32 0, i32 6
  store i64 0, ptr %106, align 8, !tbaa !26
  %107 = load i64, ptr %20, align 8, !tbaa !9
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %108, i32 0, i32 4
  %110 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %109, i32 0, i32 7
  store i64 %107, ptr %110, align 8, !tbaa !27
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %111, i32 0, i32 4
  %113 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %112, i32 0, i32 9
  store i64 0, ptr %113, align 8, !tbaa !28
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %114, i32 0, i32 4
  %116 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %115, i32 0, i32 2
  %117 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %116, i64 noundef 1, ptr noundef %117)
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %118, i32 0, i32 4
  %120 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %119, i32 0, i32 2
  %121 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %120, i32 0, i32 4
  %122 = load ptr, ptr %121, align 8, !tbaa !21
  %123 = getelementptr inbounds i64, ptr %122, i64 0
  store i64 0, ptr %123, align 8, !tbaa !9
  br label %124

124:                                              ; preds = %100, %93
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %125, i32 0, i32 4
  %127 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %126, i32 0, i32 5
  %128 = load i64, ptr %127, align 8, !tbaa !25
  %129 = icmp eq i64 %128, 1
  br i1 %129, label %130, label %139

130:                                              ; preds = %124
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %131, i32 0, i32 4
  %133 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %132, i32 0, i32 6
  %134 = load i64, ptr %133, align 8, !tbaa !26
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %135, i32 0, i32 2
  %137 = load i64, ptr %136, align 8, !tbaa !24
  %138 = icmp eq i64 %134, %137
  br label %139

139:                                              ; preds = %130, %124
  %140 = phi i1 [ false, %124 ], [ %138, %130 ]
  %141 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %140, ptr noundef @.str.404, ptr noundef %141)
  %142 = load ptr, ptr %8, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %142, i32 0, i32 2
  %144 = load i64, ptr %143, align 8, !tbaa !24
  %145 = add nsw i64 %144, 1
  %146 = load ptr, ptr %8, align 8, !tbaa !5
  %147 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %146, i32 0, i32 7
  %148 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl6rgrowvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %145, ptr noundef %147, ptr noundef %148)
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %149, i32 0, i32 2
  %151 = load i64, ptr %150, align 8, !tbaa !24
  %152 = add nsw i64 %151, 1
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %153, i32 0, i32 8
  %155 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl6rgrowvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %152, ptr noundef %154, ptr noundef %155)
  %156 = load double, ptr %12, align 8, !tbaa !11
  %157 = load ptr, ptr %8, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %157, i32 0, i32 7
  %159 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %158, i32 0, i32 4
  %160 = load ptr, ptr %159, align 8, !tbaa !21
  %161 = load ptr, ptr %8, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %161, i32 0, i32 2
  %163 = load i64, ptr %162, align 8, !tbaa !24
  %164 = getelementptr inbounds double, ptr %160, i64 %163
  store double %156, ptr %164, align 8, !tbaa !11
  %165 = load double, ptr %13, align 8, !tbaa !11
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %166, i32 0, i32 8
  %168 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %167, i32 0, i32 4
  %169 = load ptr, ptr %168, align 8, !tbaa !21
  %170 = load ptr, ptr %8, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %170, i32 0, i32 2
  %172 = load i64, ptr %171, align 8, !tbaa !24
  %173 = getelementptr inbounds double, ptr %169, i64 %172
  store double %165, ptr %173, align 8, !tbaa !11
  %174 = load ptr, ptr %8, align 8, !tbaa !5
  %175 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %174, i32 0, i32 4
  %176 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %175, i32 0, i32 2
  %177 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %176, i32 0, i32 4
  %178 = load ptr, ptr %177, align 8, !tbaa !21
  %179 = load ptr, ptr %8, align 8, !tbaa !5
  %180 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %179, i32 0, i32 2
  %181 = load i64, ptr %180, align 8, !tbaa !24
  %182 = getelementptr inbounds i64, ptr %178, i64 %181
  %183 = load i64, ptr %182, align 8, !tbaa !9
  store i64 %183, ptr %18, align 8, !tbaa !9
  %184 = load ptr, ptr %8, align 8, !tbaa !5
  %185 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %184, i32 0, i32 4
  %186 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %185, i32 0, i32 1
  %187 = load i64, ptr %18, align 8, !tbaa !9
  %188 = load i64, ptr %11, align 8, !tbaa !9
  %189 = add nsw i64 %187, %188
  %190 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %186, i64 noundef %189, ptr noundef %190)
  %191 = load ptr, ptr %8, align 8, !tbaa !5
  %192 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %191, i32 0, i32 4
  %193 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %192, i32 0, i32 0
  %194 = load i64, ptr %18, align 8, !tbaa !9
  %195 = load i64, ptr %11, align 8, !tbaa !9
  %196 = add nsw i64 %194, %195
  %197 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %193, i64 noundef %196, ptr noundef %197)
  %198 = load ptr, ptr %8, align 8, !tbaa !5
  %199 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %198, i32 0, i32 4
  %200 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %199, i32 0, i32 3
  %201 = load ptr, ptr %8, align 8, !tbaa !5
  %202 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %201, i32 0, i32 2
  %203 = load i64, ptr %202, align 8, !tbaa !24
  %204 = add nsw i64 %203, 1
  %205 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %200, i64 noundef %204, ptr noundef %205)
  %206 = load ptr, ptr %8, align 8, !tbaa !5
  %207 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %206, i32 0, i32 4
  %208 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %207, i32 0, i32 4
  %209 = load ptr, ptr %8, align 8, !tbaa !5
  %210 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %209, i32 0, i32 2
  %211 = load i64, ptr %210, align 8, !tbaa !24
  %212 = add nsw i64 %211, 1
  %213 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %208, i64 noundef %212, ptr noundef %213)
  %214 = load ptr, ptr %8, align 8, !tbaa !5
  %215 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %214, i32 0, i32 4
  %216 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %215, i32 0, i32 2
  %217 = load ptr, ptr %8, align 8, !tbaa !5
  %218 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %217, i32 0, i32 2
  %219 = load i64, ptr %218, align 8, !tbaa !24
  %220 = add nsw i64 %219, 2
  %221 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %216, i64 noundef %220, ptr noundef %221)
  %222 = load i64, ptr %11, align 8, !tbaa !9
  %223 = icmp eq i64 %222, 0
  br i1 %223, label %224, label %290

224:                                              ; preds = %139
  %225 = load ptr, ptr %8, align 8, !tbaa !5
  %226 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %225, i32 0, i32 4
  %227 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %226, i32 0, i32 2
  %228 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %227, i32 0, i32 4
  %229 = load ptr, ptr %228, align 8, !tbaa !21
  %230 = load ptr, ptr %8, align 8, !tbaa !5
  %231 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %230, i32 0, i32 2
  %232 = load i64, ptr %231, align 8, !tbaa !24
  %233 = getelementptr inbounds i64, ptr %229, i64 %232
  %234 = load i64, ptr %233, align 8, !tbaa !9
  %235 = load ptr, ptr %8, align 8, !tbaa !5
  %236 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %235, i32 0, i32 4
  %237 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %236, i32 0, i32 3
  %238 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %237, i32 0, i32 4
  %239 = load ptr, ptr %238, align 8, !tbaa !21
  %240 = load ptr, ptr %8, align 8, !tbaa !5
  %241 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %240, i32 0, i32 2
  %242 = load i64, ptr %241, align 8, !tbaa !24
  %243 = getelementptr inbounds i64, ptr %239, i64 %242
  store i64 %234, ptr %243, align 8, !tbaa !9
  %244 = load ptr, ptr %8, align 8, !tbaa !5
  %245 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %244, i32 0, i32 4
  %246 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %245, i32 0, i32 2
  %247 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %246, i32 0, i32 4
  %248 = load ptr, ptr %247, align 8, !tbaa !21
  %249 = load ptr, ptr %8, align 8, !tbaa !5
  %250 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %249, i32 0, i32 2
  %251 = load i64, ptr %250, align 8, !tbaa !24
  %252 = getelementptr inbounds i64, ptr %248, i64 %251
  %253 = load i64, ptr %252, align 8, !tbaa !9
  %254 = load ptr, ptr %8, align 8, !tbaa !5
  %255 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %254, i32 0, i32 4
  %256 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %255, i32 0, i32 4
  %257 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %256, i32 0, i32 4
  %258 = load ptr, ptr %257, align 8, !tbaa !21
  %259 = load ptr, ptr %8, align 8, !tbaa !5
  %260 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %259, i32 0, i32 2
  %261 = load i64, ptr %260, align 8, !tbaa !24
  %262 = getelementptr inbounds i64, ptr %258, i64 %261
  store i64 %253, ptr %262, align 8, !tbaa !9
  %263 = load ptr, ptr %8, align 8, !tbaa !5
  %264 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %263, i32 0, i32 4
  %265 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %264, i32 0, i32 2
  %266 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %265, i32 0, i32 4
  %267 = load ptr, ptr %266, align 8, !tbaa !21
  %268 = load ptr, ptr %8, align 8, !tbaa !5
  %269 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %268, i32 0, i32 2
  %270 = load i64, ptr %269, align 8, !tbaa !24
  %271 = getelementptr inbounds i64, ptr %267, i64 %270
  %272 = load i64, ptr %271, align 8, !tbaa !9
  %273 = load ptr, ptr %8, align 8, !tbaa !5
  %274 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %273, i32 0, i32 4
  %275 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %274, i32 0, i32 2
  %276 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %275, i32 0, i32 4
  %277 = load ptr, ptr %276, align 8, !tbaa !21
  %278 = load ptr, ptr %8, align 8, !tbaa !5
  %279 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %278, i32 0, i32 2
  %280 = load i64, ptr %279, align 8, !tbaa !24
  %281 = add nsw i64 %280, 1
  %282 = getelementptr inbounds i64, ptr %277, i64 %281
  store i64 %272, ptr %282, align 8, !tbaa !9
  %283 = load ptr, ptr %8, align 8, !tbaa !5
  %284 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %283, i32 0, i32 4
  %285 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %284, i32 0, i32 6
  %286 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef %285, ptr noundef %286)
  %287 = load ptr, ptr %8, align 8, !tbaa !5
  %288 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %287, i32 0, i32 2
  %289 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef %288, ptr noundef %289)
  store i32 1, ptr %23, align 4
  br label %541

290:                                              ; preds = %139
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %291

291:                                              ; preds = %327, %290
  %292 = load i64, ptr %15, align 8, !tbaa !9
  %293 = load i64, ptr %11, align 8, !tbaa !9
  %294 = sub nsw i64 %293, 1
  %295 = icmp sle i64 %292, %294
  br i1 %295, label %296, label %330

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

327:                                              ; preds = %296
  %328 = load i64, ptr %15, align 8, !tbaa !9
  %329 = add nsw i64 %328, 1
  store i64 %329, ptr %15, align 8, !tbaa !9
  br label %291, !llvm.loop !29

330:                                              ; preds = %291
  %331 = load ptr, ptr %8, align 8, !tbaa !5
  %332 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %331, i32 0, i32 4
  %333 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %332, i32 0, i32 1
  %334 = load ptr, ptr %8, align 8, !tbaa !5
  %335 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %334, i32 0, i32 4
  %336 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %335, i32 0, i32 0
  %337 = load i64, ptr %18, align 8, !tbaa !9
  %338 = load i64, ptr %11, align 8, !tbaa !9
  %339 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl15tagsortmiddleirEPNS_9ae_vectorES1_llPNS_8ae_stateE(ptr noundef %333, ptr noundef %336, i64 noundef %337, i64 noundef %338, ptr noundef %339)
  %340 = load i64, ptr %18, align 8, !tbaa !9
  store i64 %340, ptr %19, align 8, !tbaa !9
  store i64 1, ptr %15, align 8, !tbaa !9
  br label %341

341:                                              ; preds = %431, %330
  %342 = load i64, ptr %15, align 8, !tbaa !9
  %343 = load i64, ptr %11, align 8, !tbaa !9
  %344 = sub nsw i64 %343, 1
  %345 = icmp sle i64 %342, %344
  br i1 %345, label %346, label %434

346:                                              ; preds = %341
  %347 = load ptr, ptr %8, align 8, !tbaa !5
  %348 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %347, i32 0, i32 4
  %349 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %348, i32 0, i32 1
  %350 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %349, i32 0, i32 4
  %351 = load ptr, ptr %350, align 8, !tbaa !21
  %352 = load i64, ptr %19, align 8, !tbaa !9
  %353 = getelementptr inbounds i64, ptr %351, i64 %352
  %354 = load i64, ptr %353, align 8, !tbaa !9
  %355 = load ptr, ptr %8, align 8, !tbaa !5
  %356 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %355, i32 0, i32 4
  %357 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %356, i32 0, i32 1
  %358 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %357, i32 0, i32 4
  %359 = load ptr, ptr %358, align 8, !tbaa !21
  %360 = load i64, ptr %18, align 8, !tbaa !9
  %361 = load i64, ptr %15, align 8, !tbaa !9
  %362 = add nsw i64 %360, %361
  %363 = getelementptr inbounds i64, ptr %359, i64 %362
  %364 = load i64, ptr %363, align 8, !tbaa !9
  %365 = icmp ne i64 %354, %364
  br i1 %365, label %366, label %403

366:                                              ; preds = %346
  %367 = load i64, ptr %19, align 8, !tbaa !9
  %368 = add nsw i64 %367, 1
  store i64 %368, ptr %19, align 8, !tbaa !9
  %369 = load ptr, ptr %8, align 8, !tbaa !5
  %370 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %369, i32 0, i32 4
  %371 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %370, i32 0, i32 1
  %372 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %371, i32 0, i32 4
  %373 = load ptr, ptr %372, align 8, !tbaa !21
  %374 = load i64, ptr %18, align 8, !tbaa !9
  %375 = load i64, ptr %15, align 8, !tbaa !9
  %376 = add nsw i64 %374, %375
  %377 = getelementptr inbounds i64, ptr %373, i64 %376
  %378 = load i64, ptr %377, align 8, !tbaa !9
  %379 = load ptr, ptr %8, align 8, !tbaa !5
  %380 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %379, i32 0, i32 4
  %381 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %380, i32 0, i32 1
  %382 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %381, i32 0, i32 4
  %383 = load ptr, ptr %382, align 8, !tbaa !21
  %384 = load i64, ptr %19, align 8, !tbaa !9
  %385 = getelementptr inbounds i64, ptr %383, i64 %384
  store i64 %378, ptr %385, align 8, !tbaa !9
  %386 = load ptr, ptr %8, align 8, !tbaa !5
  %387 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %386, i32 0, i32 4
  %388 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %387, i32 0, i32 0
  %389 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %388, i32 0, i32 4
  %390 = load ptr, ptr %389, align 8, !tbaa !21
  %391 = load i64, ptr %18, align 8, !tbaa !9
  %392 = load i64, ptr %15, align 8, !tbaa !9
  %393 = add nsw i64 %391, %392
  %394 = getelementptr inbounds double, ptr %390, i64 %393
  %395 = load double, ptr %394, align 8, !tbaa !11
  %396 = load ptr, ptr %8, align 8, !tbaa !5
  %397 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %396, i32 0, i32 4
  %398 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %397, i32 0, i32 0
  %399 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %398, i32 0, i32 4
  %400 = load ptr, ptr %399, align 8, !tbaa !21
  %401 = load i64, ptr %19, align 8, !tbaa !9
  %402 = getelementptr inbounds double, ptr %400, i64 %401
  store double %395, ptr %402, align 8, !tbaa !11
  br label %430

403:                                              ; preds = %346
  %404 = load ptr, ptr %8, align 8, !tbaa !5
  %405 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %404, i32 0, i32 4
  %406 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %405, i32 0, i32 0
  %407 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %406, i32 0, i32 4
  %408 = load ptr, ptr %407, align 8, !tbaa !21
  %409 = load i64, ptr %19, align 8, !tbaa !9
  %410 = getelementptr inbounds double, ptr %408, i64 %409
  %411 = load double, ptr %410, align 8, !tbaa !11
  %412 = load ptr, ptr %8, align 8, !tbaa !5
  %413 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %412, i32 0, i32 4
  %414 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %413, i32 0, i32 0
  %415 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %414, i32 0, i32 4
  %416 = load ptr, ptr %415, align 8, !tbaa !21
  %417 = load i64, ptr %18, align 8, !tbaa !9
  %418 = load i64, ptr %15, align 8, !tbaa !9
  %419 = add nsw i64 %417, %418
  %420 = getelementptr inbounds double, ptr %416, i64 %419
  %421 = load double, ptr %420, align 8, !tbaa !11
  %422 = fadd double %411, %421
  %423 = load ptr, ptr %8, align 8, !tbaa !5
  %424 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %423, i32 0, i32 4
  %425 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %424, i32 0, i32 0
  %426 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %425, i32 0, i32 4
  %427 = load ptr, ptr %426, align 8, !tbaa !21
  %428 = load i64, ptr %19, align 8, !tbaa !9
  %429 = getelementptr inbounds double, ptr %427, i64 %428
  store double %422, ptr %429, align 8, !tbaa !11
  br label %430

430:                                              ; preds = %403, %366
  br label %431

431:                                              ; preds = %430
  %432 = load i64, ptr %15, align 8, !tbaa !9
  %433 = add nsw i64 %432, 1
  store i64 %433, ptr %15, align 8, !tbaa !9
  br label %341, !llvm.loop !30

434:                                              ; preds = %341
  %435 = load i64, ptr %19, align 8, !tbaa !9
  %436 = load i64, ptr %18, align 8, !tbaa !9
  %437 = sub nsw i64 %435, %436
  %438 = add nsw i64 %437, 1
  store i64 %438, ptr %11, align 8, !tbaa !9
  store i64 -1, ptr %22, align 8, !tbaa !9
  store i64 -1, ptr %21, align 8, !tbaa !9
  %439 = load i64, ptr %18, align 8, !tbaa !9
  store i64 %439, ptr %16, align 8, !tbaa !9
  br label %440

440:                                              ; preds = %473, %434
  %441 = load i64, ptr %16, align 8, !tbaa !9
  %442 = load i64, ptr %19, align 8, !tbaa !9
  %443 = icmp sle i64 %441, %442
  br i1 %443, label %444, label %476

444:                                              ; preds = %440
  %445 = load ptr, ptr %8, align 8, !tbaa !5
  %446 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %445, i32 0, i32 4
  %447 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %446, i32 0, i32 1
  %448 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %447, i32 0, i32 4
  %449 = load ptr, ptr %448, align 8, !tbaa !21
  %450 = load i64, ptr %16, align 8, !tbaa !9
  %451 = getelementptr inbounds i64, ptr %449, i64 %450
  %452 = load i64, ptr %451, align 8, !tbaa !9
  store i64 %452, ptr %17, align 8, !tbaa !9
  %453 = load i64, ptr %17, align 8, !tbaa !9
  %454 = load ptr, ptr %8, align 8, !tbaa !5
  %455 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %454, i32 0, i32 2
  %456 = load i64, ptr %455, align 8, !tbaa !24
  %457 = icmp eq i64 %453, %456
  br i1 %457, label %458, label %460

458:                                              ; preds = %444
  %459 = load i64, ptr %16, align 8, !tbaa !9
  store i64 %459, ptr %21, align 8, !tbaa !9
  br label %472

460:                                              ; preds = %444
  %461 = load i64, ptr %17, align 8, !tbaa !9
  %462 = load ptr, ptr %8, align 8, !tbaa !5
  %463 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %462, i32 0, i32 2
  %464 = load i64, ptr %463, align 8, !tbaa !24
  %465 = icmp sgt i64 %461, %464
  br i1 %465, label %466, label %471

466:                                              ; preds = %460
  %467 = load i64, ptr %22, align 8, !tbaa !9
  %468 = icmp eq i64 %467, -1
  br i1 %468, label %469, label %471

469:                                              ; preds = %466
  %470 = load i64, ptr %16, align 8, !tbaa !9
  store i64 %470, ptr %22, align 8, !tbaa !9
  br label %476

471:                                              ; preds = %466, %460
  br label %472

472:                                              ; preds = %471, %458
  br label %473

473:                                              ; preds = %472
  %474 = load i64, ptr %16, align 8, !tbaa !9
  %475 = add nsw i64 %474, 1
  store i64 %475, ptr %16, align 8, !tbaa !9
  br label %440, !llvm.loop !31

476:                                              ; preds = %469, %440
  %477 = load i64, ptr %22, align 8, !tbaa !9
  %478 = icmp eq i64 %477, -1
  br i1 %478, label %479, label %482

479:                                              ; preds = %476
  %480 = load i64, ptr %19, align 8, !tbaa !9
  %481 = add nsw i64 %480, 1
  store i64 %481, ptr %22, align 8, !tbaa !9
  br label %482

482:                                              ; preds = %479, %476
  %483 = load i64, ptr %21, align 8, !tbaa !9
  %484 = icmp eq i64 %483, -1
  br i1 %484, label %485, label %487

485:                                              ; preds = %482
  %486 = load i64, ptr %22, align 8, !tbaa !9
  store i64 %486, ptr %21, align 8, !tbaa !9
  br label %487

487:                                              ; preds = %485, %482
  %488 = load i64, ptr %21, align 8, !tbaa !9
  %489 = load ptr, ptr %8, align 8, !tbaa !5
  %490 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %489, i32 0, i32 4
  %491 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %490, i32 0, i32 3
  %492 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %491, i32 0, i32 4
  %493 = load ptr, ptr %492, align 8, !tbaa !21
  %494 = load ptr, ptr %8, align 8, !tbaa !5
  %495 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %494, i32 0, i32 2
  %496 = load i64, ptr %495, align 8, !tbaa !24
  %497 = getelementptr inbounds i64, ptr %493, i64 %496
  store i64 %488, ptr %497, align 8, !tbaa !9
  %498 = load i64, ptr %22, align 8, !tbaa !9
  %499 = load ptr, ptr %8, align 8, !tbaa !5
  %500 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %499, i32 0, i32 4
  %501 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %500, i32 0, i32 4
  %502 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %501, i32 0, i32 4
  %503 = load ptr, ptr %502, align 8, !tbaa !21
  %504 = load ptr, ptr %8, align 8, !tbaa !5
  %505 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %504, i32 0, i32 2
  %506 = load i64, ptr %505, align 8, !tbaa !24
  %507 = getelementptr inbounds i64, ptr %503, i64 %506
  store i64 %498, ptr %507, align 8, !tbaa !9
  %508 = load i64, ptr %19, align 8, !tbaa !9
  %509 = add nsw i64 %508, 1
  %510 = load ptr, ptr %8, align 8, !tbaa !5
  %511 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %510, i32 0, i32 4
  %512 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %511, i32 0, i32 2
  %513 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %512, i32 0, i32 4
  %514 = load ptr, ptr %513, align 8, !tbaa !21
  %515 = load ptr, ptr %8, align 8, !tbaa !5
  %516 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %515, i32 0, i32 2
  %517 = load i64, ptr %516, align 8, !tbaa !24
  %518 = add nsw i64 %517, 1
  %519 = getelementptr inbounds i64, ptr %514, i64 %518
  store i64 %509, ptr %519, align 8, !tbaa !9
  %520 = load ptr, ptr %8, align 8, !tbaa !5
  %521 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %520, i32 0, i32 4
  %522 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %521, i32 0, i32 2
  %523 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %522, i32 0, i32 4
  %524 = load ptr, ptr %523, align 8, !tbaa !21
  %525 = load ptr, ptr %8, align 8, !tbaa !5
  %526 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %525, i32 0, i32 2
  %527 = load i64, ptr %526, align 8, !tbaa !24
  %528 = add nsw i64 %527, 1
  %529 = getelementptr inbounds i64, ptr %524, i64 %528
  %530 = load i64, ptr %529, align 8, !tbaa !9
  %531 = load ptr, ptr %8, align 8, !tbaa !5
  %532 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %531, i32 0, i32 4
  %533 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %532, i32 0, i32 9
  store i64 %530, ptr %533, align 8, !tbaa !28
  %534 = load ptr, ptr %8, align 8, !tbaa !5
  %535 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %534, i32 0, i32 4
  %536 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %535, i32 0, i32 6
  %537 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef %536, ptr noundef %537)
  %538 = load ptr, ptr %8, align 8, !tbaa !5
  %539 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %538, i32 0, i32 2
  %540 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef %539, ptr noundef %540)
  store i32 0, ptr %23, align 4
  br label %541

541:                                              ; preds = %487, %224
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  %542 = load i32, ptr %23, align 4
  switch i32 %542, label %544 [
    i32 0, label %543
    i32 1, label %543
  ]

543:                                              ; preds = %541, %541
  ret void

544:                                              ; preds = %541
  unreachable
}

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN11alglib_impl18xlinearconstraintsE", !10, i64 0, !10, i64 8, !10, i64 16, !15, i64 24, !18, i64 104, !19, i64 472, !19, i64 536, !19, i64 600, !19, i64 664, !10, i64 728, !10, i64 736, !15, i64 744, !19, i64 824, !19, i64 888, !18, i64 952, !19, i64 1320, !19, i64 1384, !18, i64 1448}
!15 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !16, i64 32, !17, i64 40, !7, i64 72}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!18 = !{!"_ZTSN11alglib_impl12sparsematrixE", !19, i64 0, !19, i64 64, !19, i64 128, !19, i64 192, !19, i64 256, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360}
!19 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !16, i64 16, !17, i64 24, !7, i64 56}
!20 = !{!19, !10, i64 0}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!14, !10, i64 16}
!25 = !{!14, !10, i64 424}
!26 = !{!14, !10, i64 432}
!27 = !{!14, !10, i64 440}
!28 = !{!14, !10, i64 456}
!29 = distinct !{!29, !23}
!30 = distinct !{!30, !23}
!31 = distinct !{!31, !23}


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

@.str.397 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.398 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.399 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.400 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.401 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.402 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.403 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.404 = external hidden unnamed_addr constant [35 x i8], align 1

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

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

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

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl9xlcaddlc2EPNS_18xlinearconstraintsEPKNS_9ae_vectorES4_lddPNS_8ae_stateE(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2, i64 noundef %3, double noundef %4, double noundef %5, ptr noundef %6) local_unnamed_addr #1 {
  %8 = load i64, ptr %0, align 8, !tbaa !5
  %9 = icmp sgt i64 %3, -1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %9, ptr noundef nonnull @.str.397, ptr noundef %6)
  %10 = load i64, ptr %1, align 8, !tbaa !16
  %11 = icmp sge i64 %10, %3
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.398, ptr noundef %6)
  %12 = load i64, ptr %2, align 8, !tbaa !16
  %13 = icmp sge i64 %12, %3
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.399, ptr noundef %6)
  %.not.not198 = icmp sgt i64 %3, 0
  br i1 %.not.not198, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %7
  %14 = getelementptr inbounds i8, ptr %1, i64 56
  br label %15

15:                                               ; preds = %.lr.ph, %15
  %.0177199 = phi i64 [ 0, %.lr.ph ], [ %21, %15 ]
  %16 = load ptr, ptr %14, align 8, !tbaa !17
  %17 = getelementptr inbounds i64, ptr %16, i64 %.0177199
  %18 = load i64, ptr %17, align 8, !tbaa !18
  %19 = icmp sgt i64 %18, -1
  %20 = icmp slt i64 %18, %8
  %spec.select = select i1 %19, i1 %20, i1 false
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select, ptr noundef nonnull @.str.400, ptr noundef %6)
  %21 = add nuw nsw i64 %.0177199, 1
  %exitcond.not = icmp eq i64 %21, %3
  br i1 %exitcond.not, label %._crit_edge, label %15, !llvm.loop !19

._crit_edge:                                      ; preds = %15, %7
  %22 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %2, i64 noundef %3, ptr noundef %6)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %22, ptr noundef nonnull @.str.401, ptr noundef %6)
  %23 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %4, ptr noundef %6)
  br i1 %23, label %26, label %24

24:                                               ; preds = %._crit_edge
  %25 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef %4, ptr noundef %6)
  br label %26

26:                                               ; preds = %24, %._crit_edge
  %27 = phi i1 [ true, %._crit_edge ], [ %25, %24 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %27, ptr noundef nonnull @.str.402, ptr noundef %6)
  %28 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %5, ptr noundef %6)
  br i1 %28, label %31, label %29

29:                                               ; preds = %26
  %30 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef %5, ptr noundef %6)
  br label %31

31:                                               ; preds = %29, %26
  %32 = phi i1 [ true, %26 ], [ %30, %29 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %32, ptr noundef nonnull @.str.403, ptr noundef %6)
  %33 = getelementptr inbounds i8, ptr %0, i64 16
  %34 = load i64, ptr %33, align 8, !tbaa !21
  %35 = icmp eq i64 %34, 0
  br i1 %35, label %36, label %44

36:                                               ; preds = %31
  %37 = getelementptr inbounds i8, ptr %0, i64 424
  store i64 1, ptr %37, align 8, !tbaa !22
  %38 = getelementptr inbounds i8, ptr %0, i64 432
  store i64 0, ptr %38, align 8, !tbaa !23
  %39 = getelementptr inbounds i8, ptr %0, i64 440
  store i64 %8, ptr %39, align 8, !tbaa !24
  %40 = getelementptr inbounds i8, ptr %0, i64 456
  store i64 0, ptr %40, align 8, !tbaa !25
  %41 = getelementptr inbounds i8, ptr %0, i64 232
  tail call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %41, i64 noundef 1, ptr noundef %6)
  %42 = getelementptr inbounds i8, ptr %0, i64 288
  %43 = load ptr, ptr %42, align 8, !tbaa !17
  store i64 0, ptr %43, align 8, !tbaa !18
  br label %44

44:                                               ; preds = %36, %31
  %45 = getelementptr inbounds i8, ptr %0, i64 104
  %46 = getelementptr inbounds i8, ptr %0, i64 424
  %47 = load i64, ptr %46, align 8, !tbaa !22
  %48 = icmp eq i64 %47, 1
  br i1 %48, label %49, label %54

49:                                               ; preds = %44
  %50 = getelementptr inbounds i8, ptr %0, i64 432
  %51 = load i64, ptr %50, align 8, !tbaa !23
  %52 = load i64, ptr %33, align 8, !tbaa !21
  %53 = icmp eq i64 %51, %52
  br label %54

54:                                               ; preds = %49, %44
  %55 = phi i1 [ false, %44 ], [ %53, %49 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %55, ptr noundef nonnull @.str.404, ptr noundef %6)
  %56 = load i64, ptr %33, align 8, !tbaa !21
  %57 = add nsw i64 %56, 1
  %58 = getelementptr inbounds i8, ptr %0, i64 600
  tail call void @_ZN11alglib_impl6rgrowvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %57, ptr noundef nonnull %58, ptr noundef %6)
  %59 = load i64, ptr %33, align 8, !tbaa !21
  %60 = add nsw i64 %59, 1
  %61 = getelementptr inbounds i8, ptr %0, i64 664
  tail call void @_ZN11alglib_impl6rgrowvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %60, ptr noundef nonnull %61, ptr noundef %6)
  %62 = getelementptr inbounds i8, ptr %0, i64 656
  %63 = load ptr, ptr %62, align 8, !tbaa !17
  %64 = load i64, ptr %33, align 8, !tbaa !21
  %65 = getelementptr inbounds double, ptr %63, i64 %64
  store double %4, ptr %65, align 8, !tbaa !26
  %66 = getelementptr inbounds i8, ptr %0, i64 720
  %67 = load ptr, ptr %66, align 8, !tbaa !17
  %68 = getelementptr inbounds double, ptr %67, i64 %64
  store double %5, ptr %68, align 8, !tbaa !26
  %69 = getelementptr inbounds i8, ptr %0, i64 232
  %70 = getelementptr inbounds i8, ptr %0, i64 288
  %71 = load ptr, ptr %70, align 8, !tbaa !17
  %72 = getelementptr inbounds i64, ptr %71, i64 %64
  %73 = load i64, ptr %72, align 8, !tbaa !18
  %.fr = freeze i64 %73
  %74 = getelementptr inbounds i8, ptr %0, i64 168
  %75 = add nsw i64 %.fr, %3
  tail call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %74, i64 noundef %75, ptr noundef %6)
  tail call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %45, i64 noundef %75, ptr noundef %6)
  %76 = getelementptr inbounds i8, ptr %0, i64 296
  %77 = load i64, ptr %33, align 8, !tbaa !21
  %78 = add nsw i64 %77, 1
  tail call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %76, i64 noundef %78, ptr noundef %6)
  %79 = getelementptr inbounds i8, ptr %0, i64 360
  %80 = load i64, ptr %33, align 8, !tbaa !21
  %81 = add nsw i64 %80, 1
  tail call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %79, i64 noundef %81, ptr noundef %6)
  %82 = load i64, ptr %33, align 8, !tbaa !21
  %83 = add nsw i64 %82, 2
  tail call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %69, i64 noundef %83, ptr noundef %6)
  %84 = icmp eq i64 %3, 0
  br i1 %84, label %90, label %.preheader194

.preheader194:                                    ; preds = %54
  br i1 %.not.not198, label %.lr.ph202, label %._crit_edge203.thread

._crit_edge203.thread:                            ; preds = %.preheader194
  tail call void @_ZN11alglib_impl15tagsortmiddleirEPNS_9ae_vectorES1_llPNS_8ae_stateE(ptr noundef nonnull %74, ptr noundef nonnull %45, i64 noundef %.fr, i64 noundef %3, ptr noundef %6)
  br label %.preheader.thread

.lr.ph202:                                        ; preds = %.preheader194
  %85 = getelementptr inbounds i8, ptr %1, i64 56
  %86 = getelementptr inbounds i8, ptr %0, i64 224
  %87 = getelementptr inbounds i8, ptr %2, i64 56
  %88 = getelementptr inbounds i8, ptr %0, i64 160
  %xtraiter = and i64 %3, 1
  %89 = icmp eq i64 %3, 1
  br i1 %89, label %._crit_edge203.unr-lcssa, label %.lr.ph202.new

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

90:                                               ; preds = %54
  %91 = load ptr, ptr %70, align 8, !tbaa !17
  %92 = load i64, ptr %33, align 8, !tbaa !21
  %93 = getelementptr inbounds i64, ptr %91, i64 %92
  %94 = load i64, ptr %93, align 8, !tbaa !18
  %95 = getelementptr inbounds i8, ptr %0, i64 352
  %96 = load ptr, ptr %95, align 8, !tbaa !17
  %97 = getelementptr inbounds i64, ptr %96, i64 %92
  store i64 %94, ptr %97, align 8, !tbaa !18
  %98 = load ptr, ptr %70, align 8, !tbaa !17
  %99 = load i64, ptr %33, align 8, !tbaa !21
  %100 = getelementptr inbounds i64, ptr %98, i64 %99
  %101 = load i64, ptr %100, align 8, !tbaa !18
  %102 = getelementptr inbounds i8, ptr %0, i64 416
  %103 = load ptr, ptr %102, align 8, !tbaa !17
  %104 = getelementptr inbounds i64, ptr %103, i64 %99
  store i64 %101, ptr %104, align 8, !tbaa !18
  %105 = load ptr, ptr %70, align 8, !tbaa !17
  %106 = load i64, ptr %33, align 8, !tbaa !21
  %107 = getelementptr inbounds i64, ptr %105, i64 %106
  %108 = load i64, ptr %107, align 8, !tbaa !18
  %109 = getelementptr i8, ptr %107, i64 8
  store i64 %108, ptr %109, align 8, !tbaa !18
  br label %206

110:                                              ; preds = %110, %.lr.ph202.new
  %.1178201 = phi i64 [ 0, %.lr.ph202.new ], [ %134, %110 ]
  %niter = phi i64 [ 0, %.lr.ph202.new ], [ %niter.next.1, %110 ]
  %111 = load ptr, ptr %85, align 8, !tbaa !17
  %112 = getelementptr inbounds i64, ptr %111, i64 %.1178201
  %113 = load i64, ptr %112, align 8, !tbaa !18
  %114 = load ptr, ptr %86, align 8, !tbaa !17
  %115 = add nsw i64 %.1178201, %.fr
  %116 = getelementptr inbounds i64, ptr %114, i64 %115
  store i64 %113, ptr %116, align 8, !tbaa !18
  %117 = load ptr, ptr %87, align 8, !tbaa !17
  %118 = getelementptr inbounds double, ptr %117, i64 %.1178201
  %119 = load double, ptr %118, align 8, !tbaa !26
  %120 = load ptr, ptr %88, align 8, !tbaa !17
  %121 = getelementptr inbounds double, ptr %120, i64 %115
  store double %119, ptr %121, align 8, !tbaa !26
  %122 = or disjoint i64 %.1178201, 1
  %123 = load ptr, ptr %85, align 8, !tbaa !17
  %124 = getelementptr inbounds i64, ptr %123, i64 %122
  %125 = load i64, ptr %124, align 8, !tbaa !18
  %126 = load ptr, ptr %86, align 8, !tbaa !17
  %127 = add nsw i64 %122, %.fr
  %128 = getelementptr inbounds i64, ptr %126, i64 %127
  store i64 %125, ptr %128, align 8, !tbaa !18
  %129 = load ptr, ptr %87, align 8, !tbaa !17
  %130 = getelementptr inbounds double, ptr %129, i64 %122
  %131 = load double, ptr %130, align 8, !tbaa !26
  %132 = load ptr, ptr %88, align 8, !tbaa !17
  %133 = getelementptr inbounds double, ptr %132, i64 %127
  store double %131, ptr %133, align 8, !tbaa !26
  %134 = add nuw nsw i64 %.1178201, 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_edge203.unr-lcssa, label %110, !llvm.loop !28

._crit_edge203.unr-lcssa:                         ; preds = %110, %.lr.ph202
  %.1178201.unr = phi i64 [ 0, %.lr.ph202 ], [ %134, %110 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge203, label %._crit_edge203.epilog-lcssa

._crit_edge203.epilog-lcssa:                      ; preds = %._crit_edge203.unr-lcssa
  %135 = load ptr, ptr %85, align 8, !tbaa !17
  %136 = getelementptr inbounds i64, ptr %135, i64 %.1178201.unr
  %137 = load i64, ptr %136, align 8, !tbaa !18
  %138 = load ptr, ptr %86, align 8, !tbaa !17
  %139 = add nsw i64 %.1178201.unr, %.fr
  %140 = getelementptr inbounds i64, ptr %138, i64 %139
  store i64 %137, ptr %140, align 8, !tbaa !18
  %141 = load ptr, ptr %87, align 8, !tbaa !17
  %142 = getelementptr inbounds double, ptr %141, i64 %.1178201.unr
  %143 = load double, ptr %142, align 8, !tbaa !26
  %144 = load ptr, ptr %88, align 8, !tbaa !17
  %145 = getelementptr inbounds double, ptr %144, i64 %139
  store double %143, ptr %145, align 8, !tbaa !26
  br label %._crit_edge203

._crit_edge203:                                   ; preds = %._crit_edge203.unr-lcssa, %._crit_edge203.epilog-lcssa
  tail call void @_ZN11alglib_impl15tagsortmiddleirEPNS_9ae_vectorES1_llPNS_8ae_stateE(ptr noundef nonnull %74, ptr noundef nonnull %45, i64 noundef %.fr, i64 noundef %3, ptr noundef %6)
  %.not.not188204.not = icmp eq i64 %3, 1
  br i1 %.not.not188204.not, label %.preheader.thread, label %.lr.ph208

.lr.ph208:                                        ; preds = %._crit_edge203
  %146 = getelementptr inbounds i8, ptr %0, i64 224
  %147 = getelementptr inbounds i8, ptr %0, i64 160
  br label %150

.preheader.thread:                                ; preds = %._crit_edge203, %._crit_edge203.thread
  %.pre.pre221 = load i64, ptr %33, align 8, !tbaa !21
  br label %.lr.ph212

.preheader:                                       ; preds = %171
  %.not209 = icmp sgt i64 %.fr, %.1176
  %.pre.pre = load i64, ptr %33, align 8, !tbaa !21
  br i1 %.not209, label %.thread, label %.lr.ph212

.lr.ph212:                                        ; preds = %.preheader.thread, %.preheader
  %.pre.pre224 = phi i64 [ %.pre.pre221, %.preheader.thread ], [ %.pre.pre, %.preheader ]
  %.0175.lcssa222 = phi i64 [ %.fr, %.preheader.thread ], [ %.1176, %.preheader ]
  %148 = getelementptr inbounds i8, ptr %0, i64 224
  %149 = load ptr, ptr %148, align 8, !tbaa !17
  br label %174

150:                                              ; preds = %.lr.ph208, %171
  %.0175206 = phi i64 [ %.fr, %.lr.ph208 ], [ %.1176, %171 ]
  %.2179205 = phi i64 [ 1, %.lr.ph208 ], [ %172, %171 ]
  %151 = load ptr, ptr %146, align 8, !tbaa !17
  %152 = getelementptr inbounds i64, ptr %151, i64 %.0175206
  %153 = load i64, ptr %152, align 8, !tbaa !18
  %154 = add nsw i64 %.2179205, %.fr
  %155 = getelementptr inbounds i64, ptr %151, i64 %154
  %156 = load i64, ptr %155, align 8, !tbaa !18
  %.not189 = icmp eq i64 %153, %156
  br i1 %.not189, label %164, label %157

157:                                              ; preds = %150
  %158 = add nsw i64 %.0175206, 1
  %159 = getelementptr inbounds i64, ptr %151, i64 %158
  store i64 %156, ptr %159, align 8, !tbaa !18
  %160 = load ptr, ptr %147, align 8, !tbaa !17
  %161 = getelementptr inbounds double, ptr %160, i64 %154
  %162 = load double, ptr %161, align 8, !tbaa !26
  %163 = getelementptr inbounds double, ptr %160, i64 %158
  store double %162, ptr %163, align 8, !tbaa !26
  br label %171

164:                                              ; preds = %150
  %165 = load ptr, ptr %147, align 8, !tbaa !17
  %166 = getelementptr inbounds double, ptr %165, i64 %.0175206
  %167 = load double, ptr %166, align 8, !tbaa !26
  %168 = getelementptr inbounds double, ptr %165, i64 %154
  %169 = load double, ptr %168, align 8, !tbaa !26
  %170 = fadd double %167, %169
  store double %170, ptr %166, align 8, !tbaa !26
  br label %171

171:                                              ; preds = %157, %164
  %.1176 = phi i64 [ %158, %157 ], [ %.0175206, %164 ]
  %172 = add nuw nsw i64 %.2179205, 1
  %exitcond217.not = icmp eq i64 %172, %3
  br i1 %exitcond217.not, label %.preheader, label %150, !llvm.loop !29

.thread:                                          ; preds = %180, %.preheader
  %.pre.pre226 = phi i64 [ %.pre.pre, %.preheader ], [ %.pre.pre224, %180 ]
  %.0175.lcssa223 = phi i64 [ %.1176, %.preheader ], [ %.0175.lcssa222, %180 ]
  %.0173.lcssa = phi i64 [ -1, %.preheader ], [ %.1174, %180 ]
  %173 = add nsw i64 %.0175.lcssa223, 1
  br label %185

174:                                              ; preds = %.lr.ph212, %180
  %.0173211 = phi i64 [ -1, %.lr.ph212 ], [ %.1174, %180 ]
  %.0180210 = phi i64 [ %.fr, %.lr.ph212 ], [ %181, %180 ]
  %175 = getelementptr inbounds i64, ptr %149, i64 %.0180210
  %176 = load i64, ptr %175, align 8, !tbaa !18
  %177 = icmp eq i64 %176, %.pre.pre224
  br i1 %177, label %180, label %178

178:                                              ; preds = %174
  %179 = icmp sgt i64 %176, %.pre.pre224
  br i1 %179, label %182, label %180

180:                                              ; preds = %174, %178
  %.1174 = phi i64 [ %.0173211, %178 ], [ %.0180210, %174 ]
  %181 = add i64 %.0180210, 1
  %.not = icmp sgt i64 %181, %.0175.lcssa222
  br i1 %.not, label %.thread, label %174, !llvm.loop !30

182:                                              ; preds = %178
  %183 = icmp eq i64 %.0180210, -1
  %184 = add nsw i64 %.0175.lcssa222, 1
  %spec.select193 = select i1 %183, i64 %184, i64 %.0180210
  br label %185

185:                                              ; preds = %182, %.thread
  %.pre.pre225 = phi i64 [ %.pre.pre226, %.thread ], [ %.pre.pre224, %182 ]
  %.0173196 = phi i64 [ %.0173.lcssa, %.thread ], [ %.0173211, %182 ]
  %186 = phi i64 [ %173, %.thread ], [ %184, %182 ]
  %187 = phi i64 [ %173, %.thread ], [ %spec.select193, %182 ]
  %188 = icmp eq i64 %.0173196, -1
  %.2 = select i1 %188, i64 %187, i64 %.0173196
  %189 = getelementptr inbounds i8, ptr %0, i64 352
  %190 = load ptr, ptr %189, align 8, !tbaa !17
  %191 = getelementptr inbounds i64, ptr %190, i64 %.pre.pre225
  store i64 %.2, ptr %191, align 8, !tbaa !18
  %192 = getelementptr inbounds i8, ptr %0, i64 416
  %193 = load ptr, ptr %192, align 8, !tbaa !17
  %194 = load i64, ptr %33, align 8, !tbaa !21
  %195 = getelementptr inbounds i64, ptr %193, i64 %194
  store i64 %187, ptr %195, align 8, !tbaa !18
  %196 = load ptr, ptr %70, align 8, !tbaa !17
  %197 = load i64, ptr %33, align 8, !tbaa !21
  %198 = getelementptr i64, ptr %196, i64 %197
  %199 = getelementptr i8, ptr %198, i64 8
  store i64 %186, ptr %199, align 8, !tbaa !18
  %200 = load ptr, ptr %70, align 8, !tbaa !17
  %201 = load i64, ptr %33, align 8, !tbaa !21
  %202 = getelementptr i64, ptr %200, i64 %201
  %203 = getelementptr i8, ptr %202, i64 8
  %204 = load i64, ptr %203, align 8, !tbaa !18
  %205 = getelementptr inbounds i8, ptr %0, i64 456
  store i64 %204, ptr %205, align 8, !tbaa !25
  br label %206

206:                                              ; preds = %185, %90
  %207 = getelementptr inbounds i8, ptr %0, i64 432
  tail call void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef nonnull %207, ptr noundef %6)
  tail call void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef nonnull %33, ptr noundef %6)
  ret void
}

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 = !{!15, !7, i64 0}
!17 = !{!8, !8, i64 0}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!6, !7, i64 16}
!22 = !{!6, !7, i64 424}
!23 = !{!6, !7, i64 432}
!24 = !{!6, !7, i64 440}
!25 = !{!6, !7, i64 456}
!26 = !{!27, !27, i64 0}
!27 = !{!"double", !8, i64 0}
!28 = distinct !{!28, !20}
!29 = distinct !{!29, !20}
!30 = distinct !{!30, !20}


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