; 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.405 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.406 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.407 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.408 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.409 = external hidden unnamed_addr constant [50 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl24xlcaddlc2sparsefromdenseEPNS_18xlinearconstraintsEPKNS_9ae_vectorEddPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, double noundef %2, double noundef %3, ptr noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, 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 i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store double %2, ptr %8, align 8, !tbaa !9
  store double %3, ptr %9, align 8, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  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
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %21, i32 0, i32 0
  %23 = load i64, ptr %22, align 8, !tbaa !11
  store i64 %23, ptr %16, align 8, !tbaa !19
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %24, i32 0, i32 0
  %26 = load i64, ptr %25, align 8, !tbaa !20
  %27 = load i64, ptr %16, align 8, !tbaa !19
  %28 = icmp sge i64 %26, %27
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %28, ptr noundef @.str.405, ptr noundef %29)
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = load i64, ptr %16, align 8, !tbaa !19
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  %33 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %30, i64 noundef %31, ptr noundef %32)
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %33, ptr noundef @.str.406, ptr noundef %34)
  %35 = load double, ptr %8, align 8, !tbaa !9
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %35, ptr noundef %36)
  br i1 %37, label %42, label %38

38:                                               ; preds = %5
  %39 = load double, ptr %8, align 8, !tbaa !9
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef %39, ptr noundef %40)
  br label %42

42:                                               ; preds = %38, %5
  %43 = phi i1 [ true, %5 ], [ %41, %38 ]
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %43, ptr noundef @.str.407, ptr noundef %44)
  %45 = load double, ptr %9, align 8, !tbaa !9
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %45, ptr noundef %46)
  br i1 %47, label %52, label %48

48:                                               ; preds = %42
  %49 = load double, ptr %9, align 8, !tbaa !9
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef %49, ptr noundef %50)
  br label %52

52:                                               ; preds = %48, %42
  %53 = phi i1 [ true, %42 ], [ %51, %48 ]
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %53, ptr noundef @.str.408, ptr noundef %54)
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %55, i32 0, i32 2
  %57 = load i64, ptr %56, align 8, !tbaa !21
  %58 = icmp eq i64 %57, 0
  br i1 %58, label %59, label %83

59:                                               ; preds = %52
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %60, i32 0, i32 4
  %62 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %61, i32 0, i32 5
  store i64 1, ptr %62, align 8, !tbaa !22
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %63, i32 0, i32 4
  %65 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %64, i32 0, i32 6
  store i64 0, ptr %65, align 8, !tbaa !23
  %66 = load i64, ptr %16, align 8, !tbaa !19
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %67, i32 0, i32 4
  %69 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %68, i32 0, i32 7
  store i64 %66, ptr %69, align 8, !tbaa !24
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %70, i32 0, i32 4
  %72 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %71, i32 0, i32 9
  store i64 0, ptr %72, align 8, !tbaa !25
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %73, i32 0, i32 4
  %75 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %74, i32 0, i32 2
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %75, i64 noundef 1, ptr noundef %76)
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %77, i32 0, i32 4
  %79 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %78, i32 0, i32 2
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %79, i32 0, i32 4
  %81 = load ptr, ptr %80, align 8, !tbaa !26
  %82 = getelementptr inbounds i64, ptr %81, i64 0
  store i64 0, ptr %82, align 8, !tbaa !19
  br label %83

83:                                               ; preds = %59, %52
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %84, i32 0, i32 4
  %86 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %85, i32 0, i32 5
  %87 = load i64, ptr %86, align 8, !tbaa !22
  %88 = icmp eq i64 %87, 1
  br i1 %88, label %89, label %98

89:                                               ; preds = %83
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %90, i32 0, i32 4
  %92 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %91, i32 0, i32 6
  %93 = load i64, ptr %92, align 8, !tbaa !23
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %94, i32 0, i32 2
  %96 = load i64, ptr %95, align 8, !tbaa !21
  %97 = icmp eq i64 %93, %96
  br label %98

98:                                               ; preds = %89, %83
  %99 = phi i1 [ false, %83 ], [ %97, %89 ]
  %100 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %99, ptr noundef @.str.409, ptr noundef %100)
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %101, i32 0, i32 7
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %103, i32 0, i32 2
  %105 = load i64, ptr %104, align 8, !tbaa !21
  %106 = add nsw i64 %105, 1
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %102, i64 noundef %106, ptr noundef %107)
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %108, i32 0, i32 8
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %110, i32 0, i32 2
  %112 = load i64, ptr %111, align 8, !tbaa !21
  %113 = add nsw i64 %112, 1
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %109, i64 noundef %113, ptr noundef %114)
  %115 = load double, ptr %8, align 8, !tbaa !9
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %116, i32 0, i32 7
  %118 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %117, i32 0, i32 4
  %119 = load ptr, ptr %118, align 8, !tbaa !26
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %120, i32 0, i32 2
  %122 = load i64, ptr %121, align 8, !tbaa !21
  %123 = getelementptr inbounds double, ptr %119, i64 %122
  store double %115, ptr %123, align 8, !tbaa !9
  %124 = load double, ptr %9, align 8, !tbaa !9
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %125, i32 0, i32 8
  %127 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %126, i32 0, i32 4
  %128 = load ptr, ptr %127, align 8, !tbaa !26
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %129, i32 0, i32 2
  %131 = load i64, ptr %130, align 8, !tbaa !21
  %132 = getelementptr inbounds double, ptr %128, i64 %131
  store double %124, ptr %132, align 8, !tbaa !9
  store i64 0, ptr %17, align 8, !tbaa !19
  store i64 0, ptr %11, align 8, !tbaa !19
  br label %133

133:                                              ; preds = %150, %98
  %134 = load i64, ptr %11, align 8, !tbaa !19
  %135 = load i64, ptr %16, align 8, !tbaa !19
  %136 = sub nsw i64 %135, 1
  %137 = icmp sle i64 %134, %136
  br i1 %137, label %138, label %153

138:                                              ; preds = %133
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %139, i32 0, i32 4
  %141 = load ptr, ptr %140, align 8, !tbaa !26
  %142 = load i64, ptr %11, align 8, !tbaa !19
  %143 = getelementptr inbounds double, ptr %141, i64 %142
  %144 = load double, ptr %143, align 8, !tbaa !9
  %145 = fcmp oeq double %144, 0.000000e+00
  br i1 %145, label %149, label %146

146:                                              ; preds = %138
  %147 = load i64, ptr %17, align 8, !tbaa !19
  %148 = add nsw i64 %147, 1
  store i64 %148, ptr %17, align 8, !tbaa !19
  br label %149

149:                                              ; preds = %146, %138
  br label %150

150:                                              ; preds = %149
  %151 = load i64, ptr %11, align 8, !tbaa !19
  %152 = add nsw i64 %151, 1
  store i64 %152, ptr %11, align 8, !tbaa !19
  br label %133, !llvm.loop !27

153:                                              ; preds = %133
  %154 = load ptr, ptr %6, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %154, i32 0, i32 4
  %156 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %155, i32 0, i32 2
  %157 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %156, i32 0, i32 4
  %158 = load ptr, ptr %157, align 8, !tbaa !26
  %159 = load ptr, ptr %6, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %159, i32 0, i32 2
  %161 = load i64, ptr %160, align 8, !tbaa !21
  %162 = getelementptr inbounds i64, ptr %158, i64 %161
  %163 = load i64, ptr %162, align 8, !tbaa !19
  store i64 %163, ptr %15, align 8, !tbaa !19
  %164 = load ptr, ptr %6, align 8, !tbaa !5
  %165 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %164, i32 0, i32 4
  %166 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %165, i32 0, i32 1
  %167 = load i64, ptr %15, align 8, !tbaa !19
  %168 = load i64, ptr %17, align 8, !tbaa !19
  %169 = add nsw i64 %167, %168
  %170 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %166, i64 noundef %169, ptr noundef %170)
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %171, i32 0, i32 4
  %173 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %172, i32 0, i32 0
  %174 = load i64, ptr %15, align 8, !tbaa !19
  %175 = load i64, ptr %17, align 8, !tbaa !19
  %176 = add nsw i64 %174, %175
  %177 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %173, i64 noundef %176, ptr noundef %177)
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  %179 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %178, i32 0, i32 4
  %180 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %179, i32 0, i32 3
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  %182 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %181, i32 0, i32 2
  %183 = load i64, ptr %182, align 8, !tbaa !21
  %184 = add nsw i64 %183, 1
  %185 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %180, i64 noundef %184, ptr noundef %185)
  %186 = load ptr, ptr %6, align 8, !tbaa !5
  %187 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %186, i32 0, i32 4
  %188 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %187, i32 0, i32 4
  %189 = load ptr, ptr %6, align 8, !tbaa !5
  %190 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %189, i32 0, i32 2
  %191 = load i64, ptr %190, align 8, !tbaa !21
  %192 = add nsw i64 %191, 1
  %193 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %188, i64 noundef %192, ptr noundef %193)
  %194 = load ptr, ptr %6, align 8, !tbaa !5
  %195 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %194, i32 0, i32 4
  %196 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %195, i32 0, i32 2
  %197 = load ptr, ptr %6, align 8, !tbaa !5
  %198 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %197, i32 0, i32 2
  %199 = load i64, ptr %198, align 8, !tbaa !21
  %200 = add nsw i64 %199, 2
  %201 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %196, i64 noundef %200, ptr noundef %201)
  %202 = load i64, ptr %17, align 8, !tbaa !19
  %203 = icmp eq i64 %202, 0
  br i1 %203, label %204, label %270

204:                                              ; preds = %153
  %205 = load ptr, ptr %6, align 8, !tbaa !5
  %206 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %205, i32 0, i32 4
  %207 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %206, i32 0, i32 2
  %208 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %207, i32 0, i32 4
  %209 = load ptr, ptr %208, align 8, !tbaa !26
  %210 = load ptr, ptr %6, align 8, !tbaa !5
  %211 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %210, i32 0, i32 2
  %212 = load i64, ptr %211, align 8, !tbaa !21
  %213 = getelementptr inbounds i64, ptr %209, i64 %212
  %214 = load i64, ptr %213, align 8, !tbaa !19
  %215 = load ptr, ptr %6, align 8, !tbaa !5
  %216 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %215, i32 0, i32 4
  %217 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %216, i32 0, i32 3
  %218 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %217, i32 0, i32 4
  %219 = load ptr, ptr %218, align 8, !tbaa !26
  %220 = load ptr, ptr %6, align 8, !tbaa !5
  %221 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %220, i32 0, i32 2
  %222 = load i64, ptr %221, align 8, !tbaa !21
  %223 = getelementptr inbounds i64, ptr %219, i64 %222
  store i64 %214, ptr %223, align 8, !tbaa !19
  %224 = load ptr, ptr %6, align 8, !tbaa !5
  %225 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %224, i32 0, i32 4
  %226 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %225, i32 0, i32 2
  %227 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %226, i32 0, i32 4
  %228 = load ptr, ptr %227, align 8, !tbaa !26
  %229 = load ptr, ptr %6, align 8, !tbaa !5
  %230 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %229, i32 0, i32 2
  %231 = load i64, ptr %230, align 8, !tbaa !21
  %232 = getelementptr inbounds i64, ptr %228, i64 %231
  %233 = load i64, ptr %232, align 8, !tbaa !19
  %234 = load ptr, ptr %6, align 8, !tbaa !5
  %235 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %234, i32 0, i32 4
  %236 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %235, i32 0, i32 4
  %237 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %236, i32 0, i32 4
  %238 = load ptr, ptr %237, align 8, !tbaa !26
  %239 = load ptr, ptr %6, align 8, !tbaa !5
  %240 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %239, i32 0, i32 2
  %241 = load i64, ptr %240, align 8, !tbaa !21
  %242 = getelementptr inbounds i64, ptr %238, i64 %241
  store i64 %233, ptr %242, align 8, !tbaa !19
  %243 = load ptr, ptr %6, 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 !26
  %248 = load ptr, ptr %6, align 8, !tbaa !5
  %249 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %248, i32 0, i32 2
  %250 = load i64, ptr %249, align 8, !tbaa !21
  %251 = getelementptr inbounds i64, ptr %247, i64 %250
  %252 = load i64, ptr %251, align 8, !tbaa !19
  %253 = load ptr, ptr %6, align 8, !tbaa !5
  %254 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %253, i32 0, i32 4
  %255 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %254, i32 0, i32 2
  %256 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %255, i32 0, i32 4
  %257 = load ptr, ptr %256, align 8, !tbaa !26
  %258 = load ptr, ptr %6, align 8, !tbaa !5
  %259 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %258, i32 0, i32 2
  %260 = load i64, ptr %259, align 8, !tbaa !21
  %261 = add nsw i64 %260, 1
  %262 = getelementptr inbounds i64, ptr %257, i64 %261
  store i64 %252, ptr %262, align 8, !tbaa !19
  %263 = load ptr, ptr %6, 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 6
  %266 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef %265, ptr noundef %266)
  %267 = load ptr, ptr %6, align 8, !tbaa !5
  %268 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %267, i32 0, i32 2
  %269 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef %268, ptr noundef %269)
  store i32 1, ptr %20, align 4
  br label %424

270:                                              ; preds = %153
  store i64 0, ptr %14, align 8, !tbaa !19
  store i64 0, ptr %11, align 8, !tbaa !19
  br label %271

271:                                              ; preds = %313, %270
  %272 = load i64, ptr %11, align 8, !tbaa !19
  %273 = load i64, ptr %16, align 8, !tbaa !19
  %274 = sub nsw i64 %273, 1
  %275 = icmp sle i64 %272, %274
  br i1 %275, label %276, label %316

276:                                              ; preds = %271
  %277 = load ptr, ptr %7, align 8, !tbaa !5
  %278 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %277, i32 0, i32 4
  %279 = load ptr, ptr %278, align 8, !tbaa !26
  %280 = load i64, ptr %11, align 8, !tbaa !19
  %281 = getelementptr inbounds double, ptr %279, i64 %280
  %282 = load double, ptr %281, align 8, !tbaa !9
  %283 = fcmp oeq double %282, 0.000000e+00
  br i1 %283, label %312, label %284

284:                                              ; preds = %276
  %285 = load i64, ptr %11, align 8, !tbaa !19
  %286 = load ptr, ptr %6, align 8, !tbaa !5
  %287 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %286, i32 0, i32 4
  %288 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %287, i32 0, i32 1
  %289 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %288, i32 0, i32 4
  %290 = load ptr, ptr %289, align 8, !tbaa !26
  %291 = load i64, ptr %15, align 8, !tbaa !19
  %292 = load i64, ptr %14, align 8, !tbaa !19
  %293 = add nsw i64 %291, %292
  %294 = getelementptr inbounds i64, ptr %290, i64 %293
  store i64 %285, ptr %294, align 8, !tbaa !19
  %295 = load ptr, ptr %7, align 8, !tbaa !5
  %296 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %295, i32 0, i32 4
  %297 = load ptr, ptr %296, align 8, !tbaa !26
  %298 = load i64, ptr %11, align 8, !tbaa !19
  %299 = getelementptr inbounds double, ptr %297, i64 %298
  %300 = load double, ptr %299, align 8, !tbaa !9
  %301 = load ptr, ptr %6, align 8, !tbaa !5
  %302 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %301, i32 0, i32 4
  %303 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %302, i32 0, i32 0
  %304 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %303, i32 0, i32 4
  %305 = load ptr, ptr %304, align 8, !tbaa !26
  %306 = load i64, ptr %15, align 8, !tbaa !19
  %307 = load i64, ptr %14, align 8, !tbaa !19
  %308 = add nsw i64 %306, %307
  %309 = getelementptr inbounds double, ptr %305, i64 %308
  store double %300, ptr %309, align 8, !tbaa !9
  %310 = load i64, ptr %14, align 8, !tbaa !19
  %311 = add nsw i64 %310, 1
  store i64 %311, ptr %14, align 8, !tbaa !19
  br label %312

312:                                              ; preds = %284, %276
  br label %313

313:                                              ; preds = %312
  %314 = load i64, ptr %11, align 8, !tbaa !19
  %315 = add nsw i64 %314, 1
  store i64 %315, ptr %11, align 8, !tbaa !19
  br label %271, !llvm.loop !29

316:                                              ; preds = %271
  store i64 -1, ptr %19, align 8, !tbaa !19
  store i64 -1, ptr %18, align 8, !tbaa !19
  %317 = load i64, ptr %15, align 8, !tbaa !19
  store i64 %317, ptr %12, align 8, !tbaa !19
  br label %318

318:                                              ; preds = %354, %316
  %319 = load i64, ptr %12, align 8, !tbaa !19
  %320 = load i64, ptr %15, align 8, !tbaa !19
  %321 = load i64, ptr %17, align 8, !tbaa !19
  %322 = add nsw i64 %320, %321
  %323 = sub nsw i64 %322, 1
  %324 = icmp sle i64 %319, %323
  br i1 %324, label %325, label %357

325:                                              ; preds = %318
  %326 = load ptr, ptr %6, align 8, !tbaa !5
  %327 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %326, i32 0, i32 4
  %328 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %327, i32 0, i32 1
  %329 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %328, i32 0, i32 4
  %330 = load ptr, ptr %329, align 8, !tbaa !26
  %331 = load i64, ptr %12, align 8, !tbaa !19
  %332 = getelementptr inbounds i64, ptr %330, i64 %331
  %333 = load i64, ptr %332, align 8, !tbaa !19
  store i64 %333, ptr %13, align 8, !tbaa !19
  %334 = load i64, ptr %13, align 8, !tbaa !19
  %335 = load ptr, ptr %6, align 8, !tbaa !5
  %336 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %335, i32 0, i32 2
  %337 = load i64, ptr %336, align 8, !tbaa !21
  %338 = icmp eq i64 %334, %337
  br i1 %338, label %339, label %341

339:                                              ; preds = %325
  %340 = load i64, ptr %12, align 8, !tbaa !19
  store i64 %340, ptr %18, align 8, !tbaa !19
  br label %353

341:                                              ; preds = %325
  %342 = load i64, ptr %13, align 8, !tbaa !19
  %343 = load ptr, ptr %6, align 8, !tbaa !5
  %344 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %343, i32 0, i32 2
  %345 = load i64, ptr %344, align 8, !tbaa !21
  %346 = icmp sgt i64 %342, %345
  br i1 %346, label %347, label %352

347:                                              ; preds = %341
  %348 = load i64, ptr %19, align 8, !tbaa !19
  %349 = icmp eq i64 %348, -1
  br i1 %349, label %350, label %352

350:                                              ; preds = %347
  %351 = load i64, ptr %12, align 8, !tbaa !19
  store i64 %351, ptr %19, align 8, !tbaa !19
  br label %357

352:                                              ; preds = %347, %341
  br label %353

353:                                              ; preds = %352, %339
  br label %354

354:                                              ; preds = %353
  %355 = load i64, ptr %12, align 8, !tbaa !19
  %356 = add nsw i64 %355, 1
  store i64 %356, ptr %12, align 8, !tbaa !19
  br label %318, !llvm.loop !30

357:                                              ; preds = %350, %318
  %358 = load i64, ptr %19, align 8, !tbaa !19
  %359 = icmp eq i64 %358, -1
  br i1 %359, label %360, label %364

360:                                              ; preds = %357
  %361 = load i64, ptr %15, align 8, !tbaa !19
  %362 = load i64, ptr %17, align 8, !tbaa !19
  %363 = add nsw i64 %361, %362
  store i64 %363, ptr %19, align 8, !tbaa !19
  br label %364

364:                                              ; preds = %360, %357
  %365 = load i64, ptr %18, align 8, !tbaa !19
  %366 = icmp eq i64 %365, -1
  br i1 %366, label %367, label %369

367:                                              ; preds = %364
  %368 = load i64, ptr %19, align 8, !tbaa !19
  store i64 %368, ptr %18, align 8, !tbaa !19
  br label %369

369:                                              ; preds = %367, %364
  %370 = load i64, ptr %18, align 8, !tbaa !19
  %371 = load ptr, ptr %6, align 8, !tbaa !5
  %372 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %371, i32 0, i32 4
  %373 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %372, i32 0, i32 3
  %374 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %373, i32 0, i32 4
  %375 = load ptr, ptr %374, align 8, !tbaa !26
  %376 = load ptr, ptr %6, align 8, !tbaa !5
  %377 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %376, i32 0, i32 2
  %378 = load i64, ptr %377, align 8, !tbaa !21
  %379 = getelementptr inbounds i64, ptr %375, i64 %378
  store i64 %370, ptr %379, align 8, !tbaa !19
  %380 = load i64, ptr %19, align 8, !tbaa !19
  %381 = load ptr, ptr %6, align 8, !tbaa !5
  %382 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %381, i32 0, i32 4
  %383 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %382, i32 0, i32 4
  %384 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %383, i32 0, i32 4
  %385 = load ptr, ptr %384, align 8, !tbaa !26
  %386 = load ptr, ptr %6, align 8, !tbaa !5
  %387 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %386, i32 0, i32 2
  %388 = load i64, ptr %387, align 8, !tbaa !21
  %389 = getelementptr inbounds i64, ptr %385, i64 %388
  store i64 %380, ptr %389, align 8, !tbaa !19
  %390 = load i64, ptr %15, align 8, !tbaa !19
  %391 = load i64, ptr %17, align 8, !tbaa !19
  %392 = add nsw i64 %390, %391
  %393 = load ptr, ptr %6, align 8, !tbaa !5
  %394 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %393, i32 0, i32 4
  %395 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %394, i32 0, i32 2
  %396 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %395, i32 0, i32 4
  %397 = load ptr, ptr %396, align 8, !tbaa !26
  %398 = load ptr, ptr %6, align 8, !tbaa !5
  %399 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %398, i32 0, i32 2
  %400 = load i64, ptr %399, align 8, !tbaa !21
  %401 = add nsw i64 %400, 1
  %402 = getelementptr inbounds i64, ptr %397, i64 %401
  store i64 %392, ptr %402, align 8, !tbaa !19
  %403 = load ptr, ptr %6, align 8, !tbaa !5
  %404 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %403, i32 0, i32 4
  %405 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %404, i32 0, i32 2
  %406 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %405, i32 0, i32 4
  %407 = load ptr, ptr %406, align 8, !tbaa !26
  %408 = load ptr, ptr %6, align 8, !tbaa !5
  %409 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %408, i32 0, i32 2
  %410 = load i64, ptr %409, align 8, !tbaa !21
  %411 = add nsw i64 %410, 1
  %412 = getelementptr inbounds i64, ptr %407, i64 %411
  %413 = load i64, ptr %412, align 8, !tbaa !19
  %414 = load ptr, ptr %6, align 8, !tbaa !5
  %415 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %414, i32 0, i32 4
  %416 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %415, i32 0, i32 9
  store i64 %413, ptr %416, align 8, !tbaa !25
  %417 = load ptr, ptr %6, align 8, !tbaa !5
  %418 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %417, i32 0, i32 4
  %419 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %418, i32 0, i32 6
  %420 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef %419, ptr noundef %420)
  %421 = load ptr, ptr %6, align 8, !tbaa !5
  %422 = getelementptr inbounds %"struct.alglib_impl::xlinearconstraints", ptr %421, i32 0, i32 2
  %423 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef %422, ptr noundef %423)
  store i32 0, ptr %20, align 4
  br label %424

424:                                              ; preds = %369, %204
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  %425 = load i32, ptr %20, align 4
  switch i32 %425, label %427 [
    i32 0, label %426
    i32 1, label %426
  ]

426:                                              ; preds = %424, %424
  ret void

427:                                              ; preds = %424
  unreachable
}

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 = !{!"double", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN11alglib_impl18xlinearconstraintsE", !13, i64 0, !13, i64 8, !13, i64 16, !14, i64 24, !17, i64 104, !18, i64 472, !18, i64 536, !18, i64 600, !18, i64 664, !13, i64 728, !13, i64 736, !14, i64 744, !18, i64 824, !18, i64 888, !17, i64 952, !18, i64 1320, !18, i64 1384, !17, i64 1448}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_matrixE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !15, i64 32, !16, i64 40, !7, i64 72}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!"_ZTSN11alglib_impl12sparsematrixE", !18, i64 0, !18, i64 64, !18, i64 128, !18, i64 192, !18, i64 256, !13, i64 320, !13, i64 328, !13, i64 336, !13, i64 344, !13, i64 352, !13, i64 360}
!18 = !{!"_ZTSN11alglib_impl9ae_vectorE", !13, i64 0, !13, i64 8, !15, i64 16, !16, i64 24, !7, i64 56}
!19 = !{!13, !13, i64 0}
!20 = !{!18, !13, i64 0}
!21 = !{!12, !13, i64 16}
!22 = !{!12, !13, i64 424}
!23 = !{!12, !13, i64 432}
!24 = !{!12, !13, i64 440}
!25 = !{!12, !13, i64 456}
!26 = !{!7, !7, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = distinct !{!30, !28}


; 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.405 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.406 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.407 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.408 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.409 = external hidden unnamed_addr constant [50 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl24xlcaddlc2sparsefromdenseEPNS_18xlinearconstraintsEPKNS_9ae_vectorEddPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, double noundef %2, double noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = load i64, ptr %0, align 8, !tbaa !5
  %7 = load i64, ptr %1, align 8, !tbaa !16
  %8 = icmp sge i64 %7, %6
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %8, ptr noundef nonnull @.str.405, ptr noundef %4)
  %9 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %6, ptr noundef %4)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %9, ptr noundef nonnull @.str.406, ptr noundef %4)
  %10 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %2, ptr noundef %4)
  br i1 %10, label %13, label %11

11:                                               ; preds = %5
  %12 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef %2, ptr noundef %4)
  br label %13

13:                                               ; preds = %11, %5
  %14 = phi i1 [ true, %5 ], [ %12, %11 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.407, ptr noundef %4)
  %15 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %3, ptr noundef %4)
  br i1 %15, label %18, label %16

16:                                               ; preds = %13
  %17 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef %3, ptr noundef %4)
  br label %18

18:                                               ; preds = %16, %13
  %19 = phi i1 [ true, %13 ], [ %17, %16 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.408, ptr noundef %4)
  %20 = getelementptr inbounds i8, ptr %0, i64 16
  %21 = load i64, ptr %20, align 8, !tbaa !17
  %22 = icmp eq i64 %21, 0
  br i1 %22, label %23, label %31

23:                                               ; preds = %18
  %24 = getelementptr inbounds i8, ptr %0, i64 424
  store i64 1, ptr %24, align 8, !tbaa !18
  %25 = getelementptr inbounds i8, ptr %0, i64 432
  store i64 0, ptr %25, align 8, !tbaa !19
  %26 = getelementptr inbounds i8, ptr %0, i64 440
  store i64 %6, ptr %26, align 8, !tbaa !20
  %27 = getelementptr inbounds i8, ptr %0, i64 456
  store i64 0, ptr %27, align 8, !tbaa !21
  %28 = getelementptr inbounds i8, ptr %0, i64 232
  tail call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %28, i64 noundef 1, ptr noundef %4)
  %29 = getelementptr inbounds i8, ptr %0, i64 288
  %30 = load ptr, ptr %29, align 8, !tbaa !22
  store i64 0, ptr %30, align 8, !tbaa !23
  br label %31

31:                                               ; preds = %23, %18
  %32 = getelementptr inbounds i8, ptr %0, i64 104
  %33 = getelementptr inbounds i8, ptr %0, i64 424
  %34 = load i64, ptr %33, align 8, !tbaa !18
  %35 = icmp eq i64 %34, 1
  br i1 %35, label %36, label %41

36:                                               ; preds = %31
  %37 = getelementptr inbounds i8, ptr %0, i64 432
  %38 = load i64, ptr %37, align 8, !tbaa !19
  %39 = load i64, ptr %20, align 8, !tbaa !17
  %40 = icmp eq i64 %38, %39
  br label %41

41:                                               ; preds = %36, %31
  %42 = phi i1 [ false, %31 ], [ %40, %36 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %42, ptr noundef nonnull @.str.409, ptr noundef %4)
  %43 = getelementptr inbounds i8, ptr %0, i64 600
  %44 = load i64, ptr %20, align 8, !tbaa !17
  %45 = add nsw i64 %44, 1
  tail call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %43, i64 noundef %45, ptr noundef %4)
  %46 = getelementptr inbounds i8, ptr %0, i64 664
  %47 = load i64, ptr %20, align 8, !tbaa !17
  %48 = add nsw i64 %47, 1
  tail call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %46, i64 noundef %48, ptr noundef %4)
  %49 = getelementptr inbounds i8, ptr %0, i64 656
  %50 = load ptr, ptr %49, align 8, !tbaa !22
  %51 = load i64, ptr %20, align 8, !tbaa !17
  %52 = getelementptr inbounds double, ptr %50, i64 %51
  store double %2, ptr %52, align 8, !tbaa !24
  %53 = getelementptr inbounds i8, ptr %0, i64 720
  %54 = load ptr, ptr %53, align 8, !tbaa !22
  %55 = getelementptr inbounds double, ptr %54, i64 %51
  store double %3, ptr %55, align 8, !tbaa !24
  %.not.not157 = icmp sgt i64 %6, 0
  br i1 %.not.not157, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %41
  %56 = getelementptr inbounds i8, ptr %1, i64 56
  %57 = load ptr, ptr %56, align 8, !tbaa !22
  %min.iters.check = icmp ult i64 %6, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %6, 9223372036854775804
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %64, %vector.body ]
  %vec.phi179 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %65, %vector.body ]
  %58 = getelementptr inbounds double, ptr %57, i64 %index
  %59 = getelementptr inbounds i8, ptr %58, i64 16
  %wide.load = load <2 x double>, ptr %58, align 8, !tbaa !24
  %wide.load180 = load <2 x double>, ptr %59, align 8, !tbaa !24
  %60 = fcmp une <2 x double> %wide.load, zeroinitializer
  %61 = fcmp une <2 x double> %wide.load180, zeroinitializer
  %62 = zext <2 x i1> %60 to <2 x i64>
  %63 = zext <2 x i1> %61 to <2 x i64>
  %64 = add <2 x i64> %vec.phi, %62
  %65 = add <2 x i64> %vec.phi179, %63
  %index.next = add nuw i64 %index, 4
  %66 = icmp eq i64 %index.next, %n.vec
  br i1 %66, label %middle.block, label %vector.body, !llvm.loop !26

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %65, %64
  %67 = tail call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %cmp.n = icmp eq i64 %6, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %.0138159.ph = phi i64 [ 0, %.lr.ph ], [ %67, %middle.block ]
  %.0140158.ph = phi i64 [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %.0138159 = phi i64 [ %.1139, %scalar.ph ], [ %.0138159.ph, %scalar.ph.preheader ]
  %.0140158 = phi i64 [ %72, %scalar.ph ], [ %.0140158.ph, %scalar.ph.preheader ]
  %68 = getelementptr inbounds double, ptr %57, i64 %.0140158
  %69 = load double, ptr %68, align 8, !tbaa !24
  %70 = fcmp une double %69, 0.000000e+00
  %71 = zext i1 %70 to i64
  %.1139 = add nuw nsw i64 %.0138159, %71
  %72 = add nuw nsw i64 %.0140158, 1
  %exitcond.not = icmp eq i64 %72, %6
  br i1 %exitcond.not, label %._crit_edge, label %scalar.ph, !llvm.loop !30

._crit_edge:                                      ; preds = %scalar.ph, %middle.block, %41
  %.0138.lcssa = phi i64 [ 0, %41 ], [ %67, %middle.block ], [ %.1139, %scalar.ph ]
  %73 = getelementptr inbounds i8, ptr %0, i64 232
  %74 = getelementptr inbounds i8, ptr %0, i64 288
  %75 = load ptr, ptr %74, align 8, !tbaa !22
  %76 = getelementptr inbounds i64, ptr %75, i64 %51
  %77 = load i64, ptr %76, align 8, !tbaa !23
  %.fr = freeze i64 %77
  %78 = getelementptr inbounds i8, ptr %0, i64 168
  %79 = add nsw i64 %.fr, %.0138.lcssa
  tail call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %78, i64 noundef %79, ptr noundef %4)
  tail call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %32, i64 noundef %79, ptr noundef %4)
  %80 = getelementptr inbounds i8, ptr %0, i64 296
  %81 = load i64, ptr %20, align 8, !tbaa !17
  %82 = add nsw i64 %81, 1
  tail call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %80, i64 noundef %82, ptr noundef %4)
  %83 = getelementptr inbounds i8, ptr %0, i64 360
  %84 = load i64, ptr %20, align 8, !tbaa !17
  %85 = add nsw i64 %84, 1
  tail call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %83, i64 noundef %85, ptr noundef %4)
  %86 = load i64, ptr %20, align 8, !tbaa !17
  %87 = add nsw i64 %86, 2
  tail call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %73, i64 noundef %87, ptr noundef %4)
  %88 = icmp eq i64 %.0138.lcssa, 0
  br i1 %88, label %92, label %.preheader152

.preheader152:                                    ; preds = %._crit_edge
  br i1 %.not.not157, label %.lr.ph163, label %.preheader

.lr.ph163:                                        ; preds = %.preheader152
  %89 = getelementptr inbounds i8, ptr %1, i64 56
  %90 = getelementptr inbounds i8, ptr %0, i64 224
  %91 = getelementptr inbounds i8, ptr %0, i64 160
  br label %114

92:                                               ; preds = %._crit_edge
  %93 = load ptr, ptr %74, align 8, !tbaa !22
  %94 = load i64, ptr %20, align 8, !tbaa !17
  %95 = getelementptr inbounds i64, ptr %93, i64 %94
  %96 = load i64, ptr %95, align 8, !tbaa !23
  %97 = getelementptr inbounds i8, ptr %0, i64 352
  %98 = load ptr, ptr %97, align 8, !tbaa !22
  %99 = getelementptr inbounds i64, ptr %98, i64 %94
  store i64 %96, ptr %99, align 8, !tbaa !23
  %100 = load ptr, ptr %74, align 8, !tbaa !22
  %101 = load i64, ptr %20, align 8, !tbaa !17
  %102 = getelementptr inbounds i64, ptr %100, i64 %101
  %103 = load i64, ptr %102, align 8, !tbaa !23
  %104 = getelementptr inbounds i8, ptr %0, i64 416
  %105 = load ptr, ptr %104, align 8, !tbaa !22
  %106 = getelementptr inbounds i64, ptr %105, i64 %101
  store i64 %103, ptr %106, align 8, !tbaa !23
  %107 = load ptr, ptr %74, align 8, !tbaa !22
  %108 = load i64, ptr %20, align 8, !tbaa !17
  %109 = getelementptr inbounds i64, ptr %107, i64 %108
  %110 = load i64, ptr %109, align 8, !tbaa !23
  %111 = getelementptr i8, ptr %109, i64 8
  store i64 %110, ptr %111, align 8, !tbaa !23
  br label %162

.preheader:                                       ; preds = %129, %.preheader152
  %.not.not149164 = icmp sgt i64 %.0138.lcssa, 0
  %.pre = load i64, ptr %20, align 8, !tbaa !17
  br i1 %.not.not149164, label %.lr.ph167, label %.thread.thread

.lr.ph167:                                        ; preds = %.preheader
  %112 = getelementptr inbounds i8, ptr %0, i64 224
  %113 = load ptr, ptr %112, align 8, !tbaa !22
  br label %131

114:                                              ; preds = %.lr.ph163, %129
  %.1141162 = phi i64 [ 0, %.lr.ph163 ], [ %130, %129 ]
  %.0143161 = phi i64 [ 0, %.lr.ph163 ], [ %.1144, %129 ]
  %115 = load ptr, ptr %89, align 8, !tbaa !22
  %116 = getelementptr inbounds double, ptr %115, i64 %.1141162
  %117 = load double, ptr %116, align 8, !tbaa !24
  %118 = fcmp oeq double %117, 0.000000e+00
  br i1 %118, label %129, label %119

119:                                              ; preds = %114
  %120 = load ptr, ptr %90, align 8, !tbaa !22
  %121 = add nsw i64 %.0143161, %.fr
  %122 = getelementptr inbounds i64, ptr %120, i64 %121
  store i64 %.1141162, ptr %122, align 8, !tbaa !23
  %123 = load ptr, ptr %89, align 8, !tbaa !22
  %124 = getelementptr inbounds double, ptr %123, i64 %.1141162
  %125 = load double, ptr %124, align 8, !tbaa !24
  %126 = load ptr, ptr %91, align 8, !tbaa !22
  %127 = getelementptr inbounds double, ptr %126, i64 %121
  store double %125, ptr %127, align 8, !tbaa !24
  %128 = add nsw i64 %.0143161, 1
  br label %129

129:                                              ; preds = %114, %119
  %.1144 = phi i64 [ %.0143161, %114 ], [ %128, %119 ]
  %130 = add nuw nsw i64 %.1141162, 1
  %exitcond171.not = icmp eq i64 %130, %6
  br i1 %exitcond171.not, label %.preheader, label %114, !llvm.loop !31

131:                                              ; preds = %.lr.ph167, %137
  %.0136166 = phi i64 [ -1, %.lr.ph167 ], [ %.1137, %137 ]
  %.0142165 = phi i64 [ %.fr, %.lr.ph167 ], [ %138, %137 ]
  %132 = getelementptr inbounds i64, ptr %113, i64 %.0142165
  %133 = load i64, ptr %132, align 8, !tbaa !23
  %134 = icmp eq i64 %133, %.pre
  br i1 %134, label %137, label %135

135:                                              ; preds = %131
  %136 = icmp sgt i64 %133, %.pre
  br i1 %136, label %139, label %137

137:                                              ; preds = %131, %135
  %.1137 = phi i64 [ %.0136166, %135 ], [ %.0142165, %131 ]
  %138 = add i64 %.0142165, 1
  %.not.not149 = icmp slt i64 %138, %79
  br i1 %.not.not149, label %131, label %.thread, !llvm.loop !32

139:                                              ; preds = %135
  %140 = icmp eq i64 %.0142165, -1
  %spec.select = select i1 %140, i64 %79, i64 %.0142165
  br label %.thread

.thread:                                          ; preds = %137, %139
  %.0136154 = phi i64 [ %.0136166, %139 ], [ %.1137, %137 ]
  %141 = phi i64 [ %spec.select, %139 ], [ %79, %137 ]
  %.0136154.fr = freeze i64 %.0136154
  %142 = icmp eq i64 %.0136154.fr, -1
  %spec.select176 = select i1 %142, i64 %141, i64 %.0136154.fr
  br label %.thread.thread

.thread.thread:                                   ; preds = %.thread, %.preheader
  %143 = phi i64 [ %79, %.preheader ], [ %141, %.thread ]
  %144 = phi i64 [ %79, %.preheader ], [ %spec.select176, %.thread ]
  %145 = getelementptr inbounds i8, ptr %0, i64 352
  %146 = load ptr, ptr %145, align 8, !tbaa !22
  %147 = getelementptr inbounds i64, ptr %146, i64 %.pre
  store i64 %144, ptr %147, align 8, !tbaa !23
  %148 = getelementptr inbounds i8, ptr %0, i64 416
  %149 = load ptr, ptr %148, align 8, !tbaa !22
  %150 = load i64, ptr %20, align 8, !tbaa !17
  %151 = getelementptr inbounds i64, ptr %149, i64 %150
  store i64 %143, ptr %151, align 8, !tbaa !23
  %152 = load ptr, ptr %74, align 8, !tbaa !22
  %153 = load i64, ptr %20, align 8, !tbaa !17
  %154 = getelementptr i64, ptr %152, i64 %153
  %155 = getelementptr i8, ptr %154, i64 8
  store i64 %79, ptr %155, align 8, !tbaa !23
  %156 = load ptr, ptr %74, align 8, !tbaa !22
  %157 = load i64, ptr %20, align 8, !tbaa !17
  %158 = getelementptr i64, ptr %156, i64 %157
  %159 = getelementptr i8, ptr %158, i64 8
  %160 = load i64, ptr %159, align 8, !tbaa !23
  %161 = getelementptr inbounds i8, ptr %0, i64 456
  store i64 %160, ptr %161, align 8, !tbaa !21
  br label %162

162:                                              ; preds = %.thread.thread, %92
  %163 = getelementptr inbounds i8, ptr %0, i64 432
  tail call void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef nonnull %163, ptr noundef %4)
  tail call void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef nonnull %20, ptr noundef %4)
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #2

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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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 = !{!6, !7, i64 16}
!18 = !{!6, !7, i64 424}
!19 = !{!6, !7, i64 432}
!20 = !{!6, !7, i64 440}
!21 = !{!6, !7, i64 456}
!22 = !{!8, !8, i64 0}
!23 = !{!7, !7, i64 0}
!24 = !{!25, !25, i64 0}
!25 = !{!"double", !8, i64 0}
!26 = distinct !{!26, !27, !28, !29}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!"llvm.loop.isvectorized", i32 1}
!29 = !{!"llvm.loop.unroll.runtime.disable"}
!30 = distinct !{!30, !27, !29, !28}
!31 = distinct !{!31, !27}
!32 = distinct !{!32, !27}


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