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

; 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.HighsLp = type { i32, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %class.HighsSparseMatrix, i32, double, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, i32, %"class.std::vector.8", %"class.std::vector.8", %"class.std::vector.13", %struct.HighsNameHash, %struct.HighsNameHash, i32, i32, %struct.HighsScale, i8, i8, i32, i8, %struct.HighsLpMods }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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 }
%class.HighsSparseMatrix = type { i32, i32, i32, %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<HighsVarType, std::allocator<HighsVarType>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsVarType, std::allocator<HighsVarType>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsVarType, std::allocator<HighsVarType>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsVarType, std::allocator<HighsVarType>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.HighsNameHash = type { %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%struct.HighsScale = type { i32, i8, i32, i32, double, %"class.std::vector", %"class.std::vector" }
%struct.HighsLpMods = type { %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector", %"class.std::vector", %"class.std::vector.13", %"class.std::vector.3", %"class.std::vector", %"class.std::vector.3", %"class.std::vector", %"class.std::vector.3", %"class.std::vector", %"class.std::vector", %"class.std::vector" }
%struct.HighsSolution = type { i8, i8, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector" }

; 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 nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z20minimizeComponentIcaidRKSt6vectorIdSaIdEERK7HighsLpRdRS1_R13HighsSolution(i32 noundef %0, double noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(920) %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(104) %6) #4 {
  %8 = alloca i32, align 4
  %9 = alloca double, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  store i32 %0, ptr %8, align 4, !tbaa !5
  store double %1, ptr %9, align 8, !tbaa !9
  store ptr %2, ptr %10, align 8, !tbaa !11
  store ptr %3, ptr %11, align 8, !tbaa !11
  store ptr %4, ptr %12, align 8, !tbaa !11
  store ptr %5, ptr %13, align 8, !tbaa !11
  store ptr %6, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store double 0.000000e+00, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store double 0.000000e+00, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %25 = load ptr, ptr %11, align 8, !tbaa !11
  %26 = getelementptr inbounds %class.HighsLp, ptr %25, i32 0, i32 7
  %27 = getelementptr inbounds %class.HighsSparseMatrix, ptr %26, i32 0, i32 3
  %28 = load i32, ptr %8, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %29) #5
  %31 = load i32, ptr %30, align 4, !tbaa !5
  store i32 %31, ptr %17, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %106, %7
  %33 = load i32, ptr %17, align 4, !tbaa !5
  %34 = load ptr, ptr %11, align 8, !tbaa !11
  %35 = getelementptr inbounds %class.HighsLp, ptr %34, i32 0, i32 7
  %36 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 3
  %37 = load i32, ptr %8, align 4, !tbaa !5
  %38 = add nsw i32 %37, 1
  %39 = sext i32 %38 to i64
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %39) #5
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = icmp slt i32 %33, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %109

44:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %45 = load ptr, ptr %11, align 8, !tbaa !11
  %46 = getelementptr inbounds %class.HighsLp, ptr %45, i32 0, i32 7
  %47 = getelementptr inbounds %class.HighsSparseMatrix, ptr %46, i32 0, i32 5
  %48 = load i32, ptr %17, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %49) #5
  %51 = load i32, ptr %50, align 4, !tbaa !5
  store i32 %51, ptr %18, align 4, !tbaa !5
  %52 = load ptr, ptr %11, align 8, !tbaa !11
  %53 = getelementptr inbounds %class.HighsLp, ptr %52, i32 0, i32 7
  %54 = getelementptr inbounds %class.HighsSparseMatrix, ptr %53, i32 0, i32 6
  %55 = load i32, ptr %17, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %56) #5
  %58 = load double, ptr %57, align 8, !tbaa !9
  %59 = load ptr, ptr %11, align 8, !tbaa !11
  %60 = getelementptr inbounds %class.HighsLp, ptr %59, i32 0, i32 7
  %61 = getelementptr inbounds %class.HighsSparseMatrix, ptr %60, i32 0, i32 6
  %62 = load i32, ptr %17, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %63) #5
  %65 = load double, ptr %64, align 8, !tbaa !9
  %66 = load double, ptr %15, align 8, !tbaa !9
  %67 = call double @llvm.fmuladd.f64(double %58, double %65, double %66)
  store double %67, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %68 = load ptr, ptr %13, align 8, !tbaa !11
  %69 = load i32, ptr %18, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %70) #5
  %72 = load double, ptr %71, align 8, !tbaa !9
  %73 = fneg double %72
  %74 = load ptr, ptr %11, align 8, !tbaa !11
  %75 = getelementptr inbounds %class.HighsLp, ptr %74, i32 0, i32 7
  %76 = getelementptr inbounds %class.HighsSparseMatrix, ptr %75, i32 0, i32 6
  %77 = load i32, ptr %17, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %78) #5
  %80 = load double, ptr %79, align 8, !tbaa !9
  %81 = load ptr, ptr %14, align 8, !tbaa !11
  %82 = getelementptr inbounds %struct.HighsSolution, ptr %81, i32 0, i32 2
  %83 = load i32, ptr %8, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %84) #5
  %86 = load double, ptr %85, align 8, !tbaa !9
  %87 = fneg double %80
  %88 = call double @llvm.fmuladd.f64(double %87, double %86, double %73)
  store double %88, ptr %19, align 8, !tbaa !9
  %89 = load ptr, ptr %10, align 8, !tbaa !11
  %90 = load i32, ptr %18, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef %91) #5
  %93 = load double, ptr %92, align 8, !tbaa !9
  %94 = load double, ptr %19, align 8, !tbaa !9
  %95 = fadd double %94, %93
  store double %95, ptr %19, align 8, !tbaa !9
  %96 = load ptr, ptr %11, align 8, !tbaa !11
  %97 = getelementptr inbounds %class.HighsLp, ptr %96, i32 0, i32 7
  %98 = getelementptr inbounds %class.HighsSparseMatrix, ptr %97, i32 0, i32 6
  %99 = load i32, ptr %17, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %98, i64 noundef %100) #5
  %102 = load double, ptr %101, align 8, !tbaa !9
  %103 = load double, ptr %19, align 8, !tbaa !9
  %104 = load double, ptr %16, align 8, !tbaa !9
  %105 = call double @llvm.fmuladd.f64(double %102, double %103, double %104)
  store double %105, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %106

106:                                              ; preds = %44
  %107 = load i32, ptr %17, align 4, !tbaa !5
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %17, align 4, !tbaa !5
  br label %32, !llvm.loop !13

109:                                              ; preds = %43
  %110 = load double, ptr %9, align 8, !tbaa !9
  %111 = fdiv double 5.000000e-01, %110
  %112 = load double, ptr %15, align 8, !tbaa !9
  %113 = fmul double %111, %112
  store double %113, ptr %15, align 8, !tbaa !9
  %114 = load double, ptr %9, align 8, !tbaa !9
  %115 = fdiv double 5.000000e-01, %114
  %116 = load double, ptr %16, align 8, !tbaa !9
  %117 = load ptr, ptr %11, align 8, !tbaa !11
  %118 = getelementptr inbounds %class.HighsLp, ptr %117, i32 0, i32 2
  %119 = load i32, ptr %8, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %118, i64 noundef %120) #5
  %122 = load double, ptr %121, align 8, !tbaa !9
  %123 = fmul double 5.000000e-01, %122
  %124 = call double @llvm.fmuladd.f64(double %115, double %116, double %123)
  store double %124, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %125 = load double, ptr %16, align 8, !tbaa !9
  %126 = fneg double %125
  %127 = load double, ptr %15, align 8, !tbaa !9
  %128 = fdiv double %126, %127
  store double %128, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  store double 0.000000e+00, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %129 = load double, ptr %20, align 8, !tbaa !9
  %130 = fcmp ogt double %129, 0.000000e+00
  br i1 %130, label %131, label %139

131:                                              ; preds = %109
  %132 = load ptr, ptr %11, align 8, !tbaa !11
  %133 = getelementptr inbounds %class.HighsLp, ptr %132, i32 0, i32 4
  %134 = load i32, ptr %8, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %133, i64 noundef %135) #5
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %136)
  %138 = load double, ptr %137, align 8, !tbaa !9
  store double %138, ptr %22, align 8, !tbaa !9
  br label %147

139:                                              ; preds = %109
  %140 = load ptr, ptr %11, align 8, !tbaa !11
  %141 = getelementptr inbounds %class.HighsLp, ptr %140, i32 0, i32 3
  %142 = load i32, ptr %8, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %141, i64 noundef %143) #5
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %144)
  %146 = load double, ptr %145, align 8, !tbaa !9
  store double %146, ptr %22, align 8, !tbaa !9
  br label %147

147:                                              ; preds = %139, %131
  %148 = load double, ptr %22, align 8, !tbaa !9
  %149 = load ptr, ptr %14, align 8, !tbaa !11
  %150 = getelementptr inbounds %struct.HighsSolution, ptr %149, i32 0, i32 2
  %151 = load i32, ptr %8, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %150, i64 noundef %152) #5
  %154 = load double, ptr %153, align 8, !tbaa !9
  %155 = fsub double %148, %154
  store double %155, ptr %21, align 8, !tbaa !9
  %156 = load double, ptr %21, align 8, !tbaa !9
  %157 = load ptr, ptr %14, align 8, !tbaa !11
  %158 = getelementptr inbounds %struct.HighsSolution, ptr %157, i32 0, i32 2
  %159 = load i32, ptr %8, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %158, i64 noundef %160) #5
  %162 = load double, ptr %161, align 8, !tbaa !9
  %163 = fadd double %162, %156
  store double %163, ptr %161, align 8, !tbaa !9
  %164 = load ptr, ptr %11, align 8, !tbaa !11
  %165 = getelementptr inbounds %class.HighsLp, ptr %164, i32 0, i32 2
  %166 = load i32, ptr %8, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %165, i64 noundef %167) #5
  %169 = load double, ptr %168, align 8, !tbaa !9
  %170 = load double, ptr %21, align 8, !tbaa !9
  %171 = load ptr, ptr %12, align 8, !tbaa !11
  %172 = load double, ptr %171, align 8, !tbaa !9
  %173 = call double @llvm.fmuladd.f64(double %169, double %170, double %172)
  store double %173, ptr %171, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %174 = load ptr, ptr %11, align 8, !tbaa !11
  %175 = getelementptr inbounds %class.HighsLp, ptr %174, i32 0, i32 7
  %176 = getelementptr inbounds %class.HighsSparseMatrix, ptr %175, i32 0, i32 3
  %177 = load i32, ptr %8, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %176, i64 noundef %178) #5
  %180 = load i32, ptr %179, align 4, !tbaa !5
  store i32 %180, ptr %23, align 4, !tbaa !5
  br label %181

181:                                              ; preds = %231, %147
  %182 = load i32, ptr %23, align 4, !tbaa !5
  %183 = load ptr, ptr %11, align 8, !tbaa !11
  %184 = getelementptr inbounds %class.HighsLp, ptr %183, i32 0, i32 7
  %185 = getelementptr inbounds %class.HighsSparseMatrix, ptr %184, i32 0, i32 3
  %186 = load i32, ptr %8, align 4, !tbaa !5
  %187 = add nsw i32 %186, 1
  %188 = sext i32 %187 to i64
  %189 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %185, i64 noundef %188) #5
  %190 = load i32, ptr %189, align 4, !tbaa !5
  %191 = icmp slt i32 %182, %190
  br i1 %191, label %193, label %192

192:                                              ; preds = %181
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %234

193:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %194 = load ptr, ptr %11, align 8, !tbaa !11
  %195 = getelementptr inbounds %class.HighsLp, ptr %194, i32 0, i32 7
  %196 = getelementptr inbounds %class.HighsSparseMatrix, ptr %195, i32 0, i32 5
  %197 = load i32, ptr %23, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %196, i64 noundef %198) #5
  %200 = load i32, ptr %199, align 4, !tbaa !5
  store i32 %200, ptr %24, align 4, !tbaa !5
  %201 = load ptr, ptr %11, align 8, !tbaa !11
  %202 = getelementptr inbounds %class.HighsLp, ptr %201, i32 0, i32 7
  %203 = getelementptr inbounds %class.HighsSparseMatrix, ptr %202, i32 0, i32 6
  %204 = load i32, ptr %23, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %203, i64 noundef %205) #5
  %207 = load double, ptr %206, align 8, !tbaa !9
  %208 = load double, ptr %21, align 8, !tbaa !9
  %209 = load ptr, ptr %13, align 8, !tbaa !11
  %210 = load i32, ptr %24, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %209, i64 noundef %211) #5
  %213 = load double, ptr %212, align 8, !tbaa !9
  %214 = fneg double %207
  %215 = call double @llvm.fmuladd.f64(double %214, double %208, double %213)
  store double %215, ptr %212, align 8, !tbaa !9
  %216 = load ptr, ptr %11, align 8, !tbaa !11
  %217 = getelementptr inbounds %class.HighsLp, ptr %216, i32 0, i32 7
  %218 = getelementptr inbounds %class.HighsSparseMatrix, ptr %217, i32 0, i32 6
  %219 = load i32, ptr %23, align 4, !tbaa !5
  %220 = sext i32 %219 to i64
  %221 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %218, i64 noundef %220) #5
  %222 = load double, ptr %221, align 8, !tbaa !9
  %223 = load double, ptr %21, align 8, !tbaa !9
  %224 = load ptr, ptr %14, align 8, !tbaa !11
  %225 = getelementptr inbounds %struct.HighsSolution, ptr %224, i32 0, i32 4
  %226 = load i32, ptr %24, align 4, !tbaa !5
  %227 = sext i32 %226 to i64
  %228 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %225, i64 noundef %227) #5
  %229 = load double, ptr %228, align 8, !tbaa !9
  %230 = call double @llvm.fmuladd.f64(double %222, double %223, double %229)
  store double %230, ptr %228, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %231

231:                                              ; preds = %193
  %232 = load i32, ptr %23, align 4, !tbaa !5
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %23, align 4, !tbaa !5
  br label %181, !llvm.loop !15

234:                                              ; preds = %192
  %235 = load double, ptr %21, align 8, !tbaa !9
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  ret double %235
}

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


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

; 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 nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef double @_Z20minimizeComponentIcaidRKSt6vectorIdSaIdEERK7HighsLpRdRS1_R13HighsSolution(i32 noundef %0, double noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(920) %3, ptr nocapture noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(104) %6) local_unnamed_addr #1 {
  %8 = alloca double, align 8
  %9 = getelementptr inbounds i8, ptr %3, i64 144
  %10 = sext i32 %0 to i64
  %11 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %10) #5
  %12 = load i32, ptr %11, align 4, !tbaa !5
  %13 = add nsw i32 %0, 1
  %14 = sext i32 %13 to i64
  %15 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %14) #5
  %16 = load i32, ptr %15, align 4, !tbaa !5
  %17 = icmp slt i32 %12, %16
  br i1 %17, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %7
  %18 = getelementptr inbounds i8, ptr %3, i64 192
  %19 = getelementptr inbounds i8, ptr %3, i64 216
  %20 = getelementptr inbounds i8, ptr %6, i64 8
  %21 = sext i32 %12 to i64
  br label %35

._crit_edge:                                      ; preds = %35, %7
  %22 = phi <2 x double> [ zeroinitializer, %7 ], [ %62, %35 ]
  %23 = fdiv double 5.000000e-01, %1
  %24 = extractelement <2 x double> %22, i64 1
  %25 = fmul double %23, %24
  %26 = getelementptr inbounds i8, ptr %3, i64 8
  %27 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %10) #5
  %28 = load double, ptr %27, align 8, !tbaa !9
  %29 = fmul double %28, 5.000000e-01
  %30 = extractelement <2 x double> %22, i64 0
  %31 = tail call double @llvm.fmuladd.f64(double %23, double %30, double %29)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %32 = fneg double %31
  %33 = fdiv double %32, %25
  store double %33, ptr %8, align 8, !tbaa !9
  %34 = fcmp ogt double %33, 0.000000e+00
  br i1 %34, label %67, label %71

35:                                               ; preds = %.lr.ph, %35
  %indvars.iv = phi i64 [ %21, %.lr.ph ], [ %indvars.iv.next, %35 ]
  %36 = phi <2 x double> [ zeroinitializer, %.lr.ph ], [ %62, %35 ]
  %37 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %indvars.iv) #5
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %indvars.iv) #5
  %40 = load double, ptr %39, align 8, !tbaa !9
  %41 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %indvars.iv) #5
  %42 = load double, ptr %41, align 8, !tbaa !9
  %43 = sext i32 %38 to i64
  %44 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %43) #5
  %45 = load double, ptr %44, align 8, !tbaa !9
  %46 = fneg double %45
  %47 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %indvars.iv) #5
  %48 = load double, ptr %47, align 8, !tbaa !9
  %49 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %10) #5
  %50 = load double, ptr %49, align 8, !tbaa !9
  %51 = fneg double %48
  %52 = tail call double @llvm.fmuladd.f64(double %51, double %50, double %46)
  %53 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %43) #5
  %54 = load double, ptr %53, align 8, !tbaa !9
  %55 = fadd double %52, %54
  %56 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %indvars.iv) #5
  %57 = load double, ptr %56, align 8, !tbaa !9
  %58 = insertelement <2 x double> poison, double %57, i64 0
  %59 = insertelement <2 x double> %58, double %40, i64 1
  %60 = insertelement <2 x double> poison, double %55, i64 0
  %61 = insertelement <2 x double> %60, double %42, i64 1
  %62 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %59, <2 x double> %61, <2 x double> %36)
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %63 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %14) #5
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = icmp slt i64 %indvars.iv.next, %65
  br i1 %66, label %35, label %._crit_edge, !llvm.loop !11

67:                                               ; preds = %._crit_edge
  %68 = getelementptr inbounds i8, ptr %3, i64 56
  %69 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %10) #5
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %69)
  br label %75

71:                                               ; preds = %._crit_edge
  %72 = getelementptr inbounds i8, ptr %3, i64 32
  %73 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %10) #5
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %73)
  br label %75

75:                                               ; preds = %71, %67
  %.067.in = phi ptr [ %70, %67 ], [ %74, %71 ]
  %.067 = load double, ptr %.067.in, align 8, !tbaa !9
  %76 = getelementptr inbounds i8, ptr %6, i64 8
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %10) #5
  %78 = load double, ptr %77, align 8, !tbaa !9
  %79 = fsub double %.067, %78
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %10) #5
  %81 = load double, ptr %80, align 8, !tbaa !9
  %82 = fadd double %79, %81
  store double %82, ptr %80, align 8, !tbaa !9
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %10) #5
  %84 = load double, ptr %83, align 8, !tbaa !9
  %85 = load double, ptr %4, align 8, !tbaa !9
  %86 = call double @llvm.fmuladd.f64(double %84, double %79, double %85)
  store double %86, ptr %4, align 8, !tbaa !9
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %10) #5
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %14) #5
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = icmp slt i32 %88, %90
  br i1 %91, label %.lr.ph77, label %._crit_edge78

.lr.ph77:                                         ; preds = %75
  %92 = getelementptr inbounds i8, ptr %3, i64 192
  %93 = getelementptr inbounds i8, ptr %3, i64 216
  %94 = getelementptr inbounds i8, ptr %6, i64 56
  %95 = sext i32 %88 to i64
  br label %96

._crit_edge78:                                    ; preds = %96, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  ret double %79

96:                                               ; preds = %.lr.ph77, %96
  %indvars.iv81 = phi i64 [ %95, %.lr.ph77 ], [ %indvars.iv.next82, %96 ]
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %92, i64 noundef %indvars.iv81) #5
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef %indvars.iv81) #5
  %100 = load double, ptr %99, align 8, !tbaa !9
  %101 = sext i32 %98 to i64
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %101) #5
  %103 = load double, ptr %102, align 8, !tbaa !9
  %104 = fneg double %100
  %105 = call double @llvm.fmuladd.f64(double %104, double %79, double %103)
  store double %105, ptr %102, align 8, !tbaa !9
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef %indvars.iv81) #5
  %107 = load double, ptr %106, align 8, !tbaa !9
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef %101) #5
  %109 = load double, ptr %108, align 8, !tbaa !9
  %110 = call double @llvm.fmuladd.f64(double %107, double %79, double %109)
  store double %110, ptr %108, align 8, !tbaa !9
  %indvars.iv.next82 = add nsw i64 %indvars.iv81, 1
  %111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %14) #5
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = icmp slt i64 %indvars.iv.next82, %113
  br i1 %114, label %96, label %._crit_edge78, !llvm.loop !13
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


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