; LLVM IR from venumb/ZSPACE :: cpp/depends/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::minlpstate" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, double, i64, i64, %"struct.alglib_impl::dualsimplexstate", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::dualsimplexstate" = type { %"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::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::dualsimplexbasis", %"struct.alglib_impl::dualsimplexsubproblem", %"struct.alglib_impl::dualsimplexsubproblem", %"struct.alglib_impl::dualsimplexsubproblem", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, double, double, i64, i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", i64, %"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", %"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", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::dualsimplexbasis" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i8, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"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", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i8, double, %"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", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sluv2buffer", %"struct.alglib_impl::ae_vector", %"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::sluv2buffer" = type { i64, %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sparsematrix", %"struct.alglib_impl::sluv2list1matrix", %"struct.alglib_impl::sluv2list1matrix", %"struct.alglib_impl::sluv2sparsetrail", %"struct.alglib_impl::sluv2densetrail", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"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", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::sluv2list1matrix" = type { i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64 }
%"struct.alglib_impl::sluv2sparsetrail" = type { i64, i64, %"struct.alglib_impl::ae_vector", i64, i64, i64, %"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", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::sluv2densetrail" = type { i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::dualsimplexsubproblem" = type { i64, i64, %"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", %"struct.alglib_impl::ae_vector", i64, %"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", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.405 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.406 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.407 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.408 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.409 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.410 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.411 = external hidden unnamed_addr constant [51 x i8], align 1

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

; Function Attrs: nocallback nofree 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl11minlpaddlc2EPNS_10minlpstateEPNS_9ae_vectorES3_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 i64, align 8
  %24 = 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %25, i32 0, i32 6
  %27 = load i64, ptr %26, align 8, !tbaa !13
  store i64 %27, ptr %20, align 8, !tbaa !9
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %28, i32 0, i32 0
  %30 = load i64, ptr %29, align 8, !tbaa !27
  store i64 %30, ptr %21, align 8, !tbaa !9
  %31 = load i64, ptr %11, align 8, !tbaa !9
  %32 = icmp sge i64 %31, 0
  %33 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %32, ptr noundef @.str.407, ptr noundef %33)
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 0
  %36 = load i64, ptr %35, align 8, !tbaa !28
  %37 = load i64, ptr %11, align 8, !tbaa !9
  %38 = icmp sge i64 %36, %37
  %39 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %38, ptr noundef @.str.408, ptr noundef %39)
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 0
  %42 = load i64, ptr %41, align 8, !tbaa !28
  %43 = load i64, ptr %11, align 8, !tbaa !9
  %44 = icmp sge i64 %42, %43
  %45 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %44, ptr noundef @.str.409, ptr noundef %45)
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %46

46:                                               ; preds = %71, %7
  %47 = load i64, ptr %15, align 8, !tbaa !9
  %48 = load i64, ptr %11, align 8, !tbaa !9
  %49 = sub nsw i64 %48, 1
  %50 = icmp sle i64 %47, %49
  br i1 %50, label %51, label %74

51:                                               ; preds = %46
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %52, i32 0, i32 4
  %54 = load ptr, ptr %53, align 8, !tbaa !29
  %55 = load i64, ptr %15, align 8, !tbaa !9
  %56 = getelementptr inbounds i64, ptr %54, i64 %55
  %57 = load i64, ptr %56, align 8, !tbaa !9
  %58 = icmp sge i64 %57, 0
  br i1 %58, label %59, label %68

59:                                               ; preds = %51
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %60, i32 0, i32 4
  %62 = load ptr, ptr %61, align 8, !tbaa !29
  %63 = load i64, ptr %15, align 8, !tbaa !9
  %64 = getelementptr inbounds i64, ptr %62, i64 %63
  %65 = load i64, ptr %64, align 8, !tbaa !9
  %66 = load i64, ptr %21, align 8, !tbaa !9
  %67 = icmp slt i64 %65, %66
  br label %68

68:                                               ; preds = %59, %51
  %69 = phi i1 [ false, %51 ], [ %67, %59 ]
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %69, ptr noundef @.str.410, ptr noundef %70)
  br label %71

71:                                               ; preds = %68
  %72 = load i64, ptr %15, align 8, !tbaa !9
  %73 = add nsw i64 %72, 1
  store i64 %73, ptr %15, align 8, !tbaa !9
  br label %46, !llvm.loop !30

74:                                               ; preds = %46
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = load i64, ptr %11, align 8, !tbaa !9
  %77 = load ptr, ptr %14, align 8, !tbaa !5
  %78 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %75, i64 noundef %76, ptr noundef %77)
  %79 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %78, ptr noundef @.str.411, ptr noundef %79)
  %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_isfiniteEdPNS_8ae_stateE(double noundef %80, ptr noundef %81)
  br i1 %82, label %87, label %83

83:                                               ; preds = %74
  %84 = load double, ptr %12, align 8, !tbaa !11
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  %86 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef %84, ptr noundef %85)
  br label %87

87:                                               ; preds = %83, %74
  %88 = phi i1 [ true, %74 ], [ %86, %83 ]
  %89 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %88, ptr noundef @.str.405, ptr noundef %89)
  %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_isfiniteEdPNS_8ae_stateE(double noundef %90, ptr noundef %91)
  br i1 %92, label %97, label %93

93:                                               ; preds = %87
  %94 = load double, ptr %13, align 8, !tbaa !11
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  %96 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef %94, ptr noundef %95)
  br label %97

97:                                               ; preds = %93, %87
  %98 = phi i1 [ true, %87 ], [ %96, %93 ]
  %99 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %98, ptr noundef @.str.406, ptr noundef %99)
  %100 = load i64, ptr %20, align 8, !tbaa !9
  %101 = icmp eq i64 %100, 0
  br i1 %101, label %102, label %126

102:                                              ; preds = %97
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %103, i32 0, i32 7
  %105 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %104, i32 0, i32 5
  store i64 1, ptr %105, align 8, !tbaa !32
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %106, i32 0, i32 7
  %108 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %107, i32 0, i32 6
  store i64 0, ptr %108, align 8, !tbaa !33
  %109 = load i64, ptr %21, align 8, !tbaa !9
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %110, i32 0, i32 7
  %112 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %111, i32 0, i32 7
  store i64 %109, ptr %112, align 8, !tbaa !34
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %113, i32 0, i32 7
  %115 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %114, i32 0, i32 9
  store i64 0, ptr %115, align 8, !tbaa !35
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %116, i32 0, i32 7
  %118 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %117, i32 0, i32 2
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %118, i64 noundef 1, ptr noundef %119)
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %120, i32 0, i32 7
  %122 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %121, i32 0, i32 2
  %123 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %122, i32 0, i32 4
  %124 = load ptr, ptr %123, align 8, !tbaa !29
  %125 = getelementptr inbounds i64, ptr %124, i64 0
  store i64 0, ptr %125, align 8, !tbaa !9
  br label %126

126:                                              ; preds = %102, %97
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %127, i32 0, i32 7
  %129 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %128, i32 0, i32 2
  %130 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %129, i32 0, i32 4
  %131 = load ptr, ptr %130, align 8, !tbaa !29
  %132 = load i64, ptr %20, align 8, !tbaa !9
  %133 = getelementptr inbounds i64, ptr %131, i64 %132
  %134 = load i64, ptr %133, align 8, !tbaa !9
  store i64 %134, ptr %18, align 8, !tbaa !9
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %135, i32 0, i32 7
  %137 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %136, i32 0, i32 1
  %138 = load i64, ptr %18, align 8, !tbaa !9
  %139 = load i64, ptr %11, align 8, !tbaa !9
  %140 = add nsw i64 %138, %139
  %141 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %137, i64 noundef %140, ptr noundef %141)
  %142 = load ptr, ptr %8, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %142, i32 0, i32 7
  %144 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %143, i32 0, i32 0
  %145 = load i64, ptr %18, align 8, !tbaa !9
  %146 = load i64, ptr %11, align 8, !tbaa !9
  %147 = add nsw i64 %145, %146
  %148 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %144, i64 noundef %147, ptr noundef %148)
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %149, i32 0, i32 7
  %151 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %150, i32 0, i32 3
  %152 = load i64, ptr %20, align 8, !tbaa !9
  %153 = add nsw i64 %152, 1
  %154 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %151, i64 noundef %153, ptr noundef %154)
  %155 = load ptr, ptr %8, align 8, !tbaa !5
  %156 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %155, i32 0, i32 7
  %157 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %156, i32 0, i32 4
  %158 = load i64, ptr %20, align 8, !tbaa !9
  %159 = add nsw i64 %158, 1
  %160 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %157, i64 noundef %159, ptr noundef %160)
  %161 = load ptr, ptr %8, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %161, i32 0, i32 7
  %163 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %162, i32 0, i32 2
  %164 = load i64, ptr %20, align 8, !tbaa !9
  %165 = add nsw i64 %164, 2
  %166 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %163, i64 noundef %165, ptr noundef %166)
  %167 = load ptr, ptr %8, align 8, !tbaa !5
  %168 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %167, i32 0, i32 8
  %169 = load i64, ptr %20, align 8, !tbaa !9
  %170 = add nsw i64 %169, 1
  %171 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %168, i64 noundef %170, ptr noundef %171)
  %172 = load ptr, ptr %8, align 8, !tbaa !5
  %173 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %172, i32 0, i32 9
  %174 = load i64, ptr %20, align 8, !tbaa !9
  %175 = add nsw i64 %174, 1
  %176 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %173, i64 noundef %175, ptr noundef %176)
  %177 = load i64, ptr %11, align 8, !tbaa !9
  %178 = icmp eq i64 %177, 0
  br i1 %178, label %179, label %249

179:                                              ; preds = %126
  %180 = load ptr, ptr %8, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %180, i32 0, i32 7
  %182 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %181, i32 0, i32 2
  %183 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %182, i32 0, i32 4
  %184 = load ptr, ptr %183, align 8, !tbaa !29
  %185 = load i64, ptr %20, align 8, !tbaa !9
  %186 = getelementptr inbounds i64, ptr %184, i64 %185
  %187 = load i64, ptr %186, align 8, !tbaa !9
  %188 = load ptr, ptr %8, align 8, !tbaa !5
  %189 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %188, i32 0, i32 7
  %190 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %189, i32 0, i32 3
  %191 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %190, i32 0, i32 4
  %192 = load ptr, ptr %191, align 8, !tbaa !29
  %193 = load i64, ptr %20, align 8, !tbaa !9
  %194 = getelementptr inbounds i64, ptr %192, i64 %193
  store i64 %187, ptr %194, align 8, !tbaa !9
  %195 = load ptr, ptr %8, align 8, !tbaa !5
  %196 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %195, i32 0, i32 7
  %197 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %196, i32 0, i32 2
  %198 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %197, i32 0, i32 4
  %199 = load ptr, ptr %198, align 8, !tbaa !29
  %200 = load i64, ptr %20, align 8, !tbaa !9
  %201 = getelementptr inbounds i64, ptr %199, i64 %200
  %202 = load i64, ptr %201, align 8, !tbaa !9
  %203 = load ptr, ptr %8, align 8, !tbaa !5
  %204 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %203, i32 0, i32 7
  %205 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %204, i32 0, i32 4
  %206 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %205, i32 0, i32 4
  %207 = load ptr, ptr %206, align 8, !tbaa !29
  %208 = load i64, ptr %20, align 8, !tbaa !9
  %209 = getelementptr inbounds i64, ptr %207, i64 %208
  store i64 %202, ptr %209, align 8, !tbaa !9
  %210 = load ptr, ptr %8, align 8, !tbaa !5
  %211 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %210, i32 0, i32 7
  %212 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %211, i32 0, i32 2
  %213 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %212, i32 0, i32 4
  %214 = load ptr, ptr %213, align 8, !tbaa !29
  %215 = load i64, ptr %20, align 8, !tbaa !9
  %216 = getelementptr inbounds i64, ptr %214, i64 %215
  %217 = load i64, ptr %216, align 8, !tbaa !9
  %218 = load ptr, ptr %8, align 8, !tbaa !5
  %219 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %218, i32 0, i32 7
  %220 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %219, i32 0, i32 2
  %221 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %220, i32 0, i32 4
  %222 = load ptr, ptr %221, align 8, !tbaa !29
  %223 = load i64, ptr %20, align 8, !tbaa !9
  %224 = add nsw i64 %223, 1
  %225 = getelementptr inbounds i64, ptr %222, i64 %224
  store i64 %217, ptr %225, align 8, !tbaa !9
  %226 = load double, ptr %12, align 8, !tbaa !11
  %227 = load ptr, ptr %8, align 8, !tbaa !5
  %228 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %227, i32 0, i32 8
  %229 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %228, i32 0, i32 4
  %230 = load ptr, ptr %229, align 8, !tbaa !29
  %231 = load i64, ptr %20, align 8, !tbaa !9
  %232 = getelementptr inbounds double, ptr %230, i64 %231
  store double %226, ptr %232, align 8, !tbaa !11
  %233 = load double, ptr %13, align 8, !tbaa !11
  %234 = load ptr, ptr %8, align 8, !tbaa !5
  %235 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %234, i32 0, i32 9
  %236 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %235, i32 0, i32 4
  %237 = load ptr, ptr %236, align 8, !tbaa !29
  %238 = load i64, ptr %20, align 8, !tbaa !9
  %239 = getelementptr inbounds double, ptr %237, i64 %238
  store double %233, ptr %239, align 8, !tbaa !11
  %240 = load i64, ptr %20, align 8, !tbaa !9
  %241 = add nsw i64 %240, 1
  %242 = load ptr, ptr %8, align 8, !tbaa !5
  %243 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %242, i32 0, i32 7
  %244 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %243, i32 0, i32 6
  store i64 %241, ptr %244, align 8, !tbaa !33
  %245 = load i64, ptr %20, align 8, !tbaa !9
  %246 = add nsw i64 %245, 1
  %247 = load ptr, ptr %8, align 8, !tbaa !5
  %248 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %247, i32 0, i32 6
  store i64 %246, ptr %248, align 8, !tbaa !13
  store i32 1, ptr %24, align 4
  br label %492

249:                                              ; preds = %126
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %250

250:                                              ; preds = %286, %249
  %251 = load i64, ptr %15, align 8, !tbaa !9
  %252 = load i64, ptr %11, align 8, !tbaa !9
  %253 = sub nsw i64 %252, 1
  %254 = icmp sle i64 %251, %253
  br i1 %254, label %255, label %289

255:                                              ; preds = %250
  %256 = load ptr, ptr %9, align 8, !tbaa !5
  %257 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %256, i32 0, i32 4
  %258 = load ptr, ptr %257, align 8, !tbaa !29
  %259 = load i64, ptr %15, align 8, !tbaa !9
  %260 = getelementptr inbounds i64, ptr %258, i64 %259
  %261 = load i64, ptr %260, align 8, !tbaa !9
  %262 = load ptr, ptr %8, align 8, !tbaa !5
  %263 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %262, i32 0, i32 7
  %264 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %263, i32 0, i32 1
  %265 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %264, i32 0, i32 4
  %266 = load ptr, ptr %265, align 8, !tbaa !29
  %267 = load i64, ptr %18, align 8, !tbaa !9
  %268 = load i64, ptr %15, align 8, !tbaa !9
  %269 = add nsw i64 %267, %268
  %270 = getelementptr inbounds i64, ptr %266, i64 %269
  store i64 %261, ptr %270, align 8, !tbaa !9
  %271 = load ptr, ptr %10, align 8, !tbaa !5
  %272 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %271, i32 0, i32 4
  %273 = load ptr, ptr %272, align 8, !tbaa !29
  %274 = load i64, ptr %15, align 8, !tbaa !9
  %275 = getelementptr inbounds double, ptr %273, i64 %274
  %276 = load double, ptr %275, align 8, !tbaa !11
  %277 = load ptr, ptr %8, align 8, !tbaa !5
  %278 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %277, i32 0, i32 7
  %279 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %278, i32 0, i32 0
  %280 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %279, i32 0, i32 4
  %281 = load ptr, ptr %280, align 8, !tbaa !29
  %282 = load i64, ptr %18, align 8, !tbaa !9
  %283 = load i64, ptr %15, align 8, !tbaa !9
  %284 = add nsw i64 %282, %283
  %285 = getelementptr inbounds double, ptr %281, i64 %284
  store double %276, ptr %285, align 8, !tbaa !11
  br label %286

286:                                              ; preds = %255
  %287 = load i64, ptr %15, align 8, !tbaa !9
  %288 = add nsw i64 %287, 1
  store i64 %288, ptr %15, align 8, !tbaa !9
  br label %250, !llvm.loop !36

289:                                              ; preds = %250
  %290 = load ptr, ptr %8, align 8, !tbaa !5
  %291 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %290, i32 0, i32 7
  %292 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %291, i32 0, i32 1
  %293 = load ptr, ptr %8, align 8, !tbaa !5
  %294 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %293, i32 0, i32 7
  %295 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %294, i32 0, i32 0
  %296 = load i64, ptr %18, align 8, !tbaa !9
  %297 = load i64, ptr %11, align 8, !tbaa !9
  %298 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl15tagsortmiddleirEPNS_9ae_vectorES1_llPNS_8ae_stateE(ptr noundef %292, ptr noundef %295, i64 noundef %296, i64 noundef %297, ptr noundef %298)
  %299 = load i64, ptr %18, align 8, !tbaa !9
  store i64 %299, ptr %19, align 8, !tbaa !9
  store i64 1, ptr %15, align 8, !tbaa !9
  br label %300

300:                                              ; preds = %390, %289
  %301 = load i64, ptr %15, align 8, !tbaa !9
  %302 = load i64, ptr %11, align 8, !tbaa !9
  %303 = sub nsw i64 %302, 1
  %304 = icmp sle i64 %301, %303
  br i1 %304, label %305, label %393

305:                                              ; preds = %300
  %306 = load ptr, ptr %8, align 8, !tbaa !5
  %307 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %306, i32 0, i32 7
  %308 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %307, i32 0, i32 1
  %309 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %308, i32 0, i32 4
  %310 = load ptr, ptr %309, align 8, !tbaa !29
  %311 = load i64, ptr %19, align 8, !tbaa !9
  %312 = getelementptr inbounds i64, ptr %310, i64 %311
  %313 = load i64, ptr %312, align 8, !tbaa !9
  %314 = load ptr, ptr %8, align 8, !tbaa !5
  %315 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %314, i32 0, i32 7
  %316 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %315, i32 0, i32 1
  %317 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %316, i32 0, i32 4
  %318 = load ptr, ptr %317, align 8, !tbaa !29
  %319 = load i64, ptr %18, align 8, !tbaa !9
  %320 = load i64, ptr %15, align 8, !tbaa !9
  %321 = add nsw i64 %319, %320
  %322 = getelementptr inbounds i64, ptr %318, i64 %321
  %323 = load i64, ptr %322, align 8, !tbaa !9
  %324 = icmp ne i64 %313, %323
  br i1 %324, label %325, label %362

325:                                              ; preds = %305
  %326 = load i64, ptr %19, align 8, !tbaa !9
  %327 = add nsw i64 %326, 1
  store i64 %327, ptr %19, align 8, !tbaa !9
  %328 = load ptr, ptr %8, align 8, !tbaa !5
  %329 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %328, i32 0, i32 7
  %330 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %329, i32 0, i32 1
  %331 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %330, i32 0, i32 4
  %332 = load ptr, ptr %331, align 8, !tbaa !29
  %333 = load i64, ptr %18, align 8, !tbaa !9
  %334 = load i64, ptr %15, align 8, !tbaa !9
  %335 = add nsw i64 %333, %334
  %336 = getelementptr inbounds i64, ptr %332, i64 %335
  %337 = load i64, ptr %336, align 8, !tbaa !9
  %338 = load ptr, ptr %8, align 8, !tbaa !5
  %339 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %338, i32 0, i32 7
  %340 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %339, i32 0, i32 1
  %341 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %340, i32 0, i32 4
  %342 = load ptr, ptr %341, align 8, !tbaa !29
  %343 = load i64, ptr %19, align 8, !tbaa !9
  %344 = getelementptr inbounds i64, ptr %342, i64 %343
  store i64 %337, ptr %344, align 8, !tbaa !9
  %345 = load ptr, ptr %8, align 8, !tbaa !5
  %346 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %345, i32 0, i32 7
  %347 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %346, i32 0, i32 0
  %348 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %347, i32 0, i32 4
  %349 = load ptr, ptr %348, align 8, !tbaa !29
  %350 = load i64, ptr %18, align 8, !tbaa !9
  %351 = load i64, ptr %15, align 8, !tbaa !9
  %352 = add nsw i64 %350, %351
  %353 = getelementptr inbounds double, ptr %349, i64 %352
  %354 = load double, ptr %353, align 8, !tbaa !11
  %355 = load ptr, ptr %8, align 8, !tbaa !5
  %356 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %355, i32 0, i32 7
  %357 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %356, i32 0, i32 0
  %358 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %357, i32 0, i32 4
  %359 = load ptr, ptr %358, align 8, !tbaa !29
  %360 = load i64, ptr %19, align 8, !tbaa !9
  %361 = getelementptr inbounds double, ptr %359, i64 %360
  store double %354, ptr %361, align 8, !tbaa !11
  br label %389

362:                                              ; preds = %305
  %363 = load ptr, ptr %8, align 8, !tbaa !5
  %364 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %363, i32 0, i32 7
  %365 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %364, i32 0, i32 0
  %366 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %365, i32 0, i32 4
  %367 = load ptr, ptr %366, align 8, !tbaa !29
  %368 = load i64, ptr %19, align 8, !tbaa !9
  %369 = getelementptr inbounds double, ptr %367, i64 %368
  %370 = load double, ptr %369, align 8, !tbaa !11
  %371 = load ptr, ptr %8, align 8, !tbaa !5
  %372 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %371, i32 0, i32 7
  %373 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %372, i32 0, i32 0
  %374 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %373, i32 0, i32 4
  %375 = load ptr, ptr %374, align 8, !tbaa !29
  %376 = load i64, ptr %18, align 8, !tbaa !9
  %377 = load i64, ptr %15, align 8, !tbaa !9
  %378 = add nsw i64 %376, %377
  %379 = getelementptr inbounds double, ptr %375, i64 %378
  %380 = load double, ptr %379, align 8, !tbaa !11
  %381 = fadd double %370, %380
  %382 = load ptr, ptr %8, align 8, !tbaa !5
  %383 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %382, i32 0, i32 7
  %384 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %383, i32 0, i32 0
  %385 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %384, i32 0, i32 4
  %386 = load ptr, ptr %385, align 8, !tbaa !29
  %387 = load i64, ptr %19, align 8, !tbaa !9
  %388 = getelementptr inbounds double, ptr %386, i64 %387
  store double %381, ptr %388, align 8, !tbaa !11
  br label %389

389:                                              ; preds = %362, %325
  br label %390

390:                                              ; preds = %389
  %391 = load i64, ptr %15, align 8, !tbaa !9
  %392 = add nsw i64 %391, 1
  store i64 %392, ptr %15, align 8, !tbaa !9
  br label %300, !llvm.loop !37

393:                                              ; preds = %300
  %394 = load i64, ptr %19, align 8, !tbaa !9
  %395 = load i64, ptr %18, align 8, !tbaa !9
  %396 = sub nsw i64 %394, %395
  %397 = add nsw i64 %396, 1
  store i64 %397, ptr %11, align 8, !tbaa !9
  store i64 -1, ptr %23, align 8, !tbaa !9
  store i64 -1, ptr %22, align 8, !tbaa !9
  %398 = load i64, ptr %18, align 8, !tbaa !9
  store i64 %398, ptr %16, align 8, !tbaa !9
  br label %399

399:                                              ; preds = %428, %393
  %400 = load i64, ptr %16, align 8, !tbaa !9
  %401 = load i64, ptr %19, align 8, !tbaa !9
  %402 = icmp sle i64 %400, %401
  br i1 %402, label %403, label %431

403:                                              ; preds = %399
  %404 = load ptr, ptr %8, align 8, !tbaa !5
  %405 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %404, i32 0, i32 7
  %406 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %405, i32 0, i32 1
  %407 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %406, i32 0, i32 4
  %408 = load ptr, ptr %407, align 8, !tbaa !29
  %409 = load i64, ptr %16, align 8, !tbaa !9
  %410 = getelementptr inbounds i64, ptr %408, i64 %409
  %411 = load i64, ptr %410, align 8, !tbaa !9
  store i64 %411, ptr %17, align 8, !tbaa !9
  %412 = load i64, ptr %17, align 8, !tbaa !9
  %413 = load i64, ptr %20, align 8, !tbaa !9
  %414 = icmp eq i64 %412, %413
  br i1 %414, label %415, label %417

415:                                              ; preds = %403
  %416 = load i64, ptr %16, align 8, !tbaa !9
  store i64 %416, ptr %22, align 8, !tbaa !9
  br label %427

417:                                              ; preds = %403
  %418 = load i64, ptr %17, align 8, !tbaa !9
  %419 = load i64, ptr %20, align 8, !tbaa !9
  %420 = icmp sgt i64 %418, %419
  br i1 %420, label %421, label %426

421:                                              ; preds = %417
  %422 = load i64, ptr %23, align 8, !tbaa !9
  %423 = icmp eq i64 %422, -1
  br i1 %423, label %424, label %426

424:                                              ; preds = %421
  %425 = load i64, ptr %16, align 8, !tbaa !9
  store i64 %425, ptr %23, align 8, !tbaa !9
  br label %431

426:                                              ; preds = %421, %417
  br label %427

427:                                              ; preds = %426, %415
  br label %428

428:                                              ; preds = %427
  %429 = load i64, ptr %16, align 8, !tbaa !9
  %430 = add nsw i64 %429, 1
  store i64 %430, ptr %16, align 8, !tbaa !9
  br label %399, !llvm.loop !38

431:                                              ; preds = %424, %399
  %432 = load i64, ptr %23, align 8, !tbaa !9
  %433 = icmp eq i64 %432, -1
  br i1 %433, label %434, label %437

434:                                              ; preds = %431
  %435 = load i64, ptr %19, align 8, !tbaa !9
  %436 = add nsw i64 %435, 1
  store i64 %436, ptr %23, align 8, !tbaa !9
  br label %437

437:                                              ; preds = %434, %431
  %438 = load i64, ptr %22, align 8, !tbaa !9
  %439 = icmp eq i64 %438, -1
  br i1 %439, label %440, label %442

440:                                              ; preds = %437
  %441 = load i64, ptr %23, align 8, !tbaa !9
  store i64 %441, ptr %22, align 8, !tbaa !9
  br label %442

442:                                              ; preds = %440, %437
  %443 = load i64, ptr %22, align 8, !tbaa !9
  %444 = load ptr, ptr %8, align 8, !tbaa !5
  %445 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %444, i32 0, i32 7
  %446 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %445, i32 0, i32 3
  %447 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %446, i32 0, i32 4
  %448 = load ptr, ptr %447, align 8, !tbaa !29
  %449 = load i64, ptr %20, align 8, !tbaa !9
  %450 = getelementptr inbounds i64, ptr %448, i64 %449
  store i64 %443, ptr %450, align 8, !tbaa !9
  %451 = load i64, ptr %23, align 8, !tbaa !9
  %452 = load ptr, ptr %8, align 8, !tbaa !5
  %453 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %452, i32 0, i32 7
  %454 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %453, i32 0, i32 4
  %455 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %454, i32 0, i32 4
  %456 = load ptr, ptr %455, align 8, !tbaa !29
  %457 = load i64, ptr %20, align 8, !tbaa !9
  %458 = getelementptr inbounds i64, ptr %456, i64 %457
  store i64 %451, ptr %458, align 8, !tbaa !9
  %459 = load i64, ptr %19, align 8, !tbaa !9
  %460 = add nsw i64 %459, 1
  %461 = load ptr, ptr %8, align 8, !tbaa !5
  %462 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %461, i32 0, i32 7
  %463 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %462, i32 0, i32 2
  %464 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %463, i32 0, i32 4
  %465 = load ptr, ptr %464, align 8, !tbaa !29
  %466 = load i64, ptr %20, align 8, !tbaa !9
  %467 = add nsw i64 %466, 1
  %468 = getelementptr inbounds i64, ptr %465, i64 %467
  store i64 %460, ptr %468, align 8, !tbaa !9
  %469 = load i64, ptr %20, align 8, !tbaa !9
  %470 = add nsw i64 %469, 1
  %471 = load ptr, ptr %8, align 8, !tbaa !5
  %472 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %471, i32 0, i32 7
  %473 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %472, i32 0, i32 6
  store i64 %470, ptr %473, align 8, !tbaa !33
  %474 = load double, ptr %12, align 8, !tbaa !11
  %475 = load ptr, ptr %8, align 8, !tbaa !5
  %476 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %475, i32 0, i32 8
  %477 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %476, i32 0, i32 4
  %478 = load ptr, ptr %477, align 8, !tbaa !29
  %479 = load i64, ptr %20, align 8, !tbaa !9
  %480 = getelementptr inbounds double, ptr %478, i64 %479
  store double %474, ptr %480, align 8, !tbaa !11
  %481 = load double, ptr %13, align 8, !tbaa !11
  %482 = load ptr, ptr %8, align 8, !tbaa !5
  %483 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %482, i32 0, i32 9
  %484 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %483, i32 0, i32 4
  %485 = load ptr, ptr %484, align 8, !tbaa !29
  %486 = load i64, ptr %20, align 8, !tbaa !9
  %487 = getelementptr inbounds double, ptr %485, i64 %486
  store double %481, ptr %487, align 8, !tbaa !11
  %488 = load i64, ptr %20, align 8, !tbaa !9
  %489 = add nsw i64 %488, 1
  %490 = load ptr, ptr %8, align 8, !tbaa !5
  %491 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %490, i32 0, i32 6
  store i64 %489, ptr %491, align 8, !tbaa !13
  store i32 0, ptr %24, align 4
  br label %492

492:                                              ; preds = %442, %179
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  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
  %493 = load i32, ptr %24, align 4
  switch i32 %493, label %495 [
    i32 0, label %494
    i32 1, label %494
  ]

494:                                              ; preds = %492, %492
  ret void

495:                                              ; preds = %492
  unreachable
}

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

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 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_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_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 272}
!14 = !{!"_ZTSN11alglib_impl10minlpstateE", !10, i64 0, !10, i64 8, !15, i64 16, !15, i64 80, !15, i64 144, !15, i64 208, !10, i64 272, !18, i64 280, !15, i64 648, !15, i64 712, !15, i64 776, !15, i64 840, !15, i64 904, !12, i64 968, !12, i64 976, !12, i64 984, !10, i64 992, !10, i64 1000, !19, i64 1008, !15, i64 11952, !15, i64 12016}
!15 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !16, i64 16, !17, i64 24, !7, i64 56}
!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", !15, i64 0, !15, i64 64, !15, i64 128, !15, i64 192, !15, i64 256, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360}
!19 = !{!"_ZTSN11alglib_impl16dualsimplexstateE", !15, i64 0, !15, i64 64, !15, i64 128, !15, i64 192, !10, i64 256, !10, i64 264, !18, i64 272, !18, i64 640, !20, i64 1008, !26, i64 7280, !26, i64 8072, !26, i64 8864, !15, i64 9656, !15, i64 9720, !15, i64 9784, !15, i64 9848, !12, i64 9912, !12, i64 9920, !12, i64 9928, !10, i64 9936, !10, i64 9944, !10, i64 9952, !10, i64 9960, !10, i64 9968, !15, i64 9976, !10, i64 10040, !15, i64 10048, !15, i64 10112, !15, i64 10176, !15, i64 10240, !15, i64 10304, !15, i64 10368, !15, i64 10432, !15, i64 10496, !15, i64 10560, !15, i64 10624, !15, i64 10688, !15, i64 10752, !15, i64 10816, !15, i64 10880}
!20 = !{!"_ZTSN11alglib_impl16dualsimplexbasisE", !10, i64 0, !10, i64 8, !15, i64 16, !15, i64 80, !15, i64 144, !10, i64 208, !16, i64 216, !10, i64 224, !21, i64 232, !18, i64 312, !18, i64 680, !18, i64 1048, !15, i64 1416, !15, i64 1480, !15, i64 1544, !15, i64 1608, !15, i64 1672, !15, i64 1736, !15, i64 1800, !16, i64 1864, !12, i64 1872, !15, i64 1880, !15, i64 1944, !15, i64 2008, !15, i64 2072, !15, i64 2136, !21, i64 2200, !15, i64 2280, !15, i64 2344, !18, i64 2408, !18, i64 2776, !22, i64 3144, !15, i64 5712, !15, i64 5776, !15, i64 5840, !18, i64 5904}
!21 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !16, i64 32, !17, i64 40, !7, i64 72}
!22 = !{!"_ZTSN11alglib_impl11sluv2bufferE", !10, i64 0, !18, i64 8, !18, i64 376, !23, i64 744, !23, i64 968, !24, i64 1192, !25, i64 1816, !15, i64 1976, !21, i64 2040, !15, i64 2120, !15, i64 2184, !15, i64 2248, !15, i64 2312, !15, i64 2376, !15, i64 2440, !15, i64 2504}
!23 = !{!"_ZTSN11alglib_impl16sluv2list1matrixE", !10, i64 0, !10, i64 8, !15, i64 16, !15, i64 80, !15, i64 144, !10, i64 208, !10, i64 216}
!24 = !{!"_ZTSN11alglib_impl16sluv2sparsetrailE", !10, i64 0, !10, i64 8, !15, i64 16, !10, i64 80, !10, i64 88, !10, i64 96, !15, i64 104, !15, i64 168, !15, i64 232, !15, i64 296, !15, i64 360, !15, i64 424, !15, i64 488, !10, i64 552, !15, i64 560}
!25 = !{!"_ZTSN11alglib_impl15sluv2densetrailE", !10, i64 0, !10, i64 8, !21, i64 16, !15, i64 96}
!26 = !{!"_ZTSN11alglib_impl21dualsimplexsubproblemE", !10, i64 0, !10, i64 8, !15, i64 16, !15, i64 80, !15, i64 144, !15, i64 208, !15, i64 272, !15, i64 336, !10, i64 400, !15, i64 408, !15, i64 472, !15, i64 536, !15, i64 600, !15, i64 664, !15, i64 728}
!27 = !{!14, !10, i64 0}
!28 = !{!15, !10, i64 0}
!29 = !{!7, !7, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!14, !10, i64 600}
!33 = !{!14, !10, i64 608}
!34 = !{!14, !10, i64 616}
!35 = !{!14, !10, i64 632}
!36 = distinct !{!36, !31}
!37 = distinct !{!37, !31}
!38 = distinct !{!38, !31}


; 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 [36 x i8], align 1
@.str.406 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.407 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.408 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.409 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.410 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.411 = external hidden unnamed_addr constant [51 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl11minlpaddlc2EPNS_10minlpstateEPNS_9ae_vectorES3_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 = getelementptr inbounds i8, ptr %0, i64 272
  %9 = load i64, ptr %8, align 8, !tbaa !5
  %10 = load i64, ptr %0, align 8, !tbaa !24
  %11 = icmp sgt i64 %3, -1
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.407, ptr noundef %6)
  %12 = load i64, ptr %1, align 8, !tbaa !25
  %13 = icmp sge i64 %12, %3
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.408, ptr noundef %6)
  %14 = load i64, ptr %2, align 8, !tbaa !25
  %15 = icmp sge i64 %14, %3
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.409, ptr noundef %6)
  %.not.not198 = icmp sgt i64 %3, 0
  br i1 %.not.not198, label %.lr.ph, label %._crit_edge

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

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

._crit_edge:                                      ; preds = %17, %7
  %24 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_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 %24, ptr noundef nonnull @.str.411, ptr noundef %6)
  %25 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %4, ptr noundef %6)
  br i1 %25, label %28, label %26

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

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

31:                                               ; preds = %28
  %32 = tail call noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef %5, ptr noundef %6)
  br label %33

33:                                               ; preds = %31, %28
  %34 = phi i1 [ true, %28 ], [ %32, %31 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %34, ptr noundef nonnull @.str.406, ptr noundef %6)
  %35 = icmp eq i64 %9, 0
  br i1 %35, label %36, label %44

36:                                               ; preds = %33
  %37 = getelementptr inbounds i8, ptr %0, i64 600
  store i64 1, ptr %37, align 8, !tbaa !30
  %38 = getelementptr inbounds i8, ptr %0, i64 608
  store i64 0, ptr %38, align 8, !tbaa !31
  %39 = getelementptr inbounds i8, ptr %0, i64 616
  store i64 %10, ptr %39, align 8, !tbaa !32
  %40 = getelementptr inbounds i8, ptr %0, i64 632
  store i64 0, ptr %40, align 8, !tbaa !33
  %41 = getelementptr inbounds i8, ptr %0, i64 408
  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 464
  %43 = load ptr, ptr %42, align 8, !tbaa !26
  store i64 0, ptr %43, align 8, !tbaa !27
  br label %44

44:                                               ; preds = %36, %33
  %45 = getelementptr inbounds i8, ptr %0, i64 280
  %46 = getelementptr inbounds i8, ptr %0, i64 408
  %47 = getelementptr inbounds i8, ptr %0, i64 464
  %48 = load ptr, ptr %47, align 8, !tbaa !26
  %49 = getelementptr inbounds i64, ptr %48, i64 %9
  %50 = load i64, ptr %49, align 8, !tbaa !27
  %.fr = freeze i64 %50
  %51 = getelementptr inbounds i8, ptr %0, i64 344
  %52 = add nsw i64 %.fr, %3
  tail call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %51, i64 noundef %52, ptr noundef %6)
  tail call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %45, i64 noundef %52, ptr noundef %6)
  %53 = getelementptr inbounds i8, ptr %0, i64 472
  %54 = add nsw i64 %9, 1
  tail call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %53, i64 noundef %54, ptr noundef %6)
  %55 = getelementptr inbounds i8, ptr %0, i64 536
  tail call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %55, i64 noundef %54, ptr noundef %6)
  %56 = add nsw i64 %9, 2
  tail call void @_ZN11alglib_impl13ivectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %46, i64 noundef %56, ptr noundef %6)
  %57 = getelementptr inbounds i8, ptr %0, i64 648
  tail call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %57, i64 noundef %54, ptr noundef %6)
  %58 = getelementptr inbounds i8, ptr %0, i64 712
  tail call void @_ZN11alglib_impl13rvectorgrowtoEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %58, i64 noundef %54, ptr noundef %6)
  %59 = icmp eq i64 %3, 0
  br i1 %59, label %65, label %.preheader194

.preheader194:                                    ; preds = %44
  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 %51, ptr noundef nonnull %45, i64 noundef %.fr, i64 noundef %3, ptr noundef %6)
  br label %.lr.ph212

.lr.ph202:                                        ; preds = %.preheader194
  %60 = getelementptr inbounds i8, ptr %1, i64 56
  %61 = getelementptr inbounds i8, ptr %0, i64 400
  %62 = getelementptr inbounds i8, ptr %2, i64 56
  %63 = getelementptr inbounds i8, ptr %0, i64 336
  %xtraiter = and i64 %3, 1
  %64 = icmp eq i64 %3, 1
  br i1 %64, label %._crit_edge203.unr-lcssa, label %.lr.ph202.new

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

65:                                               ; preds = %44
  %66 = load ptr, ptr %47, align 8, !tbaa !26
  %67 = getelementptr inbounds i64, ptr %66, i64 %9
  %68 = load i64, ptr %67, align 8, !tbaa !27
  %69 = getelementptr inbounds i8, ptr %0, i64 528
  %70 = load ptr, ptr %69, align 8, !tbaa !26
  %71 = getelementptr inbounds i64, ptr %70, i64 %9
  store i64 %68, ptr %71, align 8, !tbaa !27
  %72 = load ptr, ptr %47, align 8, !tbaa !26
  %73 = getelementptr inbounds i64, ptr %72, i64 %9
  %74 = load i64, ptr %73, align 8, !tbaa !27
  %75 = getelementptr inbounds i8, ptr %0, i64 592
  %76 = load ptr, ptr %75, align 8, !tbaa !26
  %77 = getelementptr inbounds i64, ptr %76, i64 %9
  store i64 %74, ptr %77, align 8, !tbaa !27
  %78 = load ptr, ptr %47, align 8, !tbaa !26
  %79 = getelementptr inbounds i64, ptr %78, i64 %9
  %80 = load i64, ptr %79, align 8, !tbaa !27
  %81 = getelementptr inbounds i64, ptr %78, i64 %54
  store i64 %80, ptr %81, align 8, !tbaa !27
  %82 = getelementptr inbounds i8, ptr %0, i64 704
  %83 = load ptr, ptr %82, align 8, !tbaa !26
  %84 = getelementptr inbounds double, ptr %83, i64 %9
  store double %4, ptr %84, align 8, !tbaa !34
  %85 = getelementptr inbounds i8, ptr %0, i64 768
  %86 = load ptr, ptr %85, align 8, !tbaa !26
  %87 = getelementptr inbounds double, ptr %86, i64 %9
  store double %5, ptr %87, align 8, !tbaa !34
  %88 = getelementptr inbounds i8, ptr %0, i64 608
  store i64 %54, ptr %88, align 8, !tbaa !31
  br label %183

89:                                               ; preds = %89, %.lr.ph202.new
  %.1176201 = phi i64 [ 0, %.lr.ph202.new ], [ %113, %89 ]
  %niter = phi i64 [ 0, %.lr.ph202.new ], [ %niter.next.1, %89 ]
  %90 = load ptr, ptr %60, align 8, !tbaa !26
  %91 = getelementptr inbounds i64, ptr %90, i64 %.1176201
  %92 = load i64, ptr %91, align 8, !tbaa !27
  %93 = load ptr, ptr %61, align 8, !tbaa !26
  %94 = add nsw i64 %.1176201, %.fr
  %95 = getelementptr inbounds i64, ptr %93, i64 %94
  store i64 %92, ptr %95, align 8, !tbaa !27
  %96 = load ptr, ptr %62, align 8, !tbaa !26
  %97 = getelementptr inbounds double, ptr %96, i64 %.1176201
  %98 = load double, ptr %97, align 8, !tbaa !34
  %99 = load ptr, ptr %63, align 8, !tbaa !26
  %100 = getelementptr inbounds double, ptr %99, i64 %94
  store double %98, ptr %100, align 8, !tbaa !34
  %101 = or disjoint i64 %.1176201, 1
  %102 = load ptr, ptr %60, align 8, !tbaa !26
  %103 = getelementptr inbounds i64, ptr %102, i64 %101
  %104 = load i64, ptr %103, align 8, !tbaa !27
  %105 = load ptr, ptr %61, align 8, !tbaa !26
  %106 = add nsw i64 %101, %.fr
  %107 = getelementptr inbounds i64, ptr %105, i64 %106
  store i64 %104, ptr %107, align 8, !tbaa !27
  %108 = load ptr, ptr %62, align 8, !tbaa !26
  %109 = getelementptr inbounds double, ptr %108, i64 %101
  %110 = load double, ptr %109, align 8, !tbaa !34
  %111 = load ptr, ptr %63, align 8, !tbaa !26
  %112 = getelementptr inbounds double, ptr %111, i64 %106
  store double %110, ptr %112, align 8, !tbaa !34
  %113 = add nuw nsw i64 %.1176201, 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 %89, !llvm.loop !35

._crit_edge203.unr-lcssa:                         ; preds = %89, %.lr.ph202
  %.1176201.unr = phi i64 [ 0, %.lr.ph202 ], [ %113, %89 ]
  %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
  %114 = load ptr, ptr %60, align 8, !tbaa !26
  %115 = getelementptr inbounds i64, ptr %114, i64 %.1176201.unr
  %116 = load i64, ptr %115, align 8, !tbaa !27
  %117 = load ptr, ptr %61, align 8, !tbaa !26
  %118 = add nsw i64 %.1176201.unr, %.fr
  %119 = getelementptr inbounds i64, ptr %117, i64 %118
  store i64 %116, ptr %119, align 8, !tbaa !27
  %120 = load ptr, ptr %62, align 8, !tbaa !26
  %121 = getelementptr inbounds double, ptr %120, i64 %.1176201.unr
  %122 = load double, ptr %121, align 8, !tbaa !34
  %123 = load ptr, ptr %63, align 8, !tbaa !26
  %124 = getelementptr inbounds double, ptr %123, i64 %118
  store double %122, ptr %124, align 8, !tbaa !34
  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 %51, 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 %.lr.ph212, label %.lr.ph208

.lr.ph208:                                        ; preds = %._crit_edge203
  %125 = getelementptr inbounds i8, ptr %0, i64 400
  %126 = getelementptr inbounds i8, ptr %0, i64 336
  br label %129

.preheader:                                       ; preds = %150
  %.not209 = icmp sgt i64 %.fr, %.1179
  br i1 %.not209, label %.thread, label %.lr.ph212

.lr.ph212:                                        ; preds = %._crit_edge203.thread, %._crit_edge203, %.preheader
  %.0178.lcssa221 = phi i64 [ %.1179, %.preheader ], [ %.fr, %._crit_edge203 ], [ %.fr, %._crit_edge203.thread ]
  %127 = getelementptr inbounds i8, ptr %0, i64 400
  %128 = load ptr, ptr %127, align 8, !tbaa !26
  br label %153

129:                                              ; preds = %.lr.ph208, %150
  %.2177206 = phi i64 [ 1, %.lr.ph208 ], [ %151, %150 ]
  %.0178205 = phi i64 [ %.fr, %.lr.ph208 ], [ %.1179, %150 ]
  %130 = load ptr, ptr %125, align 8, !tbaa !26
  %131 = getelementptr inbounds i64, ptr %130, i64 %.0178205
  %132 = load i64, ptr %131, align 8, !tbaa !27
  %133 = add nsw i64 %.2177206, %.fr
  %134 = getelementptr inbounds i64, ptr %130, i64 %133
  %135 = load i64, ptr %134, align 8, !tbaa !27
  %.not189 = icmp eq i64 %132, %135
  br i1 %.not189, label %143, label %136

136:                                              ; preds = %129
  %137 = add nsw i64 %.0178205, 1
  %138 = getelementptr inbounds i64, ptr %130, i64 %137
  store i64 %135, ptr %138, align 8, !tbaa !27
  %139 = load ptr, ptr %126, align 8, !tbaa !26
  %140 = getelementptr inbounds double, ptr %139, i64 %133
  %141 = load double, ptr %140, align 8, !tbaa !34
  %142 = getelementptr inbounds double, ptr %139, i64 %137
  store double %141, ptr %142, align 8, !tbaa !34
  br label %150

143:                                              ; preds = %129
  %144 = load ptr, ptr %126, align 8, !tbaa !26
  %145 = getelementptr inbounds double, ptr %144, i64 %.0178205
  %146 = load double, ptr %145, align 8, !tbaa !34
  %147 = getelementptr inbounds double, ptr %144, i64 %133
  %148 = load double, ptr %147, align 8, !tbaa !34
  %149 = fadd double %146, %148
  store double %149, ptr %145, align 8, !tbaa !34
  br label %150

150:                                              ; preds = %136, %143
  %.1179 = phi i64 [ %137, %136 ], [ %.0178205, %143 ]
  %151 = add nuw nsw i64 %.2177206, 1
  %exitcond217.not = icmp eq i64 %151, %3
  br i1 %exitcond217.not, label %.preheader, label %129, !llvm.loop !36

.thread:                                          ; preds = %159, %.preheader
  %.0178.lcssa222 = phi i64 [ %.1179, %.preheader ], [ %.0178.lcssa221, %159 ]
  %.0173.lcssa = phi i64 [ -1, %.preheader ], [ %.1174, %159 ]
  %152 = add nsw i64 %.0178.lcssa222, 1
  br label %164

153:                                              ; preds = %.lr.ph212, %159
  %.0173211 = phi i64 [ -1, %.lr.ph212 ], [ %.1174, %159 ]
  %.0180210 = phi i64 [ %.fr, %.lr.ph212 ], [ %160, %159 ]
  %154 = getelementptr inbounds i64, ptr %128, i64 %.0180210
  %155 = load i64, ptr %154, align 8, !tbaa !27
  %156 = icmp eq i64 %155, %9
  br i1 %156, label %159, label %157

157:                                              ; preds = %153
  %158 = icmp sgt i64 %155, %9
  br i1 %158, label %161, label %159

159:                                              ; preds = %153, %157
  %.1174 = phi i64 [ %.0173211, %157 ], [ %.0180210, %153 ]
  %160 = add i64 %.0180210, 1
  %.not = icmp sgt i64 %160, %.0178.lcssa221
  br i1 %.not, label %.thread, label %153, !llvm.loop !37

161:                                              ; preds = %157
  %162 = icmp eq i64 %.0180210, -1
  %163 = add nsw i64 %.0178.lcssa221, 1
  %spec.select193 = select i1 %162, i64 %163, i64 %.0180210
  br label %164

164:                                              ; preds = %161, %.thread
  %.0173196 = phi i64 [ %.0173.lcssa, %.thread ], [ %.0173211, %161 ]
  %165 = phi i64 [ %152, %.thread ], [ %163, %161 ]
  %166 = phi i64 [ %152, %.thread ], [ %spec.select193, %161 ]
  %167 = icmp eq i64 %.0173196, -1
  %.2 = select i1 %167, i64 %166, i64 %.0173196
  %168 = getelementptr inbounds i8, ptr %0, i64 528
  %169 = load ptr, ptr %168, align 8, !tbaa !26
  %170 = getelementptr inbounds i64, ptr %169, i64 %9
  store i64 %.2, ptr %170, align 8, !tbaa !27
  %171 = getelementptr inbounds i8, ptr %0, i64 592
  %172 = load ptr, ptr %171, align 8, !tbaa !26
  %173 = getelementptr inbounds i64, ptr %172, i64 %9
  store i64 %166, ptr %173, align 8, !tbaa !27
  %174 = load ptr, ptr %47, align 8, !tbaa !26
  %175 = getelementptr inbounds i64, ptr %174, i64 %54
  store i64 %165, ptr %175, align 8, !tbaa !27
  %176 = getelementptr inbounds i8, ptr %0, i64 608
  store i64 %54, ptr %176, align 8, !tbaa !31
  %177 = getelementptr inbounds i8, ptr %0, i64 704
  %178 = load ptr, ptr %177, align 8, !tbaa !26
  %179 = getelementptr inbounds double, ptr %178, i64 %9
  store double %4, ptr %179, align 8, !tbaa !34
  %180 = getelementptr inbounds i8, ptr %0, i64 768
  %181 = load ptr, ptr %180, align 8, !tbaa !26
  %182 = getelementptr inbounds double, ptr %181, i64 %9
  store double %5, ptr %182, align 8, !tbaa !34
  br label %183

183:                                              ; preds = %164, %65
  store i64 %54, ptr %8, align 8, !tbaa !5
  ret void
}

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

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 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_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_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 272}
!6 = !{!"_ZTSN11alglib_impl10minlpstateE", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 80, !10, i64 144, !10, i64 208, !7, i64 272, !14, i64 280, !10, i64 648, !10, i64 712, !10, i64 776, !10, i64 840, !10, i64 904, !15, i64 968, !15, i64 976, !15, i64 984, !7, i64 992, !7, i64 1000, !16, i64 1008, !10, i64 11952, !10, i64 12016}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !11, i64 16, !12, i64 24, !8, i64 56}
!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", !10, i64 0, !10, i64 64, !10, i64 128, !10, i64 192, !10, i64 256, !7, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !7, i64 360}
!15 = !{!"double", !8, i64 0}
!16 = !{!"_ZTSN11alglib_impl16dualsimplexstateE", !10, i64 0, !10, i64 64, !10, i64 128, !10, i64 192, !7, i64 256, !7, i64 264, !14, i64 272, !14, i64 640, !17, i64 1008, !23, i64 7280, !23, i64 8072, !23, i64 8864, !10, i64 9656, !10, i64 9720, !10, i64 9784, !10, i64 9848, !15, i64 9912, !15, i64 9920, !15, i64 9928, !7, i64 9936, !7, i64 9944, !7, i64 9952, !7, i64 9960, !7, i64 9968, !10, i64 9976, !7, i64 10040, !10, i64 10048, !10, i64 10112, !10, i64 10176, !10, i64 10240, !10, i64 10304, !10, i64 10368, !10, i64 10432, !10, i64 10496, !10, i64 10560, !10, i64 10624, !10, i64 10688, !10, i64 10752, !10, i64 10816, !10, i64 10880}
!17 = !{!"_ZTSN11alglib_impl16dualsimplexbasisE", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 80, !10, i64 144, !7, i64 208, !11, i64 216, !7, i64 224, !18, i64 232, !14, i64 312, !14, i64 680, !14, i64 1048, !10, i64 1416, !10, i64 1480, !10, i64 1544, !10, i64 1608, !10, i64 1672, !10, i64 1736, !10, i64 1800, !11, i64 1864, !15, i64 1872, !10, i64 1880, !10, i64 1944, !10, i64 2008, !10, i64 2072, !10, i64 2136, !18, i64 2200, !10, i64 2280, !10, i64 2344, !14, i64 2408, !14, i64 2776, !19, i64 3144, !10, i64 5712, !10, i64 5776, !10, i64 5840, !14, i64 5904}
!18 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !12, i64 40, !8, i64 72}
!19 = !{!"_ZTSN11alglib_impl11sluv2bufferE", !7, i64 0, !14, i64 8, !14, i64 376, !20, i64 744, !20, i64 968, !21, i64 1192, !22, i64 1816, !10, i64 1976, !18, i64 2040, !10, i64 2120, !10, i64 2184, !10, i64 2248, !10, i64 2312, !10, i64 2376, !10, i64 2440, !10, i64 2504}
!20 = !{!"_ZTSN11alglib_impl16sluv2list1matrixE", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 80, !10, i64 144, !7, i64 208, !7, i64 216}
!21 = !{!"_ZTSN11alglib_impl16sluv2sparsetrailE", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 80, !7, i64 88, !7, i64 96, !10, i64 104, !10, i64 168, !10, i64 232, !10, i64 296, !10, i64 360, !10, i64 424, !10, i64 488, !7, i64 552, !10, i64 560}
!22 = !{!"_ZTSN11alglib_impl15sluv2densetrailE", !7, i64 0, !7, i64 8, !18, i64 16, !10, i64 96}
!23 = !{!"_ZTSN11alglib_impl21dualsimplexsubproblemE", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 80, !10, i64 144, !10, i64 208, !10, i64 272, !10, i64 336, !7, i64 400, !10, i64 408, !10, i64 472, !10, i64 536, !10, i64 600, !10, i64 664, !10, i64 728}
!24 = !{!6, !7, i64 0}
!25 = !{!10, !7, i64 0}
!26 = !{!8, !8, i64 0}
!27 = !{!7, !7, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!6, !7, i64 600}
!31 = !{!6, !7, i64 608}
!32 = !{!6, !7, i64 616}
!33 = !{!6, !7, i64 632}
!34 = !{!15, !15, i64 0}
!35 = distinct !{!35, !29}
!36 = distinct !{!36, !29}
!37 = distinct !{!37, !29}


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