; LLVM IR from ERGO-Code/HiGHS :: src/presolve (HighsPostsolveStack)

; 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"

%class.HighsCDouble = type { double, double }
%"class.__gnu_cxx::__normal_iterator.25" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.presolve::HighsPostsolveStack::SlackColSubstitution" = type { double, i32, i32 }
%struct.HighsSolution = type { i8, i8, %"class.std::vector.20", %"class.std::vector.20", %"class.std::vector.20", %"class.std::vector.20" }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.presolve::HighsPostsolveStack::Nonzero" = type { i32, double }
%struct.HighsBasis = type { i8, i8, i8, i8, i32, i32, %"class.std::__cxx11::basic_string", %"class.std::vector.26", %"class.std::vector.26" }
%"class.std::vector.26" = type { %"struct.std::_Vector_base.27" }
%"struct.std::_Vector_base.27" = type { %"struct.std::_Vector_base<HighsBasisStatus, std::allocator<HighsBasisStatus>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsBasisStatus, std::allocator<HighsBasisStatus>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsBasisStatus, std::allocator<HighsBasisStatus>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsBasisStatus, std::allocator<HighsBasisStatus>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.HighsOptionsStruct = type { ptr, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", double, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, %"class.std::__cxx11::basic_string", double, double, double, double, double, double, double, double, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %"class.std::__cxx11::basic_string", i8, i8, i8, i32, i32, %"class.std::__cxx11::basic_string", i8, i8, i8, i32, i8, i8, i32, i32, double, i32, i32, i32, i8, i32, i8, i8, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i8, double, double, double, double, double, double, double, double, double, double, double, i8, i8, i8, i8, i32, double, i8, i8, %"class.std::__cxx11::basic_string", double, i32, i32, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, double, i8, i8, %"class.std::__cxx11::basic_string", i8, i32, %struct.HighsLogOptions }
%struct.HighsLogOptions = type <{ ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::function", ptr, i8, [7 x i8] }>
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }

@.str.51 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [86 x i8], align 1
@__PRETTY_FUNCTION__._ZN8presolve19HighsPostsolveStack20SlackColSubstitution4undoERK12HighsOptionsRKSt6vectorINS0_7NonzeroESaIS6_EER13HighsSolutionR10HighsBasis = external hidden unnamed_addr constant [146 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [60 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12HighsCDoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(16), double noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIN8presolve19HighsPostsolveStack7NonzeroESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIN8presolve19HighsPostsolveStack7NonzeroESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN12HighsCDoublepLEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK12HighsCDoubleplEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK12HighsCDoublecvdEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZmidRK12HighsCDouble(double noundef, ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK12HighsCDoubledvEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i8 @_ZN8presolveL16computeRowStatusEdNS_19HighsPostsolveStack7RowTypeE(double noundef, i32 noundef) #1

declare i32 @printf(ptr noundef, ...) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8presolve19HighsPostsolveStack20SlackColSubstitution4undoERK12HighsOptionsRKSt6vectorINS0_7NonzeroESaIS6_EER13HighsSolutionR10HighsBasis(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(1020) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(104) %3, ptr noundef nonnull align 8 dereferenceable(96) %4) #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca double, align 8
  %14 = alloca %class.HighsCDouble, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.25", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.25", align 8
  %18 = alloca ptr, align 8
  %19 = alloca %class.HighsCDouble, align 8
  %20 = alloca %class.HighsCDouble, align 8
  %21 = alloca %class.HighsCDouble, align 8
  %22 = alloca i32, align 4
  %23 = alloca i8, align 1
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %29 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  store i8 0, ptr %11, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  %30 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::SlackColSubstitution", ptr %29, i32 0, i32 1
  %31 = load i32, ptr %30, align 8, !tbaa !11
  %32 = sext i32 %31 to i64
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.HighsSolution, ptr %33, i32 0, i32 4
  %35 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #6
  %36 = icmp ult i64 %32, %35
  %37 = zext i1 %36 to i8
  store i8 %37, ptr %12, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store double 0.000000e+00, ptr %13, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #6
  call void @_ZN12HighsCDoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(16) %14, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %38, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %39 = load ptr, ptr %15, align 8, !tbaa !5
  %40 = call ptr @_ZNKSt6vectorIN8presolve19HighsPostsolveStack7NonzeroESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #6
  %41 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.25", ptr %16, i32 0, i32 0
  store ptr %40, ptr %41, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %42 = load ptr, ptr %15, align 8, !tbaa !5
  %43 = call ptr @_ZNKSt6vectorIN8presolve19HighsPostsolveStack7NonzeroESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #6
  %44 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.25", ptr %17, i32 0, i32 0
  store ptr %43, ptr %44, align 8
  br label %45

45:                                               ; preds = %75, %5
  %46 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br i1 %46, label %48, label %47

47:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %77

48:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  store ptr %49, ptr %18, align 8, !tbaa !5
  %50 = load ptr, ptr %18, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::Nonzero", ptr %50, i32 0, i32 0
  %52 = load i32, ptr %51, align 8, !tbaa !16
  %53 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::SlackColSubstitution", ptr %29, i32 0, i32 2
  %54 = load i32, ptr %53, align 4, !tbaa !18
  %55 = icmp eq i32 %52, %54
  br i1 %55, label %56, label %60

56:                                               ; preds = %48
  %57 = load ptr, ptr %18, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::Nonzero", ptr %57, i32 0, i32 1
  %59 = load double, ptr %58, align 8, !tbaa !19
  store double %59, ptr %13, align 8, !tbaa !15
  br label %74

60:                                               ; preds = %48
  %61 = load ptr, ptr %18, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::Nonzero", ptr %61, i32 0, i32 1
  %63 = load double, ptr %62, align 8, !tbaa !19
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.HighsSolution, ptr %64, i32 0, i32 2
  %66 = load ptr, ptr %18, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::Nonzero", ptr %66, i32 0, i32 0
  %68 = load i32, ptr %67, align 8, !tbaa !16
  %69 = sext i32 %68 to i64
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %69) #6
  %71 = load double, ptr %70, align 8, !tbaa !15
  %72 = fmul double %63, %71
  %73 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN12HighsCDoublepLEd(ptr noundef nonnull align 8 dereferenceable(16) %14, double noundef %72)
  br label %74

74:                                               ; preds = %60, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %75

75:                                               ; preds = %74
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br label %45

77:                                               ; preds = %47
  %78 = load double, ptr %13, align 8, !tbaa !15
  %79 = fcmp une double %78, 0.000000e+00
  br i1 %79, label %80, label %81

80:                                               ; preds = %77
  br label %83

81:                                               ; preds = %77
  call void @__assert_fail(ptr noundef @.str.51, ptr noundef @.str.52, i32 noundef 1372, ptr noundef @__PRETTY_FUNCTION__._ZN8presolve19HighsPostsolveStack20SlackColSubstitution4undoERK12HighsOptionsRKSt6vectorINS0_7NonzeroESaIS6_EER13HighsSolutionR10HighsBasis) #7
  unreachable

82:                                               ; No predecessors!
  br label %83

83:                                               ; preds = %82, %80
  %84 = load i8, ptr %12, align 1, !tbaa !9, !range !20, !noundef !21
  %85 = trunc i8 %84 to i1
  br i1 %85, label %86, label %108

86:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  %87 = load double, ptr %13, align 8, !tbaa !15
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.HighsSolution, ptr %88, i32 0, i32 2
  %90 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::SlackColSubstitution", ptr %29, i32 0, i32 2
  %91 = load i32, ptr %90, align 4, !tbaa !18
  %92 = sext i32 %91 to i64
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef %92) #6
  %94 = load double, ptr %93, align 8, !tbaa !15
  %95 = fmul double %87, %94
  %96 = call { double, double } @_ZNK12HighsCDoubleplEd(ptr noundef nonnull align 8 dereferenceable(16) %14, double noundef %95)
  %97 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %98 = extractvalue { double, double } %96, 0
  store double %98, ptr %97, align 8
  %99 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %100 = extractvalue { double, double } %96, 1
  store double %100, ptr %99, align 8
  %101 = call noundef double @_ZNK12HighsCDoublecvdEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.HighsSolution, ptr %102, i32 0, i32 4
  %104 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::SlackColSubstitution", ptr %29, i32 0, i32 1
  %105 = load i32, ptr %104, align 8, !tbaa !11
  %106 = sext i32 %105 to i64
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %103, i64 noundef %106) #6
  store double %101, ptr %107, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  br label %108

108:                                              ; preds = %86, %83
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  %109 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::SlackColSubstitution", ptr %29, i32 0, i32 0
  %110 = load double, ptr %109, align 8, !tbaa !22
  %111 = call { double, double } @_ZmidRK12HighsCDouble(double noundef %110, ptr noundef nonnull align 8 dereferenceable(16) %14)
  %112 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %113 = extractvalue { double, double } %111, 0
  store double %113, ptr %112, align 8
  %114 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %115 = extractvalue { double, double } %111, 1
  store double %115, ptr %114, align 8
  %116 = load double, ptr %13, align 8, !tbaa !15
  %117 = call { double, double } @_ZNK12HighsCDoubledvEd(ptr noundef nonnull align 8 dereferenceable(16) %21, double noundef %116)
  %118 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %119 = extractvalue { double, double } %117, 0
  store double %119, ptr %118, align 8
  %120 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %121 = extractvalue { double, double } %117, 1
  store double %121, ptr %120, align 8
  %122 = call noundef double @_ZNK12HighsCDoublecvdEv(ptr noundef nonnull align 8 dereferenceable(16) %20)
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.HighsSolution, ptr %123, i32 0, i32 2
  %125 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::SlackColSubstitution", ptr %29, i32 0, i32 2
  %126 = load i32, ptr %125, align 4, !tbaa !18
  %127 = sext i32 %126 to i64
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %127) #6
  store double %122, ptr %128, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  %129 = load ptr, ptr %9, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.HighsSolution, ptr %129, i32 0, i32 1
  %131 = load i8, ptr %130, align 1, !tbaa !23, !range !20, !noundef !21
  %132 = trunc i8 %131 to i1
  br i1 %132, label %134, label %133

133:                                              ; preds = %108
  store i32 1, ptr %22, align 4
  br label %333

134:                                              ; preds = %108
  %135 = load i8, ptr %12, align 1, !tbaa !9, !range !20, !noundef !21
  %136 = trunc i8 %135 to i1
  br i1 %136, label %137, label %154

137:                                              ; preds = %134
  %138 = load ptr, ptr %9, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.HighsSolution, ptr %138, i32 0, i32 5
  %140 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::SlackColSubstitution", ptr %29, i32 0, i32 1
  %141 = load i32, ptr %140, align 8, !tbaa !11
  %142 = sext i32 %141 to i64
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %139, i64 noundef %142) #6
  %144 = load double, ptr %143, align 8, !tbaa !15
  %145 = fneg double %144
  %146 = load double, ptr %13, align 8, !tbaa !15
  %147 = fdiv double %145, %146
  %148 = load ptr, ptr %9, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.HighsSolution, ptr %148, i32 0, i32 3
  %150 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::SlackColSubstitution", ptr %29, i32 0, i32 2
  %151 = load i32, ptr %150, align 4, !tbaa !18
  %152 = sext i32 %151 to i64
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %149, i64 noundef %152) #6
  store double %147, ptr %153, align 8, !tbaa !15
  br label %154

154:                                              ; preds = %137, %134
  %155 = load ptr, ptr %10, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.HighsBasis, ptr %155, i32 0, i32 0
  %157 = load i8, ptr %156, align 8, !tbaa !29, !range !20, !noundef !21
  %158 = trunc i8 %157 to i1
  br i1 %158, label %160, label %159

159:                                              ; preds = %154
  store i32 1, ptr %22, align 4
  br label %333

160:                                              ; preds = %154
  %161 = load i8, ptr %12, align 1, !tbaa !9, !range !20, !noundef !21
  %162 = trunc i8 %161 to i1
  br i1 %162, label %163, label %325

163:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #6
  %164 = load ptr, ptr %10, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.HighsBasis, ptr %164, i32 0, i32 8
  %166 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::SlackColSubstitution", ptr %29, i32 0, i32 1
  %167 = load i32, ptr %166, align 8, !tbaa !11
  %168 = sext i32 %167 to i64
  %169 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %165, i64 noundef %168) #6
  %170 = load i8, ptr %169, align 1, !tbaa !38
  store i8 %170, ptr %23, align 1, !tbaa !38
  %171 = load ptr, ptr %10, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.HighsBasis, ptr %171, i32 0, i32 8
  %173 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::SlackColSubstitution", ptr %29, i32 0, i32 1
  %174 = load i32, ptr %173, align 8, !tbaa !11
  %175 = sext i32 %174 to i64
  %176 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %172, i64 noundef %175) #6
  %177 = load i8, ptr %176, align 1, !tbaa !38
  %178 = icmp eq i8 %177, 1
  br i1 %178, label %179, label %200

179:                                              ; preds = %163
  %180 = load ptr, ptr %10, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.HighsBasis, ptr %180, i32 0, i32 7
  %182 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::SlackColSubstitution", ptr %29, i32 0, i32 2
  %183 = load i32, ptr %182, align 4, !tbaa !18
  %184 = sext i32 %183 to i64
  %185 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %181, i64 noundef %184) #6
  store i8 1, ptr %185, align 1, !tbaa !38
  %186 = load ptr, ptr %9, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.HighsSolution, ptr %186, i32 0, i32 5
  %188 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::SlackColSubstitution", ptr %29, i32 0, i32 1
  %189 = load i32, ptr %188, align 8, !tbaa !11
  %190 = sext i32 %189 to i64
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %187, i64 noundef %190) #6
  %192 = load double, ptr %191, align 8, !tbaa !15
  %193 = call noundef zeroext i8 @_ZN8presolveL16computeRowStatusEdNS_19HighsPostsolveStack7RowTypeE(double noundef %192, i32 noundef 2)
  %194 = load ptr, ptr %10, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.HighsBasis, ptr %194, i32 0, i32 8
  %196 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::SlackColSubstitution", ptr %29, i32 0, i32 1
  %197 = load i32, ptr %196, align 8, !tbaa !11
  %198 = sext i32 %197 to i64
  %199 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %195, i64 noundef %198) #6
  store i8 %193, ptr %199, align 1, !tbaa !38
  br label %232

200:                                              ; preds = %163
  %201 = load ptr, ptr %10, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.HighsBasis, ptr %201, i32 0, i32 8
  %203 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::SlackColSubstitution", ptr %29, i32 0, i32 1
  %204 = load i32, ptr %203, align 8, !tbaa !11
  %205 = sext i32 %204 to i64
  %206 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %202, i64 noundef %205) #6
  %207 = load i8, ptr %206, align 1, !tbaa !38
  %208 = icmp eq i8 %207, 0
  br i1 %208, label %209, label %220

209:                                              ; preds = %200
  %210 = load double, ptr %13, align 8, !tbaa !15
  %211 = fcmp ogt double %210, 0.000000e+00
  %212 = zext i1 %211 to i64
  %213 = select i1 %211, i8 2, i8 0
  %214 = load ptr, ptr %10, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.HighsBasis, ptr %214, i32 0, i32 7
  %216 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::SlackColSubstitution", ptr %29, i32 0, i32 2
  %217 = load i32, ptr %216, align 4, !tbaa !18
  %218 = sext i32 %217 to i64
  %219 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %215, i64 noundef %218) #6
  store i8 %213, ptr %219, align 1, !tbaa !38
  br label %231

220:                                              ; preds = %200
  %221 = load double, ptr %13, align 8, !tbaa !15
  %222 = fcmp ogt double %221, 0.000000e+00
  %223 = zext i1 %222 to i64
  %224 = select i1 %222, i8 0, i8 2
  %225 = load ptr, ptr %10, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.HighsBasis, ptr %225, i32 0, i32 7
  %227 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::SlackColSubstitution", ptr %29, i32 0, i32 2
  %228 = load i32, ptr %227, align 4, !tbaa !18
  %229 = sext i32 %228 to i64
  %230 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %226, i64 noundef %229) #6
  store i8 %224, ptr %230, align 1, !tbaa !38
  br label %231

231:                                              ; preds = %220, %209
  br label %232

232:                                              ; preds = %231, %179
  %233 = load i8, ptr %11, align 1, !tbaa !9, !range !20, !noundef !21
  %234 = trunc i8 %233 to i1
  br i1 %234, label %235, label %272

235:                                              ; preds = %232
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #6
  %236 = load i8, ptr %23, align 1, !tbaa !38
  call void @_Z23utilBasisStatusToStringB5cxx1116HighsBasisStatus(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %24, i8 noundef zeroext %236)
  %237 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #6
  %238 = load ptr, ptr %10, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.HighsBasis, ptr %238, i32 0, i32 8
  %240 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::SlackColSubstitution", ptr %29, i32 0, i32 1
  %241 = load i32, ptr %240, align 8, !tbaa !11
  %242 = sext i32 %241 to i64
  %243 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %239, i64 noundef %242) #6
  %244 = load i8, ptr %243, align 1, !tbaa !38
  invoke void @_Z23utilBasisStatusToStringB5cxx1116HighsBasisStatus(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %25, i8 noundef zeroext %244)
          to label %245 unwind label %258

245:                                              ; preds = %235
  %246 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #6
  %247 = load ptr, ptr %10, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.HighsBasis, ptr %247, i32 0, i32 7
  %249 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::SlackColSubstitution", ptr %29, i32 0, i32 2
  %250 = load i32, ptr %249, align 4, !tbaa !18
  %251 = sext i32 %250 to i64
  %252 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %248, i64 noundef %251) #6
  %253 = load i8, ptr %252, align 1, !tbaa !38
  invoke void @_Z23utilBasisStatusToStringB5cxx1116HighsBasisStatus(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %28, i8 noundef zeroext %253)
          to label %254 unwind label %262

254:                                              ; preds = %245
  %255 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %28) #6
  %256 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.66, ptr noundef %237, ptr noundef %246, ptr noundef %255)
          to label %257 unwind label %266

257:                                              ; preds = %254
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #6
  br label %272

258:                                              ; preds = %235
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %26, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %27, align 4
  br label %271

262:                                              ; preds = %245
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %26, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %27, align 4
  br label %270

266:                                              ; preds = %254
  %267 = landingpad { ptr, i32 }
          cleanup
  %268 = extractvalue { ptr, i32 } %267, 0
  store ptr %268, ptr %26, align 8
  %269 = extractvalue { ptr, i32 } %267, 1
  store i32 %269, ptr %27, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #6
  br label %270

270:                                              ; preds = %266, %262
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  br label %271

271:                                              ; preds = %270, %258
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  br label %336

272:                                              ; preds = %257, %232
  %273 = load ptr, ptr %10, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.HighsBasis, ptr %273, i32 0, i32 7
  %275 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::SlackColSubstitution", ptr %29, i32 0, i32 2
  %276 = load i32, ptr %275, align 4, !tbaa !18
  %277 = sext i32 %276 to i64
  %278 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %274, i64 noundef %277) #6
  %279 = load i8, ptr %278, align 1, !tbaa !38
  %280 = icmp eq i8 %279, 0
  br i1 %280, label %281, label %298

281:                                              ; preds = %272
  %282 = load ptr, ptr %9, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.HighsSolution, ptr %282, i32 0, i32 3
  %284 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::SlackColSubstitution", ptr %29, i32 0, i32 2
  %285 = load i32, ptr %284, align 4, !tbaa !18
  %286 = sext i32 %285 to i64
  %287 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %283, i64 noundef %286) #6
  %288 = load double, ptr %287, align 8, !tbaa !15
  %289 = load ptr, ptr %7, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.HighsOptionsStruct, ptr %289, i32 0, i32 15
  %291 = load double, ptr %290, align 8, !tbaa !40
  %292 = fneg double %291
  %293 = fcmp ogt double %288, %292
  br i1 %293, label %294, label %295

294:                                              ; preds = %281
  br label %297

295:                                              ; preds = %281
  call void @__assert_fail(ptr noundef @.str.67, ptr noundef @.str.52, i32 noundef 1411, ptr noundef @__PRETTY_FUNCTION__._ZN8presolve19HighsPostsolveStack20SlackColSubstitution4undoERK12HighsOptionsRKSt6vectorINS0_7NonzeroESaIS6_EER13HighsSolutionR10HighsBasis) #7
  unreachable

296:                                              ; No predecessors!
  br label %297

297:                                              ; preds = %296, %294
  br label %324

298:                                              ; preds = %272
  %299 = load ptr, ptr %10, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.HighsBasis, ptr %299, i32 0, i32 7
  %301 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::SlackColSubstitution", ptr %29, i32 0, i32 2
  %302 = load i32, ptr %301, align 4, !tbaa !18
  %303 = sext i32 %302 to i64
  %304 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %300, i64 noundef %303) #6
  %305 = load i8, ptr %304, align 1, !tbaa !38
  %306 = icmp eq i8 %305, 2
  br i1 %306, label %307, label %323

307:                                              ; preds = %298
  %308 = load ptr, ptr %9, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.HighsSolution, ptr %308, i32 0, i32 3
  %310 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::SlackColSubstitution", ptr %29, i32 0, i32 2
  %311 = load i32, ptr %310, align 4, !tbaa !18
  %312 = sext i32 %311 to i64
  %313 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %309, i64 noundef %312) #6
  %314 = load double, ptr %313, align 8, !tbaa !15
  %315 = load ptr, ptr %7, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.HighsOptionsStruct, ptr %315, i32 0, i32 15
  %317 = load double, ptr %316, align 8, !tbaa !40
  %318 = fcmp olt double %314, %317
  br i1 %318, label %319, label %320

319:                                              ; preds = %307
  br label %322

320:                                              ; preds = %307
  call void @__assert_fail(ptr noundef @.str.68, ptr noundef @.str.52, i32 noundef 1413, ptr noundef @__PRETTY_FUNCTION__._ZN8presolve19HighsPostsolveStack20SlackColSubstitution4undoERK12HighsOptionsRKSt6vectorINS0_7NonzeroESaIS6_EER13HighsSolutionR10HighsBasis) #7
  unreachable

321:                                              ; No predecessors!
  br label %322

322:                                              ; preds = %321, %319
  br label %323

323:                                              ; preds = %322, %298
  br label %324

324:                                              ; preds = %323, %297
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  br label %332

325:                                              ; preds = %160
  %326 = load ptr, ptr %10, align 8, !tbaa !5
  %327 = getelementptr inbounds %struct.HighsBasis, ptr %326, i32 0, i32 7
  %328 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::SlackColSubstitution", ptr %29, i32 0, i32 2
  %329 = load i32, ptr %328, align 4, !tbaa !18
  %330 = sext i32 %329 to i64
  %331 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %327, i64 noundef %330) #6
  store i8 4, ptr %331, align 1, !tbaa !38
  br label %332

332:                                              ; preds = %325, %324
  store i32 0, ptr %22, align 4
  br label %333

333:                                              ; preds = %332, %159, %133
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  %334 = load i32, ptr %22, align 4
  switch i32 %334, label %341 [
    i32 0, label %335
    i32 1, label %335
  ]

335:                                              ; preds = %333, %333
  ret void

336:                                              ; preds = %271
  %337 = load ptr, ptr %26, align 8
  %338 = load i32, ptr %27, align 4
  %339 = insertvalue { ptr, i32 } poison, ptr %337, 0
  %340 = insertvalue { ptr, i32 } %339, i32 %338, 1
  resume { ptr, i32 } %340

341:                                              ; preds = %333
  unreachable
}

declare void @_Z23utilBasisStatusToStringB5cxx1116HighsBasisStatus(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, i8 noundef zeroext) #5

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !14, i64 8}
!12 = !{!"_ZTSN8presolve19HighsPostsolveStack20SlackColSubstitutionE", !13, i64 0, !14, i64 8, !14, i64 12}
!13 = !{!"double", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!13, !13, i64 0}
!16 = !{!17, !14, i64 0}
!17 = !{!"_ZTSN8presolve19HighsPostsolveStack7NonzeroE", !14, i64 0, !13, i64 8}
!18 = !{!12, !14, i64 12}
!19 = !{!17, !13, i64 8}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!12, !13, i64 0}
!23 = !{!24, !10, i64 1}
!24 = !{!"_ZTS13HighsSolution", !10, i64 0, !10, i64 1, !25, i64 8, !25, i64 32, !25, i64 56, !25, i64 80}
!25 = !{!"_ZTSSt6vectorIdSaIdEE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!30, !10, i64 0}
!30 = !{!"_ZTS10HighsBasis", !10, i64 0, !10, i64 1, !10, i64 2, !10, i64 3, !14, i64 4, !14, i64 8, !31, i64 16, !34, i64 48, !34, i64 72}
!31 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !32, i64 0, !33, i64 8, !7, i64 16}
!32 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!33 = !{!"long", !7, i64 0}
!34 = !{!"_ZTSSt6vectorI16HighsBasisStatusSaIS0_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseI16HighsBasisStatusSaIS0_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseI16HighsBasisStatusSaIS0_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseI16HighsBasisStatusSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!38 = !{!39, !39, i64 0}
!39 = !{!"_ZTS16HighsBasisStatus", !7, i64 0}
!40 = !{!41, !13, i64 288}
!41 = !{!"_ZTS18HighsOptionsStruct", !31, i64 8, !31, i64 40, !31, i64 72, !31, i64 104, !13, i64 136, !31, i64 144, !31, i64 176, !14, i64 208, !31, i64 216, !13, i64 248, !13, i64 256, !13, i64 264, !13, i64 272, !13, i64 280, !13, i64 288, !13, i64 296, !13, i64 304, !13, i64 312, !13, i64 320, !13, i64 328, !14, i64 336, !14, i64 340, !14, i64 344, !14, i64 348, !14, i64 352, !14, i64 356, !14, i64 360, !14, i64 364, !14, i64 368, !14, i64 372, !14, i64 376, !14, i64 380, !14, i64 384, !14, i64 388, !31, i64 392, !10, i64 424, !10, i64 425, !10, i64 426, !14, i64 428, !14, i64 432, !31, i64 440, !10, i64 472, !10, i64 473, !10, i64 474, !14, i64 476, !10, i64 480, !10, i64 481, !14, i64 484, !14, i64 488, !13, i64 496, !14, i64 504, !14, i64 508, !14, i64 512, !10, i64 516, !14, i64 520, !10, i64 524, !10, i64 525, !10, i64 526, !10, i64 527, !10, i64 528, !10, i64 529, !10, i64 530, !14, i64 532, !14, i64 536, !14, i64 540, !14, i64 544, !14, i64 548, !14, i64 552, !14, i64 556, !14, i64 560, !14, i64 564, !14, i64 568, !14, i64 572, !14, i64 576, !14, i64 580, !14, i64 584, !14, i64 588, !10, i64 592, !10, i64 593, !10, i64 594, !10, i64 595, !13, i64 600, !13, i64 608, !13, i64 616, !13, i64 624, !13, i64 632, !13, i64 640, !13, i64 648, !13, i64 656, !13, i64 664, !13, i64 672, !13, i64 680, !10, i64 688, !10, i64 689, !10, i64 690, !10, i64 691, !14, i64 692, !13, i64 696, !10, i64 704, !10, i64 705, !31, i64 712, !13, i64 744, !14, i64 752, !14, i64 756, !10, i64 760, !10, i64 761, !10, i64 762, !10, i64 763, !14, i64 764, !14, i64 768, !14, i64 772, !14, i64 776, !14, i64 780, !14, i64 784, !14, i64 788, !14, i64 792, !14, i64 796, !14, i64 800, !14, i64 804, !13, i64 808, !13, i64 816, !13, i64 824, !13, i64 832, !13, i64 840, !10, i64 848, !10, i64 849, !31, i64 856, !10, i64 888, !14, i64 892, !42, i64 896}
!42 = !{!"_ZTS15HighsLogOptions", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !43, i64 48, !6, i64 80, !10, i64 88}
!43 = !{!"_ZTSSt8functionIFviRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK20HighsCallbackDataOutP19HighsCallbackDataInPvEE", !44, i64 0, !6, i64 24}
!44 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}


; 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"

%class.HighsCDouble = type { double, double }
%"class.__gnu_cxx::__normal_iterator.25" = type { ptr }

@.str.51 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [86 x i8], align 1
@__PRETTY_FUNCTION__._ZN8presolve19HighsPostsolveStack20SlackColSubstitution4undoERK12HighsOptionsRKSt6vectorINS0_7NonzeroESaIS6_EER13HighsSolutionR10HighsBasis = external hidden unnamed_addr constant [146 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [60 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12HighsCDoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(16), double noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIN8presolve19HighsPostsolveStack7NonzeroESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIN8presolve19HighsPostsolveStack7NonzeroESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN12HighsCDoublepLEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK12HighsCDoubleplEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK12HighsCDoublecvdEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZmidRK12HighsCDouble(double noundef, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK12HighsCDoubledvEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i8 @_ZN8presolveL16computeRowStatusEdNS_19HighsPostsolveStack7RowTypeE(double noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8presolve19HighsPostsolveStack20SlackColSubstitution4undoERK12HighsOptionsRKSt6vectorINS0_7NonzeroESaIS6_EER13HighsSolutionR10HighsBasis(ptr nocapture noundef nonnull readonly align 8 dereferenceable(16) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(1020) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(104) %3, ptr noundef nonnull align 8 dereferenceable(96) %4) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %class.HighsCDouble, align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.25", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.25", align 8
  %9 = alloca %class.HighsCDouble, align 8
  %10 = alloca %class.HighsCDouble, align 8
  %11 = alloca %class.HighsCDouble, align 8
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  %13 = load i32, ptr %12, align 8, !tbaa !5
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds i8, ptr %3, i64 56
  %16 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  %17 = icmp ugt i64 %16, %14
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  call void @_ZN12HighsCDoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(16) %6, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %18 = call ptr @_ZNKSt6vectorIN8presolve19HighsPostsolveStack7NonzeroESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  store ptr %18, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %19 = call ptr @_ZNKSt6vectorIN8presolve19HighsPostsolveStack7NonzeroESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  store ptr %19, ptr %8, align 8
  %20 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br i1 %20, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %40

.lr.ph:                                           ; preds = %5
  %21 = getelementptr inbounds i8, ptr %0, i64 12
  %22 = getelementptr inbounds i8, ptr %3, i64 8
  br label %24

._crit_edge:                                      ; preds = %37
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  %23 = fcmp une double %.1, 0.000000e+00
  br i1 %23, label %41, label %40

24:                                               ; preds = %.lr.ph, %37
  %.04750 = phi double [ 0.000000e+00, %.lr.ph ], [ %.1, %37 ]
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %26 = load i32, ptr %25, align 8, !tbaa !11
  %27 = load i32, ptr %21, align 4, !tbaa !13
  %28 = icmp eq i32 %26, %27
  %29 = getelementptr inbounds i8, ptr %25, i64 8
  %30 = load double, ptr %29, align 8, !tbaa !14
  br i1 %28, label %37, label %31

31:                                               ; preds = %24
  %32 = sext i32 %26 to i64
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %32) #5
  %34 = load double, ptr %33, align 8, !tbaa !15
  %35 = fmul double %30, %34
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN12HighsCDoublepLEd(ptr noundef nonnull align 8 dereferenceable(16) %6, double noundef %35)
  br label %37

37:                                               ; preds = %24, %31
  %.1 = phi double [ %.04750, %31 ], [ %30, %24 ]
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %39 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br i1 %39, label %24, label %._crit_edge

40:                                               ; preds = %._crit_edge.thread, %._crit_edge
  call void @__assert_fail(ptr noundef nonnull @.str.51, ptr noundef nonnull @.str.52, i32 noundef 1372, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8presolve19HighsPostsolveStack20SlackColSubstitution4undoERK12HighsOptionsRKSt6vectorINS0_7NonzeroESaIS6_EER13HighsSolutionR10HighsBasis) #6
  unreachable

41:                                               ; preds = %._crit_edge
  br i1 %17, label %42, label %58

42:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #5
  %43 = getelementptr inbounds i8, ptr %3, i64 8
  %44 = getelementptr inbounds i8, ptr %0, i64 12
  %45 = load i32, ptr %44, align 4, !tbaa !13
  %46 = sext i32 %45 to i64
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %46) #5
  %48 = load double, ptr %47, align 8, !tbaa !15
  %49 = fmul double %.1, %48
  %50 = call { double, double } @_ZNK12HighsCDoubleplEd(ptr noundef nonnull align 8 dereferenceable(16) %6, double noundef %49)
  %51 = extractvalue { double, double } %50, 0
  store double %51, ptr %9, align 8
  %52 = getelementptr inbounds i8, ptr %9, i64 8
  %53 = extractvalue { double, double } %50, 1
  store double %53, ptr %52, align 8
  %54 = call noundef double @_ZNK12HighsCDoublecvdEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
  %55 = load i32, ptr %12, align 8, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %56) #5
  store double %54, ptr %57, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  br label %58

58:                                               ; preds = %42, %41
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #5
  %59 = load double, ptr %0, align 8, !tbaa !16
  %60 = call { double, double } @_ZmidRK12HighsCDouble(double noundef %59, ptr noundef nonnull align 8 dereferenceable(16) %6)
  %61 = extractvalue { double, double } %60, 0
  store double %61, ptr %11, align 8
  %62 = getelementptr inbounds i8, ptr %11, i64 8
  %63 = extractvalue { double, double } %60, 1
  store double %63, ptr %62, align 8
  %64 = call { double, double } @_ZNK12HighsCDoubledvEd(ptr noundef nonnull align 8 dereferenceable(16) %11, double noundef %.1)
  %65 = extractvalue { double, double } %64, 0
  store double %65, ptr %10, align 8
  %66 = getelementptr inbounds i8, ptr %10, i64 8
  %67 = extractvalue { double, double } %64, 1
  store double %67, ptr %66, align 8
  %68 = call noundef double @_ZNK12HighsCDoublecvdEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
  %69 = getelementptr inbounds i8, ptr %3, i64 8
  %70 = getelementptr inbounds i8, ptr %0, i64 12
  %71 = load i32, ptr %70, align 4, !tbaa !13
  %72 = sext i32 %71 to i64
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef %72) #5
  store double %68, ptr %73, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  %74 = getelementptr inbounds i8, ptr %3, i64 1
  %75 = load i8, ptr %74, align 1, !tbaa !17, !range !25, !noundef !26
  %76 = trunc nuw i8 %75 to i1
  br i1 %76, label %77, label %166

77:                                               ; preds = %58
  br i1 %17, label %78, label %.thread

78:                                               ; preds = %77
  %79 = getelementptr inbounds i8, ptr %3, i64 80
  %80 = load i32, ptr %12, align 8, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %81) #5
  %83 = load double, ptr %82, align 8, !tbaa !15
  %84 = fneg double %83
  %85 = fdiv double %84, %.1
  %86 = getelementptr inbounds i8, ptr %3, i64 32
  %87 = load i32, ptr %70, align 4, !tbaa !13
  %88 = sext i32 %87 to i64
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %88) #5
  store double %85, ptr %89, align 8, !tbaa !15
  %90 = load i8, ptr %4, align 8, !tbaa !27, !range !25, !noundef !26
  %91 = trunc nuw i8 %90 to i1
  br i1 %91, label %94, label %166

.thread:                                          ; preds = %77
  %92 = load i8, ptr %4, align 8, !tbaa !27, !range !25, !noundef !26
  %93 = trunc nuw i8 %92 to i1
  br i1 %93, label %.thread49, label %166

94:                                               ; preds = %78
  %95 = getelementptr inbounds i8, ptr %4, i64 72
  %96 = load i32, ptr %12, align 8, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %97) #5
  %99 = load i32, ptr %12, align 8, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %100) #5
  %102 = load i8, ptr %101, align 1, !tbaa !36
  %103 = icmp eq i8 %102, 1
  br i1 %103, label %104, label %117

104:                                              ; preds = %94
  %105 = getelementptr inbounds i8, ptr %4, i64 48
  %106 = load i32, ptr %70, align 4, !tbaa !13
  %107 = sext i32 %106 to i64
  %108 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %105, i64 noundef %107) #5
  store i8 1, ptr %108, align 1, !tbaa !36
  %109 = load i32, ptr %12, align 8, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %110) #5
  %112 = load double, ptr %111, align 8, !tbaa !15
  %113 = call noundef zeroext i8 @_ZN8presolveL16computeRowStatusEdNS_19HighsPostsolveStack7RowTypeE(double noundef %112, i32 noundef 2)
  %114 = load i32, ptr %12, align 8, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %115) #5
  store i8 %113, ptr %116, align 1, !tbaa !36
  br label %132

117:                                              ; preds = %94
  %118 = load i32, ptr %12, align 8, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %119) #5
  %121 = load i8, ptr %120, align 1, !tbaa !36
  %122 = icmp eq i8 %121, 0
  %123 = fcmp ogt double %.1, 0.000000e+00
  %124 = getelementptr inbounds i8, ptr %4, i64 48
  %125 = load i32, ptr %70, align 4, !tbaa !13
  %126 = sext i32 %125 to i64
  %127 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %126) #5
  br i1 %122, label %128, label %130

128:                                              ; preds = %117
  %129 = select i1 %123, i8 2, i8 0
  store i8 %129, ptr %127, align 1, !tbaa !36
  br label %132

130:                                              ; preds = %117
  %131 = select i1 %123, i8 0, i8 2
  store i8 %131, ptr %127, align 1, !tbaa !36
  br label %132

132:                                              ; preds = %104, %130, %128
  %133 = getelementptr inbounds i8, ptr %4, i64 48
  %134 = load i32, ptr %70, align 4, !tbaa !13
  %135 = sext i32 %134 to i64
  %136 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %133, i64 noundef %135) #5
  %137 = load i8, ptr %136, align 1, !tbaa !36
  %138 = icmp eq i8 %137, 0
  %139 = load i32, ptr %70, align 4, !tbaa !13
  %140 = sext i32 %139 to i64
  br i1 %138, label %141, label %149

141:                                              ; preds = %132
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %140) #5
  %143 = load double, ptr %142, align 8, !tbaa !15
  %144 = getelementptr inbounds i8, ptr %1, i64 288
  %145 = load double, ptr %144, align 8, !tbaa !38
  %146 = fneg double %145
  %147 = fcmp ogt double %143, %146
  br i1 %147, label %166, label %148

148:                                              ; preds = %141
  call void @__assert_fail(ptr noundef nonnull @.str.67, ptr noundef nonnull @.str.52, i32 noundef 1411, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8presolve19HighsPostsolveStack20SlackColSubstitution4undoERK12HighsOptionsRKSt6vectorINS0_7NonzeroESaIS6_EER13HighsSolutionR10HighsBasis) #6
  unreachable

149:                                              ; preds = %132
  %150 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %133, i64 noundef %140) #5
  %151 = load i8, ptr %150, align 1, !tbaa !36
  %152 = icmp eq i8 %151, 2
  br i1 %152, label %153, label %166

153:                                              ; preds = %149
  %154 = load i32, ptr %70, align 4, !tbaa !13
  %155 = sext i32 %154 to i64
  %156 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %155) #5
  %157 = load double, ptr %156, align 8, !tbaa !15
  %158 = getelementptr inbounds i8, ptr %1, i64 288
  %159 = load double, ptr %158, align 8, !tbaa !38
  %160 = fcmp olt double %157, %159
  br i1 %160, label %166, label %161

161:                                              ; preds = %153
  call void @__assert_fail(ptr noundef nonnull @.str.68, ptr noundef nonnull @.str.52, i32 noundef 1413, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8presolve19HighsPostsolveStack20SlackColSubstitution4undoERK12HighsOptionsRKSt6vectorINS0_7NonzeroESaIS6_EER13HighsSolutionR10HighsBasis) #6
  unreachable

.thread49:                                        ; preds = %.thread
  %162 = getelementptr inbounds i8, ptr %4, i64 48
  %163 = load i32, ptr %70, align 4, !tbaa !13
  %164 = sext i32 %163 to i64
  %165 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %162, i64 noundef %164) #5
  store i8 4, ptr %165, align 1, !tbaa !36
  br label %166

166:                                              ; preds = %.thread, %.thread49, %149, %153, %141, %78, %58
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { inlinehint 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind "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 = { nounwind }
attributes #6 = { noreturn 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, !10, i64 8}
!6 = !{!"_ZTSN8presolve19HighsPostsolveStack20SlackColSubstitutionE", !7, i64 0, !10, i64 8, !10, i64 12}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN8presolve19HighsPostsolveStack7NonzeroE", !10, i64 0, !7, i64 8}
!13 = !{!6, !10, i64 12}
!14 = !{!12, !7, i64 8}
!15 = !{!7, !7, i64 0}
!16 = !{!6, !7, i64 0}
!17 = !{!18, !19, i64 1}
!18 = !{!"_ZTS13HighsSolution", !19, i64 0, !19, i64 1, !20, i64 8, !20, i64 32, !20, i64 56, !20, i64 80}
!19 = !{!"bool", !8, i64 0}
!20 = !{!"_ZTSSt6vectorIdSaIdEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !24, i64 0, !24, i64 8, !24, i64 16}
!24 = !{!"any pointer", !8, i64 0}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!28, !19, i64 0}
!28 = !{!"_ZTS10HighsBasis", !19, i64 0, !19, i64 1, !19, i64 2, !19, i64 3, !10, i64 4, !10, i64 8, !29, i64 16, !32, i64 48, !32, i64 72}
!29 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !30, i64 0, !31, i64 8, !8, i64 16}
!30 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !24, i64 0}
!31 = !{!"long", !8, i64 0}
!32 = !{!"_ZTSSt6vectorI16HighsBasisStatusSaIS0_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseI16HighsBasisStatusSaIS0_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseI16HighsBasisStatusSaIS0_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseI16HighsBasisStatusSaIS0_EE17_Vector_impl_dataE", !24, i64 0, !24, i64 8, !24, i64 16}
!36 = !{!37, !37, i64 0}
!37 = !{!"_ZTS16HighsBasisStatus", !8, i64 0}
!38 = !{!39, !7, i64 288}
!39 = !{!"_ZTS18HighsOptionsStruct", !29, i64 8, !29, i64 40, !29, i64 72, !29, i64 104, !7, i64 136, !29, i64 144, !29, i64 176, !10, i64 208, !29, i64 216, !7, i64 248, !7, i64 256, !7, i64 264, !7, i64 272, !7, i64 280, !7, i64 288, !7, i64 296, !7, i64 304, !7, i64 312, !7, i64 320, !7, i64 328, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !10, i64 364, !10, i64 368, !10, i64 372, !10, i64 376, !10, i64 380, !10, i64 384, !10, i64 388, !29, i64 392, !19, i64 424, !19, i64 425, !19, i64 426, !10, i64 428, !10, i64 432, !29, i64 440, !19, i64 472, !19, i64 473, !19, i64 474, !10, i64 476, !19, i64 480, !19, i64 481, !10, i64 484, !10, i64 488, !7, i64 496, !10, i64 504, !10, i64 508, !10, i64 512, !19, i64 516, !10, i64 520, !19, i64 524, !19, i64 525, !19, i64 526, !19, i64 527, !19, i64 528, !19, i64 529, !19, i64 530, !10, i64 532, !10, i64 536, !10, i64 540, !10, i64 544, !10, i64 548, !10, i64 552, !10, i64 556, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !10, i64 588, !19, i64 592, !19, i64 593, !19, i64 594, !19, i64 595, !7, i64 600, !7, i64 608, !7, i64 616, !7, i64 624, !7, i64 632, !7, i64 640, !7, i64 648, !7, i64 656, !7, i64 664, !7, i64 672, !7, i64 680, !19, i64 688, !19, i64 689, !19, i64 690, !19, i64 691, !10, i64 692, !7, i64 696, !19, i64 704, !19, i64 705, !29, i64 712, !7, i64 744, !10, i64 752, !10, i64 756, !19, i64 760, !19, i64 761, !19, i64 762, !19, i64 763, !10, i64 764, !10, i64 768, !10, i64 772, !10, i64 776, !10, i64 780, !10, i64 784, !10, i64 788, !10, i64 792, !10, i64 796, !10, i64 800, !10, i64 804, !7, i64 808, !7, i64 816, !7, i64 824, !7, i64 832, !7, i64 840, !19, i64 848, !19, i64 849, !29, i64 856, !19, i64 888, !10, i64 892, !40, i64 896}
!40 = !{!"_ZTS15HighsLogOptions", !24, i64 0, !24, i64 8, !24, i64 16, !24, i64 24, !24, i64 32, !24, i64 40, !41, i64 48, !24, i64 80, !19, i64 88}
!41 = !{!"_ZTSSt8functionIFviRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPK20HighsCallbackDataOutP19HighsCallbackDataInPvEE", !42, i64 0, !24, i64 24}
!42 = !{!"_ZTSSt14_Function_base", !8, i64 0, !24, i64 16}


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