; 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::hqrndstate" = type { 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::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::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" }
%"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::dualsimplexsettings" = type { double, double, i64, i64, i64, i64, i64 }

@_ZN11alglib_implL28reviseddualsimplex_ssinvalidE = external hidden global i64, align 8
@_ZN11alglib_implL31reviseddualsimplex_ccinfeasibleE = external hidden global i64, align 8
@_ZN11alglib_implL28reviseddualsimplex_ssvalidxnE = external hidden global i64, align 8
@_ZN11alglib_implL26reviseddualsimplex_ssvalidE = external hidden global i64, align 8
@.str.362 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.363 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.364 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.365 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.366 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.367 = external hidden unnamed_addr constant [45 x i8], align 1

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

declare noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #2

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) #2

declare noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #2

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

declare noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL32reviseddualsimplex_basisfreshtrfEPNS_16dualsimplexbasisEPNS_12sparsematrixEPNS_19dualsimplexsettingsEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl11dssoptimizeEPNS_16dualsimplexstateEPNS_19dualsimplexsettingsEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.alglib_impl::ae_frame", align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca double, align 8
  %15 = alloca %"struct.alglib_impl::hqrndstate", align 8
  %16 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %17, ptr noundef %7)
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 24, i1 false)
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef %15, ptr noundef %18, i1 noundef zeroext true)
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %19, i32 0, i32 9
  %21 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %20, i32 0, i32 0
  %22 = load i64, ptr %21, align 8, !tbaa !9
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %23, i32 0, i32 9
  %25 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %24, i32 0, i32 1
  %26 = load i64, ptr %25, align 8, !tbaa !24
  %27 = add nsw i64 %22, %26
  store i64 %27, ptr %8, align 8, !tbaa !25
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %28, i32 0, i32 9
  %30 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %29, i32 0, i32 1
  %31 = load i64, ptr %30, align 8, !tbaa !24
  store i64 %31, ptr %9, align 8, !tbaa !25
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %32, i32 0, i32 16
  store double 0.000000e+00, ptr %33, align 8, !tbaa !26
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %34, i32 0, i32 20
  store i64 0, ptr %35, align 8, !tbaa !27
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %36, i32 0, i32 21
  store i64 0, ptr %37, align 8, !tbaa !28
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %38, i32 0, i32 22
  store i64 0, ptr %39, align 8, !tbaa !29
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %40, i32 0, i32 23
  store i64 0, ptr %41, align 8, !tbaa !30
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %42, i32 0, i32 19
  store i64 1, ptr %43, align 8, !tbaa !31
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %44, i32 0, i32 17
  store double 0.000000e+00, ptr %45, align 8, !tbaa !32
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %46, i32 0, i32 18
  store double 0.000000e+00, ptr %47, align 8, !tbaa !33
  %48 = load i64, ptr %9, align 8, !tbaa !25
  %49 = icmp eq i64 %48, 0
  br i1 %49, label %50, label %98

50:                                               ; preds = %3
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_implL31reviseddualsimplex_solveboxonlyEPNS_16dualsimplexstateEPNS_8ae_stateE(ptr noundef %51, ptr noundef %52)
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %53, i32 0, i32 16
  store double 0.000000e+00, ptr %54, align 8, !tbaa !26
  store i64 0, ptr %10, align 8, !tbaa !25
  br label %55

55:                                               ; preds = %85, %50
  %56 = load i64, ptr %10, align 8, !tbaa !25
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %57, i32 0, i32 9
  %59 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %58, i32 0, i32 0
  %60 = load i64, ptr %59, align 8, !tbaa !9
  %61 = sub nsw i64 %60, 1
  %62 = icmp sle i64 %56, %61
  br i1 %62, label %63, label %88

63:                                               ; preds = %55
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %64, i32 0, i32 16
  %66 = load double, ptr %65, align 8, !tbaa !26
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %67, i32 0, i32 12
  %69 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %68, i32 0, i32 4
  %70 = load ptr, ptr %69, align 8, !tbaa !34
  %71 = load i64, ptr %10, align 8, !tbaa !25
  %72 = getelementptr inbounds double, ptr %70, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !35
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %74, i32 0, i32 9
  %76 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %75, i32 0, i32 2
  %77 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %76, i32 0, i32 4
  %78 = load ptr, ptr %77, align 8, !tbaa !34
  %79 = load i64, ptr %10, align 8, !tbaa !25
  %80 = getelementptr inbounds double, ptr %78, i64 %79
  %81 = load double, ptr %80, align 8, !tbaa !35
  %82 = call double @llvm.fmuladd.f64(double %73, double %81, double %66)
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %83, i32 0, i32 16
  store double %82, ptr %84, align 8, !tbaa !26
  br label %85

85:                                               ; preds = %63
  %86 = load i64, ptr %10, align 8, !tbaa !25
  %87 = add nsw i64 %86, 1
  store i64 %87, ptr %10, align 8, !tbaa !25
  br label %55, !llvm.loop !36

88:                                               ; preds = %55
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %89, i32 0, i32 12
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %91, i32 0, i32 13
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %93, i32 0, i32 14
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_implL36reviseddualsimplex_unscaleandenforceEPNS_9ae_vectorES1_S1_PNS_16dualsimplexstateEPNS_8ae_stateE(ptr noundef %90, ptr noundef %92, ptr noundef %94, ptr noundef %95, ptr noundef %96)
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %97)
  store i32 1, ptr %16, align 4
  br label %825

98:                                               ; preds = %3
  store i64 0, ptr %10, align 8, !tbaa !25
  br label %99

99:                                               ; preds = %122, %98
  %100 = load i64, ptr %10, align 8, !tbaa !25
  %101 = load i64, ptr %8, align 8, !tbaa !25
  %102 = sub nsw i64 %101, 1
  %103 = icmp sle i64 %100, %102
  br i1 %103, label %104, label %125

104:                                              ; preds = %99
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %105, i32 0, i32 9
  %107 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %106, i32 0, i32 5
  %108 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %107, i32 0, i32 4
  %109 = load ptr, ptr %108, align 8, !tbaa !34
  %110 = load i64, ptr %10, align 8, !tbaa !25
  %111 = getelementptr inbounds i64, ptr %109, i64 %110
  %112 = load i64, ptr %111, align 8, !tbaa !25
  %113 = load i64, ptr @_ZN11alglib_implL31reviseddualsimplex_ccinfeasibleE, align 8, !tbaa !25
  %114 = icmp eq i64 %112, %113
  br i1 %114, label %115, label %121

115:                                              ; preds = %104
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %116, i32 0, i32 19
  store i64 -3, ptr %117, align 8, !tbaa !31
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_implL33reviseddualsimplex_setzeroxystatsEPNS_16dualsimplexstateEPNS_8ae_stateE(ptr noundef %118, ptr noundef %119)
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %120)
  store i32 1, ptr %16, align 4
  br label %825

121:                                              ; preds = %104
  br label %122

122:                                              ; preds = %121
  %123 = load i64, ptr %10, align 8, !tbaa !25
  %124 = add nsw i64 %123, 1
  store i64 %124, ptr %10, align 8, !tbaa !25
  br label %99, !llvm.loop !38

125:                                              ; preds = %99
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9hqrndseedEllPNS_10hqrndstateEPNS_8ae_stateE(i64 noundef 7456, i64 noundef 2355, ptr noundef %15, ptr noundef %126)
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %127, i32 0, i32 9
  %129 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %128, i32 0, i32 14
  %130 = load i64, ptr %8, align 8, !tbaa !25
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %129, i64 noundef %130, ptr noundef %131)
  store i64 0, ptr %10, align 8, !tbaa !25
  br label %132

132:                                              ; preds = %248, %125
  %133 = load i64, ptr %10, align 8, !tbaa !25
  %134 = load i64, ptr %8, align 8, !tbaa !25
  %135 = sub nsw i64 %134, 1
  %136 = icmp sle i64 %133, %135
  br i1 %136, label %137, label %251

137:                                              ; preds = %132
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %138, i32 0, i32 9
  %140 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %139, i32 0, i32 2
  %141 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %140, i32 0, i32 4
  %142 = load ptr, ptr %141, align 8, !tbaa !34
  %143 = load i64, ptr %10, align 8, !tbaa !25
  %144 = getelementptr inbounds double, ptr %142, i64 %143
  %145 = load double, ptr %144, align 8, !tbaa !35
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  %147 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %145, ptr noundef %146)
  store double %147, ptr %14, align 8, !tbaa !35
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %148, i32 0, i32 7
  %150 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %149, i32 0, i32 2
  %151 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %150, i32 0, i32 4
  %152 = load ptr, ptr %151, align 8, !tbaa !34
  %153 = load i64, ptr %10, align 8, !tbaa !25
  %154 = getelementptr inbounds i64, ptr %152, i64 %153
  %155 = load i64, ptr %154, align 8, !tbaa !25
  store i64 %155, ptr %12, align 8, !tbaa !25
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %156, i32 0, i32 7
  %158 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %157, i32 0, i32 2
  %159 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %158, i32 0, i32 4
  %160 = load ptr, ptr %159, align 8, !tbaa !34
  %161 = load i64, ptr %10, align 8, !tbaa !25
  %162 = add nsw i64 %161, 1
  %163 = getelementptr inbounds i64, ptr %160, i64 %162
  %164 = load i64, ptr %163, align 8, !tbaa !25
  %165 = sub nsw i64 %164, 1
  store i64 %165, ptr %13, align 8, !tbaa !25
  %166 = load i64, ptr %12, align 8, !tbaa !25
  store i64 %166, ptr %11, align 8, !tbaa !25
  br label %167

167:                                              ; preds = %185, %137
  %168 = load i64, ptr %11, align 8, !tbaa !25
  %169 = load i64, ptr %13, align 8, !tbaa !25
  %170 = icmp sle i64 %168, %169
  br i1 %170, label %171, label %188

171:                                              ; preds = %167
  %172 = load double, ptr %14, align 8, !tbaa !35
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  %174 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %173, i32 0, i32 7
  %175 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %174, i32 0, i32 0
  %176 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %175, i32 0, i32 4
  %177 = load ptr, ptr %176, align 8, !tbaa !34
  %178 = load i64, ptr %11, align 8, !tbaa !25
  %179 = getelementptr inbounds double, ptr %177, i64 %178
  %180 = load double, ptr %179, align 8, !tbaa !35
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  %182 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %180, ptr noundef %181)
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  %184 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %172, double noundef %182, ptr noundef %183)
  store double %184, ptr %14, align 8, !tbaa !35
  br label %185

185:                                              ; preds = %171
  %186 = load i64, ptr %11, align 8, !tbaa !25
  %187 = add nsw i64 %186, 1
  store i64 %187, ptr %11, align 8, !tbaa !25
  br label %167, !llvm.loop !39

188:                                              ; preds = %167
  %189 = load double, ptr %14, align 8, !tbaa !35
  %190 = load ptr, ptr %6, align 8, !tbaa !5
  %191 = call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %189, double noundef 1.000000e+00, ptr noundef %190)
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  %193 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %192, i32 0, i32 9
  %194 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %193, i32 0, i32 14
  %195 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %194, i32 0, i32 4
  %196 = load ptr, ptr %195, align 8, !tbaa !34
  %197 = load i64, ptr %10, align 8, !tbaa !25
  %198 = getelementptr inbounds double, ptr %196, i64 %197
  store double %191, ptr %198, align 8, !tbaa !35
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %199, i32 0, i32 9
  %201 = load i64, ptr %10, align 8, !tbaa !25
  %202 = load ptr, ptr %6, align 8, !tbaa !5
  %203 = call noundef zeroext i1 @_ZN11alglib_implL25reviseddualsimplex_isfreeEPNS_21dualsimplexsubproblemElPNS_8ae_stateE(ptr noundef %200, i64 noundef %201, ptr noundef %202)
  br i1 %203, label %247, label %204

204:                                              ; preds = %188
  %205 = load ptr, ptr %5, align 8, !tbaa !5
  %206 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsettings", ptr %205, i32 0, i32 1
  %207 = load double, ptr %206, align 8, !tbaa !40
  %208 = load ptr, ptr %4, align 8, !tbaa !5
  %209 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %208, i32 0, i32 9
  %210 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %209, i32 0, i32 14
  %211 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %210, i32 0, i32 4
  %212 = load ptr, ptr %211, align 8, !tbaa !34
  %213 = load i64, ptr %10, align 8, !tbaa !25
  %214 = getelementptr inbounds double, ptr %212, i64 %213
  %215 = load double, ptr %214, align 8, !tbaa !35
  %216 = fmul double %207, %215
  %217 = load ptr, ptr %6, align 8, !tbaa !5
  %218 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %15, ptr noundef %217)
  %219 = fadd double 1.000000e+00, %218
  %220 = fmul double %216, %219
  store double %220, ptr %14, align 8, !tbaa !35
  %221 = load ptr, ptr %4, align 8, !tbaa !5
  %222 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %221, i32 0, i32 9
  %223 = load i64, ptr %10, align 8, !tbaa !25
  %224 = load ptr, ptr %6, align 8, !tbaa !5
  %225 = call noundef zeroext i1 @_ZN11alglib_implL26reviseddualsimplex_hasbnduEPNS_21dualsimplexsubproblemElPNS_8ae_stateE(ptr noundef %222, i64 noundef %223, ptr noundef %224)
  br i1 %225, label %226, label %229

226:                                              ; preds = %204
  %227 = load double, ptr %14, align 8, !tbaa !35
  %228 = fneg double %227
  store double %228, ptr %14, align 8, !tbaa !35
  br label %229

229:                                              ; preds = %226, %204
  %230 = load ptr, ptr %4, align 8, !tbaa !5
  %231 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %230, i32 0, i32 9
  %232 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %231, i32 0, i32 2
  %233 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %232, i32 0, i32 4
  %234 = load ptr, ptr %233, align 8, !tbaa !34
  %235 = load i64, ptr %10, align 8, !tbaa !25
  %236 = getelementptr inbounds double, ptr %234, i64 %235
  %237 = load double, ptr %236, align 8, !tbaa !35
  %238 = load double, ptr %14, align 8, !tbaa !35
  %239 = fadd double %237, %238
  %240 = load ptr, ptr %4, align 8, !tbaa !5
  %241 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %240, i32 0, i32 9
  %242 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %241, i32 0, i32 13
  %243 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %242, i32 0, i32 4
  %244 = load ptr, ptr %243, align 8, !tbaa !34
  %245 = load i64, ptr %10, align 8, !tbaa !25
  %246 = getelementptr inbounds double, ptr %244, i64 %245
  store double %239, ptr %246, align 8, !tbaa !35
  br label %247

247:                                              ; preds = %229, %188
  br label %248

248:                                              ; preds = %247
  %249 = load i64, ptr %10, align 8, !tbaa !25
  %250 = add nsw i64 %249, 1
  store i64 %250, ptr %10, align 8, !tbaa !25
  br label %132, !llvm.loop !42

251:                                              ; preds = %132
  %252 = load ptr, ptr %4, align 8, !tbaa !5
  %253 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %252, i32 0, i32 8
  %254 = load ptr, ptr %4, align 8, !tbaa !5
  %255 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %254, i32 0, i32 7
  %256 = load ptr, ptr %5, align 8, !tbaa !5
  %257 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_implL32reviseddualsimplex_basisfreshtrfEPNS_16dualsimplexbasisEPNS_12sparsematrixEPNS_19dualsimplexsettingsEPNS_8ae_stateE(ptr noundef %253, ptr noundef %255, ptr noundef %256, ptr noundef %257)
  %258 = load ptr, ptr %4, align 8, !tbaa !5
  %259 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %258, i32 0, i32 9
  %260 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %259, i32 0, i32 8
  %261 = load i64, ptr %260, align 8, !tbaa !43
  %262 = load i64, ptr @_ZN11alglib_implL28reviseddualsimplex_ssinvalidE, align 8, !tbaa !25
  %263 = icmp eq i64 %261, %262
  br i1 %263, label %264, label %269

264:                                              ; preds = %251
  %265 = load ptr, ptr %4, align 8, !tbaa !5
  %266 = load ptr, ptr %4, align 8, !tbaa !5
  %267 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %266, i32 0, i32 9
  %268 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_implL43reviseddualsimplex_subprobleminferinitialxnEPNS_16dualsimplexstateEPNS_21dualsimplexsubproblemEPNS_8ae_stateE(ptr noundef %265, ptr noundef %267, ptr noundef %268)
  br label %269

269:                                              ; preds = %264, %251
  %270 = load ptr, ptr %4, align 8, !tbaa !5
  %271 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %270, i32 0, i32 9
  %272 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %271, i32 0, i32 8
  %273 = load i64, ptr %272, align 8, !tbaa !43
  %274 = load i64, ptr @_ZN11alglib_implL28reviseddualsimplex_ssvalidxnE, align 8, !tbaa !25
  %275 = icmp eq i64 %273, %274
  br i1 %275, label %276, label %281

276:                                              ; preds = %269
  %277 = load ptr, ptr %4, align 8, !tbaa !5
  %278 = load ptr, ptr %4, align 8, !tbaa !5
  %279 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %278, i32 0, i32 9
  %280 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_implL43reviseddualsimplex_subproblemhandlexnupdateEPNS_16dualsimplexstateEPNS_21dualsimplexsubproblemEPNS_8ae_stateE(ptr noundef %277, ptr noundef %279, ptr noundef %280)
  br label %281

281:                                              ; preds = %276, %269
  %282 = load ptr, ptr %4, align 8, !tbaa !5
  %283 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %282, i32 0, i32 9
  %284 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %283, i32 0, i32 8
  %285 = load i64, ptr %284, align 8, !tbaa !43
  %286 = load i64, ptr @_ZN11alglib_implL26reviseddualsimplex_ssvalidE, align 8, !tbaa !25
  %287 = icmp eq i64 %285, %286
  %288 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %287, ptr noundef @.str.362, ptr noundef %288)
  %289 = load ptr, ptr %4, align 8, !tbaa !5
  %290 = load ptr, ptr %5, align 8, !tbaa !5
  %291 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_implL31reviseddualsimplex_invokephase1EPNS_16dualsimplexstateEPNS_19dualsimplexsettingsEPNS_8ae_stateE(ptr noundef %289, ptr noundef %290, ptr noundef %291)
  %292 = load ptr, ptr %4, align 8, !tbaa !5
  %293 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %292, i32 0, i32 19
  %294 = load i64, ptr %293, align 8, !tbaa !31
  %295 = icmp sle i64 %294, 0
  br i1 %295, label %296, label %311

296:                                              ; preds = %281
  %297 = load ptr, ptr %4, align 8, !tbaa !5
  %298 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %297, i32 0, i32 19
  %299 = load i64, ptr %298, align 8, !tbaa !31
  %300 = icmp eq i64 %299, -4
  %301 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %300, ptr noundef @.str.363, ptr noundef %301)
  %302 = load ptr, ptr %4, align 8, !tbaa !5
  %303 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %302, i32 0, i32 16
  store double 0.000000e+00, ptr %303, align 8, !tbaa !26
  %304 = load ptr, ptr %4, align 8, !tbaa !5
  %305 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %304, i32 0, i32 17
  store double 0.000000e+00, ptr %305, align 8, !tbaa !32
  %306 = load ptr, ptr %4, align 8, !tbaa !5
  %307 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %306, i32 0, i32 18
  store double 0.000000e+00, ptr %307, align 8, !tbaa !33
  %308 = load ptr, ptr %4, align 8, !tbaa !5
  %309 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_implL33reviseddualsimplex_setzeroxystatsEPNS_16dualsimplexstateEPNS_8ae_stateE(ptr noundef %308, ptr noundef %309)
  %310 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %310)
  store i32 1, ptr %16, align 4
  br label %825

311:                                              ; preds = %281
  %312 = load ptr, ptr %4, align 8, !tbaa !5
  %313 = load ptr, ptr %4, align 8, !tbaa !5
  %314 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %313, i32 0, i32 9
  %315 = load ptr, ptr %5, align 8, !tbaa !5
  %316 = load ptr, ptr %4, align 8, !tbaa !5
  %317 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %316, i32 0, i32 19
  %318 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_implL38reviseddualsimplex_solvesubproblemdualEPNS_16dualsimplexstateEPNS_21dualsimplexsubproblemEbPNS_19dualsimplexsettingsEPlPNS_8ae_stateE(ptr noundef %312, ptr noundef %314, i1 noundef zeroext false, ptr noundef %315, ptr noundef %317, ptr noundef %318)
  %319 = load ptr, ptr %4, align 8, !tbaa !5
  %320 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %319, i32 0, i32 19
  %321 = load i64, ptr %320, align 8, !tbaa !31
  %322 = icmp sle i64 %321, 0
  br i1 %322, label %323, label %338

323:                                              ; preds = %311
  %324 = load ptr, ptr %4, align 8, !tbaa !5
  %325 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %324, i32 0, i32 19
  %326 = load i64, ptr %325, align 8, !tbaa !31
  %327 = icmp eq i64 %326, -3
  %328 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %327, ptr noundef @.str.364, ptr noundef %328)
  %329 = load ptr, ptr %4, align 8, !tbaa !5
  %330 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %329, i32 0, i32 16
  store double 0.000000e+00, ptr %330, align 8, !tbaa !26
  %331 = load ptr, ptr %4, align 8, !tbaa !5
  %332 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %331, i32 0, i32 17
  store double 0.000000e+00, ptr %332, align 8, !tbaa !32
  %333 = load ptr, ptr %4, align 8, !tbaa !5
  %334 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %333, i32 0, i32 18
  store double 0.000000e+00, ptr %334, align 8, !tbaa !33
  %335 = load ptr, ptr %4, align 8, !tbaa !5
  %336 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_implL33reviseddualsimplex_setzeroxystatsEPNS_16dualsimplexstateEPNS_8ae_stateE(ptr noundef %335, ptr noundef %336)
  %337 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %337)
  store i32 1, ptr %16, align 4
  br label %825

338:                                              ; preds = %311
  %339 = load ptr, ptr %4, align 8, !tbaa !5
  %340 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %339, i32 0, i32 9
  %341 = load ptr, ptr %4, align 8, !tbaa !5
  %342 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %341, i32 0, i32 11
  %343 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_implL39reviseddualsimplex_subprobleminitphase3EPNS_21dualsimplexsubproblemES1_PNS_8ae_stateE(ptr noundef %340, ptr noundef %342, ptr noundef %343)
  store i64 0, ptr %10, align 8, !tbaa !25
  br label %344

344:                                              ; preds = %365, %338
  %345 = load i64, ptr %10, align 8, !tbaa !25
  %346 = load i64, ptr %8, align 8, !tbaa !25
  %347 = sub nsw i64 %346, 1
  %348 = icmp sle i64 %345, %347
  br i1 %348, label %349, label %368

349:                                              ; preds = %344
  %350 = load ptr, ptr %4, align 8, !tbaa !5
  %351 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %350, i32 0, i32 9
  %352 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %351, i32 0, i32 2
  %353 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %352, i32 0, i32 4
  %354 = load ptr, ptr %353, align 8, !tbaa !34
  %355 = load i64, ptr %10, align 8, !tbaa !25
  %356 = getelementptr inbounds double, ptr %354, i64 %355
  %357 = load double, ptr %356, align 8, !tbaa !35
  %358 = load ptr, ptr %4, align 8, !tbaa !5
  %359 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %358, i32 0, i32 11
  %360 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %359, i32 0, i32 13
  %361 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %360, i32 0, i32 4
  %362 = load ptr, ptr %361, align 8, !tbaa !34
  %363 = load i64, ptr %10, align 8, !tbaa !25
  %364 = getelementptr inbounds double, ptr %362, i64 %363
  store double %357, ptr %364, align 8, !tbaa !35
  br label %365

365:                                              ; preds = %349
  %366 = load i64, ptr %10, align 8, !tbaa !25
  %367 = add nsw i64 %366, 1
  store i64 %367, ptr %10, align 8, !tbaa !25
  br label %344, !llvm.loop !44

368:                                              ; preds = %344
  %369 = load ptr, ptr %4, align 8, !tbaa !5
  %370 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %369, i32 0, i32 11
  %371 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %370, i32 0, i32 8
  %372 = load i64, ptr %371, align 8, !tbaa !45
  %373 = load i64, ptr @_ZN11alglib_implL28reviseddualsimplex_ssvalidxnE, align 8, !tbaa !25
  %374 = icmp sge i64 %372, %373
  %375 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %374, ptr noundef @.str.365, ptr noundef %375)
  %376 = load ptr, ptr %4, align 8, !tbaa !5
  %377 = load ptr, ptr %4, align 8, !tbaa !5
  %378 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %377, i32 0, i32 11
  %379 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_implL43reviseddualsimplex_subproblemhandlexnupdateEPNS_16dualsimplexstateEPNS_21dualsimplexsubproblemEPNS_8ae_stateE(ptr noundef %376, ptr noundef %378, ptr noundef %379)
  %380 = load ptr, ptr %4, align 8, !tbaa !5
  %381 = load ptr, ptr %4, align 8, !tbaa !5
  %382 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %381, i32 0, i32 11
  %383 = load ptr, ptr %5, align 8, !tbaa !5
  %384 = load ptr, ptr %4, align 8, !tbaa !5
  %385 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %384, i32 0, i32 19
  %386 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_implL40reviseddualsimplex_solvesubproblemprimalEPNS_16dualsimplexstateEPNS_21dualsimplexsubproblemEPNS_19dualsimplexsettingsEPlPNS_8ae_stateE(ptr noundef %380, ptr noundef %382, ptr noundef %383, ptr noundef %385, ptr noundef %386)
  %387 = load ptr, ptr %4, align 8, !tbaa !5
  %388 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %387, i32 0, i32 19
  %389 = load i64, ptr %388, align 8, !tbaa !31
  %390 = icmp sle i64 %389, 0
  br i1 %390, label %391, label %406

391:                                              ; preds = %368
  %392 = load ptr, ptr %4, align 8, !tbaa !5
  %393 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %392, i32 0, i32 19
  %394 = load i64, ptr %393, align 8, !tbaa !31
  %395 = icmp eq i64 %394, -4
  %396 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %395, ptr noundef @.str.366, ptr noundef %396)
  %397 = load ptr, ptr %4, align 8, !tbaa !5
  %398 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %397, i32 0, i32 16
  store double 0.000000e+00, ptr %398, align 8, !tbaa !26
  %399 = load ptr, ptr %4, align 8, !tbaa !5
  %400 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %399, i32 0, i32 17
  store double 0.000000e+00, ptr %400, align 8, !tbaa !32
  %401 = load ptr, ptr %4, align 8, !tbaa !5
  %402 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %401, i32 0, i32 18
  store double 0.000000e+00, ptr %402, align 8, !tbaa !33
  %403 = load ptr, ptr %4, align 8, !tbaa !5
  %404 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_implL33reviseddualsimplex_setzeroxystatsEPNS_16dualsimplexstateEPNS_8ae_stateE(ptr noundef %403, ptr noundef %404)
  %405 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %405)
  store i32 1, ptr %16, align 4
  br label %825

406:                                              ; preds = %368
  store i64 0, ptr %10, align 8, !tbaa !25
  br label %407

407:                                              ; preds = %492, %406
  %408 = load i64, ptr %10, align 8, !tbaa !25
  %409 = load i64, ptr %8, align 8, !tbaa !25
  %410 = sub nsw i64 %409, 1
  %411 = icmp sle i64 %408, %410
  br i1 %411, label %412, label %495

412:                                              ; preds = %407
  %413 = load ptr, ptr %4, align 8, !tbaa !5
  %414 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %413, i32 0, i32 11
  %415 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %414, i32 0, i32 6
  %416 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %415, i32 0, i32 4
  %417 = load ptr, ptr %416, align 8, !tbaa !34
  %418 = load i64, ptr %10, align 8, !tbaa !25
  %419 = getelementptr inbounds double, ptr %417, i64 %418
  %420 = load double, ptr %419, align 8, !tbaa !35
  %421 = load ptr, ptr %4, align 8, !tbaa !5
  %422 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %421, i32 0, i32 9
  %423 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %422, i32 0, i32 6
  %424 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %423, i32 0, i32 4
  %425 = load ptr, ptr %424, align 8, !tbaa !34
  %426 = load i64, ptr %10, align 8, !tbaa !25
  %427 = getelementptr inbounds double, ptr %425, i64 %426
  store double %420, ptr %427, align 8, !tbaa !35
  %428 = load ptr, ptr %4, align 8, !tbaa !5
  %429 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %428, i32 0, i32 9
  %430 = load i64, ptr %10, align 8, !tbaa !25
  %431 = load ptr, ptr %6, align 8, !tbaa !5
  %432 = call noundef zeroext i1 @_ZN11alglib_implL26reviseddualsimplex_hasbndlEPNS_21dualsimplexsubproblemElPNS_8ae_stateE(ptr noundef %429, i64 noundef %430, ptr noundef %431)
  br i1 %432, label %433, label %459

433:                                              ; preds = %412
  %434 = load ptr, ptr %4, align 8, !tbaa !5
  %435 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %434, i32 0, i32 9
  %436 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %435, i32 0, i32 6
  %437 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %436, i32 0, i32 4
  %438 = load ptr, ptr %437, align 8, !tbaa !34
  %439 = load i64, ptr %10, align 8, !tbaa !25
  %440 = getelementptr inbounds double, ptr %438, i64 %439
  %441 = load double, ptr %440, align 8, !tbaa !35
  %442 = load ptr, ptr %4, align 8, !tbaa !5
  %443 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %442, i32 0, i32 9
  %444 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %443, i32 0, i32 3
  %445 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %444, i32 0, i32 4
  %446 = load ptr, ptr %445, align 8, !tbaa !34
  %447 = load i64, ptr %10, align 8, !tbaa !25
  %448 = getelementptr inbounds double, ptr %446, i64 %447
  %449 = load double, ptr %448, align 8, !tbaa !35
  %450 = load ptr, ptr %6, align 8, !tbaa !5
  %451 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %441, double noundef %449, ptr noundef %450)
  %452 = load ptr, ptr %4, align 8, !tbaa !5
  %453 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %452, i32 0, i32 9
  %454 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %453, i32 0, i32 6
  %455 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %454, i32 0, i32 4
  %456 = load ptr, ptr %455, align 8, !tbaa !34
  %457 = load i64, ptr %10, align 8, !tbaa !25
  %458 = getelementptr inbounds double, ptr %456, i64 %457
  store double %451, ptr %458, align 8, !tbaa !35
  br label %459

459:                                              ; preds = %433, %412
  %460 = load ptr, ptr %4, align 8, !tbaa !5
  %461 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %460, i32 0, i32 9
  %462 = load i64, ptr %10, align 8, !tbaa !25
  %463 = load ptr, ptr %6, align 8, !tbaa !5
  %464 = call noundef zeroext i1 @_ZN11alglib_implL26reviseddualsimplex_hasbnduEPNS_21dualsimplexsubproblemElPNS_8ae_stateE(ptr noundef %461, i64 noundef %462, ptr noundef %463)
  br i1 %464, label %465, label %491

465:                                              ; preds = %459
  %466 = load ptr, ptr %4, align 8, !tbaa !5
  %467 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %466, i32 0, i32 9
  %468 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %467, i32 0, i32 6
  %469 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %468, i32 0, i32 4
  %470 = load ptr, ptr %469, align 8, !tbaa !34
  %471 = load i64, ptr %10, align 8, !tbaa !25
  %472 = getelementptr inbounds double, ptr %470, i64 %471
  %473 = load double, ptr %472, align 8, !tbaa !35
  %474 = load ptr, ptr %4, align 8, !tbaa !5
  %475 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %474, i32 0, i32 9
  %476 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %475, i32 0, i32 4
  %477 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %476, i32 0, i32 4
  %478 = load ptr, ptr %477, align 8, !tbaa !34
  %479 = load i64, ptr %10, align 8, !tbaa !25
  %480 = getelementptr inbounds double, ptr %478, i64 %479
  %481 = load double, ptr %480, align 8, !tbaa !35
  %482 = load ptr, ptr %6, align 8, !tbaa !5
  %483 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %473, double noundef %481, ptr noundef %482)
  %484 = load ptr, ptr %4, align 8, !tbaa !5
  %485 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %484, i32 0, i32 9
  %486 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %485, i32 0, i32 6
  %487 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %486, i32 0, i32 4
  %488 = load ptr, ptr %487, align 8, !tbaa !34
  %489 = load i64, ptr %10, align 8, !tbaa !25
  %490 = getelementptr inbounds double, ptr %488, i64 %489
  store double %483, ptr %490, align 8, !tbaa !35
  br label %491

491:                                              ; preds = %465, %459
  br label %492

492:                                              ; preds = %491
  %493 = load i64, ptr %10, align 8, !tbaa !25
  %494 = add nsw i64 %493, 1
  store i64 %494, ptr %10, align 8, !tbaa !25
  br label %407, !llvm.loop !46

495:                                              ; preds = %407
  %496 = load ptr, ptr %4, align 8, !tbaa !5
  %497 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %496, i32 0, i32 30
  %498 = load i64, ptr %9, align 8, !tbaa !25
  %499 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %497, i64 noundef %498, ptr noundef %499)
  %500 = load ptr, ptr %4, align 8, !tbaa !5
  %501 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %500, i32 0, i32 31
  %502 = load i64, ptr %9, align 8, !tbaa !25
  %503 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %501, i64 noundef %502, ptr noundef %503)
  %504 = load ptr, ptr %4, align 8, !tbaa !5
  %505 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %504, i32 0, i32 16
  store double 0.000000e+00, ptr %505, align 8, !tbaa !26
  store i64 0, ptr %10, align 8, !tbaa !25
  br label %506

506:                                              ; preds = %537, %495
  %507 = load i64, ptr %10, align 8, !tbaa !25
  %508 = load ptr, ptr %4, align 8, !tbaa !5
  %509 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %508, i32 0, i32 9
  %510 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %509, i32 0, i32 0
  %511 = load i64, ptr %510, align 8, !tbaa !9
  %512 = sub nsw i64 %511, 1
  %513 = icmp sle i64 %507, %512
  br i1 %513, label %514, label %540

514:                                              ; preds = %506
  %515 = load ptr, ptr %4, align 8, !tbaa !5
  %516 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %515, i32 0, i32 16
  %517 = load double, ptr %516, align 8, !tbaa !26
  %518 = load ptr, ptr %4, align 8, !tbaa !5
  %519 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %518, i32 0, i32 9
  %520 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %519, i32 0, i32 6
  %521 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %520, i32 0, i32 4
  %522 = load ptr, ptr %521, align 8, !tbaa !34
  %523 = load i64, ptr %10, align 8, !tbaa !25
  %524 = getelementptr inbounds double, ptr %522, i64 %523
  %525 = load double, ptr %524, align 8, !tbaa !35
  %526 = load ptr, ptr %4, align 8, !tbaa !5
  %527 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %526, i32 0, i32 9
  %528 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %527, i32 0, i32 2
  %529 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %528, i32 0, i32 4
  %530 = load ptr, ptr %529, align 8, !tbaa !34
  %531 = load i64, ptr %10, align 8, !tbaa !25
  %532 = getelementptr inbounds double, ptr %530, i64 %531
  %533 = load double, ptr %532, align 8, !tbaa !35
  %534 = call double @llvm.fmuladd.f64(double %525, double %533, double %517)
  %535 = load ptr, ptr %4, align 8, !tbaa !5
  %536 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %535, i32 0, i32 16
  store double %534, ptr %536, align 8, !tbaa !26
  br label %537

537:                                              ; preds = %514
  %538 = load i64, ptr %10, align 8, !tbaa !25
  %539 = add nsw i64 %538, 1
  store i64 %539, ptr %10, align 8, !tbaa !25
  br label %506, !llvm.loop !47

540:                                              ; preds = %506
  %541 = load ptr, ptr %4, align 8, !tbaa !5
  %542 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %541, i32 0, i32 17
  store double 0.000000e+00, ptr %542, align 8, !tbaa !32
  %543 = load ptr, ptr %4, align 8, !tbaa !5
  %544 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %543, i32 0, i32 18
  store double 0.000000e+00, ptr %544, align 8, !tbaa !33
  %545 = load ptr, ptr %4, align 8, !tbaa !5
  %546 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %545, i32 0, i32 19
  store i64 1, ptr %546, align 8, !tbaa !31
  store i64 0, ptr %10, align 8, !tbaa !25
  br label %547

547:                                              ; preds = %574, %540
  %548 = load i64, ptr %10, align 8, !tbaa !25
  %549 = load i64, ptr %9, align 8, !tbaa !25
  %550 = sub nsw i64 %549, 1
  %551 = icmp sle i64 %548, %550
  br i1 %551, label %552, label %577

552:                                              ; preds = %547
  %553 = load ptr, ptr %4, align 8, !tbaa !5
  %554 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %553, i32 0, i32 9
  %555 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %554, i32 0, i32 2
  %556 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %555, i32 0, i32 4
  %557 = load ptr, ptr %556, align 8, !tbaa !34
  %558 = load ptr, ptr %4, align 8, !tbaa !5
  %559 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %558, i32 0, i32 8
  %560 = getelementptr inbounds %"struct.alglib_impl::dualsimplexbasis", ptr %559, i32 0, i32 2
  %561 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %560, i32 0, i32 4
  %562 = load ptr, ptr %561, align 8, !tbaa !34
  %563 = load i64, ptr %10, align 8, !tbaa !25
  %564 = getelementptr inbounds i64, ptr %562, i64 %563
  %565 = load i64, ptr %564, align 8, !tbaa !25
  %566 = getelementptr inbounds double, ptr %557, i64 %565
  %567 = load double, ptr %566, align 8, !tbaa !35
  %568 = load ptr, ptr %4, align 8, !tbaa !5
  %569 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %568, i32 0, i32 30
  %570 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %569, i32 0, i32 4
  %571 = load ptr, ptr %570, align 8, !tbaa !34
  %572 = load i64, ptr %10, align 8, !tbaa !25
  %573 = getelementptr inbounds double, ptr %571, i64 %572
  store double %567, ptr %573, align 8, !tbaa !35
  br label %574

574:                                              ; preds = %552
  %575 = load i64, ptr %10, align 8, !tbaa !25
  %576 = add nsw i64 %575, 1
  store i64 %576, ptr %10, align 8, !tbaa !25
  br label %547, !llvm.loop !48

577:                                              ; preds = %547
  %578 = load ptr, ptr %4, align 8, !tbaa !5
  %579 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %578, i32 0, i32 8
  %580 = load ptr, ptr %4, align 8, !tbaa !5
  %581 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %580, i32 0, i32 30
  %582 = load ptr, ptr %4, align 8, !tbaa !5
  %583 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %582, i32 0, i32 31
  %584 = load ptr, ptr %4, align 8, !tbaa !5
  %585 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %584, i32 0, i32 32
  %586 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_implL30reviseddualsimplex_basissolvetEPNS_16dualsimplexbasisEPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef %579, ptr noundef %581, ptr noundef %583, ptr noundef %585, ptr noundef %586)
  %587 = load ptr, ptr %4, align 8, !tbaa !5
  %588 = load ptr, ptr %4, align 8, !tbaa !5
  %589 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %588, i32 0, i32 31
  %590 = load ptr, ptr %4, align 8, !tbaa !5
  %591 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %590, i32 0, i32 9
  %592 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %591, i32 0, i32 7
  %593 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_implL30reviseddualsimplex_computeantvEPNS_16dualsimplexstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %587, ptr noundef %589, ptr noundef %592, ptr noundef %593)
  store i64 0, ptr %10, align 8, !tbaa !25
  br label %594

594:                                              ; preds = %634, %577
  %595 = load i64, ptr %10, align 8, !tbaa !25
  %596 = load ptr, ptr %4, align 8, !tbaa !5
  %597 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %596, i32 0, i32 4
  %598 = load i64, ptr %597, align 8, !tbaa !49
  %599 = sub nsw i64 %598, 1
  %600 = icmp sle i64 %595, %599
  br i1 %600, label %601, label %637

601:                                              ; preds = %594
  %602 = load ptr, ptr %4, align 8, !tbaa !5
  %603 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %602, i32 0, i32 8
  %604 = getelementptr inbounds %"struct.alglib_impl::dualsimplexbasis", ptr %603, i32 0, i32 3
  %605 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %604, i32 0, i32 4
  %606 = load ptr, ptr %605, align 8, !tbaa !34
  %607 = load i64, ptr %10, align 8, !tbaa !25
  %608 = getelementptr inbounds i64, ptr %606, i64 %607
  %609 = load i64, ptr %608, align 8, !tbaa !25
  store i64 %609, ptr %11, align 8, !tbaa !25
  %610 = load ptr, ptr %4, align 8, !tbaa !5
  %611 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %610, i32 0, i32 9
  %612 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %611, i32 0, i32 2
  %613 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %612, i32 0, i32 4
  %614 = load ptr, ptr %613, align 8, !tbaa !34
  %615 = load i64, ptr %11, align 8, !tbaa !25
  %616 = getelementptr inbounds double, ptr %614, i64 %615
  %617 = load double, ptr %616, align 8, !tbaa !35
  %618 = load ptr, ptr %4, align 8, !tbaa !5
  %619 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %618, i32 0, i32 9
  %620 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %619, i32 0, i32 7
  %621 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %620, i32 0, i32 4
  %622 = load ptr, ptr %621, align 8, !tbaa !34
  %623 = load i64, ptr %11, align 8, !tbaa !25
  %624 = getelementptr inbounds double, ptr %622, i64 %623
  %625 = load double, ptr %624, align 8, !tbaa !35
  %626 = fsub double %617, %625
  %627 = load ptr, ptr %4, align 8, !tbaa !5
  %628 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %627, i32 0, i32 9
  %629 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %628, i32 0, i32 7
  %630 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %629, i32 0, i32 4
  %631 = load ptr, ptr %630, align 8, !tbaa !34
  %632 = load i64, ptr %11, align 8, !tbaa !25
  %633 = getelementptr inbounds double, ptr %631, i64 %632
  store double %626, ptr %633, align 8, !tbaa !35
  br label %634

634:                                              ; preds = %601
  %635 = load i64, ptr %10, align 8, !tbaa !25
  %636 = add nsw i64 %635, 1
  store i64 %636, ptr %10, align 8, !tbaa !25
  br label %594, !llvm.loop !50

637:                                              ; preds = %594
  store i64 0, ptr %10, align 8, !tbaa !25
  br label %638

638:                                              ; preds = %675, %637
  %639 = load i64, ptr %10, align 8, !tbaa !25
  %640 = load i64, ptr %9, align 8, !tbaa !25
  %641 = sub nsw i64 %640, 1
  %642 = icmp sle i64 %639, %641
  br i1 %642, label %643, label %678

643:                                              ; preds = %638
  %644 = load ptr, ptr %4, align 8, !tbaa !5
  %645 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %644, i32 0, i32 31
  %646 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %645, i32 0, i32 4
  %647 = load ptr, ptr %646, align 8, !tbaa !34
  %648 = load i64, ptr %10, align 8, !tbaa !25
  %649 = getelementptr inbounds double, ptr %647, i64 %648
  %650 = load double, ptr %649, align 8, !tbaa !35
  %651 = load ptr, ptr %4, align 8, !tbaa !5
  %652 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %651, i32 0, i32 13
  %653 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %652, i32 0, i32 4
  %654 = load ptr, ptr %653, align 8, !tbaa !34
  %655 = load i64, ptr %10, align 8, !tbaa !25
  %656 = getelementptr inbounds double, ptr %654, i64 %655
  store double %650, ptr %656, align 8, !tbaa !35
  %657 = load ptr, ptr %4, align 8, !tbaa !5
  %658 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %657, i32 0, i32 9
  %659 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %658, i32 0, i32 7
  %660 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %659, i32 0, i32 4
  %661 = load ptr, ptr %660, align 8, !tbaa !34
  %662 = load ptr, ptr %4, align 8, !tbaa !5
  %663 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %662, i32 0, i32 4
  %664 = load i64, ptr %663, align 8, !tbaa !49
  %665 = load i64, ptr %10, align 8, !tbaa !25
  %666 = add nsw i64 %664, %665
  %667 = getelementptr inbounds double, ptr %661, i64 %666
  %668 = load double, ptr %667, align 8, !tbaa !35
  %669 = load ptr, ptr %4, align 8, !tbaa !5
  %670 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %669, i32 0, i32 14
  %671 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %670, i32 0, i32 4
  %672 = load ptr, ptr %671, align 8, !tbaa !34
  %673 = load i64, ptr %10, align 8, !tbaa !25
  %674 = getelementptr inbounds double, ptr %672, i64 %673
  store double %668, ptr %674, align 8, !tbaa !35
  br label %675

675:                                              ; preds = %643
  %676 = load i64, ptr %10, align 8, !tbaa !25
  %677 = add nsw i64 %676, 1
  store i64 %677, ptr %10, align 8, !tbaa !25
  br label %638, !llvm.loop !51

678:                                              ; preds = %638
  store i64 0, ptr %10, align 8, !tbaa !25
  br label %679

679:                                              ; preds = %785, %678
  %680 = load i64, ptr %10, align 8, !tbaa !25
  %681 = load i64, ptr %8, align 8, !tbaa !25
  %682 = sub nsw i64 %681, 1
  %683 = icmp sle i64 %680, %682
  br i1 %683, label %684, label %788

684:                                              ; preds = %679
  %685 = load ptr, ptr %4, align 8, !tbaa !5
  %686 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %685, i32 0, i32 8
  %687 = getelementptr inbounds %"struct.alglib_impl::dualsimplexbasis", ptr %686, i32 0, i32 4
  %688 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %687, i32 0, i32 4
  %689 = load ptr, ptr %688, align 8, !tbaa !34
  %690 = load i64, ptr %10, align 8, !tbaa !25
  %691 = getelementptr inbounds i8, ptr %689, i64 %690
  %692 = load i8, ptr %691, align 1, !tbaa !52, !range !53, !noundef !54
  %693 = trunc i8 %692 to i1
  br i1 %693, label %694, label %701

694:                                              ; preds = %684
  %695 = load ptr, ptr %4, align 8, !tbaa !5
  %696 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %695, i32 0, i32 15
  %697 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %696, i32 0, i32 4
  %698 = load ptr, ptr %697, align 8, !tbaa !34
  %699 = load i64, ptr %10, align 8, !tbaa !25
  %700 = getelementptr inbounds i64, ptr %698, i64 %699
  store i64 0, ptr %700, align 8, !tbaa !25
  br label %785

701:                                              ; preds = %684
  %702 = load ptr, ptr %4, align 8, !tbaa !5
  %703 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %702, i32 0, i32 9
  %704 = load i64, ptr %10, align 8, !tbaa !25
  %705 = load ptr, ptr %6, align 8, !tbaa !5
  %706 = call noundef zeroext i1 @_ZN11alglib_implL26reviseddualsimplex_hasbndlEPNS_21dualsimplexsubproblemElPNS_8ae_stateE(ptr noundef %703, i64 noundef %704, ptr noundef %705)
  br i1 %706, label %707, label %732

707:                                              ; preds = %701
  %708 = load ptr, ptr %4, align 8, !tbaa !5
  %709 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %708, i32 0, i32 9
  %710 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %709, i32 0, i32 6
  %711 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %710, i32 0, i32 4
  %712 = load ptr, ptr %711, align 8, !tbaa !34
  %713 = load i64, ptr %10, align 8, !tbaa !25
  %714 = getelementptr inbounds double, ptr %712, i64 %713
  %715 = load double, ptr %714, align 8, !tbaa !35
  %716 = load ptr, ptr %4, align 8, !tbaa !5
  %717 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %716, i32 0, i32 9
  %718 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %717, i32 0, i32 3
  %719 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %718, i32 0, i32 4
  %720 = load ptr, ptr %719, align 8, !tbaa !34
  %721 = load i64, ptr %10, align 8, !tbaa !25
  %722 = getelementptr inbounds double, ptr %720, i64 %721
  %723 = load double, ptr %722, align 8, !tbaa !35
  %724 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %715, double noundef %723)
  br i1 %724, label %725, label %732

725:                                              ; preds = %707
  %726 = load ptr, ptr %4, align 8, !tbaa !5
  %727 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %726, i32 0, i32 15
  %728 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %727, i32 0, i32 4
  %729 = load ptr, ptr %728, align 8, !tbaa !34
  %730 = load i64, ptr %10, align 8, !tbaa !25
  %731 = getelementptr inbounds i64, ptr %729, i64 %730
  store i64 -1, ptr %731, align 8, !tbaa !25
  br label %785

732:                                              ; preds = %707, %701
  %733 = load ptr, ptr %4, align 8, !tbaa !5
  %734 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %733, i32 0, i32 9
  %735 = load i64, ptr %10, align 8, !tbaa !25
  %736 = load ptr, ptr %6, align 8, !tbaa !5
  %737 = call noundef zeroext i1 @_ZN11alglib_implL26reviseddualsimplex_hasbnduEPNS_21dualsimplexsubproblemElPNS_8ae_stateE(ptr noundef %734, i64 noundef %735, ptr noundef %736)
  br i1 %737, label %738, label %763

738:                                              ; preds = %732
  %739 = load ptr, ptr %4, align 8, !tbaa !5
  %740 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %739, i32 0, i32 9
  %741 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %740, i32 0, i32 6
  %742 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %741, i32 0, i32 4
  %743 = load ptr, ptr %742, align 8, !tbaa !34
  %744 = load i64, ptr %10, align 8, !tbaa !25
  %745 = getelementptr inbounds double, ptr %743, i64 %744
  %746 = load double, ptr %745, align 8, !tbaa !35
  %747 = load ptr, ptr %4, align 8, !tbaa !5
  %748 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %747, i32 0, i32 9
  %749 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %748, i32 0, i32 4
  %750 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %749, i32 0, i32 4
  %751 = load ptr, ptr %750, align 8, !tbaa !34
  %752 = load i64, ptr %10, align 8, !tbaa !25
  %753 = getelementptr inbounds double, ptr %751, i64 %752
  %754 = load double, ptr %753, align 8, !tbaa !35
  %755 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %746, double noundef %754)
  br i1 %755, label %756, label %763

756:                                              ; preds = %738
  %757 = load ptr, ptr %4, align 8, !tbaa !5
  %758 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %757, i32 0, i32 15
  %759 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %758, i32 0, i32 4
  %760 = load ptr, ptr %759, align 8, !tbaa !34
  %761 = load i64, ptr %10, align 8, !tbaa !25
  %762 = getelementptr inbounds i64, ptr %760, i64 %761
  store i64 1, ptr %762, align 8, !tbaa !25
  br label %785

763:                                              ; preds = %738, %732
  %764 = load ptr, ptr %4, align 8, !tbaa !5
  %765 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %764, i32 0, i32 9
  %766 = load i64, ptr %10, align 8, !tbaa !25
  %767 = load ptr, ptr %6, align 8, !tbaa !5
  %768 = call noundef zeroext i1 @_ZN11alglib_implL26reviseddualsimplex_hasbndlEPNS_21dualsimplexsubproblemElPNS_8ae_stateE(ptr noundef %765, i64 noundef %766, ptr noundef %767)
  br i1 %768, label %776, label %769

769:                                              ; preds = %763
  %770 = load ptr, ptr %4, align 8, !tbaa !5
  %771 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %770, i32 0, i32 9
  %772 = load i64, ptr %10, align 8, !tbaa !25
  %773 = load ptr, ptr %6, align 8, !tbaa !5
  %774 = call noundef zeroext i1 @_ZN11alglib_implL26reviseddualsimplex_hasbnduEPNS_21dualsimplexsubproblemElPNS_8ae_stateE(ptr noundef %771, i64 noundef %772, ptr noundef %773)
  %775 = xor i1 %774, true
  br label %776

776:                                              ; preds = %769, %763
  %777 = phi i1 [ false, %763 ], [ %775, %769 ]
  %778 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %777, ptr noundef @.str.367, ptr noundef %778)
  %779 = load ptr, ptr %4, align 8, !tbaa !5
  %780 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %779, i32 0, i32 15
  %781 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %780, i32 0, i32 4
  %782 = load ptr, ptr %781, align 8, !tbaa !34
  %783 = load i64, ptr %10, align 8, !tbaa !25
  %784 = getelementptr inbounds i64, ptr %782, i64 %783
  store i64 0, ptr %784, align 8, !tbaa !25
  br label %785

785:                                              ; preds = %776, %756, %725, %694
  %786 = load i64, ptr %10, align 8, !tbaa !25
  %787 = add nsw i64 %786, 1
  store i64 %787, ptr %10, align 8, !tbaa !25
  br label %679, !llvm.loop !55

788:                                              ; preds = %679
  store i64 0, ptr %10, align 8, !tbaa !25
  br label %789

789:                                              ; preds = %812, %788
  %790 = load i64, ptr %10, align 8, !tbaa !25
  %791 = load ptr, ptr %4, align 8, !tbaa !5
  %792 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %791, i32 0, i32 9
  %793 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %792, i32 0, i32 0
  %794 = load i64, ptr %793, align 8, !tbaa !9
  %795 = sub nsw i64 %794, 1
  %796 = icmp sle i64 %790, %795
  br i1 %796, label %797, label %815

797:                                              ; preds = %789
  %798 = load ptr, ptr %4, align 8, !tbaa !5
  %799 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %798, i32 0, i32 9
  %800 = getelementptr inbounds %"struct.alglib_impl::dualsimplexsubproblem", ptr %799, i32 0, i32 6
  %801 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %800, i32 0, i32 4
  %802 = load ptr, ptr %801, align 8, !tbaa !34
  %803 = load i64, ptr %10, align 8, !tbaa !25
  %804 = getelementptr inbounds double, ptr %802, i64 %803
  %805 = load double, ptr %804, align 8, !tbaa !35
  %806 = load ptr, ptr %4, align 8, !tbaa !5
  %807 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %806, i32 0, i32 12
  %808 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %807, i32 0, i32 4
  %809 = load ptr, ptr %808, align 8, !tbaa !34
  %810 = load i64, ptr %10, align 8, !tbaa !25
  %811 = getelementptr inbounds double, ptr %809, i64 %810
  store double %805, ptr %811, align 8, !tbaa !35
  br label %812

812:                                              ; preds = %797
  %813 = load i64, ptr %10, align 8, !tbaa !25
  %814 = add nsw i64 %813, 1
  store i64 %814, ptr %10, align 8, !tbaa !25
  br label %789, !llvm.loop !56

815:                                              ; preds = %789
  %816 = load ptr, ptr %4, align 8, !tbaa !5
  %817 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %816, i32 0, i32 12
  %818 = load ptr, ptr %4, align 8, !tbaa !5
  %819 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %818, i32 0, i32 13
  %820 = load ptr, ptr %4, align 8, !tbaa !5
  %821 = getelementptr inbounds %"struct.alglib_impl::dualsimplexstate", ptr %820, i32 0, i32 14
  %822 = load ptr, ptr %4, align 8, !tbaa !5
  %823 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_implL36reviseddualsimplex_unscaleandenforceEPNS_9ae_vectorES1_S1_PNS_16dualsimplexstateEPNS_8ae_stateE(ptr noundef %817, ptr noundef %819, ptr noundef %821, ptr noundef %822, ptr noundef %823)
  %824 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %824)
  store i32 0, ptr %16, align 4
  br label %825

825:                                              ; preds = %815, %391, %323, %296, %115, %88
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #6
  %826 = load i32, ptr %16, align 4
  switch i32 %826, label %828 [
    i32 0, label %827
    i32 1, label %827
  ]

827:                                              ; preds = %825, %825
  ret void

828:                                              ; preds = %825
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL31reviseddualsimplex_solveboxonlyEPNS_16dualsimplexstateEPNS_8ae_stateE(ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL36reviseddualsimplex_unscaleandenforceEPNS_9ae_vectorES1_S1_PNS_16dualsimplexstateEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN11alglib_implL33reviseddualsimplex_setzeroxystatsEPNS_16dualsimplexstateEPNS_8ae_stateE(ptr noundef, ptr noundef) #5

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN11alglib_implL25reviseddualsimplex_isfreeEPNS_21dualsimplexsubproblemElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #4

declare noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN11alglib_implL26reviseddualsimplex_hasbnduEPNS_21dualsimplexsubproblemElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL43reviseddualsimplex_subprobleminferinitialxnEPNS_16dualsimplexstateEPNS_21dualsimplexsubproblemEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL43reviseddualsimplex_subproblemhandlexnupdateEPNS_16dualsimplexstateEPNS_21dualsimplexsubproblemEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL31reviseddualsimplex_invokephase1EPNS_16dualsimplexstateEPNS_19dualsimplexsettingsEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL38reviseddualsimplex_solvesubproblemdualEPNS_16dualsimplexstateEPNS_21dualsimplexsubproblemEbPNS_19dualsimplexsettingsEPlPNS_8ae_stateE(ptr noundef, ptr noundef, i1 noundef zeroext, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL39reviseddualsimplex_subprobleminitphase3EPNS_21dualsimplexsubproblemES1_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL40reviseddualsimplex_solvesubproblemprimalEPNS_16dualsimplexstateEPNS_21dualsimplexsubproblemEPNS_19dualsimplexsettingsEPlPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN11alglib_implL26reviseddualsimplex_hasbndlEPNS_21dualsimplexsubproblemElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL30reviseddualsimplex_basissolvetEPNS_16dualsimplexbasisEPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL30reviseddualsimplex_computeantvEPNS_16dualsimplexstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { mustprogress nounwind 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 #6 = { 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, !12, i64 7280}
!10 = !{!"_ZTSN11alglib_impl16dualsimplexstateE", !11, i64 0, !11, i64 64, !11, i64 128, !11, i64 192, !12, i64 256, !12, i64 264, !15, i64 272, !15, i64 640, !16, i64 1008, !23, i64 7280, !23, i64 8072, !23, i64 8864, !11, i64 9656, !11, i64 9720, !11, i64 9784, !11, i64 9848, !18, i64 9912, !18, i64 9920, !18, i64 9928, !12, i64 9936, !12, i64 9944, !12, i64 9952, !12, i64 9960, !12, i64 9968, !11, i64 9976, !12, i64 10040, !11, i64 10048, !11, i64 10112, !11, i64 10176, !11, i64 10240, !11, i64 10304, !11, i64 10368, !11, i64 10432, !11, i64 10496, !11, i64 10560, !11, i64 10624, !11, i64 10688, !11, i64 10752, !11, i64 10816, !11, i64 10880}
!11 = !{!"_ZTSN11alglib_impl9ae_vectorE", !12, i64 0, !12, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!12 = !{!"long", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!"_ZTSN11alglib_impl12sparsematrixE", !11, i64 0, !11, i64 64, !11, i64 128, !11, i64 192, !11, i64 256, !12, i64 320, !12, i64 328, !12, i64 336, !12, i64 344, !12, i64 352, !12, i64 360}
!16 = !{!"_ZTSN11alglib_impl16dualsimplexbasisE", !12, i64 0, !12, i64 8, !11, i64 16, !11, i64 80, !11, i64 144, !12, i64 208, !13, i64 216, !12, i64 224, !17, i64 232, !15, i64 312, !15, i64 680, !15, i64 1048, !11, i64 1416, !11, i64 1480, !11, i64 1544, !11, i64 1608, !11, i64 1672, !11, i64 1736, !11, i64 1800, !13, i64 1864, !18, i64 1872, !11, i64 1880, !11, i64 1944, !11, i64 2008, !11, i64 2072, !11, i64 2136, !17, i64 2200, !11, i64 2280, !11, i64 2344, !15, i64 2408, !15, i64 2776, !19, i64 3144, !11, i64 5712, !11, i64 5776, !11, i64 5840, !15, i64 5904}
!17 = !{!"_ZTSN11alglib_impl9ae_matrixE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32, !14, i64 40, !7, i64 72}
!18 = !{!"double", !7, i64 0}
!19 = !{!"_ZTSN11alglib_impl11sluv2bufferE", !12, i64 0, !15, i64 8, !15, i64 376, !20, i64 744, !20, i64 968, !21, i64 1192, !22, i64 1816, !11, i64 1976, !17, i64 2040, !11, i64 2120, !11, i64 2184, !11, i64 2248, !11, i64 2312, !11, i64 2376, !11, i64 2440, !11, i64 2504}
!20 = !{!"_ZTSN11alglib_impl16sluv2list1matrixE", !12, i64 0, !12, i64 8, !11, i64 16, !11, i64 80, !11, i64 144, !12, i64 208, !12, i64 216}
!21 = !{!"_ZTSN11alglib_impl16sluv2sparsetrailE", !12, i64 0, !12, i64 8, !11, i64 16, !12, i64 80, !12, i64 88, !12, i64 96, !11, i64 104, !11, i64 168, !11, i64 232, !11, i64 296, !11, i64 360, !11, i64 424, !11, i64 488, !12, i64 552, !11, i64 560}
!22 = !{!"_ZTSN11alglib_impl15sluv2densetrailE", !12, i64 0, !12, i64 8, !17, i64 16, !11, i64 96}
!23 = !{!"_ZTSN11alglib_impl21dualsimplexsubproblemE", !12, i64 0, !12, i64 8, !11, i64 16, !11, i64 80, !11, i64 144, !11, i64 208, !11, i64 272, !11, i64 336, !12, i64 400, !11, i64 408, !11, i64 472, !11, i64 536, !11, i64 600, !11, i64 664, !11, i64 728}
!24 = !{!10, !12, i64 7288}
!25 = !{!12, !12, i64 0}
!26 = !{!10, !18, i64 9912}
!27 = !{!10, !12, i64 9944}
!28 = !{!10, !12, i64 9952}
!29 = !{!10, !12, i64 9960}
!30 = !{!10, !12, i64 9968}
!31 = !{!10, !12, i64 9936}
!32 = !{!10, !18, i64 9920}
!33 = !{!10, !18, i64 9928}
!34 = !{!7, !7, i64 0}
!35 = !{!18, !18, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !37}
!39 = distinct !{!39, !37}
!40 = !{!41, !18, i64 8}
!41 = !{!"_ZTSN11alglib_impl19dualsimplexsettingsE", !18, i64 0, !18, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48}
!42 = distinct !{!42, !37}
!43 = !{!10, !12, i64 7680}
!44 = distinct !{!44, !37}
!45 = !{!10, !12, i64 9264}
!46 = distinct !{!46, !37}
!47 = distinct !{!47, !37}
!48 = distinct !{!48, !37}
!49 = !{!10, !12, i64 256}
!50 = distinct !{!50, !37}
!51 = distinct !{!51, !37}
!52 = !{!13, !13, i64 0}
!53 = !{i8 0, i8 2}
!54 = !{}
!55 = distinct !{!55, !37}
!56 = distinct !{!56, !37}


; 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::hqrndstate" = type { i64, i64, i64 }

@_ZN11alglib_implL28reviseddualsimplex_ssinvalidE = external hidden local_unnamed_addr global i64, align 8
@_ZN11alglib_implL31reviseddualsimplex_ccinfeasibleE = external hidden local_unnamed_addr global i64, align 8
@_ZN11alglib_implL28reviseddualsimplex_ssvalidxnE = external hidden local_unnamed_addr global i64, align 8
@_ZN11alglib_implL26reviseddualsimplex_ssvalidE = external hidden local_unnamed_addr global i64, align 8
@.str.362 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.363 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.364 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.365 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.366 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.367 = external hidden unnamed_addr constant [45 x i8], align 1

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

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

declare noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #2

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

declare noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #2

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

declare noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL32reviseddualsimplex_basisfreshtrfEPNS_16dualsimplexbasisEPNS_12sparsematrixEPNS_19dualsimplexsettingsEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl11dssoptimizeEPNS_16dualsimplexstateEPNS_19dualsimplexsettingsEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #4 {
  %4 = alloca %"struct.alglib_impl::ae_frame", align 8
  %5 = alloca %"struct.alglib_impl::hqrndstate", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %2, ptr noundef nonnull %4)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, i8 0, i64 24, i1 false)
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %5, ptr noundef %2, i1 noundef zeroext true)
  %6 = getelementptr inbounds i8, ptr %0, i64 7280
  %7 = load i64, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 7288
  %9 = load i64, ptr %8, align 8, !tbaa !23
  %10 = add i64 %9, %7
  %11 = getelementptr inbounds i8, ptr %0, i64 9912
  store double 0.000000e+00, ptr %11, align 8, !tbaa !24
  %12 = getelementptr inbounds i8, ptr %0, i64 9944
  %13 = getelementptr inbounds i8, ptr %0, i64 9936
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %12, i8 0, i64 32, i1 false)
  store i64 1, ptr %13, align 8, !tbaa !25
  %14 = getelementptr inbounds i8, ptr %0, i64 9920
  %15 = icmp eq i64 %9, 0
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %14, i8 0, i64 16, i1 false)
  br i1 %15, label %19, label %.preheader308

.preheader308:                                    ; preds = %3
  %.not.not309 = icmp sgt i64 %10, 0
  br i1 %.not.not309, label %.lr.ph, label %._crit_edge321.critedge

.lr.ph:                                           ; preds = %.preheader308
  %16 = getelementptr inbounds i8, ptr %0, i64 7544
  %17 = load ptr, ptr %16, align 8, !tbaa !26
  %18 = load i64, ptr @_ZN11alglib_implL31reviseddualsimplex_ccinfeasibleE, align 8, !tbaa !27
  br label %64

19:                                               ; preds = %3
  call void @_ZN11alglib_implL31reviseddualsimplex_solveboxonlyEPNS_16dualsimplexstateEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %2)
  store double 0.000000e+00, ptr %11, align 8, !tbaa !24
  %20 = load i64, ptr %6, align 8, !tbaa !5
  %.not.not304356 = icmp sgt i64 %20, 0
  br i1 %.not.not304356, label %.lr.ph359, label %._crit_edge360

.lr.ph359:                                        ; preds = %19
  %21 = getelementptr inbounds i8, ptr %0, i64 9712
  %22 = load ptr, ptr %21, align 8, !tbaa !26
  %23 = getelementptr inbounds i8, ptr %0, i64 7352
  %24 = load ptr, ptr %23, align 8, !tbaa !26
  %xtraiter407 = and i64 %20, 3
  %25 = icmp ult i64 %20, 4
  br i1 %25, label %._crit_edge360.loopexit.unr-lcssa, label %.lr.ph359.new

.lr.ph359.new:                                    ; preds = %.lr.ph359
  %unroll_iter411 = and i64 %20, 9223372036854775804
  br label %26

26:                                               ; preds = %26, %.lr.ph359.new
  %27 = phi double [ 0.000000e+00, %.lr.ph359.new ], [ %50, %26 ]
  %.0285357 = phi i64 [ 0, %.lr.ph359.new ], [ %51, %26 ]
  %niter412 = phi i64 [ 0, %.lr.ph359.new ], [ %niter412.next.3, %26 ]
  %28 = getelementptr inbounds double, ptr %22, i64 %.0285357
  %29 = load double, ptr %28, align 8, !tbaa !28
  %30 = getelementptr inbounds double, ptr %24, i64 %.0285357
  %31 = load double, ptr %30, align 8, !tbaa !28
  %32 = call double @llvm.fmuladd.f64(double %29, double %31, double %27)
  store double %32, ptr %11, align 8, !tbaa !24
  %33 = or disjoint i64 %.0285357, 1
  %34 = getelementptr inbounds double, ptr %22, i64 %33
  %35 = load double, ptr %34, align 8, !tbaa !28
  %36 = getelementptr inbounds double, ptr %24, i64 %33
  %37 = load double, ptr %36, align 8, !tbaa !28
  %38 = call double @llvm.fmuladd.f64(double %35, double %37, double %32)
  store double %38, ptr %11, align 8, !tbaa !24
  %39 = or disjoint i64 %.0285357, 2
  %40 = getelementptr inbounds double, ptr %22, i64 %39
  %41 = load double, ptr %40, align 8, !tbaa !28
  %42 = getelementptr inbounds double, ptr %24, i64 %39
  %43 = load double, ptr %42, align 8, !tbaa !28
  %44 = call double @llvm.fmuladd.f64(double %41, double %43, double %38)
  store double %44, ptr %11, align 8, !tbaa !24
  %45 = or disjoint i64 %.0285357, 3
  %46 = getelementptr inbounds double, ptr %22, i64 %45
  %47 = load double, ptr %46, align 8, !tbaa !28
  %48 = getelementptr inbounds double, ptr %24, i64 %45
  %49 = load double, ptr %48, align 8, !tbaa !28
  %50 = call double @llvm.fmuladd.f64(double %47, double %49, double %44)
  store double %50, ptr %11, align 8, !tbaa !24
  %51 = add nuw nsw i64 %.0285357, 4
  %niter412.next.3 = add i64 %niter412, 4
  %niter412.ncmp.3 = icmp eq i64 %niter412.next.3, %unroll_iter411
  br i1 %niter412.ncmp.3, label %._crit_edge360.loopexit.unr-lcssa, label %26, !llvm.loop !29

._crit_edge360.loopexit.unr-lcssa:                ; preds = %26, %.lr.ph359
  %.unr409 = phi double [ 0.000000e+00, %.lr.ph359 ], [ %50, %26 ]
  %.0285357.unr = phi i64 [ 0, %.lr.ph359 ], [ %51, %26 ]
  %lcmp.mod410.not = icmp eq i64 %xtraiter407, 0
  br i1 %lcmp.mod410.not, label %._crit_edge360, label %.epil.preheader406

.epil.preheader406:                               ; preds = %._crit_edge360.loopexit.unr-lcssa, %.epil.preheader406
  %52 = phi double [ %57, %.epil.preheader406 ], [ %.unr409, %._crit_edge360.loopexit.unr-lcssa ]
  %.0285357.epil = phi i64 [ %58, %.epil.preheader406 ], [ %.0285357.unr, %._crit_edge360.loopexit.unr-lcssa ]
  %epil.iter408 = phi i64 [ %epil.iter408.next, %.epil.preheader406 ], [ 0, %._crit_edge360.loopexit.unr-lcssa ]
  %53 = getelementptr inbounds double, ptr %22, i64 %.0285357.epil
  %54 = load double, ptr %53, align 8, !tbaa !28
  %55 = getelementptr inbounds double, ptr %24, i64 %.0285357.epil
  %56 = load double, ptr %55, align 8, !tbaa !28
  %57 = call double @llvm.fmuladd.f64(double %54, double %56, double %52)
  store double %57, ptr %11, align 8, !tbaa !24
  %58 = add nuw nsw i64 %.0285357.epil, 1
  %epil.iter408.next = add i64 %epil.iter408, 1
  %epil.iter408.cmp.not = icmp eq i64 %epil.iter408.next, %xtraiter407
  br i1 %epil.iter408.cmp.not, label %._crit_edge360, label %.epil.preheader406, !llvm.loop !31

._crit_edge360:                                   ; preds = %._crit_edge360.loopexit.unr-lcssa, %.epil.preheader406, %19
  %59 = getelementptr inbounds i8, ptr %0, i64 9656
  %60 = getelementptr inbounds i8, ptr %0, i64 9720
  %61 = getelementptr inbounds i8, ptr %0, i64 9784
  call void @_ZN11alglib_implL36reviseddualsimplex_unscaleandenforceEPNS_9ae_vectorES1_S1_PNS_16dualsimplexstateEPNS_8ae_stateE(ptr noundef nonnull %59, ptr noundef nonnull %60, ptr noundef nonnull %61, ptr noundef nonnull %0, ptr noundef %2)
  br label %455

62:                                               ; preds = %64
  %63 = add nuw nsw i64 %.1286310, 1
  %exitcond.not = icmp eq i64 %63, %10
  br i1 %exitcond.not, label %._crit_edge, label %64, !llvm.loop !33

64:                                               ; preds = %.lr.ph, %62
  %.1286310 = phi i64 [ 0, %.lr.ph ], [ %63, %62 ]
  %65 = getelementptr inbounds i64, ptr %17, i64 %.1286310
  %66 = load i64, ptr %65, align 8, !tbaa !27
  %67 = icmp eq i64 %66, %18
  br i1 %67, label %68, label %62

68:                                               ; preds = %64
  store i64 -3, ptr %13, align 8, !tbaa !25
  call void @_ZN11alglib_implL33reviseddualsimplex_setzeroxystatsEPNS_16dualsimplexstateEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %2)
  br label %455

._crit_edge:                                      ; preds = %62
  call void @_ZN11alglib_impl9hqrndseedEllPNS_10hqrndstateEPNS_8ae_stateE(i64 noundef 7456, i64 noundef 2355, ptr noundef nonnull %5, ptr noundef %2)
  %69 = getelementptr inbounds i8, ptr %0, i64 8008
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %69, i64 noundef %10, ptr noundef %2)
  br i1 %.not.not309, label %.lr.ph320, label %._crit_edge321

.lr.ph320:                                        ; preds = %._crit_edge
  %70 = getelementptr inbounds i8, ptr %0, i64 7352
  %71 = getelementptr inbounds i8, ptr %0, i64 824
  %72 = getelementptr inbounds i8, ptr %0, i64 696
  %73 = getelementptr inbounds i8, ptr %0, i64 8064
  %74 = getelementptr inbounds i8, ptr %1, i64 8
  %75 = getelementptr inbounds i8, ptr %0, i64 8000
  br label %76

76:                                               ; preds = %.lr.ph320, %114
  %.2318 = phi i64 [ 0, %.lr.ph320 ], [ %84, %114 ]
  %77 = load ptr, ptr %70, align 8, !tbaa !26
  %78 = getelementptr inbounds double, ptr %77, i64 %.2318
  %79 = load double, ptr %78, align 8, !tbaa !28
  %80 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %79, ptr noundef %2)
  %81 = load ptr, ptr %71, align 8, !tbaa !26
  %82 = getelementptr inbounds i64, ptr %81, i64 %.2318
  %83 = load i64, ptr %82, align 8, !tbaa !27
  %84 = add nuw nsw i64 %.2318, 1
  %85 = getelementptr inbounds i64, ptr %81, i64 %84
  %86 = load i64, ptr %85, align 8, !tbaa !27
  %.not.not303311 = icmp slt i64 %83, %86
  br i1 %.not.not303311, label %.lr.ph315, label %._crit_edge316

.lr.ph315:                                        ; preds = %76, %.lr.ph315
  %.0313 = phi double [ %91, %.lr.ph315 ], [ %80, %76 ]
  %.0287312 = phi i64 [ %92, %.lr.ph315 ], [ %83, %76 ]
  %87 = load ptr, ptr %72, align 8, !tbaa !26
  %88 = getelementptr inbounds double, ptr %87, i64 %.0287312
  %89 = load double, ptr %88, align 8, !tbaa !28
  %90 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %89, ptr noundef %2)
  %91 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.0313, double noundef %90, ptr noundef %2)
  %92 = add i64 %.0287312, 1
  %exitcond362.not = icmp eq i64 %92, %86
  br i1 %exitcond362.not, label %._crit_edge316, label %.lr.ph315, !llvm.loop !34

._crit_edge316:                                   ; preds = %.lr.ph315, %76
  %.0.lcssa = phi double [ %80, %76 ], [ %91, %.lr.ph315 ]
  %93 = call noundef double @_ZN11alglib_impl8coalesceEddPNS_8ae_stateE(double noundef %.0.lcssa, double noundef 1.000000e+00, ptr noundef %2)
  %94 = load ptr, ptr %73, align 8, !tbaa !26
  %95 = getelementptr inbounds double, ptr %94, i64 %.2318
  store double %93, ptr %95, align 8, !tbaa !28
  %96 = call noundef zeroext i1 @_ZN11alglib_implL25reviseddualsimplex_isfreeEPNS_21dualsimplexsubproblemElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.2318, ptr noundef %2)
  br i1 %96, label %114, label %97

97:                                               ; preds = %._crit_edge316
  %98 = load double, ptr %74, align 8, !tbaa !35
  %99 = load ptr, ptr %73, align 8, !tbaa !26
  %100 = getelementptr inbounds double, ptr %99, i64 %.2318
  %101 = load double, ptr %100, align 8, !tbaa !28
  %102 = fmul double %98, %101
  %103 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef %2)
  %104 = fadd double %103, 1.000000e+00
  %105 = fmul double %102, %104
  %106 = call noundef zeroext i1 @_ZN11alglib_implL26reviseddualsimplex_hasbnduEPNS_21dualsimplexsubproblemElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.2318, ptr noundef %2)
  %107 = fneg double %105
  %.1 = select i1 %106, double %107, double %105
  %108 = load ptr, ptr %70, align 8, !tbaa !26
  %109 = getelementptr inbounds double, ptr %108, i64 %.2318
  %110 = load double, ptr %109, align 8, !tbaa !28
  %111 = fadd double %110, %.1
  %112 = load ptr, ptr %75, align 8, !tbaa !26
  %113 = getelementptr inbounds double, ptr %112, i64 %.2318
  store double %111, ptr %113, align 8, !tbaa !28
  br label %114

114:                                              ; preds = %._crit_edge316, %97
  %exitcond363.not = icmp eq i64 %84, %10
  br i1 %exitcond363.not, label %._crit_edge321, label %76, !llvm.loop !37

._crit_edge321.critedge:                          ; preds = %.preheader308
  call void @_ZN11alglib_impl9hqrndseedEllPNS_10hqrndstateEPNS_8ae_stateE(i64 noundef 7456, i64 noundef 2355, ptr noundef nonnull %5, ptr noundef %2)
  %115 = getelementptr inbounds i8, ptr %0, i64 8008
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %115, i64 noundef %10, ptr noundef %2)
  br label %._crit_edge321

._crit_edge321:                                   ; preds = %114, %._crit_edge321.critedge, %._crit_edge
  %116 = getelementptr inbounds i8, ptr %0, i64 1008
  %117 = getelementptr inbounds i8, ptr %0, i64 640
  call void @_ZN11alglib_implL32reviseddualsimplex_basisfreshtrfEPNS_16dualsimplexbasisEPNS_12sparsematrixEPNS_19dualsimplexsettingsEPNS_8ae_stateE(ptr noundef nonnull %116, ptr noundef nonnull %117, ptr noundef %1, ptr noundef %2)
  %118 = getelementptr inbounds i8, ptr %0, i64 7680
  %119 = load i64, ptr %118, align 8, !tbaa !38
  %120 = load i64, ptr @_ZN11alglib_implL28reviseddualsimplex_ssinvalidE, align 8, !tbaa !27
  %121 = icmp eq i64 %119, %120
  br i1 %121, label %122, label %123

122:                                              ; preds = %._crit_edge321
  call void @_ZN11alglib_implL43reviseddualsimplex_subprobleminferinitialxnEPNS_16dualsimplexstateEPNS_21dualsimplexsubproblemEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %6, ptr noundef %2)
  %.pre = load i64, ptr %118, align 8, !tbaa !38
  br label %123

123:                                              ; preds = %122, %._crit_edge321
  %124 = phi i64 [ %.pre, %122 ], [ %119, %._crit_edge321 ]
  %125 = load i64, ptr @_ZN11alglib_implL28reviseddualsimplex_ssvalidxnE, align 8, !tbaa !27
  %126 = icmp eq i64 %124, %125
  br i1 %126, label %127, label %128

127:                                              ; preds = %123
  call void @_ZN11alglib_implL43reviseddualsimplex_subproblemhandlexnupdateEPNS_16dualsimplexstateEPNS_21dualsimplexsubproblemEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %6, ptr noundef %2)
  %.pre373 = load i64, ptr %118, align 8, !tbaa !38
  br label %128

128:                                              ; preds = %127, %123
  %129 = phi i64 [ %.pre373, %127 ], [ %124, %123 ]
  %130 = load i64, ptr @_ZN11alglib_implL26reviseddualsimplex_ssvalidE, align 8, !tbaa !27
  %131 = icmp eq i64 %129, %130
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %131, ptr noundef nonnull @.str.362, ptr noundef %2)
  call void @_ZN11alglib_implL31reviseddualsimplex_invokephase1EPNS_16dualsimplexstateEPNS_19dualsimplexsettingsEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %2)
  %132 = load i64, ptr %13, align 8, !tbaa !25
  %133 = icmp slt i64 %132, 1
  br i1 %133, label %134, label %136

134:                                              ; preds = %128
  %135 = icmp eq i64 %132, -4
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %135, ptr noundef nonnull @.str.363, ptr noundef %2)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %11, i8 0, i64 24, i1 false)
  call void @_ZN11alglib_implL33reviseddualsimplex_setzeroxystatsEPNS_16dualsimplexstateEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %2)
  br label %455

136:                                              ; preds = %128
  call void @_ZN11alglib_implL38reviseddualsimplex_solvesubproblemdualEPNS_16dualsimplexstateEPNS_21dualsimplexsubproblemEbPNS_19dualsimplexsettingsEPlPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %6, i1 noundef zeroext false, ptr noundef %1, ptr noundef nonnull %13, ptr noundef %2)
  %137 = load i64, ptr %13, align 8, !tbaa !25
  %138 = icmp slt i64 %137, 1
  br i1 %138, label %139, label %141

139:                                              ; preds = %136
  %140 = icmp eq i64 %137, -3
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %140, ptr noundef nonnull @.str.364, ptr noundef %2)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %11, i8 0, i64 24, i1 false)
  call void @_ZN11alglib_implL33reviseddualsimplex_setzeroxystatsEPNS_16dualsimplexstateEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %2)
  br label %455

141:                                              ; preds = %136
  %142 = getelementptr inbounds i8, ptr %0, i64 8864
  call void @_ZN11alglib_implL39reviseddualsimplex_subprobleminitphase3EPNS_21dualsimplexsubproblemES1_PNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef nonnull %142, ptr noundef %2)
  br i1 %.not.not309, label %.lr.ph325, label %._crit_edge326

.lr.ph325:                                        ; preds = %141
  %143 = getelementptr inbounds i8, ptr %0, i64 7352
  %144 = getelementptr inbounds i8, ptr %0, i64 9584
  %145 = add i64 %9, %7
  %146 = add i64 %145, -1
  %xtraiter = and i64 %10, 3
  %147 = icmp ult i64 %146, 3
  br i1 %147, label %._crit_edge326.loopexit.unr-lcssa, label %.lr.ph325.new

.lr.ph325.new:                                    ; preds = %.lr.ph325
  %unroll_iter = and i64 %10, 9223372036854775804
  br label %148

148:                                              ; preds = %148, %.lr.ph325.new
  %.3323 = phi i64 [ 0, %.lr.ph325.new ], [ %172, %148 ]
  %niter = phi i64 [ 0, %.lr.ph325.new ], [ %niter.next.3, %148 ]
  %149 = load ptr, ptr %143, align 8, !tbaa !26
  %150 = getelementptr inbounds double, ptr %149, i64 %.3323
  %151 = load double, ptr %150, align 8, !tbaa !28
  %152 = load ptr, ptr %144, align 8, !tbaa !26
  %153 = getelementptr inbounds double, ptr %152, i64 %.3323
  store double %151, ptr %153, align 8, !tbaa !28
  %154 = or disjoint i64 %.3323, 1
  %155 = load ptr, ptr %143, align 8, !tbaa !26
  %156 = getelementptr inbounds double, ptr %155, i64 %154
  %157 = load double, ptr %156, align 8, !tbaa !28
  %158 = load ptr, ptr %144, align 8, !tbaa !26
  %159 = getelementptr inbounds double, ptr %158, i64 %154
  store double %157, ptr %159, align 8, !tbaa !28
  %160 = or disjoint i64 %.3323, 2
  %161 = load ptr, ptr %143, align 8, !tbaa !26
  %162 = getelementptr inbounds double, ptr %161, i64 %160
  %163 = load double, ptr %162, align 8, !tbaa !28
  %164 = load ptr, ptr %144, align 8, !tbaa !26
  %165 = getelementptr inbounds double, ptr %164, i64 %160
  store double %163, ptr %165, align 8, !tbaa !28
  %166 = or disjoint i64 %.3323, 3
  %167 = load ptr, ptr %143, align 8, !tbaa !26
  %168 = getelementptr inbounds double, ptr %167, i64 %166
  %169 = load double, ptr %168, align 8, !tbaa !28
  %170 = load ptr, ptr %144, align 8, !tbaa !26
  %171 = getelementptr inbounds double, ptr %170, i64 %166
  store double %169, ptr %171, align 8, !tbaa !28
  %172 = add nuw nsw i64 %.3323, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge326.loopexit.unr-lcssa, label %148, !llvm.loop !39

._crit_edge326.loopexit.unr-lcssa:                ; preds = %148, %.lr.ph325
  %.3323.unr = phi i64 [ 0, %.lr.ph325 ], [ %172, %148 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge326, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge326.loopexit.unr-lcssa, %.epil.preheader
  %.3323.epil = phi i64 [ %178, %.epil.preheader ], [ %.3323.unr, %._crit_edge326.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge326.loopexit.unr-lcssa ]
  %173 = load ptr, ptr %143, align 8, !tbaa !26
  %174 = getelementptr inbounds double, ptr %173, i64 %.3323.epil
  %175 = load double, ptr %174, align 8, !tbaa !28
  %176 = load ptr, ptr %144, align 8, !tbaa !26
  %177 = getelementptr inbounds double, ptr %176, i64 %.3323.epil
  store double %175, ptr %177, align 8, !tbaa !28
  %178 = add nuw nsw i64 %.3323.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge326, label %.epil.preheader, !llvm.loop !40

._crit_edge326:                                   ; preds = %._crit_edge326.loopexit.unr-lcssa, %.epil.preheader, %141
  %179 = getelementptr inbounds i8, ptr %0, i64 9264
  %180 = load i64, ptr %179, align 8, !tbaa !41
  %181 = load i64, ptr @_ZN11alglib_implL28reviseddualsimplex_ssvalidxnE, align 8, !tbaa !27
  %182 = icmp sge i64 %180, %181
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %182, ptr noundef nonnull @.str.365, ptr noundef %2)
  call void @_ZN11alglib_implL43reviseddualsimplex_subproblemhandlexnupdateEPNS_16dualsimplexstateEPNS_21dualsimplexsubproblemEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %142, ptr noundef %2)
  call void @_ZN11alglib_implL40reviseddualsimplex_solvesubproblemprimalEPNS_16dualsimplexstateEPNS_21dualsimplexsubproblemEPNS_19dualsimplexsettingsEPlPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %142, ptr noundef %1, ptr noundef nonnull %13, ptr noundef %2)
  %183 = load i64, ptr %13, align 8, !tbaa !25
  %184 = icmp slt i64 %183, 1
  br i1 %184, label %189, label %.preheader307

.preheader307:                                    ; preds = %._crit_edge326
  br i1 %.not.not309, label %.lr.ph329, label %._crit_edge330

.lr.ph329:                                        ; preds = %.preheader307
  %185 = getelementptr inbounds i8, ptr %0, i64 9192
  %186 = getelementptr inbounds i8, ptr %0, i64 7608
  %187 = getelementptr inbounds i8, ptr %0, i64 7416
  %188 = getelementptr inbounds i8, ptr %0, i64 7480
  br label %191

189:                                              ; preds = %._crit_edge326
  %190 = icmp eq i64 %183, -4
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %190, ptr noundef nonnull @.str.366, ptr noundef %2)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %11, i8 0, i64 24, i1 false)
  call void @_ZN11alglib_implL33reviseddualsimplex_setzeroxystatsEPNS_16dualsimplexstateEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %2)
  br label %455

191:                                              ; preds = %.lr.ph329, %220
  %.4328 = phi i64 [ 0, %.lr.ph329 ], [ %221, %220 ]
  %192 = load ptr, ptr %185, align 8, !tbaa !26
  %193 = getelementptr inbounds double, ptr %192, i64 %.4328
  %194 = load double, ptr %193, align 8, !tbaa !28
  %195 = load ptr, ptr %186, align 8, !tbaa !26
  %196 = getelementptr inbounds double, ptr %195, i64 %.4328
  store double %194, ptr %196, align 8, !tbaa !28
  %197 = call noundef zeroext i1 @_ZN11alglib_implL26reviseddualsimplex_hasbndlEPNS_21dualsimplexsubproblemElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.4328, ptr noundef %2)
  br i1 %197, label %198, label %208

198:                                              ; preds = %191
  %199 = load ptr, ptr %186, align 8, !tbaa !26
  %200 = getelementptr inbounds double, ptr %199, i64 %.4328
  %201 = load double, ptr %200, align 8, !tbaa !28
  %202 = load ptr, ptr %187, align 8, !tbaa !26
  %203 = getelementptr inbounds double, ptr %202, i64 %.4328
  %204 = load double, ptr %203, align 8, !tbaa !28
  %205 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %201, double noundef %204, ptr noundef %2)
  %206 = load ptr, ptr %186, align 8, !tbaa !26
  %207 = getelementptr inbounds double, ptr %206, i64 %.4328
  store double %205, ptr %207, align 8, !tbaa !28
  br label %208

208:                                              ; preds = %198, %191
  %209 = call noundef zeroext i1 @_ZN11alglib_implL26reviseddualsimplex_hasbnduEPNS_21dualsimplexsubproblemElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.4328, ptr noundef %2)
  br i1 %209, label %210, label %220

210:                                              ; preds = %208
  %211 = load ptr, ptr %186, align 8, !tbaa !26
  %212 = getelementptr inbounds double, ptr %211, i64 %.4328
  %213 = load double, ptr %212, align 8, !tbaa !28
  %214 = load ptr, ptr %188, align 8, !tbaa !26
  %215 = getelementptr inbounds double, ptr %214, i64 %.4328
  %216 = load double, ptr %215, align 8, !tbaa !28
  %217 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %213, double noundef %216, ptr noundef %2)
  %218 = load ptr, ptr %186, align 8, !tbaa !26
  %219 = getelementptr inbounds double, ptr %218, i64 %.4328
  store double %217, ptr %219, align 8, !tbaa !28
  br label %220

220:                                              ; preds = %208, %210
  %221 = add nuw nsw i64 %.4328, 1
  %exitcond365.not = icmp eq i64 %221, %10
  br i1 %exitcond365.not, label %._crit_edge330, label %191, !llvm.loop !42

._crit_edge330:                                   ; preds = %220, %.preheader307
  %222 = getelementptr inbounds i8, ptr %0, i64 10304
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %222, i64 noundef %9, ptr noundef %2)
  %223 = getelementptr inbounds i8, ptr %0, i64 10368
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %223, i64 noundef %9, ptr noundef %2)
  store double 0.000000e+00, ptr %11, align 8, !tbaa !24
  %224 = load i64, ptr %6, align 8, !tbaa !5
  %.not.not297331 = icmp sgt i64 %224, 0
  br i1 %.not.not297331, label %.lr.ph334, label %._crit_edge335

.lr.ph334:                                        ; preds = %._crit_edge330
  %225 = getelementptr inbounds i8, ptr %0, i64 7608
  %226 = load ptr, ptr %225, align 8, !tbaa !26
  %227 = getelementptr inbounds i8, ptr %0, i64 7352
  %228 = load ptr, ptr %227, align 8, !tbaa !26
  %xtraiter377 = and i64 %224, 3
  %229 = icmp ult i64 %224, 4
  br i1 %229, label %._crit_edge335.loopexit.unr-lcssa, label %.lr.ph334.new

.lr.ph334.new:                                    ; preds = %.lr.ph334
  %unroll_iter380 = and i64 %224, 9223372036854775804
  br label %230

230:                                              ; preds = %230, %.lr.ph334.new
  %231 = phi double [ 0.000000e+00, %.lr.ph334.new ], [ %254, %230 ]
  %.5332 = phi i64 [ 0, %.lr.ph334.new ], [ %255, %230 ]
  %niter381 = phi i64 [ 0, %.lr.ph334.new ], [ %niter381.next.3, %230 ]
  %232 = getelementptr inbounds double, ptr %226, i64 %.5332
  %233 = load double, ptr %232, align 8, !tbaa !28
  %234 = getelementptr inbounds double, ptr %228, i64 %.5332
  %235 = load double, ptr %234, align 8, !tbaa !28
  %236 = call double @llvm.fmuladd.f64(double %233, double %235, double %231)
  store double %236, ptr %11, align 8, !tbaa !24
  %237 = or disjoint i64 %.5332, 1
  %238 = getelementptr inbounds double, ptr %226, i64 %237
  %239 = load double, ptr %238, align 8, !tbaa !28
  %240 = getelementptr inbounds double, ptr %228, i64 %237
  %241 = load double, ptr %240, align 8, !tbaa !28
  %242 = call double @llvm.fmuladd.f64(double %239, double %241, double %236)
  store double %242, ptr %11, align 8, !tbaa !24
  %243 = or disjoint i64 %.5332, 2
  %244 = getelementptr inbounds double, ptr %226, i64 %243
  %245 = load double, ptr %244, align 8, !tbaa !28
  %246 = getelementptr inbounds double, ptr %228, i64 %243
  %247 = load double, ptr %246, align 8, !tbaa !28
  %248 = call double @llvm.fmuladd.f64(double %245, double %247, double %242)
  store double %248, ptr %11, align 8, !tbaa !24
  %249 = or disjoint i64 %.5332, 3
  %250 = getelementptr inbounds double, ptr %226, i64 %249
  %251 = load double, ptr %250, align 8, !tbaa !28
  %252 = getelementptr inbounds double, ptr %228, i64 %249
  %253 = load double, ptr %252, align 8, !tbaa !28
  %254 = call double @llvm.fmuladd.f64(double %251, double %253, double %248)
  store double %254, ptr %11, align 8, !tbaa !24
  %255 = add nuw nsw i64 %.5332, 4
  %niter381.next.3 = add i64 %niter381, 4
  %niter381.ncmp.3 = icmp eq i64 %niter381.next.3, %unroll_iter380
  br i1 %niter381.ncmp.3, label %._crit_edge335.loopexit.unr-lcssa, label %230, !llvm.loop !43

._crit_edge335.loopexit.unr-lcssa:                ; preds = %230, %.lr.ph334
  %.unr = phi double [ 0.000000e+00, %.lr.ph334 ], [ %254, %230 ]
  %.5332.unr = phi i64 [ 0, %.lr.ph334 ], [ %255, %230 ]
  %lcmp.mod379.not = icmp eq i64 %xtraiter377, 0
  br i1 %lcmp.mod379.not, label %._crit_edge335, label %.epil.preheader376

.epil.preheader376:                               ; preds = %._crit_edge335.loopexit.unr-lcssa, %.epil.preheader376
  %256 = phi double [ %261, %.epil.preheader376 ], [ %.unr, %._crit_edge335.loopexit.unr-lcssa ]
  %.5332.epil = phi i64 [ %262, %.epil.preheader376 ], [ %.5332.unr, %._crit_edge335.loopexit.unr-lcssa ]
  %epil.iter378 = phi i64 [ %epil.iter378.next, %.epil.preheader376 ], [ 0, %._crit_edge335.loopexit.unr-lcssa ]
  %257 = getelementptr inbounds double, ptr %226, i64 %.5332.epil
  %258 = load double, ptr %257, align 8, !tbaa !28
  %259 = getelementptr inbounds double, ptr %228, i64 %.5332.epil
  %260 = load double, ptr %259, align 8, !tbaa !28
  %261 = call double @llvm.fmuladd.f64(double %258, double %260, double %256)
  store double %261, ptr %11, align 8, !tbaa !24
  %262 = add nuw nsw i64 %.5332.epil, 1
  %epil.iter378.next = add i64 %epil.iter378, 1
  %epil.iter378.cmp.not = icmp eq i64 %epil.iter378.next, %xtraiter377
  br i1 %epil.iter378.cmp.not, label %._crit_edge335, label %.epil.preheader376, !llvm.loop !44

._crit_edge335:                                   ; preds = %._crit_edge335.loopexit.unr-lcssa, %.epil.preheader376, %._crit_edge330
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %14, i8 0, i64 16, i1 false)
  store i64 1, ptr %13, align 8, !tbaa !25
  %.not.not298336 = icmp sgt i64 %9, 0
  br i1 %.not.not298336, label %.lr.ph339, label %._crit_edge340

.lr.ph339:                                        ; preds = %._crit_edge335
  %263 = getelementptr inbounds i8, ptr %0, i64 7352
  %264 = getelementptr inbounds i8, ptr %0, i64 1080
  %265 = getelementptr inbounds i8, ptr %0, i64 10360
  %xtraiter383 = and i64 %9, 1
  %266 = icmp eq i64 %9, 1
  br i1 %266, label %._crit_edge340.loopexit.unr-lcssa, label %.lr.ph339.new

.lr.ph339.new:                                    ; preds = %.lr.ph339
  %unroll_iter386 = and i64 %9, 9223372036854775806
  br label %267

267:                                              ; preds = %267, %.lr.ph339.new
  %.6337 = phi i64 [ 0, %.lr.ph339.new ], [ %285, %267 ]
  %niter387 = phi i64 [ 0, %.lr.ph339.new ], [ %niter387.next.1, %267 ]
  %268 = load ptr, ptr %263, align 8, !tbaa !26
  %269 = load ptr, ptr %264, align 8, !tbaa !26
  %270 = getelementptr inbounds i64, ptr %269, i64 %.6337
  %271 = load i64, ptr %270, align 8, !tbaa !27
  %272 = getelementptr inbounds double, ptr %268, i64 %271
  %273 = load double, ptr %272, align 8, !tbaa !28
  %274 = load ptr, ptr %265, align 8, !tbaa !26
  %275 = getelementptr inbounds double, ptr %274, i64 %.6337
  store double %273, ptr %275, align 8, !tbaa !28
  %276 = or disjoint i64 %.6337, 1
  %277 = load ptr, ptr %263, align 8, !tbaa !26
  %278 = load ptr, ptr %264, align 8, !tbaa !26
  %279 = getelementptr inbounds i64, ptr %278, i64 %276
  %280 = load i64, ptr %279, align 8, !tbaa !27
  %281 = getelementptr inbounds double, ptr %277, i64 %280
  %282 = load double, ptr %281, align 8, !tbaa !28
  %283 = load ptr, ptr %265, align 8, !tbaa !26
  %284 = getelementptr inbounds double, ptr %283, i64 %276
  store double %282, ptr %284, align 8, !tbaa !28
  %285 = add nuw nsw i64 %.6337, 2
  %niter387.next.1 = add i64 %niter387, 2
  %niter387.ncmp.1 = icmp eq i64 %niter387.next.1, %unroll_iter386
  br i1 %niter387.ncmp.1, label %._crit_edge340.loopexit.unr-lcssa, label %267, !llvm.loop !45

._crit_edge340.loopexit.unr-lcssa:                ; preds = %267, %.lr.ph339
  %.6337.unr = phi i64 [ 0, %.lr.ph339 ], [ %285, %267 ]
  %lcmp.mod385.not = icmp eq i64 %xtraiter383, 0
  br i1 %lcmp.mod385.not, label %._crit_edge340, label %._crit_edge340.loopexit.epilog-lcssa

._crit_edge340.loopexit.epilog-lcssa:             ; preds = %._crit_edge340.loopexit.unr-lcssa
  %286 = load ptr, ptr %263, align 8, !tbaa !26
  %287 = load ptr, ptr %264, align 8, !tbaa !26
  %288 = getelementptr inbounds i64, ptr %287, i64 %.6337.unr
  %289 = load i64, ptr %288, align 8, !tbaa !27
  %290 = getelementptr inbounds double, ptr %286, i64 %289
  %291 = load double, ptr %290, align 8, !tbaa !28
  %292 = load ptr, ptr %265, align 8, !tbaa !26
  %293 = getelementptr inbounds double, ptr %292, i64 %.6337.unr
  store double %291, ptr %293, align 8, !tbaa !28
  br label %._crit_edge340

._crit_edge340:                                   ; preds = %._crit_edge340.loopexit.epilog-lcssa, %._crit_edge340.loopexit.unr-lcssa, %._crit_edge335
  %294 = getelementptr inbounds i8, ptr %0, i64 10432
  call void @_ZN11alglib_implL30reviseddualsimplex_basissolvetEPNS_16dualsimplexbasisEPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef nonnull %116, ptr noundef nonnull %222, ptr noundef nonnull %223, ptr noundef nonnull %294, ptr noundef %2)
  %295 = getelementptr inbounds i8, ptr %0, i64 7616
  call void @_ZN11alglib_implL30reviseddualsimplex_computeantvEPNS_16dualsimplexstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %223, ptr noundef nonnull %295, ptr noundef %2)
  %296 = getelementptr inbounds i8, ptr %0, i64 256
  %297 = load i64, ptr %296, align 8, !tbaa !46
  %.not.not299341 = icmp sgt i64 %297, 0
  br i1 %.not.not299341, label %.lr.ph344, label %.preheader306

.lr.ph344:                                        ; preds = %._crit_edge340
  %298 = getelementptr inbounds i8, ptr %0, i64 1144
  %299 = getelementptr inbounds i8, ptr %0, i64 7352
  %300 = getelementptr inbounds i8, ptr %0, i64 7672
  %xtraiter389 = and i64 %297, 1
  %301 = icmp eq i64 %297, 1
  br i1 %301, label %.preheader306.loopexit.unr-lcssa, label %.lr.ph344.new

.lr.ph344.new:                                    ; preds = %.lr.ph344
  %unroll_iter392 = and i64 %297, 9223372036854775806
  br label %317

.preheader306.loopexit.unr-lcssa:                 ; preds = %317, %.lr.ph344
  %.7342.unr = phi i64 [ 0, %.lr.ph344 ], [ %339, %317 ]
  %lcmp.mod391.not = icmp eq i64 %xtraiter389, 0
  br i1 %lcmp.mod391.not, label %.preheader306, label %.preheader306.loopexit.epilog-lcssa

.preheader306.loopexit.epilog-lcssa:              ; preds = %.preheader306.loopexit.unr-lcssa
  %302 = load ptr, ptr %298, align 8, !tbaa !26
  %303 = getelementptr inbounds i64, ptr %302, i64 %.7342.unr
  %304 = load i64, ptr %303, align 8, !tbaa !27
  %305 = load ptr, ptr %299, align 8, !tbaa !26
  %306 = getelementptr inbounds double, ptr %305, i64 %304
  %307 = load double, ptr %306, align 8, !tbaa !28
  %308 = load ptr, ptr %300, align 8, !tbaa !26
  %309 = getelementptr inbounds double, ptr %308, i64 %304
  %310 = load double, ptr %309, align 8, !tbaa !28
  %311 = fsub double %307, %310
  store double %311, ptr %309, align 8, !tbaa !28
  br label %.preheader306

.preheader306:                                    ; preds = %.preheader306.loopexit.epilog-lcssa, %.preheader306.loopexit.unr-lcssa, %._crit_edge340
  br i1 %.not.not298336, label %.lr.ph348, label %.preheader305

.lr.ph348:                                        ; preds = %.preheader306
  %312 = getelementptr inbounds i8, ptr %0, i64 10424
  %313 = getelementptr inbounds i8, ptr %0, i64 9776
  %314 = getelementptr inbounds i8, ptr %0, i64 7672
  %315 = getelementptr inbounds i8, ptr %0, i64 9840
  %xtraiter395 = and i64 %9, 1
  %316 = icmp eq i64 %9, 1
  br i1 %316, label %.preheader305.loopexit.unr-lcssa, label %.lr.ph348.new

.lr.ph348.new:                                    ; preds = %.lr.ph348
  %unroll_iter398 = and i64 %9, 9223372036854775806
  br label %356

317:                                              ; preds = %317, %.lr.ph344.new
  %.7342 = phi i64 [ 0, %.lr.ph344.new ], [ %339, %317 ]
  %niter393 = phi i64 [ 0, %.lr.ph344.new ], [ %niter393.next.1, %317 ]
  %318 = load ptr, ptr %298, align 8, !tbaa !26
  %319 = getelementptr inbounds i64, ptr %318, i64 %.7342
  %320 = load i64, ptr %319, align 8, !tbaa !27
  %321 = load ptr, ptr %299, align 8, !tbaa !26
  %322 = getelementptr inbounds double, ptr %321, i64 %320
  %323 = load double, ptr %322, align 8, !tbaa !28
  %324 = load ptr, ptr %300, align 8, !tbaa !26
  %325 = getelementptr inbounds double, ptr %324, i64 %320
  %326 = load double, ptr %325, align 8, !tbaa !28
  %327 = fsub double %323, %326
  store double %327, ptr %325, align 8, !tbaa !28
  %328 = or disjoint i64 %.7342, 1
  %329 = load ptr, ptr %298, align 8, !tbaa !26
  %330 = getelementptr inbounds i64, ptr %329, i64 %328
  %331 = load i64, ptr %330, align 8, !tbaa !27
  %332 = load ptr, ptr %299, align 8, !tbaa !26
  %333 = getelementptr inbounds double, ptr %332, i64 %331
  %334 = load double, ptr %333, align 8, !tbaa !28
  %335 = load ptr, ptr %300, align 8, !tbaa !26
  %336 = getelementptr inbounds double, ptr %335, i64 %331
  %337 = load double, ptr %336, align 8, !tbaa !28
  %338 = fsub double %334, %337
  store double %338, ptr %336, align 8, !tbaa !28
  %339 = add nuw nsw i64 %.7342, 2
  %niter393.next.1 = add i64 %niter393, 2
  %niter393.ncmp.1 = icmp eq i64 %niter393.next.1, %unroll_iter392
  br i1 %niter393.ncmp.1, label %.preheader306.loopexit.unr-lcssa, label %317, !llvm.loop !47

.preheader305.loopexit.unr-lcssa:                 ; preds = %356, %.lr.ph348
  %.8347.unr = phi i64 [ 0, %.lr.ph348 ], [ %380, %356 ]
  %lcmp.mod397.not = icmp eq i64 %xtraiter395, 0
  br i1 %lcmp.mod397.not, label %.preheader305, label %.preheader305.loopexit.epilog-lcssa

.preheader305.loopexit.epilog-lcssa:              ; preds = %.preheader305.loopexit.unr-lcssa
  %340 = load ptr, ptr %312, align 8, !tbaa !26
  %341 = getelementptr inbounds double, ptr %340, i64 %.8347.unr
  %342 = load double, ptr %341, align 8, !tbaa !28
  %343 = load ptr, ptr %313, align 8, !tbaa !26
  %344 = getelementptr inbounds double, ptr %343, i64 %.8347.unr
  store double %342, ptr %344, align 8, !tbaa !28
  %345 = load ptr, ptr %314, align 8, !tbaa !26
  %346 = getelementptr double, ptr %345, i64 %297
  %347 = getelementptr double, ptr %346, i64 %.8347.unr
  %348 = load double, ptr %347, align 8, !tbaa !28
  %349 = load ptr, ptr %315, align 8, !tbaa !26
  %350 = getelementptr inbounds double, ptr %349, i64 %.8347.unr
  store double %348, ptr %350, align 8, !tbaa !28
  br label %.preheader305

.preheader305:                                    ; preds = %.preheader305.loopexit.epilog-lcssa, %.preheader305.loopexit.unr-lcssa, %.preheader306
  br i1 %.not.not309, label %.lr.ph351, label %.preheader

.lr.ph351:                                        ; preds = %.preheader305
  %351 = getelementptr inbounds i8, ptr %0, i64 1208
  %352 = getelementptr inbounds i8, ptr %0, i64 7608
  %353 = getelementptr inbounds i8, ptr %0, i64 7416
  %354 = getelementptr inbounds i8, ptr %0, i64 7480
  %355 = getelementptr inbounds i8, ptr %0, i64 9904
  br label %385

356:                                              ; preds = %356, %.lr.ph348.new
  %.8347 = phi i64 [ 0, %.lr.ph348.new ], [ %380, %356 ]
  %niter399 = phi i64 [ 0, %.lr.ph348.new ], [ %niter399.next.1, %356 ]
  %357 = load ptr, ptr %312, align 8, !tbaa !26
  %358 = getelementptr inbounds double, ptr %357, i64 %.8347
  %359 = load double, ptr %358, align 8, !tbaa !28
  %360 = load ptr, ptr %313, align 8, !tbaa !26
  %361 = getelementptr inbounds double, ptr %360, i64 %.8347
  store double %359, ptr %361, align 8, !tbaa !28
  %362 = load ptr, ptr %314, align 8, !tbaa !26
  %363 = getelementptr double, ptr %362, i64 %297
  %364 = getelementptr double, ptr %363, i64 %.8347
  %365 = load double, ptr %364, align 8, !tbaa !28
  %366 = load ptr, ptr %315, align 8, !tbaa !26
  %367 = getelementptr inbounds double, ptr %366, i64 %.8347
  store double %365, ptr %367, align 8, !tbaa !28
  %368 = or disjoint i64 %.8347, 1
  %369 = load ptr, ptr %312, align 8, !tbaa !26
  %370 = getelementptr inbounds double, ptr %369, i64 %368
  %371 = load double, ptr %370, align 8, !tbaa !28
  %372 = load ptr, ptr %313, align 8, !tbaa !26
  %373 = getelementptr inbounds double, ptr %372, i64 %368
  store double %371, ptr %373, align 8, !tbaa !28
  %374 = load ptr, ptr %314, align 8, !tbaa !26
  %375 = getelementptr double, ptr %374, i64 %297
  %376 = getelementptr double, ptr %375, i64 %368
  %377 = load double, ptr %376, align 8, !tbaa !28
  %378 = load ptr, ptr %315, align 8, !tbaa !26
  %379 = getelementptr inbounds double, ptr %378, i64 %368
  store double %377, ptr %379, align 8, !tbaa !28
  %380 = add nuw nsw i64 %.8347, 2
  %niter399.next.1 = add i64 %niter399, 2
  %niter399.ncmp.1 = icmp eq i64 %niter399.next.1, %unroll_iter398
  br i1 %niter399.ncmp.1, label %.preheader305.loopexit.unr-lcssa, label %356, !llvm.loop !48

.preheader:                                       ; preds = %417, %.preheader305
  %381 = load i64, ptr %6, align 8, !tbaa !5
  %.not.not302352 = icmp sgt i64 %381, 0
  br i1 %.not.not302352, label %.lr.ph354, label %._crit_edge355

.lr.ph354:                                        ; preds = %.preheader
  %382 = getelementptr inbounds i8, ptr %0, i64 7608
  %383 = getelementptr inbounds i8, ptr %0, i64 9712
  %xtraiter401 = and i64 %381, 3
  %384 = icmp ult i64 %381, 4
  br i1 %384, label %._crit_edge355.loopexit.unr-lcssa, label %.lr.ph354.new

.lr.ph354.new:                                    ; preds = %.lr.ph354
  %unroll_iter404 = and i64 %381, 9223372036854775804
  br label %421

385:                                              ; preds = %.lr.ph351, %417
  %.9350 = phi i64 [ 0, %.lr.ph351 ], [ %420, %417 ]
  %386 = load ptr, ptr %351, align 8, !tbaa !26
  %387 = getelementptr inbounds i8, ptr %386, i64 %.9350
  %388 = load i8, ptr %387, align 1, !tbaa !49, !range !50, !noundef !51
  %389 = trunc nuw i8 %388 to i1
  br i1 %389, label %417, label %390

390:                                              ; preds = %385
  %391 = call noundef zeroext i1 @_ZN11alglib_implL26reviseddualsimplex_hasbndlEPNS_21dualsimplexsubproblemElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.9350, ptr noundef %2)
  br i1 %391, label %392, label %400

392:                                              ; preds = %390
  %393 = load ptr, ptr %352, align 8, !tbaa !26
  %394 = getelementptr inbounds double, ptr %393, i64 %.9350
  %395 = load double, ptr %394, align 8, !tbaa !28
  %396 = load ptr, ptr %353, align 8, !tbaa !26
  %397 = getelementptr inbounds double, ptr %396, i64 %.9350
  %398 = load double, ptr %397, align 8, !tbaa !28
  %399 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %395, double noundef %398)
  br i1 %399, label %417, label %400

400:                                              ; preds = %392, %390
  %401 = call noundef zeroext i1 @_ZN11alglib_implL26reviseddualsimplex_hasbnduEPNS_21dualsimplexsubproblemElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.9350, ptr noundef %2)
  br i1 %401, label %402, label %410

402:                                              ; preds = %400
  %403 = load ptr, ptr %352, align 8, !tbaa !26
  %404 = getelementptr inbounds double, ptr %403, i64 %.9350
  %405 = load double, ptr %404, align 8, !tbaa !28
  %406 = load ptr, ptr %354, align 8, !tbaa !26
  %407 = getelementptr inbounds double, ptr %406, i64 %.9350
  %408 = load double, ptr %407, align 8, !tbaa !28
  %409 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %405, double noundef %408)
  br i1 %409, label %417, label %410

410:                                              ; preds = %402, %400
  %411 = call noundef zeroext i1 @_ZN11alglib_implL26reviseddualsimplex_hasbndlEPNS_21dualsimplexsubproblemElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.9350, ptr noundef %2)
  br i1 %411, label %415, label %412

412:                                              ; preds = %410
  %413 = call noundef zeroext i1 @_ZN11alglib_implL26reviseddualsimplex_hasbnduEPNS_21dualsimplexsubproblemElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.9350, ptr noundef %2)
  %414 = xor i1 %413, true
  br label %415

415:                                              ; preds = %412, %410
  %416 = phi i1 [ false, %410 ], [ %414, %412 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %416, ptr noundef nonnull @.str.367, ptr noundef %2)
  br label %417

417:                                              ; preds = %402, %392, %385, %415
  %.sink = phi i64 [ 0, %415 ], [ 0, %385 ], [ -1, %392 ], [ 1, %402 ]
  %418 = load ptr, ptr %355, align 8, !tbaa !26
  %419 = getelementptr inbounds i64, ptr %418, i64 %.9350
  store i64 %.sink, ptr %419, align 8, !tbaa !27
  %420 = add nuw nsw i64 %.9350, 1
  %exitcond370.not = icmp eq i64 %420, %10
  br i1 %exitcond370.not, label %.preheader, label %385, !llvm.loop !52

421:                                              ; preds = %421, %.lr.ph354.new
  %.10353 = phi i64 [ 0, %.lr.ph354.new ], [ %445, %421 ]
  %niter405 = phi i64 [ 0, %.lr.ph354.new ], [ %niter405.next.3, %421 ]
  %422 = load ptr, ptr %382, align 8, !tbaa !26
  %423 = getelementptr inbounds double, ptr %422, i64 %.10353
  %424 = load double, ptr %423, align 8, !tbaa !28
  %425 = load ptr, ptr %383, align 8, !tbaa !26
  %426 = getelementptr inbounds double, ptr %425, i64 %.10353
  store double %424, ptr %426, align 8, !tbaa !28
  %427 = or disjoint i64 %.10353, 1
  %428 = load ptr, ptr %382, align 8, !tbaa !26
  %429 = getelementptr inbounds double, ptr %428, i64 %427
  %430 = load double, ptr %429, align 8, !tbaa !28
  %431 = load ptr, ptr %383, align 8, !tbaa !26
  %432 = getelementptr inbounds double, ptr %431, i64 %427
  store double %430, ptr %432, align 8, !tbaa !28
  %433 = or disjoint i64 %.10353, 2
  %434 = load ptr, ptr %382, align 8, !tbaa !26
  %435 = getelementptr inbounds double, ptr %434, i64 %433
  %436 = load double, ptr %435, align 8, !tbaa !28
  %437 = load ptr, ptr %383, align 8, !tbaa !26
  %438 = getelementptr inbounds double, ptr %437, i64 %433
  store double %436, ptr %438, align 8, !tbaa !28
  %439 = or disjoint i64 %.10353, 3
  %440 = load ptr, ptr %382, align 8, !tbaa !26
  %441 = getelementptr inbounds double, ptr %440, i64 %439
  %442 = load double, ptr %441, align 8, !tbaa !28
  %443 = load ptr, ptr %383, align 8, !tbaa !26
  %444 = getelementptr inbounds double, ptr %443, i64 %439
  store double %442, ptr %444, align 8, !tbaa !28
  %445 = add nuw nsw i64 %.10353, 4
  %niter405.next.3 = add i64 %niter405, 4
  %niter405.ncmp.3 = icmp eq i64 %niter405.next.3, %unroll_iter404
  br i1 %niter405.ncmp.3, label %._crit_edge355.loopexit.unr-lcssa, label %421, !llvm.loop !53

._crit_edge355.loopexit.unr-lcssa:                ; preds = %421, %.lr.ph354
  %.10353.unr = phi i64 [ 0, %.lr.ph354 ], [ %445, %421 ]
  %lcmp.mod403.not = icmp eq i64 %xtraiter401, 0
  br i1 %lcmp.mod403.not, label %._crit_edge355, label %.epil.preheader400

.epil.preheader400:                               ; preds = %._crit_edge355.loopexit.unr-lcssa, %.epil.preheader400
  %.10353.epil = phi i64 [ %451, %.epil.preheader400 ], [ %.10353.unr, %._crit_edge355.loopexit.unr-lcssa ]
  %epil.iter402 = phi i64 [ %epil.iter402.next, %.epil.preheader400 ], [ 0, %._crit_edge355.loopexit.unr-lcssa ]
  %446 = load ptr, ptr %382, align 8, !tbaa !26
  %447 = getelementptr inbounds double, ptr %446, i64 %.10353.epil
  %448 = load double, ptr %447, align 8, !tbaa !28
  %449 = load ptr, ptr %383, align 8, !tbaa !26
  %450 = getelementptr inbounds double, ptr %449, i64 %.10353.epil
  store double %448, ptr %450, align 8, !tbaa !28
  %451 = add nuw nsw i64 %.10353.epil, 1
  %epil.iter402.next = add i64 %epil.iter402, 1
  %epil.iter402.cmp.not = icmp eq i64 %epil.iter402.next, %xtraiter401
  br i1 %epil.iter402.cmp.not, label %._crit_edge355, label %.epil.preheader400, !llvm.loop !54

._crit_edge355:                                   ; preds = %._crit_edge355.loopexit.unr-lcssa, %.epil.preheader400, %.preheader
  %452 = getelementptr inbounds i8, ptr %0, i64 9656
  %453 = getelementptr inbounds i8, ptr %0, i64 9720
  %454 = getelementptr inbounds i8, ptr %0, i64 9784
  call void @_ZN11alglib_implL36reviseddualsimplex_unscaleandenforceEPNS_9ae_vectorES1_S1_PNS_16dualsimplexstateEPNS_8ae_stateE(ptr noundef nonnull %452, ptr noundef nonnull %453, ptr noundef nonnull %454, ptr noundef nonnull %0, ptr noundef %2)
  br label %455

455:                                              ; preds = %._crit_edge355, %189, %139, %134, %68, %._crit_edge360
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %2)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL31reviseddualsimplex_solveboxonlyEPNS_16dualsimplexstateEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL36reviseddualsimplex_unscaleandenforceEPNS_9ae_vectorES1_S1_PNS_16dualsimplexstateEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN11alglib_implL33reviseddualsimplex_setzeroxystatsEPNS_16dualsimplexstateEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN11alglib_implL25reviseddualsimplex_isfreeEPNS_21dualsimplexsubproblemElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

declare noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN11alglib_implL26reviseddualsimplex_hasbnduEPNS_21dualsimplexsubproblemElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL43reviseddualsimplex_subprobleminferinitialxnEPNS_16dualsimplexstateEPNS_21dualsimplexsubproblemEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL43reviseddualsimplex_subproblemhandlexnupdateEPNS_16dualsimplexstateEPNS_21dualsimplexsubproblemEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL31reviseddualsimplex_invokephase1EPNS_16dualsimplexstateEPNS_19dualsimplexsettingsEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL38reviseddualsimplex_solvesubproblemdualEPNS_16dualsimplexstateEPNS_21dualsimplexsubproblemEbPNS_19dualsimplexsettingsEPlPNS_8ae_stateE(ptr noundef, ptr noundef, i1 noundef zeroext, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL39reviseddualsimplex_subprobleminitphase3EPNS_21dualsimplexsubproblemES1_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL40reviseddualsimplex_solvesubproblemprimalEPNS_16dualsimplexstateEPNS_21dualsimplexsubproblemEPNS_19dualsimplexsettingsEPlPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN11alglib_implL26reviseddualsimplex_hasbndlEPNS_21dualsimplexsubproblemElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL30reviseddualsimplex_basissolvetEPNS_16dualsimplexbasisEPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL30reviseddualsimplex_computeantvEPNS_16dualsimplexstateEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { mustprogress nounwind 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 #6 = { 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, !8, i64 7280}
!6 = !{!"_ZTSN11alglib_impl16dualsimplexstateE", !7, i64 0, !7, i64 64, !7, i64 128, !7, i64 192, !8, i64 256, !8, i64 264, !14, i64 272, !14, i64 640, !15, i64 1008, !22, i64 7280, !22, i64 8072, !22, i64 8864, !7, i64 9656, !7, i64 9720, !7, i64 9784, !7, i64 9848, !17, i64 9912, !17, i64 9920, !17, i64 9928, !8, i64 9936, !8, i64 9944, !8, i64 9952, !8, i64 9960, !8, i64 9968, !7, i64 9976, !8, i64 10040, !7, i64 10048, !7, i64 10112, !7, i64 10176, !7, i64 10240, !7, i64 10304, !7, i64 10368, !7, i64 10432, !7, i64 10496, !7, i64 10560, !7, i64 10624, !7, i64 10688, !7, i64 10752, !7, i64 10816, !7, i64 10880}
!7 = !{!"_ZTSN11alglib_impl9ae_vectorE", !8, i64 0, !8, i64 8, !11, i64 16, !12, i64 24, !9, i64 56}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!"_ZTSN11alglib_impl12sparsematrixE", !7, i64 0, !7, i64 64, !7, i64 128, !7, i64 192, !7, i64 256, !8, i64 320, !8, i64 328, !8, i64 336, !8, i64 344, !8, i64 352, !8, i64 360}
!15 = !{!"_ZTSN11alglib_impl16dualsimplexbasisE", !8, i64 0, !8, i64 8, !7, i64 16, !7, i64 80, !7, i64 144, !8, i64 208, !11, i64 216, !8, i64 224, !16, i64 232, !14, i64 312, !14, i64 680, !14, i64 1048, !7, i64 1416, !7, i64 1480, !7, i64 1544, !7, i64 1608, !7, i64 1672, !7, i64 1736, !7, i64 1800, !11, i64 1864, !17, i64 1872, !7, i64 1880, !7, i64 1944, !7, i64 2008, !7, i64 2072, !7, i64 2136, !16, i64 2200, !7, i64 2280, !7, i64 2344, !14, i64 2408, !14, i64 2776, !18, i64 3144, !7, i64 5712, !7, i64 5776, !7, i64 5840, !14, i64 5904}
!16 = !{!"_ZTSN11alglib_impl9ae_matrixE", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !11, i64 32, !12, i64 40, !9, i64 72}
!17 = !{!"double", !9, i64 0}
!18 = !{!"_ZTSN11alglib_impl11sluv2bufferE", !8, i64 0, !14, i64 8, !14, i64 376, !19, i64 744, !19, i64 968, !20, i64 1192, !21, i64 1816, !7, i64 1976, !16, i64 2040, !7, i64 2120, !7, i64 2184, !7, i64 2248, !7, i64 2312, !7, i64 2376, !7, i64 2440, !7, i64 2504}
!19 = !{!"_ZTSN11alglib_impl16sluv2list1matrixE", !8, i64 0, !8, i64 8, !7, i64 16, !7, i64 80, !7, i64 144, !8, i64 208, !8, i64 216}
!20 = !{!"_ZTSN11alglib_impl16sluv2sparsetrailE", !8, i64 0, !8, i64 8, !7, i64 16, !8, i64 80, !8, i64 88, !8, i64 96, !7, i64 104, !7, i64 168, !7, i64 232, !7, i64 296, !7, i64 360, !7, i64 424, !7, i64 488, !8, i64 552, !7, i64 560}
!21 = !{!"_ZTSN11alglib_impl15sluv2densetrailE", !8, i64 0, !8, i64 8, !16, i64 16, !7, i64 96}
!22 = !{!"_ZTSN11alglib_impl21dualsimplexsubproblemE", !8, i64 0, !8, i64 8, !7, i64 16, !7, i64 80, !7, i64 144, !7, i64 208, !7, i64 272, !7, i64 336, !8, i64 400, !7, i64 408, !7, i64 472, !7, i64 536, !7, i64 600, !7, i64 664, !7, i64 728}
!23 = !{!6, !8, i64 7288}
!24 = !{!6, !17, i64 9912}
!25 = !{!6, !8, i64 9936}
!26 = !{!9, !9, i64 0}
!27 = !{!8, !8, i64 0}
!28 = !{!17, !17, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.unroll.disable"}
!33 = distinct !{!33, !30}
!34 = distinct !{!34, !30}
!35 = !{!36, !17, i64 8}
!36 = !{!"_ZTSN11alglib_impl19dualsimplexsettingsE", !17, i64 0, !17, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48}
!37 = distinct !{!37, !30}
!38 = !{!6, !8, i64 7680}
!39 = distinct !{!39, !30}
!40 = distinct !{!40, !32}
!41 = !{!6, !8, i64 9264}
!42 = distinct !{!42, !30}
!43 = distinct !{!43, !30}
!44 = distinct !{!44, !32}
!45 = distinct !{!45, !30}
!46 = !{!6, !8, i64 256}
!47 = distinct !{!47, !30}
!48 = distinct !{!48, !30}
!49 = !{!11, !11, i64 0}
!50 = !{i8 0, i8 2}
!51 = !{}
!52 = distinct !{!52, !30}
!53 = distinct !{!53, !30}
!54 = distinct !{!54, !32}


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