; 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 }
%"struct.presolve::HighsPostsolveStack::FreeColSubstitution" = type { double, double, i32, 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::__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] }
%"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 }

@.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__._ZN8presolve19HighsPostsolveStack19FreeColSubstitution4undoERK12HighsOptionsRKSt6vectorINS0_7NonzeroESaIS6_EESA_R13HighsSolutionR10HighsBasis = external hidden unnamed_addr constant [175 x i8], align 1

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

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

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

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

48:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %78

49:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  store ptr %50, ptr %19, align 8, !tbaa !5
  %51 = load ptr, ptr %19, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::Nonzero", ptr %51, i32 0, i32 0
  %53 = load i32, ptr %52, align 8, !tbaa !17
  %54 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::FreeColSubstitution", ptr %30, i32 0, i32 3
  %55 = load i32, ptr %54, align 4, !tbaa !19
  %56 = icmp eq i32 %53, %55
  br i1 %56, label %57, label %61

57:                                               ; preds = %49
  %58 = load ptr, ptr %19, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::Nonzero", ptr %58, i32 0, i32 1
  %60 = load double, ptr %59, align 8, !tbaa !20
  store double %60, ptr %14, align 8, !tbaa !16
  br label %75

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

75:                                               ; preds = %61, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %76

76:                                               ; preds = %75
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  br label %46

78:                                               ; preds = %48
  %79 = load double, ptr %14, align 8, !tbaa !16
  %80 = fcmp une double %79, 0.000000e+00
  br i1 %80, label %81, label %82

81:                                               ; preds = %78
  br label %84

82:                                               ; preds = %78
  call void @__assert_fail(ptr noundef @.str.51, ptr noundef @.str.52, i32 noundef 101, ptr noundef @__PRETTY_FUNCTION__._ZN8presolve19HighsPostsolveStack19FreeColSubstitution4undoERK12HighsOptionsRKSt6vectorINS0_7NonzeroESaIS6_EESA_R13HighsSolutionR10HighsBasis) #6
  unreachable

83:                                               ; No predecessors!
  br label %84

84:                                               ; preds = %83, %81
  %85 = load i8, ptr %13, align 1, !tbaa !14, !range !21, !noundef !22
  %86 = trunc i8 %85 to i1
  br i1 %86, label %87, label %109

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

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

134:                                              ; preds = %109
  store i32 1, ptr %23, align 4
  br label %237

135:                                              ; preds = %109
  %136 = load i8, ptr %13, align 1, !tbaa !14, !range !21, !noundef !22
  %137 = trunc i8 %136 to i1
  br i1 %137, label %138, label %198

138:                                              ; preds = %135
  %139 = load ptr, ptr %11, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.HighsSolution, ptr %139, i32 0, i32 5
  %141 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::FreeColSubstitution", ptr %30, i32 0, i32 2
  %142 = load i32, ptr %141, align 8, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %140, i64 noundef %143) #5
  store double 0.000000e+00, ptr %144, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  %145 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::FreeColSubstitution", ptr %30, i32 0, i32 1
  %146 = load double, ptr %145, align 8, !tbaa !30
  call void @_ZN12HighsCDoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(16) %24, double noundef %146)
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %147 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %147, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %148 = load ptr, ptr %25, align 8, !tbaa !5
  %149 = call ptr @_ZNKSt6vectorIN8presolve19HighsPostsolveStack7NonzeroESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %148) #5
  %150 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.25", ptr %26, i32 0, i32 0
  store ptr %149, ptr %150, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %151 = load ptr, ptr %25, align 8, !tbaa !5
  %152 = call ptr @_ZNKSt6vectorIN8presolve19HighsPostsolveStack7NonzeroESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %151) #5
  %153 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.25", ptr %27, i32 0, i32 0
  store ptr %152, ptr %153, align 8
  br label %154

154:                                              ; preds = %182, %138
  %155 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #5
  br i1 %155, label %157, label %156

156:                                              ; preds = %154
  store i32 4, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %184

157:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %158 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #5
  store ptr %158, ptr %28, align 8, !tbaa !5
  %159 = load ptr, ptr %28, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::Nonzero", ptr %159, i32 0, i32 0
  %161 = load i32, ptr %160, align 8, !tbaa !17
  %162 = sext i32 %161 to i64
  %163 = load ptr, ptr %11, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.HighsSolution, ptr %163, i32 0, i32 5
  %165 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %164) #5
  %166 = icmp ult i64 %162, %165
  br i1 %166, label %167, label %181

167:                                              ; preds = %157
  %168 = load ptr, ptr %28, align 8, !tbaa !5
  %169 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::Nonzero", ptr %168, i32 0, i32 1
  %170 = load double, ptr %169, align 8, !tbaa !20
  %171 = load ptr, ptr %11, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.HighsSolution, ptr %171, i32 0, i32 5
  %173 = load ptr, ptr %28, align 8, !tbaa !5
  %174 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::Nonzero", ptr %173, i32 0, i32 0
  %175 = load i32, ptr %174, align 8, !tbaa !17
  %176 = sext i32 %175 to i64
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %172, i64 noundef %176) #5
  %178 = load double, ptr %177, align 8, !tbaa !16
  %179 = fmul double %170, %178
  %180 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN12HighsCDoublemIEd(ptr noundef nonnull align 8 dereferenceable(16) %24, double noundef %179)
  br label %181

181:                                              ; preds = %167, %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  br label %182

182:                                              ; preds = %181
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #5
  br label %154

184:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #5
  %185 = load double, ptr %14, align 8, !tbaa !16
  %186 = call { double, double } @_ZNK12HighsCDoubledvEd(ptr noundef nonnull align 8 dereferenceable(16) %24, double noundef %185)
  %187 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %188 = extractvalue { double, double } %186, 0
  store double %188, ptr %187, align 8
  %189 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %190 = extractvalue { double, double } %186, 1
  store double %190, ptr %189, align 8
  %191 = call noundef double @_ZNK12HighsCDoublecvdEv(ptr noundef nonnull align 8 dereferenceable(16) %29)
  %192 = load ptr, ptr %11, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.HighsSolution, ptr %192, i32 0, i32 5
  %194 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::FreeColSubstitution", ptr %30, i32 0, i32 2
  %195 = load i32, ptr %194, align 8, !tbaa !9
  %196 = sext i32 %195 to i64
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %193, i64 noundef %196) #5
  store double %191, ptr %197, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  br label %198

198:                                              ; preds = %184, %135
  %199 = load ptr, ptr %11, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.HighsSolution, ptr %199, i32 0, i32 3
  %201 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::FreeColSubstitution", ptr %30, i32 0, i32 3
  %202 = load i32, ptr %201, align 4, !tbaa !19
  %203 = sext i32 %202 to i64
  %204 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %200, i64 noundef %203) #5
  store double 0.000000e+00, ptr %204, align 8, !tbaa !16
  %205 = load ptr, ptr %12, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.HighsBasis, ptr %205, i32 0, i32 0
  %207 = load i8, ptr %206, align 8, !tbaa !31, !range !21, !noundef !22
  %208 = trunc i8 %207 to i1
  br i1 %208, label %210, label %209

209:                                              ; preds = %198
  store i32 1, ptr %23, align 4
  br label %237

210:                                              ; preds = %198
  %211 = load ptr, ptr %12, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.HighsBasis, ptr %211, i32 0, i32 7
  %213 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::FreeColSubstitution", ptr %30, i32 0, i32 3
  %214 = load i32, ptr %213, align 4, !tbaa !19
  %215 = sext i32 %214 to i64
  %216 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %212, i64 noundef %215) #5
  store i8 1, ptr %216, align 1, !tbaa !40
  %217 = load i8, ptr %13, align 1, !tbaa !14, !range !21, !noundef !22
  %218 = trunc i8 %217 to i1
  br i1 %218, label %219, label %236

219:                                              ; preds = %210
  %220 = load ptr, ptr %11, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.HighsSolution, ptr %220, i32 0, i32 5
  %222 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::FreeColSubstitution", ptr %30, i32 0, i32 2
  %223 = load i32, ptr %222, align 8, !tbaa !9
  %224 = sext i32 %223 to i64
  %225 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %221, i64 noundef %224) #5
  %226 = load double, ptr %225, align 8, !tbaa !16
  %227 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::FreeColSubstitution", ptr %30, i32 0, i32 4
  %228 = load i32, ptr %227, align 8, !tbaa !42
  %229 = call noundef zeroext i8 @_ZN8presolveL16computeRowStatusEdNS_19HighsPostsolveStack7RowTypeE(double noundef %226, i32 noundef %228)
  %230 = load ptr, ptr %12, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.HighsBasis, ptr %230, i32 0, i32 8
  %232 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::FreeColSubstitution", ptr %30, i32 0, i32 2
  %233 = load i32, ptr %232, align 8, !tbaa !9
  %234 = sext i32 %233 to i64
  %235 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %231, i64 noundef %234) #5
  store i8 %229, ptr %235, align 1, !tbaa !40
  br label %236

236:                                              ; preds = %219, %210
  store i32 0, ptr %23, align 4
  br label %237

237:                                              ; preds = %236, %209, %134
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  %238 = load i32, ptr %23, align 4
  switch i32 %238, label %240 [
    i32 0, label %239
    i32 1, label %239
  ]

239:                                              ; preds = %237, %237
  ret void

240:                                              ; preds = %237
  unreachable
}

; 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)) #3

; 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) #2 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)) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN12HighsCDoublemIEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) #2 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

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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 16}
!10 = !{!"_ZTSN8presolve19HighsPostsolveStack19FreeColSubstitutionE", !11, i64 0, !11, i64 8, !12, i64 16, !12, i64 20, !13, i64 24}
!11 = !{!"double", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSN8presolve19HighsPostsolveStack7RowTypeE", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!11, !11, i64 0}
!17 = !{!18, !12, i64 0}
!18 = !{!"_ZTSN8presolve19HighsPostsolveStack7NonzeroE", !12, i64 0, !11, i64 8}
!19 = !{!10, !12, i64 20}
!20 = !{!18, !11, i64 8}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!10, !11, i64 0}
!24 = !{!25, !15, i64 1}
!25 = !{!"_ZTS13HighsSolution", !15, i64 0, !15, i64 1, !26, i64 8, !26, i64 32, !26, i64 56, !26, i64 80}
!26 = !{!"_ZTSSt6vectorIdSaIdEE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!10, !11, i64 8}
!31 = !{!32, !15, i64 0}
!32 = !{!"_ZTS10HighsBasis", !15, i64 0, !15, i64 1, !15, i64 2, !15, i64 3, !12, i64 4, !12, i64 8, !33, i64 16, !36, i64 48, !36, i64 72}
!33 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !34, i64 0, !35, i64 8, !7, i64 16}
!34 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!35 = !{!"long", !7, i64 0}
!36 = !{!"_ZTSSt6vectorI16HighsBasisStatusSaIS0_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseI16HighsBasisStatusSaIS0_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseI16HighsBasisStatusSaIS0_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseI16HighsBasisStatusSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!40 = !{!41, !41, i64 0}
!41 = !{!"_ZTS16HighsBasisStatus", !7, i64 0}
!42 = !{!10, !13, i64 24}


; 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__._ZN8presolve19HighsPostsolveStack19FreeColSubstitution4undoERK12HighsOptionsRKSt6vectorINS0_7NonzeroESaIS6_EESA_R13HighsSolutionR10HighsBasis = external hidden unnamed_addr constant [175 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 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 uwtable
define dso_local void @_ZN8presolve19HighsPostsolveStack19FreeColSubstitution4undoERK12HighsOptionsRKSt6vectorINS0_7NonzeroESaIS6_EESA_R13HighsSolutionR10HighsBasis(ptr nocapture noundef nonnull readonly align 8 dereferenceable(32) %0, ptr nocapture noundef nonnull readnone align 8 dereferenceable(1020) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(104) %4, ptr noundef nonnull align 8 dereferenceable(96) %5) local_unnamed_addr #2 align 2 {
  %7 = alloca %class.HighsCDouble, align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.25", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.25", align 8
  %10 = alloca %class.HighsCDouble, align 8
  %11 = alloca %class.HighsCDouble, align 8
  %12 = alloca %class.HighsCDouble, align 8
  %13 = alloca %class.HighsCDouble, align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.25", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.25", align 8
  %16 = alloca %class.HighsCDouble, align 8
  %17 = getelementptr inbounds i8, ptr %0, i64 16
  %18 = load i32, ptr %17, align 8, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds i8, ptr %4, i64 56
  %21 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  %22 = icmp ugt i64 %21, %19
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @_ZN12HighsCDoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %23 = call ptr @_ZNKSt6vectorIN8presolve19HighsPostsolveStack7NonzeroESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  store ptr %23, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %24 = call ptr @_ZNKSt6vectorIN8presolve19HighsPostsolveStack7NonzeroESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  store ptr %24, ptr %9, align 8
  %25 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br i1 %25, label %.lr.ph, label %._crit_edge.thread

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

.lr.ph:                                           ; preds = %6
  %26 = getelementptr inbounds i8, ptr %0, i64 20
  %27 = getelementptr inbounds i8, ptr %4, i64 8
  br label %29

._crit_edge:                                      ; preds = %42
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  %28 = fcmp une double %.1, 0.000000e+00
  br i1 %28, label %46, label %45

29:                                               ; preds = %.lr.ph, %42
  %.036 = phi double [ 0.000000e+00, %.lr.ph ], [ %.1, %42 ]
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %31 = load i32, ptr %30, align 8, !tbaa !12
  %32 = load i32, ptr %26, align 4, !tbaa !14
  %33 = icmp eq i32 %31, %32
  %34 = getelementptr inbounds i8, ptr %30, i64 8
  %35 = load double, ptr %34, align 8, !tbaa !15
  br i1 %33, label %42, label %36

36:                                               ; preds = %29
  %37 = sext i32 %31 to i64
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %37) #5
  %39 = load double, ptr %38, align 8, !tbaa !16
  %40 = fmul double %35, %39
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN12HighsCDoublepLEd(ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef %40)
  br label %42

42:                                               ; preds = %29, %36
  %.1 = phi double [ %.036, %36 ], [ %35, %29 ]
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %44 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br i1 %44, label %29, label %._crit_edge

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

46:                                               ; preds = %._crit_edge
  br i1 %22, label %47, label %63

47:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #5
  %48 = getelementptr inbounds i8, ptr %4, i64 8
  %49 = getelementptr inbounds i8, ptr %0, i64 20
  %50 = load i32, ptr %49, align 4, !tbaa !14
  %51 = sext i32 %50 to i64
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %51) #5
  %53 = load double, ptr %52, align 8, !tbaa !16
  %54 = fmul double %.1, %53
  %55 = call { double, double } @_ZNK12HighsCDoubleplEd(ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef %54)
  %56 = extractvalue { double, double } %55, 0
  store double %56, ptr %10, align 8
  %57 = getelementptr inbounds i8, ptr %10, i64 8
  %58 = extractvalue { double, double } %55, 1
  store double %58, ptr %57, align 8
  %59 = call noundef double @_ZNK12HighsCDoublecvdEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
  %60 = load i32, ptr %17, align 8, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %61) #5
  store double %59, ptr %62, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  br label %63

63:                                               ; preds = %47, %46
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  %64 = load double, ptr %0, align 8, !tbaa !17
  %65 = call { double, double } @_ZmidRK12HighsCDouble(double noundef %64, ptr noundef nonnull align 8 dereferenceable(16) %7)
  %66 = extractvalue { double, double } %65, 0
  store double %66, ptr %12, align 8
  %67 = getelementptr inbounds i8, ptr %12, i64 8
  %68 = extractvalue { double, double } %65, 1
  store double %68, ptr %67, align 8
  %69 = call { double, double } @_ZNK12HighsCDoubledvEd(ptr noundef nonnull align 8 dereferenceable(16) %12, double noundef %.1)
  %70 = extractvalue { double, double } %69, 0
  store double %70, ptr %11, align 8
  %71 = getelementptr inbounds i8, ptr %11, i64 8
  %72 = extractvalue { double, double } %69, 1
  store double %72, ptr %71, align 8
  %73 = call noundef double @_ZNK12HighsCDoublecvdEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %74 = getelementptr inbounds i8, ptr %4, i64 8
  %75 = getelementptr inbounds i8, ptr %0, i64 20
  %76 = load i32, ptr %75, align 4, !tbaa !14
  %77 = sext i32 %76 to i64
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %74, i64 noundef %77) #5
  store double %73, ptr %78, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  %79 = getelementptr inbounds i8, ptr %4, i64 1
  %80 = load i8, ptr %79, align 1, !tbaa !18, !range !26, !noundef !27
  %81 = trunc nuw i8 %80 to i1
  br i1 %81, label %82, label %143

82:                                               ; preds = %63
  br i1 %22, label %83, label %118

83:                                               ; preds = %82
  %84 = getelementptr inbounds i8, ptr %4, i64 80
  %85 = load i32, ptr %17, align 8, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %86) #5
  store double 0.000000e+00, ptr %87, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #5
  %88 = getelementptr inbounds i8, ptr %0, i64 8
  %89 = load double, ptr %88, align 8, !tbaa !28
  call void @_ZN12HighsCDoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(16) %13, double noundef %89)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  %90 = call ptr @_ZNKSt6vectorIN8presolve19HighsPostsolveStack7NonzeroESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  store ptr %90, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  %91 = call ptr @_ZNKSt6vectorIN8presolve19HighsPostsolveStack7NonzeroESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  store ptr %91, ptr %15, align 8
  %92 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  br i1 %92, label %.lr.ph38, label %._crit_edge39

._crit_edge39:                                    ; preds = %115, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #5
  %93 = call { double, double } @_ZNK12HighsCDoubledvEd(ptr noundef nonnull align 8 dereferenceable(16) %13, double noundef %.1)
  %94 = extractvalue { double, double } %93, 0
  store double %94, ptr %16, align 8
  %95 = getelementptr inbounds i8, ptr %16, i64 8
  %96 = extractvalue { double, double } %93, 1
  store double %96, ptr %95, align 8
  %97 = call noundef double @_ZNK12HighsCDoublecvdEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
  %98 = load i32, ptr %17, align 8, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %99) #5
  store double %97, ptr %100, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #5
  br label %118

.lr.ph38:                                         ; preds = %83, %115
  %101 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  %102 = load i32, ptr %101, align 8, !tbaa !12
  %103 = sext i32 %102 to i64
  %104 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #5
  %105 = icmp ugt i64 %104, %103
  br i1 %105, label %106, label %115

106:                                              ; preds = %.lr.ph38
  %107 = getelementptr inbounds i8, ptr %101, i64 8
  %108 = load double, ptr %107, align 8, !tbaa !15
  %109 = load i32, ptr %101, align 8, !tbaa !12
  %110 = sext i32 %109 to i64
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %110) #5
  %112 = load double, ptr %111, align 8, !tbaa !16
  %113 = fmul double %108, %112
  %114 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN12HighsCDoublemIEd(ptr noundef nonnull align 8 dereferenceable(16) %13, double noundef %113)
  br label %115

115:                                              ; preds = %106, %.lr.ph38
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  %117 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  br i1 %117, label %.lr.ph38, label %._crit_edge39

118:                                              ; preds = %._crit_edge39, %82
  %119 = getelementptr inbounds i8, ptr %4, i64 32
  %120 = load i32, ptr %75, align 4, !tbaa !14
  %121 = sext i32 %120 to i64
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %119, i64 noundef %121) #5
  store double 0.000000e+00, ptr %122, align 8, !tbaa !16
  %123 = load i8, ptr %5, align 8, !tbaa !29, !range !26, !noundef !27
  %124 = trunc nuw i8 %123 to i1
  br i1 %124, label %125, label %143

125:                                              ; preds = %118
  %126 = getelementptr inbounds i8, ptr %5, i64 48
  %127 = load i32, ptr %75, align 4, !tbaa !14
  %128 = sext i32 %127 to i64
  %129 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %126, i64 noundef %128) #5
  store i8 1, ptr %129, align 1, !tbaa !38
  br i1 %22, label %130, label %143

130:                                              ; preds = %125
  %131 = getelementptr inbounds i8, ptr %4, i64 80
  %132 = load i32, ptr %17, align 8, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %131, i64 noundef %133) #5
  %135 = load double, ptr %134, align 8, !tbaa !16
  %136 = getelementptr inbounds i8, ptr %0, i64 24
  %137 = load i32, ptr %136, align 8, !tbaa !40
  %138 = call noundef zeroext i8 @_ZN8presolveL16computeRowStatusEdNS_19HighsPostsolveStack7RowTypeE(double noundef %135, i32 noundef %137)
  %139 = getelementptr inbounds i8, ptr %5, i64 72
  %140 = load i32, ptr %17, align 8, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %139, i64 noundef %141) #5
  store i8 %138, ptr %142, align 1, !tbaa !38
  br label %143

143:                                              ; preds = %125, %130, %118, %63
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  ret void
}

; 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 #3

; 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 #2 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 #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN12HighsCDoublemIEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) local_unnamed_addr #2 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

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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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 16}
!6 = !{!"_ZTSN8presolve19HighsPostsolveStack19FreeColSubstitutionE", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !11, i64 24}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTSN8presolve19HighsPostsolveStack7RowTypeE", !8, i64 0}
!12 = !{!13, !10, i64 0}
!13 = !{!"_ZTSN8presolve19HighsPostsolveStack7NonzeroE", !10, i64 0, !7, i64 8}
!14 = !{!6, !10, i64 20}
!15 = !{!13, !7, i64 8}
!16 = !{!7, !7, i64 0}
!17 = !{!6, !7, i64 0}
!18 = !{!19, !20, i64 1}
!19 = !{!"_ZTS13HighsSolution", !20, i64 0, !20, i64 1, !21, i64 8, !21, i64 32, !21, i64 56, !21, i64 80}
!20 = !{!"bool", !8, i64 0}
!21 = !{!"_ZTSSt6vectorIdSaIdEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !25, i64 0, !25, i64 8, !25, i64 16}
!25 = !{!"any pointer", !8, i64 0}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!6, !7, i64 8}
!29 = !{!30, !20, i64 0}
!30 = !{!"_ZTS10HighsBasis", !20, i64 0, !20, i64 1, !20, i64 2, !20, i64 3, !10, i64 4, !10, i64 8, !31, i64 16, !34, i64 48, !34, i64 72}
!31 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !32, i64 0, !33, i64 8, !8, i64 16}
!32 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !25, i64 0}
!33 = !{!"long", !8, 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", !25, i64 0, !25, i64 8, !25, i64 16}
!38 = !{!39, !39, i64 0}
!39 = !{!"_ZTS16HighsBasisStatus", !8, i64 0}
!40 = !{!6, !11, i64 24}


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