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

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

41:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %100

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

97:                                               ; preds = %42
  %98 = load i32, ptr %15, align 4, !tbaa !5
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %15, align 4, !tbaa !5
  br label %30, !llvm.loop !13

100:                                              ; preds = %41
  %101 = load double, ptr %8, align 8, !tbaa !9
  %102 = fdiv double 5.000000e-01, %101
  %103 = load double, ptr %13, align 8, !tbaa !9
  %104 = fmul double %102, %103
  store double %104, ptr %13, align 8, !tbaa !9
  %105 = load double, ptr %8, align 8, !tbaa !9
  %106 = fdiv double 5.000000e-01, %105
  %107 = load double, ptr %14, align 8, !tbaa !9
  %108 = load ptr, ptr %9, align 8, !tbaa !11
  %109 = getelementptr inbounds %class.HighsLp, ptr %108, i32 0, i32 2
  %110 = load i32, ptr %7, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %109, i64 noundef %111) #5
  %113 = load double, ptr %112, align 8, !tbaa !9
  %114 = fmul double 5.000000e-01, %113
  %115 = call double @llvm.fmuladd.f64(double %106, double %107, double %114)
  store double %115, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %116 = load double, ptr %14, align 8, !tbaa !9
  %117 = fneg double %116
  %118 = load double, ptr %13, align 8, !tbaa !9
  %119 = fdiv double %117, %118
  store double %119, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store double 0.000000e+00, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %120 = load double, ptr %18, align 8, !tbaa !9
  %121 = fcmp ogt double %120, 0.000000e+00
  br i1 %121, label %122, label %130

122:                                              ; preds = %100
  %123 = load ptr, ptr %9, align 8, !tbaa !11
  %124 = getelementptr inbounds %class.HighsLp, ptr %123, i32 0, i32 4
  %125 = load i32, ptr %7, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %126) #5
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %127)
  %129 = load double, ptr %128, align 8, !tbaa !9
  store double %129, ptr %20, align 8, !tbaa !9
  br label %138

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

138:                                              ; preds = %130, %122
  %139 = load double, ptr %20, align 8, !tbaa !9
  %140 = load ptr, ptr %12, align 8, !tbaa !11
  %141 = getelementptr inbounds %struct.HighsSolution, ptr %140, i32 0, i32 2
  %142 = load i32, ptr %7, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %141, i64 noundef %143) #5
  %145 = load double, ptr %144, align 8, !tbaa !9
  %146 = fsub double %139, %145
  store double %146, ptr %19, align 8, !tbaa !9
  %147 = load double, ptr %19, align 8, !tbaa !9
  %148 = load ptr, ptr %12, align 8, !tbaa !11
  %149 = getelementptr inbounds %struct.HighsSolution, ptr %148, i32 0, i32 2
  %150 = load i32, ptr %7, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %149, i64 noundef %151) #5
  %153 = load double, ptr %152, align 8, !tbaa !9
  %154 = fadd double %153, %147
  store double %154, ptr %152, align 8, !tbaa !9
  %155 = load ptr, ptr %9, align 8, !tbaa !11
  %156 = getelementptr inbounds %class.HighsLp, ptr %155, i32 0, i32 2
  %157 = load i32, ptr %7, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %156, i64 noundef %158) #5
  %160 = load double, ptr %159, align 8, !tbaa !9
  %161 = load double, ptr %19, align 8, !tbaa !9
  %162 = load ptr, ptr %10, align 8, !tbaa !11
  %163 = load double, ptr %162, align 8, !tbaa !9
  %164 = call double @llvm.fmuladd.f64(double %160, double %161, double %163)
  store double %164, ptr %162, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %165 = load ptr, ptr %9, align 8, !tbaa !11
  %166 = getelementptr inbounds %class.HighsLp, ptr %165, i32 0, i32 7
  %167 = getelementptr inbounds %class.HighsSparseMatrix, ptr %166, i32 0, i32 3
  %168 = load i32, ptr %7, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %167, i64 noundef %169) #5
  %171 = load i32, ptr %170, align 4, !tbaa !5
  store i32 %171, ptr %21, align 4, !tbaa !5
  br label %172

172:                                              ; preds = %225, %138
  %173 = load i32, ptr %21, align 4, !tbaa !5
  %174 = load ptr, ptr %9, 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 %7, align 4, !tbaa !5
  %178 = add nsw i32 %177, 1
  %179 = sext i32 %178 to i64
  %180 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %176, i64 noundef %179) #5
  %181 = load i32, ptr %180, align 4, !tbaa !5
  %182 = icmp slt i32 %173, %181
  br i1 %182, label %184, label %183

183:                                              ; preds = %172
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %228

184:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %185 = load ptr, ptr %9, align 8, !tbaa !11
  %186 = getelementptr inbounds %class.HighsLp, ptr %185, i32 0, i32 7
  %187 = getelementptr inbounds %class.HighsSparseMatrix, ptr %186, i32 0, i32 5
  %188 = load i32, ptr %21, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %187, i64 noundef %189) #5
  %191 = load i32, ptr %190, align 4, !tbaa !5
  store i32 %191, ptr %22, align 4, !tbaa !5
  %192 = load ptr, ptr %9, align 8, !tbaa !11
  %193 = getelementptr inbounds %class.HighsLp, ptr %192, i32 0, i32 7
  %194 = getelementptr inbounds %class.HighsSparseMatrix, ptr %193, i32 0, i32 6
  %195 = load i32, ptr %21, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %194, i64 noundef %196) #5
  %198 = load double, ptr %197, align 8, !tbaa !9
  %199 = load double, ptr %19, align 8, !tbaa !9
  %200 = load ptr, ptr %12, align 8, !tbaa !11
  %201 = getelementptr inbounds %struct.HighsSolution, ptr %200, i32 0, i32 4
  %202 = load i32, ptr %22, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %201, i64 noundef %203) #5
  %205 = load double, ptr %204, align 8, !tbaa !9
  %206 = call double @llvm.fmuladd.f64(double %198, double %199, double %205)
  store double %206, ptr %204, align 8, !tbaa !9
  %207 = load ptr, ptr %9, align 8, !tbaa !11
  %208 = getelementptr inbounds %class.HighsLp, ptr %207, i32 0, i32 6
  %209 = load i32, ptr %22, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %208, i64 noundef %210) #5
  %212 = load double, ptr %211, align 8, !tbaa !9
  %213 = load ptr, ptr %12, align 8, !tbaa !11
  %214 = getelementptr inbounds %struct.HighsSolution, ptr %213, i32 0, i32 4
  %215 = load i32, ptr %22, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %214, i64 noundef %216) #5
  %218 = load double, ptr %217, align 8, !tbaa !9
  %219 = fsub double %212, %218
  %220 = call double @llvm.fabs.f64(double %219)
  %221 = load ptr, ptr %11, align 8, !tbaa !11
  %222 = load i32, ptr %22, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %221, i64 noundef %223) #5
  store double %220, ptr %224, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %225

225:                                              ; preds = %184
  %226 = load i32, ptr %21, align 4, !tbaa !5
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %21, align 4, !tbaa !5
  br label %172, !llvm.loop !15

228:                                              ; preds = %183
  %229 = load double, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  ret double %229
}

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #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: mustprogress nounwind uwtable
define dso_local noundef double @_Z19minimizeComponentQPidRK7HighsLpRdRSt6vectorIdSaIdEER13HighsSolution(i32 noundef %0, double noundef %1, ptr noundef nonnull align 8 dereferenceable(920) %2, ptr nocapture noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(104) %5) local_unnamed_addr #1 {
  %7 = alloca double, align 8
  %8 = getelementptr inbounds i8, ptr %2, i64 144
  %9 = sext i32 %0 to i64
  %10 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %9) #5
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = add nsw i32 %0, 1
  %13 = sext i32 %12 to i64
  %14 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %13) #5
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = icmp slt i32 %11, %15
  br i1 %16, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %6
  %17 = getelementptr inbounds i8, ptr %2, i64 192
  %18 = getelementptr inbounds i8, ptr %2, i64 216
  %19 = getelementptr inbounds i8, ptr %5, i64 8
  %20 = sext i32 %11 to i64
  br label %34

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

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

63:                                               ; preds = %._crit_edge
  %64 = getelementptr inbounds i8, ptr %2, i64 56
  %65 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef %9) #5
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %65)
  br label %71

67:                                               ; preds = %._crit_edge
  %68 = getelementptr inbounds i8, ptr %2, i64 32
  %69 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %9) #5
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %69)
  br label %71

71:                                               ; preds = %67, %63
  %.065.in = phi ptr [ %66, %63 ], [ %70, %67 ]
  %.065 = load double, ptr %.065.in, align 8, !tbaa !9
  %72 = getelementptr inbounds i8, ptr %5, i64 8
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %9) #5
  %74 = load double, ptr %73, align 8, !tbaa !9
  %75 = fsub double %.065, %74
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %9) #5
  %77 = load double, ptr %76, align 8, !tbaa !9
  %78 = fadd double %75, %77
  store double %78, ptr %76, align 8, !tbaa !9
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %9) #5
  %80 = load double, ptr %79, align 8, !tbaa !9
  %81 = load double, ptr %3, align 8, !tbaa !9
  %82 = call double @llvm.fmuladd.f64(double %80, double %75, double %81)
  store double %82, ptr %3, align 8, !tbaa !9
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %9) #5
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %13) #5
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = icmp slt i32 %84, %86
  br i1 %87, label %.lr.ph75, label %._crit_edge76

.lr.ph75:                                         ; preds = %71
  %88 = getelementptr inbounds i8, ptr %2, i64 192
  %89 = getelementptr inbounds i8, ptr %2, i64 216
  %90 = getelementptr inbounds i8, ptr %5, i64 56
  %91 = getelementptr inbounds i8, ptr %2, i64 104
  %92 = sext i32 %84 to i64
  br label %93

._crit_edge76:                                    ; preds = %93, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  ret double %75

93:                                               ; preds = %.lr.ph75, %93
  %indvars.iv79 = phi i64 [ %92, %.lr.ph75 ], [ %indvars.iv.next80, %93 ]
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %indvars.iv79) #5
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef %indvars.iv79) #5
  %97 = load double, ptr %96, align 8, !tbaa !9
  %98 = sext i32 %95 to i64
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %98) #5
  %100 = load double, ptr %99, align 8, !tbaa !9
  %101 = call double @llvm.fmuladd.f64(double %97, double %75, double %100)
  store double %101, ptr %99, align 8, !tbaa !9
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %98) #5
  %103 = load double, ptr %102, align 8, !tbaa !9
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %98) #5
  %105 = load double, ptr %104, align 8, !tbaa !9
  %106 = fsub double %103, %105
  %107 = call double @llvm.fabs.f64(double %106)
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %98) #5
  store double %107, ptr %108, align 8, !tbaa !9
  %indvars.iv.next80 = add nsw i64 %indvars.iv79, 1
  %109 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %13) #5
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = icmp slt i64 %indvars.iv.next80, %111
  br i1 %112, label %93, label %._crit_edge76, !llvm.loop !13
}

; 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2

; 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