; 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.__gnu_cxx::__normal_iterator.25" = type { ptr }
%class.HighsCDouble = type { double, double }
%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::ForcingRow" = type { double, i32, i32 }
%"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 }

; 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 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 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: 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 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 uwtable
declare dso_local { double, double } @_ZNK12HighsCDoublemlEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK8presolve19HighsPostsolveStack10ForcingRow4undoERK12HighsOptionsRKSt6vectorINS0_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 {
  %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 i32, align 4
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.25", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.25", align 8
  %17 = alloca ptr, align 8
  %18 = alloca double, align 8
  %19 = alloca i8, align 1
  %20 = alloca ptr, align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.25", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.25", align 8
  %23 = alloca ptr, align 8
  %24 = alloca %class.HighsCDouble, align 8
  %25 = alloca %class.HighsCDouble, align 8
  %26 = alloca %class.HighsCDouble, 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
  %27 = load ptr, ptr %6, align 8
  %28 = load ptr, ptr %9, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.HighsSolution, ptr %28, i32 0, i32 1
  %30 = load i8, ptr %29, align 1, !tbaa !9, !range !16, !noundef !17
  %31 = trunc i8 %30 to i1
  br i1 %31, label %33, label %32

32:                                               ; preds = %5
  br label %201

33:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 -1, ptr %11, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store double 0.000000e+00, ptr %12, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %34 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::ForcingRow", ptr %27, i32 0, i32 2
  %35 = load i32, ptr %34, align 4, !tbaa !22
  %36 = icmp eq i32 %35, 1
  %37 = zext i1 %36 to i64
  %38 = select i1 %36, i32 1, i32 -1
  store i32 %38, ptr %13, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %39, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %40 = load ptr, ptr %14, 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 %15, i32 0, i32 0
  store ptr %41, ptr %42, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %43 = load ptr, ptr %14, 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 %16, i32 0, i32 0
  store ptr %44, ptr %45, align 8
  br label %46

46:                                               ; preds = %91, %33
  %47 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  br i1 %47, label %49, label %48

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

49:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  store ptr %50, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.HighsSolution, ptr %51, i32 0, i32 3
  %53 = load ptr, ptr %17, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::Nonzero", ptr %53, i32 0, i32 0
  %55 = load i32, ptr %54, align 8, !tbaa !25
  %56 = sext i32 %55 to i64
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %56) #5
  %58 = load double, ptr %57, align 8, !tbaa !20
  %59 = load ptr, ptr %17, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::Nonzero", ptr %59, i32 0, i32 1
  %61 = load double, ptr %60, align 8, !tbaa !27
  %62 = load double, ptr %12, align 8, !tbaa !20
  %63 = fneg double %61
  %64 = call double @llvm.fmuladd.f64(double %63, double %62, double %58)
  store double %64, ptr %18, align 8, !tbaa !20
  %65 = load i32, ptr %13, align 4, !tbaa !18
  %66 = sitofp i32 %65 to double
  %67 = load double, ptr %18, align 8, !tbaa !20
  %68 = fmul double %66, %67
  %69 = load ptr, ptr %17, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::Nonzero", ptr %69, i32 0, i32 1
  %71 = load double, ptr %70, align 8, !tbaa !27
  %72 = fmul double %68, %71
  %73 = fcmp olt double %72, 0.000000e+00
  br i1 %73, label %74, label %90

74:                                               ; preds = %49
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.HighsSolution, ptr %75, i32 0, i32 3
  %77 = load ptr, ptr %17, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::Nonzero", ptr %77, i32 0, i32 0
  %79 = load i32, ptr %78, align 8, !tbaa !25
  %80 = sext i32 %79 to i64
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %80) #5
  %82 = load double, ptr %81, align 8, !tbaa !20
  %83 = load ptr, ptr %17, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::Nonzero", ptr %83, i32 0, i32 1
  %85 = load double, ptr %84, align 8, !tbaa !27
  %86 = fdiv double %82, %85
  store double %86, ptr %12, align 8, !tbaa !20
  %87 = load ptr, ptr %17, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::Nonzero", ptr %87, i32 0, i32 0
  %89 = load i32, ptr %88, align 8, !tbaa !25
  store i32 %89, ptr %11, align 4, !tbaa !18
  br label %90

90:                                               ; preds = %74, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %91

91:                                               ; preds = %90
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  br label %46

93:                                               ; preds = %48
  %94 = load i32, ptr %11, align 4, !tbaa !18
  %95 = icmp ne i32 %94, -1
  br i1 %95, label %96, label %200

96:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #5
  %97 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::ForcingRow", ptr %27, i32 0, i32 1
  %98 = load i32, ptr %97, align 8, !tbaa !28
  %99 = sext i32 %98 to i64
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.HighsSolution, ptr %100, i32 0, i32 5
  %102 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %101) #5
  %103 = icmp ult i64 %99, %102
  %104 = zext i1 %103 to i8
  store i8 %104, ptr %19, align 1, !tbaa !29
  %105 = load i8, ptr %19, align 1, !tbaa !29, !range !16, !noundef !17
  %106 = trunc i8 %105 to i1
  br i1 %106, label %107, label %123

107:                                              ; preds = %96
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.HighsSolution, ptr %108, i32 0, i32 5
  %110 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::ForcingRow", ptr %27, i32 0, i32 1
  %111 = load i32, ptr %110, align 8, !tbaa !28
  %112 = sext i32 %111 to i64
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %109, i64 noundef %112) #5
  %114 = load double, ptr %113, align 8, !tbaa !20
  %115 = load double, ptr %12, align 8, !tbaa !20
  %116 = fadd double %114, %115
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.HighsSolution, ptr %117, i32 0, i32 5
  %119 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::ForcingRow", ptr %27, i32 0, i32 1
  %120 = load i32, ptr %119, align 8, !tbaa !28
  %121 = sext i32 %120 to i64
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %118, i64 noundef %121) #5
  store double %116, ptr %122, align 8, !tbaa !20
  br label %123

123:                                              ; preds = %107, %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %124, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %125 = load ptr, ptr %20, align 8, !tbaa !5
  %126 = call ptr @_ZNKSt6vectorIN8presolve19HighsPostsolveStack7NonzeroESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %125) #5
  %127 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.25", ptr %21, i32 0, i32 0
  store ptr %126, ptr %127, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %128 = load ptr, ptr %20, align 8, !tbaa !5
  %129 = call ptr @_ZNKSt6vectorIN8presolve19HighsPostsolveStack7NonzeroESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %128) #5
  %130 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.25", ptr %22, i32 0, i32 0
  store ptr %129, ptr %130, align 8
  br label %131

131:                                              ; preds = %166, %123
  %132 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #5
  br i1 %132, label %134, label %133

133:                                              ; preds = %131
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %168

134:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %135 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  store ptr %135, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  %136 = load ptr, ptr %9, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.HighsSolution, ptr %136, i32 0, i32 3
  %138 = load ptr, ptr %23, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::Nonzero", ptr %138, i32 0, i32 0
  %140 = load i32, ptr %139, align 8, !tbaa !25
  %141 = sext i32 %140 to i64
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %137, i64 noundef %141) #5
  %143 = load double, ptr %142, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #5
  %144 = load double, ptr %12, align 8, !tbaa !20
  call void @_ZN12HighsCDoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(16) %26, double noundef %144)
  %145 = load ptr, ptr %23, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::Nonzero", ptr %145, i32 0, i32 1
  %147 = load double, ptr %146, align 8, !tbaa !27
  %148 = call { double, double } @_ZNK12HighsCDoublemlEd(ptr noundef nonnull align 8 dereferenceable(16) %26, double noundef %147)
  %149 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %150 = extractvalue { double, double } %148, 0
  store double %150, ptr %149, align 8
  %151 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %152 = extractvalue { double, double } %148, 1
  store double %152, ptr %151, align 8
  %153 = call { double, double } @_ZmidRK12HighsCDouble(double noundef %143, ptr noundef nonnull align 8 dereferenceable(16) %25)
  %154 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %155 = extractvalue { double, double } %153, 0
  store double %155, ptr %154, align 8
  %156 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %157 = extractvalue { double, double } %153, 1
  store double %157, ptr %156, align 8
  %158 = call noundef double @_ZNK12HighsCDoublecvdEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.HighsSolution, ptr %159, i32 0, i32 3
  %161 = load ptr, ptr %23, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::Nonzero", ptr %161, i32 0, i32 0
  %163 = load i32, ptr %162, align 8, !tbaa !25
  %164 = sext i32 %163 to i64
  %165 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %160, i64 noundef %164) #5
  store double %158, ptr %165, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %166

166:                                              ; preds = %134
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  br label %131

168:                                              ; preds = %133
  %169 = load ptr, ptr %9, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.HighsSolution, ptr %169, i32 0, i32 3
  %171 = load i32, ptr %11, align 4, !tbaa !18
  %172 = sext i32 %171 to i64
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %170, i64 noundef %172) #5
  store double 0.000000e+00, ptr %173, align 8, !tbaa !20
  %174 = load ptr, ptr %10, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.HighsBasis, ptr %174, i32 0, i32 0
  %176 = load i8, ptr %175, align 8, !tbaa !30, !range !16, !noundef !17
  %177 = trunc i8 %176 to i1
  br i1 %177, label %178, label %199

178:                                              ; preds = %168
  %179 = load i8, ptr %19, align 1, !tbaa !29, !range !16, !noundef !17
  %180 = trunc i8 %179 to i1
  br i1 %180, label %181, label %193

181:                                              ; preds = %178
  %182 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::ForcingRow", ptr %27, i32 0, i32 2
  %183 = load i32, ptr %182, align 4, !tbaa !22
  %184 = icmp eq i32 %183, 0
  %185 = zext i1 %184 to i64
  %186 = select i1 %184, i8 0, i8 2
  %187 = load ptr, ptr %10, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.HighsBasis, ptr %187, i32 0, i32 8
  %189 = getelementptr inbounds %"struct.presolve::HighsPostsolveStack::ForcingRow", ptr %27, i32 0, i32 1
  %190 = load i32, ptr %189, align 8, !tbaa !28
  %191 = sext i32 %190 to i64
  %192 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %188, i64 noundef %191) #5
  store i8 %186, ptr %192, align 1, !tbaa !39
  br label %193

193:                                              ; preds = %181, %178
  %194 = load ptr, ptr %10, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.HighsBasis, ptr %194, i32 0, i32 7
  %196 = load i32, ptr %11, align 4, !tbaa !18
  %197 = sext i32 %196 to i64
  %198 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %195, i64 noundef %197) #5
  store i8 1, ptr %198, align 1, !tbaa !39
  br label %199

199:                                              ; preds = %193, %168
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  br label %200

200:                                              ; preds = %199, %93
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %201

201:                                              ; preds = %200, %32
  ret void
}

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

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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, !11, i64 1}
!10 = !{!"_ZTS13HighsSolution", !11, i64 0, !11, i64 1, !12, i64 8, !12, i64 32, !12, i64 56, !12, i64 80}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTSSt6vectorIdSaIdEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!19, !19, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"double", !7, i64 0}
!22 = !{!23, !24, i64 12}
!23 = !{!"_ZTSN8presolve19HighsPostsolveStack10ForcingRowE", !21, i64 0, !19, i64 8, !24, i64 12}
!24 = !{!"_ZTSN8presolve19HighsPostsolveStack7RowTypeE", !7, i64 0}
!25 = !{!26, !19, i64 0}
!26 = !{!"_ZTSN8presolve19HighsPostsolveStack7NonzeroE", !19, i64 0, !21, i64 8}
!27 = !{!26, !21, i64 8}
!28 = !{!23, !19, i64 8}
!29 = !{!11, !11, i64 0}
!30 = !{!31, !11, i64 0}
!31 = !{!"_ZTS10HighsBasis", !11, i64 0, !11, i64 1, !11, i64 2, !11, i64 3, !19, i64 4, !19, i64 8, !32, i64 16, !35, i64 48, !35, i64 72}
!32 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !33, i64 0, !34, i64 8, !7, i64 16}
!33 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!34 = !{!"long", !7, i64 0}
!35 = !{!"_ZTSSt6vectorI16HighsBasisStatusSaIS0_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseI16HighsBasisStatusSaIS0_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseI16HighsBasisStatusSaIS0_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseI16HighsBasisStatusSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!39 = !{!40, !40, i64 0}
!40 = !{!"_ZTS16HighsBasisStatus", !7, i64 0}


; 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.__gnu_cxx::__normal_iterator.25" = type { ptr }
%class.HighsCDouble = type { double, double }

; 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 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 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: 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 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 uwtable
declare dso_local { double, double } @_ZNK12HighsCDoublemlEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK8presolve19HighsPostsolveStack10ForcingRow4undoERK12HighsOptionsRKSt6vectorINS0_7NonzeroESaIS6_EER13HighsSolutionR10HighsBasis(ptr nocapture noundef nonnull readonly align 8 dereferenceable(16) %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(104) %3, ptr noundef nonnull align 8 dereferenceable(96) %4) local_unnamed_addr #3 align 2 {
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.25", 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.__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 = getelementptr inbounds i8, ptr %3, i64 1
  %14 = load i8, ptr %13, align 1, !tbaa !5, !range !15, !noundef !16
  %15 = trunc nuw i8 %14 to i1
  br i1 %15, label %16, label %110

16:                                               ; preds = %5
  %17 = getelementptr inbounds i8, ptr %0, i64 12
  %18 = load i32, ptr %17, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %19 = tail call ptr @_ZNKSt6vectorIN8presolve19HighsPostsolveStack7NonzeroESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  store ptr %19, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %20 = tail call ptr @_ZNKSt6vectorIN8presolve19HighsPostsolveStack7NonzeroESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  store ptr %20, ptr %7, align 8
  %21 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %21, label %.lr.ph, label %._crit_edge.thread

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

.lr.ph:                                           ; preds = %16
  %22 = icmp eq i32 %18, 1
  %23 = select i1 %22, i32 1, i32 -1
  %24 = getelementptr inbounds i8, ptr %3, i64 32
  %25 = sitofp i32 %23 to double
  br label %26

._crit_edge:                                      ; preds = %47
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %.not = icmp eq i32 %.1, -1
  br i1 %.not, label %110, label %50

26:                                               ; preds = %.lr.ph, %47
  %.040 = phi i32 [ -1, %.lr.ph ], [ %.1, %47 ]
  %.03739 = phi double [ 0.000000e+00, %.lr.ph ], [ %.138, %47 ]
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %28 = load i32, ptr %27, align 8, !tbaa !22
  %29 = sext i32 %28 to i64
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %29) #5
  %31 = load double, ptr %30, align 8, !tbaa !24
  %32 = getelementptr inbounds i8, ptr %27, i64 8
  %33 = load double, ptr %32, align 8, !tbaa !25
  %34 = fneg double %33
  %35 = call double @llvm.fmuladd.f64(double %34, double %.03739, double %31)
  %36 = fmul double %35, %25
  %37 = fmul double %33, %36
  %38 = fcmp olt double %37, 0.000000e+00
  br i1 %38, label %39, label %47

39:                                               ; preds = %26
  %40 = load i32, ptr %27, align 8, !tbaa !22
  %41 = sext i32 %40 to i64
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %41) #5
  %43 = load double, ptr %42, align 8, !tbaa !24
  %44 = load double, ptr %32, align 8, !tbaa !25
  %45 = fdiv double %43, %44
  %46 = load i32, ptr %27, align 8, !tbaa !22
  br label %47

47:                                               ; preds = %39, %26
  %.138 = phi double [ %45, %39 ], [ %.03739, %26 ]
  %.1 = phi i32 [ %46, %39 ], [ %.040, %26 ]
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %49 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %49, label %26, label %._crit_edge

50:                                               ; preds = %._crit_edge
  %51 = getelementptr inbounds i8, ptr %0, i64 8
  %52 = load i32, ptr %51, align 8, !tbaa !26
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds i8, ptr %3, i64 80
  %55 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #5
  %56 = icmp ugt i64 %55, %53
  br i1 %56, label %57, label %66

57:                                               ; preds = %50
  %58 = load i32, ptr %51, align 8, !tbaa !26
  %59 = sext i32 %58 to i64
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %59) #5
  %61 = load double, ptr %60, align 8, !tbaa !24
  %62 = fadd double %.138, %61
  %63 = load i32, ptr %51, align 8, !tbaa !26
  %64 = sext i32 %63 to i64
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %64) #5
  store double %62, ptr %65, align 8, !tbaa !24
  br label %66

66:                                               ; preds = %57, %50
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %67 = call ptr @_ZNKSt6vectorIN8presolve19HighsPostsolveStack7NonzeroESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  store ptr %67, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %68 = call ptr @_ZNKSt6vectorIN8presolve19HighsPostsolveStack7NonzeroESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  store ptr %68, ptr %9, align 8
  %69 = 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 %69, label %.lr.ph43, label %._crit_edge44

.lr.ph43:                                         ; preds = %66
  %70 = getelementptr inbounds i8, ptr %3, i64 32
  %71 = getelementptr inbounds i8, ptr %11, i64 8
  %72 = getelementptr inbounds i8, ptr %10, i64 8
  br label %78

._crit_edge44:                                    ; preds = %78, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  %73 = getelementptr inbounds i8, ptr %3, i64 32
  %74 = sext i32 %.1 to i64
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef %74) #5
  store double 0.000000e+00, ptr %75, align 8, !tbaa !24
  %76 = load i8, ptr %4, align 8, !tbaa !27, !range !15, !noundef !16
  %77 = trunc nuw i8 %76 to i1
  br i1 %77, label %98, label %110

78:                                               ; preds = %.lr.ph43, %78
  %79 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #5
  %80 = load i32, ptr %79, align 8, !tbaa !22
  %81 = sext i32 %80 to i64
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %81) #5
  %83 = load double, ptr %82, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  call void @_ZN12HighsCDoubleC2Ed(ptr noundef nonnull align 8 dereferenceable(16) %12, double noundef %.138)
  %84 = getelementptr inbounds i8, ptr %79, i64 8
  %85 = load double, ptr %84, align 8, !tbaa !25
  %86 = call { double, double } @_ZNK12HighsCDoublemlEd(ptr noundef nonnull align 8 dereferenceable(16) %12, double noundef %85)
  %87 = extractvalue { double, double } %86, 0
  store double %87, ptr %11, align 8
  %88 = extractvalue { double, double } %86, 1
  store double %88, ptr %71, align 8
  %89 = call { double, double } @_ZmidRK12HighsCDouble(double noundef %83, ptr noundef nonnull align 8 dereferenceable(16) %11)
  %90 = extractvalue { double, double } %89, 0
  store double %90, ptr %10, align 8
  %91 = extractvalue { double, double } %89, 1
  store double %91, ptr %72, align 8
  %92 = call noundef double @_ZNK12HighsCDoublecvdEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
  %93 = load i32, ptr %79, align 8, !tbaa !22
  %94 = sext i32 %93 to i64
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %94) #5
  store double %92, ptr %95, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN8presolve19HighsPostsolveStack7NonzeroESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %97 = 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 %97, label %78, label %._crit_edge44

98:                                               ; preds = %._crit_edge44
  br i1 %56, label %99, label %107

99:                                               ; preds = %98
  %100 = load i32, ptr %17, align 4, !tbaa !17
  %101 = icmp eq i32 %100, 0
  %102 = select i1 %101, i8 0, i8 2
  %103 = getelementptr inbounds i8, ptr %4, i64 72
  %104 = load i32, ptr %51, align 8, !tbaa !26
  %105 = sext i32 %104 to i64
  %106 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %103, i64 noundef %105) #5
  store i8 %102, ptr %106, align 1, !tbaa !36
  br label %107

107:                                              ; preds = %99, %98
  %108 = getelementptr inbounds i8, ptr %4, i64 48
  %109 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI16HighsBasisStatusSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef %74) #5
  store i8 1, ptr %109, align 1, !tbaa !36
  br label %110

110:                                              ; preds = %._crit_edge.thread, %._crit_edge, %107, %._crit_edge44, %5
  ret void
}

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

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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 1}
!6 = !{!"_ZTS13HighsSolution", !7, i64 0, !7, i64 1, !10, i64 8, !10, i64 32, !10, i64 56, !10, i64 80}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIdSaIdEE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !21, i64 12}
!18 = !{!"_ZTSN8presolve19HighsPostsolveStack10ForcingRowE", !19, i64 0, !20, i64 8, !21, i64 12}
!19 = !{!"double", !8, i64 0}
!20 = !{!"int", !8, i64 0}
!21 = !{!"_ZTSN8presolve19HighsPostsolveStack7RowTypeE", !8, i64 0}
!22 = !{!23, !20, i64 0}
!23 = !{!"_ZTSN8presolve19HighsPostsolveStack7NonzeroE", !20, i64 0, !19, i64 8}
!24 = !{!19, !19, i64 0}
!25 = !{!23, !19, i64 8}
!26 = !{!18, !20, i64 8}
!27 = !{!28, !7, i64 0}
!28 = !{!"_ZTS10HighsBasis", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !20, i64 4, !20, 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", !14, 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", !14, i64 0, !14, i64 8, !14, i64 16}
!36 = !{!37, !37, i64 0}
!37 = !{!"_ZTS16HighsBasisStatus", !8, i64 0}


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