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

@.str.388 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.389 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.390 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.391 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.392 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.393 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.394 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.395 = external hidden unnamed_addr constant [42 x i8], align 1

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl16minlpsetlc2denseEPNS_10minlpstateEPNS_9ae_matrixEPNS_9ae_vectorES5_lPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5) #3 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.alglib_impl::ae_frame", align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i64 %4, ptr %11, align 8, !tbaa !9
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #4
  %20 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %20, ptr noundef %13)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 64, i1 false)
  %21 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %18, i64 noundef 0, i64 noundef 2, ptr noundef %21, i1 noundef zeroext true)
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %22, i32 0, i32 0
  %24 = load i64, ptr %23, align 8, !tbaa !11
  store i64 %24, ptr %16, align 8, !tbaa !9
  %25 = load i64, ptr %11, align 8, !tbaa !9
  %26 = icmp sge i64 %25, 0
  %27 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %26, ptr noundef @.str.388, ptr noundef %27)
  %28 = load i64, ptr %11, align 8, !tbaa !9
  %29 = icmp eq i64 %28, 0
  br i1 %29, label %36, label %30

30:                                               ; preds = %6
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %31, i32 0, i32 1
  %33 = load i64, ptr %32, align 8, !tbaa !26
  %34 = load i64, ptr %16, align 8, !tbaa !9
  %35 = icmp sge i64 %33, %34
  br label %36

36:                                               ; preds = %30, %6
  %37 = phi i1 [ true, %6 ], [ %35, %30 ]
  %38 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %37, ptr noundef @.str.389, ptr noundef %38)
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %39, i32 0, i32 0
  %41 = load i64, ptr %40, align 8, !tbaa !27
  %42 = load i64, ptr %11, align 8, !tbaa !9
  %43 = icmp sge i64 %41, %42
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %43, ptr noundef @.str.390, ptr noundef %44)
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 0
  %47 = load i64, ptr %46, align 8, !tbaa !28
  %48 = load i64, ptr %11, align 8, !tbaa !9
  %49 = icmp sge i64 %47, %48
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %49, ptr noundef @.str.391, ptr noundef %50)
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %51, i32 0, i32 0
  %53 = load i64, ptr %52, align 8, !tbaa !28
  %54 = load i64, ptr %11, align 8, !tbaa !9
  %55 = icmp sge i64 %53, %54
  %56 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %55, ptr noundef @.str.392, ptr noundef %56)
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = load i64, ptr %11, align 8, !tbaa !9
  %59 = load i64, ptr %16, align 8, !tbaa !9
  %60 = load ptr, ptr %12, align 8, !tbaa !5
  %61 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %57, i64 noundef %58, i64 noundef %59, ptr noundef %60)
  %62 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %61, ptr noundef @.str.393, ptr noundef %62)
  %63 = load i64, ptr %11, align 8, !tbaa !9
  %64 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %63, ptr noundef %64)
  %65 = load i64, ptr %11, align 8, !tbaa !9
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %66, i32 0, i32 6
  store i64 %65, ptr %67, align 8, !tbaa !29
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %68, i32 0, i32 6
  %70 = load i64, ptr %69, align 8, !tbaa !29
  %71 = icmp eq i64 %70, 0
  br i1 %71, label %72, label %74

72:                                               ; preds = %36
  %73 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %73)
  store i32 1, ptr %19, align 4
  br label %243

74:                                               ; preds = %36
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %75

75:                                               ; preds = %149, %74
  %76 = load i64, ptr %14, align 8, !tbaa !9
  %77 = load i64, ptr %11, align 8, !tbaa !9
  %78 = sub nsw i64 %77, 1
  %79 = icmp sle i64 %76, %78
  br i1 %79, label %80, label %152

80:                                               ; preds = %75
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %81, i32 0, i32 4
  %83 = load ptr, ptr %82, align 8, !tbaa !30
  %84 = load i64, ptr %14, align 8, !tbaa !9
  %85 = getelementptr inbounds double, ptr %83, i64 %84
  %86 = load double, ptr %85, align 8, !tbaa !31
  %87 = load ptr, ptr %12, align 8, !tbaa !5
  %88 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %86, ptr noundef %87)
  br i1 %88, label %98, label %89

89:                                               ; preds = %80
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %90, i32 0, i32 4
  %92 = load ptr, ptr %91, align 8, !tbaa !30
  %93 = load i64, ptr %14, align 8, !tbaa !9
  %94 = getelementptr inbounds double, ptr %92, i64 %93
  %95 = load double, ptr %94, align 8, !tbaa !31
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  %97 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef %95, ptr noundef %96)
  br label %98

98:                                               ; preds = %89, %80
  %99 = phi i1 [ true, %80 ], [ %97, %89 ]
  %100 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %99, ptr noundef @.str.394, ptr noundef %100)
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %101, i32 0, i32 4
  %103 = load ptr, ptr %102, align 8, !tbaa !30
  %104 = load i64, ptr %14, align 8, !tbaa !9
  %105 = getelementptr inbounds double, ptr %103, i64 %104
  %106 = load double, ptr %105, align 8, !tbaa !31
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  %108 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %106, ptr noundef %107)
  br i1 %108, label %118, label %109

109:                                              ; preds = %98
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %110, i32 0, i32 4
  %112 = load ptr, ptr %111, align 8, !tbaa !30
  %113 = load i64, ptr %14, align 8, !tbaa !9
  %114 = getelementptr inbounds double, ptr %112, i64 %113
  %115 = load double, ptr %114, align 8, !tbaa !31
  %116 = load ptr, ptr %12, align 8, !tbaa !5
  %117 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef %115, ptr noundef %116)
  br label %118

118:                                              ; preds = %109, %98
  %119 = phi i1 [ true, %98 ], [ %117, %109 ]
  %120 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %119, ptr noundef @.str.395, ptr noundef %120)
  store i64 0, ptr %17, align 8, !tbaa !9
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %121

121:                                              ; preds = %140, %118
  %122 = load i64, ptr %15, align 8, !tbaa !9
  %123 = load i64, ptr %16, align 8, !tbaa !9
  %124 = sub nsw i64 %123, 1
  %125 = icmp sle i64 %122, %124
  br i1 %125, label %126, label %143

126:                                              ; preds = %121
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %127, i32 0, i32 6
  %129 = load ptr, ptr %128, align 8, !tbaa !30
  %130 = load i64, ptr %14, align 8, !tbaa !9
  %131 = getelementptr inbounds ptr, ptr %129, i64 %130
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  %133 = load i64, ptr %15, align 8, !tbaa !9
  %134 = getelementptr inbounds double, ptr %132, i64 %133
  %135 = load double, ptr %134, align 8, !tbaa !31
  %136 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %135, double noundef 0.000000e+00)
  br i1 %136, label %137, label %139

137:                                              ; preds = %126
  %138 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef %17, ptr noundef %138)
  br label %139

139:                                              ; preds = %137, %126
  br label %140

140:                                              ; preds = %139
  %141 = load i64, ptr %15, align 8, !tbaa !9
  %142 = add nsw i64 %141, 1
  store i64 %142, ptr %15, align 8, !tbaa !9
  br label %121, !llvm.loop !32

143:                                              ; preds = %121
  %144 = load i64, ptr %17, align 8, !tbaa !9
  %145 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %146 = load ptr, ptr %145, align 8, !tbaa !30
  %147 = load i64, ptr %14, align 8, !tbaa !9
  %148 = getelementptr inbounds i64, ptr %146, i64 %147
  store i64 %144, ptr %148, align 8, !tbaa !9
  br label %149

149:                                              ; preds = %143
  %150 = load i64, ptr %14, align 8, !tbaa !9
  %151 = add nsw i64 %150, 1
  store i64 %151, ptr %14, align 8, !tbaa !9
  br label %75, !llvm.loop !34

152:                                              ; preds = %75
  %153 = load ptr, ptr %7, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %153, i32 0, i32 8
  %155 = load ptr, ptr %7, align 8, !tbaa !5
  %156 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %155, i32 0, i32 6
  %157 = load i64, ptr %156, align 8, !tbaa !29
  %158 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %154, i64 noundef %157, ptr noundef %158)
  %159 = load ptr, ptr %7, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %159, i32 0, i32 9
  %161 = load ptr, ptr %7, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %161, i32 0, i32 6
  %163 = load i64, ptr %162, align 8, !tbaa !29
  %164 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %160, i64 noundef %163, ptr noundef %164)
  %165 = load ptr, ptr %7, align 8, !tbaa !5
  %166 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %165, i32 0, i32 6
  %167 = load i64, ptr %166, align 8, !tbaa !29
  %168 = load i64, ptr %16, align 8, !tbaa !9
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %169, i32 0, i32 7
  %171 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl18sparsecreatecrsbufEllPNS_9ae_vectorEPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %167, i64 noundef %168, ptr noundef %18, ptr noundef %170, ptr noundef %171)
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %172

172:                                              ; preds = %238, %152
  %173 = load i64, ptr %14, align 8, !tbaa !9
  %174 = load i64, ptr %11, align 8, !tbaa !9
  %175 = sub nsw i64 %174, 1
  %176 = icmp sle i64 %173, %175
  br i1 %176, label %177, label %241

177:                                              ; preds = %172
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %178

178:                                              ; preds = %210, %177
  %179 = load i64, ptr %15, align 8, !tbaa !9
  %180 = load i64, ptr %16, align 8, !tbaa !9
  %181 = sub nsw i64 %180, 1
  %182 = icmp sle i64 %179, %181
  br i1 %182, label %183, label %213

183:                                              ; preds = %178
  %184 = load ptr, ptr %8, align 8, !tbaa !5
  %185 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %184, i32 0, i32 6
  %186 = load ptr, ptr %185, align 8, !tbaa !30
  %187 = load i64, ptr %14, align 8, !tbaa !9
  %188 = getelementptr inbounds ptr, ptr %186, i64 %187
  %189 = load ptr, ptr %188, align 8, !tbaa !5
  %190 = load i64, ptr %15, align 8, !tbaa !9
  %191 = getelementptr inbounds double, ptr %189, i64 %190
  %192 = load double, ptr %191, align 8, !tbaa !31
  %193 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %192, double noundef 0.000000e+00)
  br i1 %193, label %194, label %209

194:                                              ; preds = %183
  %195 = load ptr, ptr %7, align 8, !tbaa !5
  %196 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %195, i32 0, i32 7
  %197 = load i64, ptr %14, align 8, !tbaa !9
  %198 = load i64, ptr %15, align 8, !tbaa !9
  %199 = load ptr, ptr %8, align 8, !tbaa !5
  %200 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %199, i32 0, i32 6
  %201 = load ptr, ptr %200, align 8, !tbaa !30
  %202 = load i64, ptr %14, align 8, !tbaa !9
  %203 = getelementptr inbounds ptr, ptr %201, i64 %202
  %204 = load ptr, ptr %203, align 8, !tbaa !5
  %205 = load i64, ptr %15, align 8, !tbaa !9
  %206 = getelementptr inbounds double, ptr %204, i64 %205
  %207 = load double, ptr %206, align 8, !tbaa !31
  %208 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %196, i64 noundef %197, i64 noundef %198, double noundef %207, ptr noundef %208)
  br label %209

209:                                              ; preds = %194, %183
  br label %210

210:                                              ; preds = %209
  %211 = load i64, ptr %15, align 8, !tbaa !9
  %212 = add nsw i64 %211, 1
  store i64 %212, ptr %15, align 8, !tbaa !9
  br label %178, !llvm.loop !35

213:                                              ; preds = %178
  %214 = load ptr, ptr %9, align 8, !tbaa !5
  %215 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %214, i32 0, i32 4
  %216 = load ptr, ptr %215, align 8, !tbaa !30
  %217 = load i64, ptr %14, align 8, !tbaa !9
  %218 = getelementptr inbounds double, ptr %216, i64 %217
  %219 = load double, ptr %218, align 8, !tbaa !31
  %220 = load ptr, ptr %7, align 8, !tbaa !5
  %221 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %220, i32 0, i32 8
  %222 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %221, i32 0, i32 4
  %223 = load ptr, ptr %222, align 8, !tbaa !30
  %224 = load i64, ptr %14, align 8, !tbaa !9
  %225 = getelementptr inbounds double, ptr %223, i64 %224
  store double %219, ptr %225, align 8, !tbaa !31
  %226 = load ptr, ptr %10, align 8, !tbaa !5
  %227 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %226, i32 0, i32 4
  %228 = load ptr, ptr %227, align 8, !tbaa !30
  %229 = load i64, ptr %14, align 8, !tbaa !9
  %230 = getelementptr inbounds double, ptr %228, i64 %229
  %231 = load double, ptr %230, align 8, !tbaa !31
  %232 = load ptr, ptr %7, align 8, !tbaa !5
  %233 = getelementptr inbounds %"struct.alglib_impl::minlpstate", ptr %232, i32 0, i32 9
  %234 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %233, i32 0, i32 4
  %235 = load ptr, ptr %234, align 8, !tbaa !30
  %236 = load i64, ptr %14, align 8, !tbaa !9
  %237 = getelementptr inbounds double, ptr %235, i64 %236
  store double %231, ptr %237, align 8, !tbaa !31
  br label %238

238:                                              ; preds = %213
  %239 = load i64, ptr %14, align 8, !tbaa !9
  %240 = add nsw i64 %239, 1
  store i64 %240, ptr %14, align 8, !tbaa !9
  br label %172, !llvm.loop !36

241:                                              ; preds = %172
  %242 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %242)
  store i32 0, ptr %19, align 4
  br label %243

243:                                              ; preds = %241, %72
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  %244 = load i32, ptr %19, align 4
  switch i32 %244, label %246 [
    i32 0, label %245
    i32 1, label %245
  ]

245:                                              ; preds = %243, %243
  ret void

246:                                              ; preds = %243
  unreachable
}

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) #2

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

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

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

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

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

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

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

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


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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.388 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.389 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.390 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.391 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.392 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.393 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.394 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.395 = external hidden unnamed_addr constant [42 x i8], align 1

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl16minlpsetlc2denseEPNS_10minlpstateEPNS_9ae_matrixEPNS_9ae_vectorES5_lPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, i64 noundef %4, ptr noundef %5) local_unnamed_addr #3 {
  %7 = alloca %"struct.alglib_impl::ae_frame", align 8
  %8 = alloca i64, align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %5, ptr noundef nonnull %7)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 2, ptr noundef %5, i1 noundef zeroext true)
  %10 = load i64, ptr %0, align 8, !tbaa !5
  %.fr = freeze i64 %10
  %11 = icmp sgt i64 %4, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.388, ptr noundef %5)
  %12 = icmp eq i64 %4, 0
  br i1 %12, label %17, label %13

13:                                               ; preds = %6
  %14 = getelementptr inbounds i8, ptr %1, i64 8
  %15 = load i64, ptr %14, align 8, !tbaa !24
  %16 = icmp sge i64 %15, %.fr
  br label %17

17:                                               ; preds = %13, %6
  %18 = phi i1 [ true, %6 ], [ %16, %13 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.389, ptr noundef %5)
  %19 = load i64, ptr %1, align 8, !tbaa !25
  %20 = icmp sge i64 %19, %4
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef nonnull @.str.390, ptr noundef %5)
  %21 = load i64, ptr %2, align 8, !tbaa !26
  %22 = icmp sge i64 %21, %4
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %22, ptr noundef nonnull @.str.391, ptr noundef %5)
  %23 = load i64, ptr %3, align 8, !tbaa !26
  %24 = icmp sge i64 %23, %4
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef nonnull @.str.392, ptr noundef %5)
  %25 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %4, i64 noundef %.fr, ptr noundef %5)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %25, ptr noundef nonnull @.str.393, ptr noundef %5)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %4, ptr noundef %5)
  %26 = getelementptr inbounds i8, ptr %0, i64 272
  store i64 %4, ptr %26, align 8, !tbaa !27
  br i1 %12, label %._crit_edge106, label %.preheader95

.preheader95:                                     ; preds = %17
  %.not.not98 = icmp sgt i64 %4, 0
  br i1 %.not.not98, label %.lr.ph100, label %._crit_edge101

.lr.ph100:                                        ; preds = %.preheader95
  %27 = getelementptr inbounds i8, ptr %2, i64 56
  %28 = getelementptr inbounds i8, ptr %3, i64 56
  %.not.not9496 = icmp sgt i64 %.fr, 0
  %29 = getelementptr inbounds i8, ptr %1, i64 72
  %30 = getelementptr inbounds i8, ptr %9, i64 56
  br i1 %.not.not9496, label %.lr.ph100.split.us, label %.lr.ph100.split

.lr.ph100.split.us:                               ; preds = %.lr.ph100, %._crit_edge.us
  %.099.us = phi i64 [ %65, %._crit_edge.us ], [ 0, %.lr.ph100 ]
  %31 = load ptr, ptr %27, align 8, !tbaa !28
  %32 = getelementptr inbounds double, ptr %31, i64 %.099.us
  %33 = load double, ptr %32, align 8, !tbaa !29
  %34 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %33, ptr noundef %5)
  br i1 %34, label %40, label %35

35:                                               ; preds = %.lr.ph100.split.us
  %36 = load ptr, ptr %27, align 8, !tbaa !28
  %37 = getelementptr inbounds double, ptr %36, i64 %.099.us
  %38 = load double, ptr %37, align 8, !tbaa !29
  %39 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef %38, ptr noundef %5)
  br label %40

40:                                               ; preds = %35, %.lr.ph100.split.us
  %41 = phi i1 [ true, %.lr.ph100.split.us ], [ %39, %35 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %41, ptr noundef nonnull @.str.394, ptr noundef %5)
  %42 = load ptr, ptr %28, align 8, !tbaa !28
  %43 = getelementptr inbounds double, ptr %42, i64 %.099.us
  %44 = load double, ptr %43, align 8, !tbaa !29
  %45 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %44, ptr noundef %5)
  br i1 %45, label %.lr.ph.us, label %46

46:                                               ; preds = %40
  %47 = load ptr, ptr %28, align 8, !tbaa !28
  %48 = getelementptr inbounds double, ptr %47, i64 %.099.us
  %49 = load double, ptr %48, align 8, !tbaa !29
  %50 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef %49, ptr noundef %5)
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %46, %40
  %51 = phi i1 [ true, %40 ], [ %50, %46 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %51, ptr noundef nonnull @.str.395, ptr noundef %5)
  store i64 0, ptr %8, align 8, !tbaa !30
  br label %52

52:                                               ; preds = %.lr.ph.us, %60
  %.08897.us = phi i64 [ 0, %.lr.ph.us ], [ %61, %60 ]
  %53 = load ptr, ptr %29, align 8, !tbaa !28
  %54 = getelementptr inbounds ptr, ptr %53, i64 %.099.us
  %55 = load ptr, ptr %54, align 8, !tbaa !31
  %56 = getelementptr inbounds double, ptr %55, i64 %.08897.us
  %57 = load double, ptr %56, align 8, !tbaa !29
  %58 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %57, double noundef 0.000000e+00)
  br i1 %58, label %59, label %60

59:                                               ; preds = %52
  call void @_ZN11alglib_impl3incEPlPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef %5)
  br label %60

60:                                               ; preds = %59, %52
  %61 = add nuw nsw i64 %.08897.us, 1
  %exitcond111.not = icmp eq i64 %61, %.fr
  br i1 %exitcond111.not, label %._crit_edge.us, label %52, !llvm.loop !32

._crit_edge.us:                                   ; preds = %60
  %62 = load i64, ptr %8, align 8, !tbaa !30
  %63 = load ptr, ptr %30, align 8, !tbaa !28
  %64 = getelementptr inbounds i64, ptr %63, i64 %.099.us
  store i64 %62, ptr %64, align 8, !tbaa !30
  %65 = add nuw nsw i64 %.099.us, 1
  %exitcond112.not = icmp eq i64 %65, %4
  br i1 %exitcond112.not, label %._crit_edge101, label %.lr.ph100.split.us, !llvm.loop !34

.lr.ph100.split:                                  ; preds = %.lr.ph100, %86
  %.099 = phi i64 [ %90, %86 ], [ 0, %.lr.ph100 ]
  %66 = load ptr, ptr %27, align 8, !tbaa !28
  %67 = getelementptr inbounds double, ptr %66, i64 %.099
  %68 = load double, ptr %67, align 8, !tbaa !29
  %69 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %68, ptr noundef %5)
  br i1 %69, label %75, label %70

70:                                               ; preds = %.lr.ph100.split
  %71 = load ptr, ptr %27, align 8, !tbaa !28
  %72 = getelementptr inbounds double, ptr %71, i64 %.099
  %73 = load double, ptr %72, align 8, !tbaa !29
  %74 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isneginfEdPNS_8ae_stateE(double noundef %73, ptr noundef %5)
  br label %75

75:                                               ; preds = %70, %.lr.ph100.split
  %76 = phi i1 [ true, %.lr.ph100.split ], [ %74, %70 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %76, ptr noundef nonnull @.str.394, ptr noundef %5)
  %77 = load ptr, ptr %28, align 8, !tbaa !28
  %78 = getelementptr inbounds double, ptr %77, i64 %.099
  %79 = load double, ptr %78, align 8, !tbaa !29
  %80 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %79, ptr noundef %5)
  br i1 %80, label %86, label %81

81:                                               ; preds = %75
  %82 = load ptr, ptr %28, align 8, !tbaa !28
  %83 = getelementptr inbounds double, ptr %82, i64 %.099
  %84 = load double, ptr %83, align 8, !tbaa !29
  %85 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isposinfEdPNS_8ae_stateE(double noundef %84, ptr noundef %5)
  br label %86

86:                                               ; preds = %81, %75
  %87 = phi i1 [ true, %75 ], [ %85, %81 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %87, ptr noundef nonnull @.str.395, ptr noundef %5)
  store i64 0, ptr %8, align 8, !tbaa !30
  %88 = load ptr, ptr %30, align 8, !tbaa !28
  %89 = getelementptr inbounds i64, ptr %88, i64 %.099
  store i64 0, ptr %89, align 8, !tbaa !30
  %90 = add nuw nsw i64 %.099, 1
  %exitcond.not = icmp eq i64 %90, %4
  br i1 %exitcond.not, label %._crit_edge101, label %.lr.ph100.split, !llvm.loop !34

._crit_edge101:                                   ; preds = %86, %._crit_edge.us, %.preheader95
  %91 = getelementptr inbounds i8, ptr %0, i64 648
  %92 = load i64, ptr %26, align 8, !tbaa !27
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %91, i64 noundef %92, ptr noundef %5)
  %93 = getelementptr inbounds i8, ptr %0, i64 712
  %94 = load i64, ptr %26, align 8, !tbaa !27
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %93, i64 noundef %94, ptr noundef %5)
  %95 = load i64, ptr %26, align 8, !tbaa !27
  %96 = getelementptr inbounds i8, ptr %0, i64 280
  call void @_ZN11alglib_impl18sparsecreatecrsbufEllPNS_9ae_vectorEPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %95, i64 noundef %.fr, ptr noundef nonnull %9, ptr noundef nonnull %96, ptr noundef %5)
  br i1 %.not.not98, label %.preheader.lr.ph, label %._crit_edge106

.preheader.lr.ph:                                 ; preds = %._crit_edge101
  %.not.not93102 = icmp sgt i64 %.fr, 0
  %97 = getelementptr inbounds i8, ptr %1, i64 72
  %98 = getelementptr inbounds i8, ptr %2, i64 56
  %99 = getelementptr inbounds i8, ptr %0, i64 704
  %100 = getelementptr inbounds i8, ptr %3, i64 56
  %101 = getelementptr inbounds i8, ptr %0, i64 768
  br i1 %.not.not93102, label %.preheader.us, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %xtraiter = and i64 %4, 1
  %102 = icmp eq i64 %4, 1
  br i1 %102, label %._crit_edge106.loopexit120.unr-lcssa, label %.preheader.preheader.new

.preheader.preheader.new:                         ; preds = %.preheader.preheader
  %unroll_iter = and i64 %4, 9223372036854775806
  br label %.preheader

.preheader.us:                                    ; preds = %.preheader.lr.ph, %._crit_edge.us108
  %.1105.us = phi i64 [ %128, %._crit_edge.us108 ], [ 0, %.preheader.lr.ph ]
  br label %103

103:                                              ; preds = %.preheader.us, %116
  %.189103.us = phi i64 [ 0, %.preheader.us ], [ %117, %116 ]
  %104 = load ptr, ptr %97, align 8, !tbaa !28
  %105 = getelementptr inbounds ptr, ptr %104, i64 %.1105.us
  %106 = load ptr, ptr %105, align 8, !tbaa !31
  %107 = getelementptr inbounds double, ptr %106, i64 %.189103.us
  %108 = load double, ptr %107, align 8, !tbaa !29
  %109 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %108, double noundef 0.000000e+00)
  br i1 %109, label %110, label %116

110:                                              ; preds = %103
  %111 = load ptr, ptr %97, align 8, !tbaa !28
  %112 = getelementptr inbounds ptr, ptr %111, i64 %.1105.us
  %113 = load ptr, ptr %112, align 8, !tbaa !31
  %114 = getelementptr inbounds double, ptr %113, i64 %.189103.us
  %115 = load double, ptr %114, align 8, !tbaa !29
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %96, i64 noundef %.1105.us, i64 noundef %.189103.us, double noundef %115, ptr noundef %5)
  br label %116

116:                                              ; preds = %110, %103
  %117 = add nuw nsw i64 %.189103.us, 1
  %exitcond114.not = icmp eq i64 %117, %.fr
  br i1 %exitcond114.not, label %._crit_edge.us108, label %103, !llvm.loop !35

._crit_edge.us108:                                ; preds = %116
  %118 = load ptr, ptr %98, align 8, !tbaa !28
  %119 = getelementptr inbounds double, ptr %118, i64 %.1105.us
  %120 = load double, ptr %119, align 8, !tbaa !29
  %121 = load ptr, ptr %99, align 8, !tbaa !28
  %122 = getelementptr inbounds double, ptr %121, i64 %.1105.us
  store double %120, ptr %122, align 8, !tbaa !29
  %123 = load ptr, ptr %100, align 8, !tbaa !28
  %124 = getelementptr inbounds double, ptr %123, i64 %.1105.us
  %125 = load double, ptr %124, align 8, !tbaa !29
  %126 = load ptr, ptr %101, align 8, !tbaa !28
  %127 = getelementptr inbounds double, ptr %126, i64 %.1105.us
  store double %125, ptr %127, align 8, !tbaa !29
  %128 = add nuw nsw i64 %.1105.us, 1
  %exitcond115.not = icmp eq i64 %128, %4
  br i1 %exitcond115.not, label %._crit_edge106, label %.preheader.us, !llvm.loop !36

.preheader:                                       ; preds = %.preheader, %.preheader.preheader.new
  %.1105 = phi i64 [ 0, %.preheader.preheader.new ], [ %150, %.preheader ]
  %niter = phi i64 [ 0, %.preheader.preheader.new ], [ %niter.next.1, %.preheader ]
  %129 = load ptr, ptr %98, align 8, !tbaa !28
  %130 = getelementptr inbounds double, ptr %129, i64 %.1105
  %131 = load double, ptr %130, align 8, !tbaa !29
  %132 = load ptr, ptr %99, align 8, !tbaa !28
  %133 = getelementptr inbounds double, ptr %132, i64 %.1105
  store double %131, ptr %133, align 8, !tbaa !29
  %134 = load ptr, ptr %100, align 8, !tbaa !28
  %135 = getelementptr inbounds double, ptr %134, i64 %.1105
  %136 = load double, ptr %135, align 8, !tbaa !29
  %137 = load ptr, ptr %101, align 8, !tbaa !28
  %138 = getelementptr inbounds double, ptr %137, i64 %.1105
  store double %136, ptr %138, align 8, !tbaa !29
  %139 = or disjoint i64 %.1105, 1
  %140 = load ptr, ptr %98, align 8, !tbaa !28
  %141 = getelementptr inbounds double, ptr %140, i64 %139
  %142 = load double, ptr %141, align 8, !tbaa !29
  %143 = load ptr, ptr %99, align 8, !tbaa !28
  %144 = getelementptr inbounds double, ptr %143, i64 %139
  store double %142, ptr %144, align 8, !tbaa !29
  %145 = load ptr, ptr %100, align 8, !tbaa !28
  %146 = getelementptr inbounds double, ptr %145, i64 %139
  %147 = load double, ptr %146, align 8, !tbaa !29
  %148 = load ptr, ptr %101, align 8, !tbaa !28
  %149 = getelementptr inbounds double, ptr %148, i64 %139
  store double %147, ptr %149, align 8, !tbaa !29
  %150 = add nuw nsw i64 %.1105, 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_edge106.loopexit120.unr-lcssa, label %.preheader, !llvm.loop !36

._crit_edge106.loopexit120.unr-lcssa:             ; preds = %.preheader, %.preheader.preheader
  %.1105.unr = phi i64 [ 0, %.preheader.preheader ], [ %150, %.preheader ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge106, label %.preheader.epil

.preheader.epil:                                  ; preds = %._crit_edge106.loopexit120.unr-lcssa
  %151 = load ptr, ptr %98, align 8, !tbaa !28
  %152 = getelementptr inbounds double, ptr %151, i64 %.1105.unr
  %153 = load double, ptr %152, align 8, !tbaa !29
  %154 = load ptr, ptr %99, align 8, !tbaa !28
  %155 = getelementptr inbounds double, ptr %154, i64 %.1105.unr
  store double %153, ptr %155, align 8, !tbaa !29
  %156 = load ptr, ptr %100, align 8, !tbaa !28
  %157 = getelementptr inbounds double, ptr %156, i64 %.1105.unr
  %158 = load double, ptr %157, align 8, !tbaa !29
  %159 = load ptr, ptr %101, align 8, !tbaa !28
  %160 = getelementptr inbounds double, ptr %159, i64 %.1105.unr
  store double %158, ptr %160, align 8, !tbaa !29
  br label %._crit_edge106

._crit_edge106:                                   ; preds = %.preheader.epil, %._crit_edge106.loopexit120.unr-lcssa, %._crit_edge.us108, %._crit_edge101, %17
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %5)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #4
  ret void
}

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) local_unnamed_addr #2

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!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 = !{!18, !7, i64 8}
!25 = !{!18, !7, i64 0}
!26 = !{!10, !7, i64 0}
!27 = !{!6, !7, i64 272}
!28 = !{!8, !8, i64 0}
!29 = !{!15, !15, i64 0}
!30 = !{!7, !7, i64 0}
!31 = !{!13, !13, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = distinct !{!34, !33}
!35 = distinct !{!35, !33}
!36 = distinct !{!36, !33}


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