; LLVM IR from ERGO-Code/HiGHS :: src/util (HighsSparseMatrix)

; 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.HighsSparseVectorSum = type { %"class.std::vector.8", %"class.std::vector" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<HighsCDouble, std::allocator<HighsCDouble>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsCDouble, std::allocator<HighsCDouble>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsCDouble, std::allocator<HighsCDouble>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsCDouble, std::allocator<HighsCDouble>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.anon.15 = type { i8 }
%class.HighsSparseMatrix = type { i32, i32, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.3" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = 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.HVectorBase = type { i32, i32, %"class.std::vector", %"class.std::vector.3", double, %"class.std::vector.13", %"class.std::vector", ptr, i8, i32, %"class.std::vector", %"class.std::vector.3" }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.52 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [18 x i8], align 1
@__PRETTY_FUNCTION__._ZNK17HighsSparseMatrix20priceByRowWithSwitchEbR11HVectorBaseIdERKS1_didi = external hidden unnamed_addr constant [151 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [48 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK17HighsSparseMatrix9isRowwiseEv(ptr noundef nonnull align 8 dereferenceable(112)) #2 align 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) #2 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) #2 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN20HighsSparseVectorSum3addEid(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, double noundef) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN20HighsSparseVectorSumD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK20HighsSparseVectorSum8getValueEi(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK17HighsSparseMatrix20priceByRowWithSwitchEbR11HVectorBaseIdERKS1_didi(ptr noundef nonnull align 8 dereferenceable(112) %0, i1 noundef zeroext %1, ptr noundef nonnull align 8 dereferenceable(176) %2, ptr noundef nonnull align 8 dereferenceable(176) %3, double noundef %4, i32 noundef %5, double noundef %6, i32 noundef %7) #1 align 2 personality ptr @__gxx_personality_v0 {
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca %class.HighsSparseVectorSum, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca double, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca double, align 8
  %28 = alloca i8, align 1
  %29 = alloca double, align 8
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca double, align 8
  %34 = alloca double, align 8
  %35 = alloca %class.anon.15, align 1
  %36 = alloca %"class.std::vector.8", align 8
  %37 = alloca i32, align 4
  %38 = alloca double, align 8
  %39 = alloca i32, align 4
  %40 = alloca double, align 8
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  %44 = zext i1 %1 to i8
  store i8 %44, ptr %10, align 1, !tbaa !9
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store double %4, ptr %13, align 8, !tbaa !11
  store i32 %5, ptr %14, align 4, !tbaa !13
  store double %6, ptr %15, align 8, !tbaa !11
  store i32 %7, ptr %16, align 4, !tbaa !13
  %45 = load ptr, ptr %9, align 8
  %46 = call noundef zeroext i1 @_ZNK17HighsSparseMatrix9isRowwiseEv(ptr noundef nonnull align 8 dereferenceable(112) %45)
  br i1 %46, label %47, label %48

47:                                               ; preds = %8
  br label %50

48:                                               ; preds = %8
  call void @__assert_fail(ptr noundef @.str.109, ptr noundef @.str.52, i32 noundef 1448, ptr noundef @__PRETTY_FUNCTION__._ZNK17HighsSparseMatrix20priceByRowWithSwitchEbR11HVectorBaseIdERKS1_didi) #7
  unreachable

49:                                               ; No predecessors!
  br label %50

50:                                               ; preds = %49, %47
  call void @llvm.lifetime.start.p0(i64 48, ptr %17) #8
  call void @_ZN20HighsSparseVectorSumC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #8
  %51 = load i8, ptr %10, align 1, !tbaa !9, !range !15, !noundef !16
  %52 = trunc i8 %51 to i1
  br i1 %52, label %53, label %61

53:                                               ; preds = %50
  %54 = getelementptr inbounds %class.HighsSparseMatrix, ptr %45, i32 0, i32 1
  %55 = load i32, ptr %54, align 4, !tbaa !17
  invoke void @_ZN20HighsSparseVectorSum12setDimensionEi(ptr noundef nonnull align 8 dereferenceable(48) %17, i32 noundef %55)
          to label %56 unwind label %57

56:                                               ; preds = %53
  br label %61

57:                                               ; preds = %64, %53
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %18, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %19, align 4
  br label %490

61:                                               ; preds = %56, %50
  %62 = load i32, ptr %16, align 4, !tbaa !13
  %63 = icmp sge i32 %62, -1
  br i1 %63, label %64, label %67

64:                                               ; preds = %61
  %65 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.111)
          to label %66 unwind label %57

66:                                               ; preds = %64
  br label %67

67:                                               ; preds = %66, %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %68 = load i32, ptr %14, align 4, !tbaa !13
  store i32 %68, ptr %20, align 4, !tbaa !13
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  %70 = getelementptr inbounds %class.HVectorBase, ptr %69, i32 0, i32 0
  %71 = load i32, ptr %70, align 8, !tbaa !28
  %72 = getelementptr inbounds %class.HighsSparseMatrix, ptr %45, i32 0, i32 1
  %73 = load i32, ptr %72, align 4, !tbaa !17
  %74 = icmp eq i32 %71, %73
  br i1 %74, label %75, label %76

75:                                               ; preds = %67
  br label %78

76:                                               ; preds = %67
  call void @__assert_fail(ptr noundef @.str.112, ptr noundef @.str.52, i32 noundef 1465, ptr noundef @__PRETTY_FUNCTION__._ZNK17HighsSparseMatrix20priceByRowWithSwitchEbR11HVectorBaseIdERKS1_didi) #7
  unreachable

77:                                               ; No predecessors!
  br label %78

78:                                               ; preds = %77, %75
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = getelementptr inbounds %class.HVectorBase, ptr %79, i32 0, i32 2
  %81 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #8
  %82 = trunc i64 %81 to i32
  %83 = getelementptr inbounds %class.HighsSparseMatrix, ptr %45, i32 0, i32 1
  %84 = load i32, ptr %83, align 4, !tbaa !17
  %85 = icmp eq i32 %82, %84
  br i1 %85, label %86, label %87

86:                                               ; preds = %78
  br label %89

87:                                               ; preds = %78
  call void @__assert_fail(ptr noundef @.str.113, ptr noundef @.str.52, i32 noundef 1466, ptr noundef @__PRETTY_FUNCTION__._ZNK17HighsSparseMatrix20priceByRowWithSwitchEbR11HVectorBaseIdERKS1_didi) #7
  unreachable

88:                                               ; No predecessors!
  br label %89

89:                                               ; preds = %88, %86
  %90 = load double, ptr %13, align 8, !tbaa !11
  %91 = fcmp ole double %90, 1.000000e-01
  br i1 %91, label %92, label %298

92:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %93 = getelementptr inbounds %class.HighsSparseMatrix, ptr %45, i32 0, i32 1
  %94 = load i32, ptr %93, align 4, !tbaa !17
  %95 = sitofp i32 %94 to double
  %96 = fdiv double 1.000000e+00, %95
  store double %96, ptr %21, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %97 = load i32, ptr %20, align 4, !tbaa !13
  store i32 %97, ptr %22, align 4, !tbaa !13
  br label %98

98:                                               ; preds = %292, %92
  %99 = load i32, ptr %22, align 4, !tbaa !13
  %100 = load ptr, ptr %12, align 8, !tbaa !5
  %101 = getelementptr inbounds %class.HVectorBase, ptr %100, i32 0, i32 1
  %102 = load i32, ptr %101, align 4, !tbaa !34
  %103 = icmp slt i32 %99, %102
  br i1 %103, label %105, label %104

104:                                              ; preds = %98
  store i32 2, ptr %23, align 4
  br label %296

105:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  %107 = getelementptr inbounds %class.HVectorBase, ptr %106, i32 0, i32 2
  %108 = load i32, ptr %22, align 4, !tbaa !13
  %109 = sext i32 %108 to i64
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %109) #8
  %111 = load i32, ptr %110, align 4, !tbaa !13
  store i32 %111, ptr %24, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %112 = getelementptr inbounds %class.HighsSparseMatrix, ptr %45, i32 0, i32 0
  %113 = load i32, ptr %112, align 8, !tbaa !35
  %114 = icmp eq i32 %113, 3
  br i1 %114, label %115, label %121

115:                                              ; preds = %105
  %116 = getelementptr inbounds %class.HighsSparseMatrix, ptr %45, i32 0, i32 4
  %117 = load i32, ptr %24, align 4, !tbaa !13
  %118 = sext i32 %117 to i64
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %118) #8
  %120 = load i32, ptr %119, align 4, !tbaa !13
  store i32 %120, ptr %25, align 4, !tbaa !13
  br label %128

121:                                              ; preds = %105
  %122 = getelementptr inbounds %class.HighsSparseMatrix, ptr %45, i32 0, i32 3
  %123 = load i32, ptr %24, align 4, !tbaa !13
  %124 = add nsw i32 %123, 1
  %125 = sext i32 %124 to i64
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %125) #8
  %127 = load i32, ptr %126, align 4, !tbaa !13
  store i32 %127, ptr %25, align 4, !tbaa !13
  br label %128

128:                                              ; preds = %121, %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %129 = load i32, ptr %25, align 4, !tbaa !13
  %130 = getelementptr inbounds %class.HighsSparseMatrix, ptr %45, i32 0, i32 3
  %131 = load i32, ptr %24, align 4, !tbaa !13
  %132 = sext i32 %131 to i64
  %133 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %130, i64 noundef %132) #8
  %134 = load i32, ptr %133, align 4, !tbaa !13
  %135 = sub nsw i32 %129, %134
  store i32 %135, ptr %26, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %136 = load ptr, ptr %11, align 8, !tbaa !5
  %137 = getelementptr inbounds %class.HVectorBase, ptr %136, i32 0, i32 1
  %138 = load i32, ptr %137, align 4, !tbaa !34
  %139 = sitofp i32 %138 to double
  %140 = fmul double 1.000000e+00, %139
  %141 = load double, ptr %21, align 8, !tbaa !11
  %142 = fmul double %140, %141
  store double %142, ptr %27, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #8
  %143 = load ptr, ptr %11, align 8, !tbaa !5
  %144 = getelementptr inbounds %class.HVectorBase, ptr %143, i32 0, i32 1
  %145 = load i32, ptr %144, align 4, !tbaa !34
  %146 = load i32, ptr %26, align 4, !tbaa !13
  %147 = add nsw i32 %145, %146
  %148 = getelementptr inbounds %class.HighsSparseMatrix, ptr %45, i32 0, i32 1
  %149 = load i32, ptr %148, align 4, !tbaa !17
  %150 = icmp sge i32 %147, %149
  br i1 %150, label %155, label %151

151:                                              ; preds = %128
  %152 = load double, ptr %27, align 8, !tbaa !11
  %153 = load double, ptr %15, align 8, !tbaa !11
  %154 = fcmp ogt double %152, %153
  br label %155

155:                                              ; preds = %151, %128
  %156 = phi i1 [ true, %128 ], [ %154, %151 ]
  %157 = zext i1 %156 to i8
  store i8 %157, ptr %28, align 1, !tbaa !9
  %158 = load i8, ptr %28, align 1, !tbaa !9, !range !15, !noundef !16
  %159 = trunc i8 %158 to i1
  br i1 %159, label %160, label %161

160:                                              ; preds = %155
  store i32 2, ptr %23, align 4
  br label %289

161:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %162 = load ptr, ptr %12, align 8, !tbaa !5
  %163 = getelementptr inbounds %class.HVectorBase, ptr %162, i32 0, i32 3
  %164 = load i32, ptr %24, align 4, !tbaa !13
  %165 = sext i32 %164 to i64
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %163, i64 noundef %165) #8
  %167 = load double, ptr %166, align 8, !tbaa !11
  store double %167, ptr %29, align 8, !tbaa !11
  %168 = load i32, ptr %16, align 4, !tbaa !13
  %169 = icmp eq i32 %168, -1
  br i1 %169, label %174, label %170

170:                                              ; preds = %161
  %171 = load i32, ptr %16, align 4, !tbaa !13
  %172 = load i32, ptr %24, align 4, !tbaa !13
  %173 = icmp eq i32 %171, %172
  br i1 %173, label %174, label %185

174:                                              ; preds = %170, %161
  %175 = load i32, ptr %24, align 4, !tbaa !13
  %176 = load double, ptr %29, align 8, !tbaa !11
  %177 = load i32, ptr %25, align 4, !tbaa !13
  %178 = load ptr, ptr %11, align 8, !tbaa !5
  %179 = getelementptr inbounds %class.HVectorBase, ptr %178, i32 0, i32 3
  invoke void @_ZNK17HighsSparseMatrix19debugReportRowPriceEidiRKSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(112) %45, i32 noundef %175, double noundef %176, i32 noundef %177, ptr noundef nonnull align 8 dereferenceable(24) %179)
          to label %180 unwind label %181

180:                                              ; preds = %174
  br label %185

181:                                              ; preds = %174
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %18, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %19, align 4
  br label %295

185:                                              ; preds = %180, %170
  %186 = load double, ptr %29, align 8, !tbaa !11
  %187 = fcmp une double %186, 0.000000e+00
  br i1 %187, label %188, label %286

188:                                              ; preds = %185
  %189 = load i8, ptr %10, align 1, !tbaa !9, !range !15, !noundef !16
  %190 = trunc i8 %189 to i1
  br i1 %190, label %191, label %224

191:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %192 = getelementptr inbounds %class.HighsSparseMatrix, ptr %45, i32 0, i32 3
  %193 = load i32, ptr %24, align 4, !tbaa !13
  %194 = sext i32 %193 to i64
  %195 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %192, i64 noundef %194) #8
  %196 = load i32, ptr %195, align 4, !tbaa !13
  store i32 %196, ptr %30, align 4, !tbaa !13
  br label %197

197:                                              ; preds = %216, %191
  %198 = load i32, ptr %30, align 4, !tbaa !13
  %199 = load i32, ptr %25, align 4, !tbaa !13
  %200 = icmp slt i32 %198, %199
  br i1 %200, label %202, label %201

201:                                              ; preds = %197
  store i32 5, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %223

202:                                              ; preds = %197
  %203 = getelementptr inbounds %class.HighsSparseMatrix, ptr %45, i32 0, i32 5
  %204 = load i32, ptr %30, align 4, !tbaa !13
  %205 = sext i32 %204 to i64
  %206 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %203, i64 noundef %205) #8
  %207 = load i32, ptr %206, align 4, !tbaa !13
  %208 = load double, ptr %29, align 8, !tbaa !11
  %209 = getelementptr inbounds %class.HighsSparseMatrix, ptr %45, i32 0, i32 6
  %210 = load i32, ptr %30, align 4, !tbaa !13
  %211 = sext i32 %210 to i64
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %209, i64 noundef %211) #8
  %213 = load double, ptr %212, align 8, !tbaa !11
  %214 = fmul double %208, %213
  invoke void @_ZN20HighsSparseVectorSum3addEid(ptr noundef nonnull align 8 dereferenceable(48) %17, i32 noundef %207, double noundef %214)
          to label %215 unwind label %219

215:                                              ; preds = %202
  br label %216

216:                                              ; preds = %215
  %217 = load i32, ptr %30, align 4, !tbaa !13
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %30, align 4, !tbaa !13
  br label %197, !llvm.loop !36

219:                                              ; preds = %202
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %18, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %295

223:                                              ; preds = %201
  br label %285

224:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  %225 = getelementptr inbounds %class.HighsSparseMatrix, ptr %45, i32 0, i32 3
  %226 = load i32, ptr %24, align 4, !tbaa !13
  %227 = sext i32 %226 to i64
  %228 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %225, i64 noundef %227) #8
  %229 = load i32, ptr %228, align 4, !tbaa !13
  store i32 %229, ptr %31, align 4, !tbaa !13
  br label %230

230:                                              ; preds = %281, %224
  %231 = load i32, ptr %31, align 4, !tbaa !13
  %232 = load i32, ptr %25, align 4, !tbaa !13
  %233 = icmp slt i32 %231, %232
  br i1 %233, label %235, label %234

234:                                              ; preds = %230
  store i32 8, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %284

235:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  %236 = getelementptr inbounds %class.HighsSparseMatrix, ptr %45, i32 0, i32 5
  %237 = load i32, ptr %31, align 4, !tbaa !13
  %238 = sext i32 %237 to i64
  %239 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %236, i64 noundef %238) #8
  %240 = load i32, ptr %239, align 4, !tbaa !13
  store i32 %240, ptr %32, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %241 = load ptr, ptr %11, align 8, !tbaa !5
  %242 = getelementptr inbounds %class.HVectorBase, ptr %241, i32 0, i32 3
  %243 = load i32, ptr %32, align 4, !tbaa !13
  %244 = sext i32 %243 to i64
  %245 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %242, i64 noundef %244) #8
  %246 = load double, ptr %245, align 8, !tbaa !11
  store double %246, ptr %33, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %247 = load double, ptr %33, align 8, !tbaa !11
  %248 = load double, ptr %29, align 8, !tbaa !11
  %249 = getelementptr inbounds %class.HighsSparseMatrix, ptr %45, i32 0, i32 6
  %250 = load i32, ptr %31, align 4, !tbaa !13
  %251 = sext i32 %250 to i64
  %252 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %249, i64 noundef %251) #8
  %253 = load double, ptr %252, align 8, !tbaa !11
  %254 = call double @llvm.fmuladd.f64(double %248, double %253, double %247)
  store double %254, ptr %34, align 8, !tbaa !11
  %255 = load double, ptr %33, align 8, !tbaa !11
  %256 = fcmp oeq double %255, 0.000000e+00
  br i1 %256, label %257, label %267

257:                                              ; preds = %235
  %258 = load i32, ptr %32, align 4, !tbaa !13
  %259 = load ptr, ptr %11, align 8, !tbaa !5
  %260 = getelementptr inbounds %class.HVectorBase, ptr %259, i32 0, i32 2
  %261 = load ptr, ptr %11, align 8, !tbaa !5
  %262 = getelementptr inbounds %class.HVectorBase, ptr %261, i32 0, i32 1
  %263 = load i32, ptr %262, align 4, !tbaa !34
  %264 = add nsw i32 %263, 1
  store i32 %264, ptr %262, align 4, !tbaa !34
  %265 = sext i32 %263 to i64
  %266 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %260, i64 noundef %265) #8
  store i32 %258, ptr %266, align 4, !tbaa !13
  br label %267

267:                                              ; preds = %257, %235
  %268 = load double, ptr %34, align 8, !tbaa !11
  %269 = call double @llvm.fabs.f64(double %268)
  %270 = fcmp olt double %269, 0x3D06849B86A12B9B
  br i1 %270, label %271, label %272

271:                                              ; preds = %267
  br label %274

272:                                              ; preds = %267
  %273 = load double, ptr %34, align 8, !tbaa !11
  br label %274

274:                                              ; preds = %272, %271
  %275 = phi double [ 1.000000e-50, %271 ], [ %273, %272 ]
  %276 = load ptr, ptr %11, align 8, !tbaa !5
  %277 = getelementptr inbounds %class.HVectorBase, ptr %276, i32 0, i32 3
  %278 = load i32, ptr %32, align 4, !tbaa !13
  %279 = sext i32 %278 to i64
  %280 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %277, i64 noundef %279) #8
  store double %275, ptr %280, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  br label %281

281:                                              ; preds = %274
  %282 = load i32, ptr %31, align 4, !tbaa !13
  %283 = add nsw i32 %282, 1
  store i32 %283, ptr %31, align 4, !tbaa !13
  br label %230, !llvm.loop !38

284:                                              ; preds = %234
  br label %285

285:                                              ; preds = %284, %223
  br label %286

286:                                              ; preds = %285, %185
  %287 = load i32, ptr %22, align 4, !tbaa !13
  %288 = add nsw i32 %287, 1
  store i32 %288, ptr %20, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  store i32 0, ptr %23, align 4
  br label %289

289:                                              ; preds = %286, %160
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  %290 = load i32, ptr %23, align 4
  switch i32 %290, label %296 [
    i32 0, label %291
  ]

291:                                              ; preds = %289
  br label %292

292:                                              ; preds = %291
  %293 = load i32, ptr %22, align 4, !tbaa !13
  %294 = add nsw i32 %293, 1
  store i32 %294, ptr %22, align 4, !tbaa !13
  br label %98, !llvm.loop !39

295:                                              ; preds = %219, %181
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %489

296:                                              ; preds = %289, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %297

297:                                              ; preds = %296
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %298

298:                                              ; preds = %297, %89
  %299 = load i8, ptr %10, align 1, !tbaa !9, !range !15, !noundef !16
  %300 = trunc i8 %299 to i1
  br i1 %300, label %301, label %307

301:                                              ; preds = %298
  call void @llvm.lifetime.start.p0(i64 1, ptr %35) #8
  invoke void @"_ZN20HighsSparseVectorSum7cleanupIZNK17HighsSparseMatrix20priceByRowWithSwitchEbR11HVectorBaseIdERKS3_didiE3$_0EEvOT_"(ptr noundef nonnull align 8 dereferenceable(48) %17, ptr noundef nonnull align 1 dereferenceable(1) %35)
          to label %302 unwind label %303

302:                                              ; preds = %301
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #8
  br label %307

303:                                              ; preds = %301
  %304 = landingpad { ptr, i32 }
          cleanup
  %305 = extractvalue { ptr, i32 } %304, 0
  store ptr %305, ptr %18, align 8
  %306 = extractvalue { ptr, i32 } %304, 1
  store i32 %306, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #8
  br label %489

307:                                              ; preds = %302, %298
  %308 = load i32, ptr %20, align 4, !tbaa !13
  %309 = load ptr, ptr %12, align 8, !tbaa !5
  %310 = getelementptr inbounds %class.HVectorBase, ptr %309, i32 0, i32 1
  %311 = load i32, ptr %310, align 4, !tbaa !34
  %312 = icmp slt i32 %308, %311
  br i1 %312, label %313, label %430

313:                                              ; preds = %307
  %314 = load i8, ptr %10, align 1, !tbaa !9, !range !15, !noundef !16
  %315 = trunc i8 %314 to i1
  br i1 %315, label %316, label %380

316:                                              ; preds = %313
  call void @llvm.lifetime.start.p0(i64 24, ptr %36) #8
  %317 = getelementptr inbounds %class.HighsSparseVectorSum, ptr %17, i32 0, i32 0
  invoke void @_ZNSt6vectorI12HighsCDoubleSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 8 dereferenceable(24) %317)
          to label %318 unwind label %330

318:                                              ; preds = %316
  %319 = load ptr, ptr %12, align 8, !tbaa !5
  %320 = load i32, ptr %20, align 4, !tbaa !13
  invoke void @_ZNK17HighsSparseMatrix21priceByRowDenseResultERSt6vectorI12HighsCDoubleSaIS1_EERK11HVectorBaseIdEii(ptr noundef nonnull align 8 dereferenceable(112) %45, ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 8 dereferenceable(176) %319, i32 noundef %320, i32 noundef -2)
          to label %321 unwind label %334

321:                                              ; preds = %318
  %322 = load ptr, ptr %11, align 8, !tbaa !5
  %323 = getelementptr inbounds %class.HVectorBase, ptr %322, i32 0, i32 1
  store i32 0, ptr %323, align 4, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  store i32 0, ptr %37, align 4, !tbaa !13
  br label %324

324:                                              ; preds = %374, %321
  %325 = load i32, ptr %37, align 4, !tbaa !13
  %326 = getelementptr inbounds %class.HighsSparseMatrix, ptr %45, i32 0, i32 1
  %327 = load i32, ptr %326, align 4, !tbaa !17
  %328 = icmp slt i32 %325, %327
  br i1 %328, label %338, label %329

329:                                              ; preds = %324
  store i32 11, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  br label %377

330:                                              ; preds = %316
  %331 = landingpad { ptr, i32 }
          cleanup
  %332 = extractvalue { ptr, i32 } %331, 0
  store ptr %332, ptr %18, align 8
  %333 = extractvalue { ptr, i32 } %331, 1
  store i32 %333, ptr %19, align 4
  br label %379

334:                                              ; preds = %318
  %335 = landingpad { ptr, i32 }
          cleanup
  %336 = extractvalue { ptr, i32 } %335, 0
  store ptr %336, ptr %18, align 8
  %337 = extractvalue { ptr, i32 } %335, 1
  store i32 %337, ptr %19, align 4
  br label %378

338:                                              ; preds = %324
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  %339 = load i32, ptr %37, align 4, !tbaa !13
  %340 = sext i32 %339 to i64
  %341 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI12HighsCDoubleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %340) #8
  %342 = invoke noundef double @_ZNK12HighsCDoublecvdEv(ptr noundef nonnull align 8 dereferenceable(16) %341)
          to label %343 unwind label %353

343:                                              ; preds = %338
  store double %342, ptr %38, align 8, !tbaa !11
  %344 = load double, ptr %38, align 8, !tbaa !11
  %345 = call double @llvm.fabs.f64(double %344)
  %346 = fcmp olt double %345, 0x3D06849B86A12B9B
  br i1 %346, label %347, label %357

347:                                              ; preds = %343
  %348 = load ptr, ptr %11, align 8, !tbaa !5
  %349 = getelementptr inbounds %class.HVectorBase, ptr %348, i32 0, i32 3
  %350 = load i32, ptr %37, align 4, !tbaa !13
  %351 = sext i32 %350 to i64
  %352 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %349, i64 noundef %351) #8
  store double 0.000000e+00, ptr %352, align 8, !tbaa !11
  br label %373

353:                                              ; preds = %338
  %354 = landingpad { ptr, i32 }
          cleanup
  %355 = extractvalue { ptr, i32 } %354, 0
  store ptr %355, ptr %18, align 8
  %356 = extractvalue { ptr, i32 } %354, 1
  store i32 %356, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  br label %378

357:                                              ; preds = %343
  %358 = load double, ptr %38, align 8, !tbaa !11
  %359 = load ptr, ptr %11, align 8, !tbaa !5
  %360 = getelementptr inbounds %class.HVectorBase, ptr %359, i32 0, i32 3
  %361 = load i32, ptr %37, align 4, !tbaa !13
  %362 = sext i32 %361 to i64
  %363 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %360, i64 noundef %362) #8
  store double %358, ptr %363, align 8, !tbaa !11
  %364 = load i32, ptr %37, align 4, !tbaa !13
  %365 = load ptr, ptr %11, align 8, !tbaa !5
  %366 = getelementptr inbounds %class.HVectorBase, ptr %365, i32 0, i32 2
  %367 = load ptr, ptr %11, align 8, !tbaa !5
  %368 = getelementptr inbounds %class.HVectorBase, ptr %367, i32 0, i32 1
  %369 = load i32, ptr %368, align 4, !tbaa !34
  %370 = add nsw i32 %369, 1
  store i32 %370, ptr %368, align 4, !tbaa !34
  %371 = sext i32 %369 to i64
  %372 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %366, i64 noundef %371) #8
  store i32 %364, ptr %372, align 4, !tbaa !13
  br label %373

373:                                              ; preds = %357, %347
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  br label %374

374:                                              ; preds = %373
  %375 = load i32, ptr %37, align 4, !tbaa !13
  %376 = add nsw i32 %375, 1
  store i32 %376, ptr %37, align 4, !tbaa !13
  br label %324, !llvm.loop !40

377:                                              ; preds = %329
  call void @_ZNSt6vectorI12HighsCDoubleSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #8
  br label %429

378:                                              ; preds = %353, %334
  call void @_ZNSt6vectorI12HighsCDoubleSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #8
  br label %379

379:                                              ; preds = %378, %330
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #8
  br label %489

380:                                              ; preds = %313
  %381 = load ptr, ptr %11, align 8, !tbaa !5
  %382 = getelementptr inbounds %class.HVectorBase, ptr %381, i32 0, i32 3
  %383 = load ptr, ptr %12, align 8, !tbaa !5
  %384 = load i32, ptr %20, align 4, !tbaa !13
  invoke void @_ZNK17HighsSparseMatrix21priceByRowDenseResultERSt6vectorIdSaIdEERK11HVectorBaseIdEii(ptr noundef nonnull align 8 dereferenceable(112) %45, ptr noundef nonnull align 8 dereferenceable(24) %382, ptr noundef nonnull align 8 dereferenceable(176) %383, i32 noundef %384, i32 noundef -2)
          to label %385 unwind label %394

385:                                              ; preds = %380
  %386 = load ptr, ptr %11, align 8, !tbaa !5
  %387 = getelementptr inbounds %class.HVectorBase, ptr %386, i32 0, i32 1
  store i32 0, ptr %387, align 4, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  store i32 0, ptr %39, align 4, !tbaa !13
  br label %388

388:                                              ; preds = %425, %385
  %389 = load i32, ptr %39, align 4, !tbaa !13
  %390 = getelementptr inbounds %class.HighsSparseMatrix, ptr %45, i32 0, i32 1
  %391 = load i32, ptr %390, align 4, !tbaa !17
  %392 = icmp slt i32 %389, %391
  br i1 %392, label %398, label %393

393:                                              ; preds = %388
  store i32 14, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  br label %428

394:                                              ; preds = %484, %380
  %395 = landingpad { ptr, i32 }
          cleanup
  %396 = extractvalue { ptr, i32 } %395, 0
  store ptr %396, ptr %18, align 8
  %397 = extractvalue { ptr, i32 } %395, 1
  store i32 %397, ptr %19, align 4
  br label %489

398:                                              ; preds = %388
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  %399 = load ptr, ptr %11, align 8, !tbaa !5
  %400 = getelementptr inbounds %class.HVectorBase, ptr %399, i32 0, i32 3
  %401 = load i32, ptr %39, align 4, !tbaa !13
  %402 = sext i32 %401 to i64
  %403 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %400, i64 noundef %402) #8
  %404 = load double, ptr %403, align 8, !tbaa !11
  store double %404, ptr %40, align 8, !tbaa !11
  %405 = load double, ptr %40, align 8, !tbaa !11
  %406 = call double @llvm.fabs.f64(double %405)
  %407 = fcmp olt double %406, 0x3D06849B86A12B9B
  br i1 %407, label %408, label %414

408:                                              ; preds = %398
  %409 = load ptr, ptr %11, align 8, !tbaa !5
  %410 = getelementptr inbounds %class.HVectorBase, ptr %409, i32 0, i32 3
  %411 = load i32, ptr %39, align 4, !tbaa !13
  %412 = sext i32 %411 to i64
  %413 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %410, i64 noundef %412) #8
  store double 0.000000e+00, ptr %413, align 8, !tbaa !11
  br label %424

414:                                              ; preds = %398
  %415 = load i32, ptr %39, align 4, !tbaa !13
  %416 = load ptr, ptr %11, align 8, !tbaa !5
  %417 = getelementptr inbounds %class.HVectorBase, ptr %416, i32 0, i32 2
  %418 = load ptr, ptr %11, align 8, !tbaa !5
  %419 = getelementptr inbounds %class.HVectorBase, ptr %418, i32 0, i32 1
  %420 = load i32, ptr %419, align 4, !tbaa !34
  %421 = add nsw i32 %420, 1
  store i32 %421, ptr %419, align 4, !tbaa !34
  %422 = sext i32 %420 to i64
  %423 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %417, i64 noundef %422) #8
  store i32 %415, ptr %423, align 4, !tbaa !13
  br label %424

424:                                              ; preds = %414, %408
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  br label %425

425:                                              ; preds = %424
  %426 = load i32, ptr %39, align 4, !tbaa !13
  %427 = add nsw i32 %426, 1
  store i32 %427, ptr %39, align 4, !tbaa !13
  br label %388, !llvm.loop !41

428:                                              ; preds = %393
  br label %429

429:                                              ; preds = %428, %377
  br label %488

430:                                              ; preds = %307
  %431 = load i8, ptr %10, align 1, !tbaa !9, !range !15, !noundef !16
  %432 = trunc i8 %431 to i1
  br i1 %432, label %433, label %484

433:                                              ; preds = %430
  %434 = getelementptr inbounds %class.HighsSparseVectorSum, ptr %17, i32 0, i32 1
  %435 = load ptr, ptr %11, align 8, !tbaa !5
  %436 = getelementptr inbounds %class.HVectorBase, ptr %435, i32 0, i32 2
  %437 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %436, ptr noundef nonnull align 8 dereferenceable(24) %434) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  %438 = load ptr, ptr %11, align 8, !tbaa !5
  %439 = getelementptr inbounds %class.HVectorBase, ptr %438, i32 0, i32 2
  %440 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %439) #8
  %441 = trunc i64 %440 to i32
  store i32 %441, ptr %41, align 4, !tbaa !13
  %442 = load ptr, ptr %11, align 8, !tbaa !5
  %443 = getelementptr inbounds %class.HVectorBase, ptr %442, i32 0, i32 2
  %444 = getelementptr inbounds %class.HighsSparseMatrix, ptr %45, i32 0, i32 1
  %445 = load i32, ptr %444, align 4, !tbaa !17
  %446 = sext i32 %445 to i64
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %443, i64 noundef %446)
          to label %447 unwind label %456

447:                                              ; preds = %433
  %448 = load i32, ptr %41, align 4, !tbaa !13
  %449 = load ptr, ptr %11, align 8, !tbaa !5
  %450 = getelementptr inbounds %class.HVectorBase, ptr %449, i32 0, i32 1
  store i32 %448, ptr %450, align 4, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #8
  store i32 0, ptr %42, align 4, !tbaa !13
  br label %451

451:                                              ; preds = %475, %447
  %452 = load i32, ptr %42, align 4, !tbaa !13
  %453 = load i32, ptr %41, align 4, !tbaa !13
  %454 = icmp slt i32 %452, %453
  br i1 %454, label %460, label %455

455:                                              ; preds = %451
  store i32 17, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  br label %482

456:                                              ; preds = %433
  %457 = landingpad { ptr, i32 }
          cleanup
  %458 = extractvalue { ptr, i32 } %457, 0
  store ptr %458, ptr %18, align 8
  %459 = extractvalue { ptr, i32 } %457, 1
  store i32 %459, ptr %19, align 4
  br label %483

460:                                              ; preds = %451
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #8
  %461 = load ptr, ptr %11, align 8, !tbaa !5
  %462 = getelementptr inbounds %class.HVectorBase, ptr %461, i32 0, i32 2
  %463 = load i32, ptr %42, align 4, !tbaa !13
  %464 = sext i32 %463 to i64
  %465 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %462, i64 noundef %464) #8
  %466 = load i32, ptr %465, align 4, !tbaa !13
  store i32 %466, ptr %43, align 4, !tbaa !13
  %467 = load i32, ptr %43, align 4, !tbaa !13
  %468 = invoke noundef double @_ZNK20HighsSparseVectorSum8getValueEi(ptr noundef nonnull align 8 dereferenceable(48) %17, i32 noundef %467)
          to label %469 unwind label %478

469:                                              ; preds = %460
  %470 = load ptr, ptr %11, align 8, !tbaa !5
  %471 = getelementptr inbounds %class.HVectorBase, ptr %470, i32 0, i32 3
  %472 = load i32, ptr %43, align 4, !tbaa !13
  %473 = sext i32 %472 to i64
  %474 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %471, i64 noundef %473) #8
  store double %468, ptr %474, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  br label %475

475:                                              ; preds = %469
  %476 = load i32, ptr %42, align 4, !tbaa !13
  %477 = add nsw i32 %476, 1
  store i32 %477, ptr %42, align 4, !tbaa !13
  br label %451, !llvm.loop !42

478:                                              ; preds = %460
  %479 = landingpad { ptr, i32 }
          cleanup
  %480 = extractvalue { ptr, i32 } %479, 0
  store ptr %480, ptr %18, align 8
  %481 = extractvalue { ptr, i32 } %479, 1
  store i32 %481, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  br label %483

482:                                              ; preds = %455
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  br label %487

483:                                              ; preds = %478, %456
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  br label %489

484:                                              ; preds = %430
  %485 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZN11HVectorBaseIdE5tightEv(ptr noundef nonnull align 8 dereferenceable(176) %485)
          to label %486 unwind label %394

486:                                              ; preds = %484
  br label %487

487:                                              ; preds = %486, %482
  br label %488

488:                                              ; preds = %487, %429
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @_ZN20HighsSparseVectorSumD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #8
  ret void

489:                                              ; preds = %483, %394, %379, %303, %295
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %490

490:                                              ; preds = %489, %57
  call void @_ZN20HighsSparseVectorSumD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #8
  br label %491

491:                                              ; preds = %490
  %492 = load ptr, ptr %18, align 8
  %493 = load i32, ptr %19, align 4
  %494 = insertvalue { ptr, i32 } poison, ptr %492, 0
  %495 = insertvalue { ptr, i32 } %494, i32 %493, 1
  resume { ptr, i32 } %495
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN20HighsSparseVectorSumC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN20HighsSparseVectorSum12setDimensionEi(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK17HighsSparseMatrix19debugReportRowPriceEidiRKSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(112), i32 noundef, double noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN20HighsSparseVectorSum7cleanupIZNK17HighsSparseMatrix20priceByRowWithSwitchEbR11HVectorBaseIdERKS3_didiE3$_0EEvOT_"(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI12HighsCDoubleSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK17HighsSparseMatrix21priceByRowDenseResultERSt6vectorI12HighsCDoubleSaIS1_EERK11HVectorBaseIdEii(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(176), i32 noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK17HighsSparseMatrix21priceByRowDenseResultERSt6vectorIdSaIdEERK11HVectorBaseIdEii(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(176), i32 noundef, i32 noundef) #1 align 2

declare void @_ZN11HVectorBaseIdE5tightEv(ptr noundef nonnull align 8 dereferenceable(176)) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !14, i64 4}
!18 = !{!"_ZTS17HighsSparseMatrix", !19, i64 0, !14, i64 4, !14, i64 8, !20, i64 16, !20, i64 40, !20, i64 64, !24, i64 88}
!19 = !{!"_ZTS12MatrixFormat", !7, i64 0}
!20 = !{!"_ZTSSt6vectorIiSaIiEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSSt6vectorIdSaIdEE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!29, !14, i64 0}
!29 = !{!"_ZTS11HVectorBaseIdE", !14, i64 0, !14, i64 4, !20, i64 8, !24, i64 32, !12, i64 56, !30, i64 64, !20, i64 88, !6, i64 112, !10, i64 120, !14, i64 124, !20, i64 128, !24, i64 152}
!30 = !{!"_ZTSSt6vectorIcSaIcEE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!29, !14, i64 4}
!35 = !{!18, !19, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !37}
!39 = distinct !{!39, !37}
!40 = distinct !{!40, !37}
!41 = distinct !{!41, !37}
!42 = distinct !{!42, !37}


; 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.HighsSparseVectorSum = type { %"class.std::vector.8", %"class.std::vector" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<HighsCDouble, std::allocator<HighsCDouble>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsCDouble, std::allocator<HighsCDouble>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsCDouble, std::allocator<HighsCDouble>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsCDouble, std::allocator<HighsCDouble>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.anon.15 = type { i8 }

@.str.52 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [18 x i8], align 1
@__PRETTY_FUNCTION__._ZNK17HighsSparseMatrix20priceByRowWithSwitchEbR11HVectorBaseIdERKS1_didi = external hidden unnamed_addr constant [151 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [48 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE6resizeEm(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 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK17HighsSparseMatrix9isRowwiseEv(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #2 align 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 #2 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 #2 align 2

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

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

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

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN20HighsSparseVectorSum3addEid(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, double noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN20HighsSparseVectorSumD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK20HighsSparseVectorSum8getValueEi(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK17HighsSparseMatrix20priceByRowWithSwitchEbR11HVectorBaseIdERKS1_didi(ptr noundef nonnull align 8 dereferenceable(112) %0, i1 noundef zeroext %1, ptr noundef nonnull align 8 dereferenceable(176) %2, ptr noundef nonnull align 8 dereferenceable(176) %3, double noundef %4, i32 noundef %5, double noundef %6, i32 noundef %7) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %9 = alloca %class.HighsSparseVectorSum, align 8
  %10 = alloca %class.anon.15, align 1
  %11 = alloca %"class.std::vector.8", align 8
  %12 = tail call noundef zeroext i1 @_ZNK17HighsSparseMatrix9isRowwiseEv(ptr noundef nonnull align 8 dereferenceable(112) %0)
  br i1 %12, label %14, label %13

13:                                               ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str.109, ptr noundef nonnull @.str.52, i32 noundef 1448, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK17HighsSparseMatrix20priceByRowWithSwitchEbR11HVectorBaseIdERKS1_didi) #8
  unreachable

14:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #9
  call void @_ZN20HighsSparseVectorSumC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #9
  br i1 %1, label %15, label %20

15:                                               ; preds = %14
  %16 = getelementptr inbounds i8, ptr %0, i64 4
  %17 = load i32, ptr %16, align 4, !tbaa !5
  invoke void @_ZN20HighsSparseVectorSum12setDimensionEi(ptr noundef nonnull align 8 dereferenceable(48) %9, i32 noundef %17)
          to label %20 unwind label %18

18:                                               ; preds = %15
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %212

20:                                               ; preds = %15, %14
  %21 = icmp sgt i32 %7, -2
  br i1 %21, label %22, label %24

22:                                               ; preds = %20
  %23 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.111)
  br label %24

24:                                               ; preds = %22, %20
  %25 = load i32, ptr %2, align 8, !tbaa !20
  %26 = getelementptr inbounds i8, ptr %0, i64 4
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %28 = icmp eq i32 %25, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %24
  call void @__assert_fail(ptr noundef nonnull @.str.112, ptr noundef nonnull @.str.52, i32 noundef 1465, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK17HighsSparseMatrix20priceByRowWithSwitchEbR11HVectorBaseIdERKS1_didi) #8
  unreachable

30:                                               ; preds = %24
  %31 = getelementptr inbounds i8, ptr %2, i64 8
  %32 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  %33 = trunc i64 %32 to i32
  %34 = load i32, ptr %26, align 4, !tbaa !5
  %35 = icmp eq i32 %34, %33
  br i1 %35, label %37, label %36

36:                                               ; preds = %30
  call void @__assert_fail(ptr noundef nonnull @.str.113, ptr noundef nonnull @.str.52, i32 noundef 1466, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK17HighsSparseMatrix20priceByRowWithSwitchEbR11HVectorBaseIdERKS1_didi) #8
  unreachable

37:                                               ; preds = %30
  %38 = fcmp ugt double %4, 1.000000e-01
  br i1 %38, label %.thread, label %39

39:                                               ; preds = %37
  %40 = sitofp i32 %33 to double
  %41 = fdiv double 1.000000e+00, %40
  %42 = getelementptr inbounds i8, ptr %3, i64 4
  %43 = load i32, ptr %42, align 4, !tbaa !28
  %44 = icmp sgt i32 %43, %5
  br i1 %44, label %.lr.ph150, label %.thread

.lr.ph150:                                        ; preds = %39
  %45 = getelementptr inbounds i8, ptr %3, i64 8
  %46 = getelementptr inbounds i8, ptr %0, i64 16
  %47 = getelementptr inbounds i8, ptr %0, i64 40
  %48 = getelementptr inbounds i8, ptr %2, i64 4
  %49 = getelementptr inbounds i8, ptr %3, i64 32
  %50 = icmp eq i32 %7, -1
  %51 = getelementptr inbounds i8, ptr %2, i64 32
  %52 = getelementptr inbounds i8, ptr %0, i64 64
  %53 = getelementptr inbounds i8, ptr %0, i64 88
  %54 = sext i32 %5 to i64
  br label %55

55:                                               ; preds = %.lr.ph150, %126
  %indvars.iv169 = phi i64 [ %54, %.lr.ph150 ], [ %indvars.iv.next170.pre-phi, %126 ]
  %.0116149 = phi i32 [ %5, %.lr.ph150 ], [ %127, %126 ]
  %indvars171 = trunc i64 %indvars.iv169 to i32
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %indvars.iv169) #9
  %57 = load i32, ptr %56, align 4, !tbaa !29
  %58 = load i32, ptr %0, align 8, !tbaa !30
  %59 = icmp eq i32 %58, 3
  br i1 %59, label %60, label %63

60:                                               ; preds = %55
  %61 = sext i32 %57 to i64
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %61) #9
  br label %67

63:                                               ; preds = %55
  %64 = add nsw i32 %57, 1
  %65 = sext i32 %64 to i64
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %65) #9
  %.pre = sext i32 %57 to i64
  br label %67

67:                                               ; preds = %63, %60
  %.pre-phi = phi i64 [ %.pre, %63 ], [ %61, %60 ]
  %.0124.in = phi ptr [ %66, %63 ], [ %62, %60 ]
  %.0124 = load i32, ptr %.0124.in, align 4, !tbaa !29
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %.pre-phi) #9
  %69 = load i32, ptr %68, align 4, !tbaa !29
  %70 = sub i32 %.0124, %69
  %71 = load i32, ptr %48, align 4, !tbaa !28
  %72 = sitofp i32 %71 to double
  %73 = fmul double %41, %72
  %74 = add nsw i32 %70, %71
  %75 = load i32, ptr %26, align 4, !tbaa !5
  %76 = icmp slt i32 %74, %75
  %77 = fcmp ule double %73, %6
  %.not132 = and i1 %76, %77
  br i1 %.not132, label %78, label %.thread

78:                                               ; preds = %67
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %.pre-phi) #9
  %80 = load double, ptr %79, align 8, !tbaa !31
  %81 = icmp eq i32 %57, %7
  %or.cond = select i1 %50, i1 true, i1 %81
  br i1 %or.cond, label %82, label %85

82:                                               ; preds = %78
  invoke void @_ZNK17HighsSparseMatrix19debugReportRowPriceEidiRKSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(112) %0, i32 noundef %57, double noundef %80, i32 noundef %.0124, ptr noundef nonnull align 8 dereferenceable(24) %51)
          to label %85 unwind label %83

83:                                               ; preds = %82
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %212

85:                                               ; preds = %78, %82
  %86 = fcmp une double %80, 0.000000e+00
  br i1 %86, label %89, label %.thread138

.thread138:                                       ; preds = %85
  %87 = add nsw i64 %indvars.iv169, 1
  %88 = trunc nsw i64 %87 to i32
  br label %126

89:                                               ; preds = %85
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %.pre-phi) #9
  %91 = load i32, ptr %90, align 4, !tbaa !29
  %92 = icmp slt i32 %91, %.0124
  br i1 %1, label %93, label %103

93:                                               ; preds = %89
  br i1 %92, label %.lr.ph147.preheader, label %.loopexit143

.lr.ph147.preheader:                              ; preds = %93
  %94 = sext i32 %91 to i64
  br label %.lr.ph147

.lr.ph147:                                        ; preds = %.lr.ph147.preheader, %100
  %indvars.iv164 = phi i64 [ %94, %.lr.ph147.preheader ], [ %indvars.iv.next165, %100 ]
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %indvars.iv164) #9
  %96 = load i32, ptr %95, align 4, !tbaa !29
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %indvars.iv164) #9
  %98 = load double, ptr %97, align 8, !tbaa !31
  %99 = fmul double %80, %98
  invoke void @_ZN20HighsSparseVectorSum3addEid(ptr noundef nonnull align 8 dereferenceable(48) %9, i32 noundef %96, double noundef %99)
          to label %100 unwind label %101

100:                                              ; preds = %.lr.ph147
  %indvars.iv.next165 = add nsw i64 %indvars.iv164, 1
  %lftr.wideiv167 = trunc i64 %indvars.iv.next165 to i32
  %exitcond168.not = icmp eq i32 %.0124, %lftr.wideiv167
  br i1 %exitcond168.not, label %.loopexit143, label %.lr.ph147, !llvm.loop !32

101:                                              ; preds = %.lr.ph147
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %212

103:                                              ; preds = %89
  br i1 %92, label %.lr.ph.preheader, label %.loopexit143

.lr.ph.preheader:                                 ; preds = %103
  %104 = sext i32 %91 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %119
  %indvars.iv = phi i64 [ %104, %.lr.ph.preheader ], [ %indvars.iv.next, %119 ]
  %105 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %indvars.iv) #9
  %106 = load i32, ptr %105, align 4, !tbaa !29
  %107 = sext i32 %106 to i64
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %107) #9
  %109 = load double, ptr %108, align 8, !tbaa !31
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %indvars.iv) #9
  %111 = load double, ptr %110, align 8, !tbaa !31
  %112 = call double @llvm.fmuladd.f64(double %80, double %111, double %109)
  %113 = fcmp oeq double %109, 0.000000e+00
  br i1 %113, label %114, label %119

114:                                              ; preds = %.lr.ph
  %115 = load i32, ptr %48, align 4, !tbaa !28
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %48, align 4, !tbaa !28
  %117 = sext i32 %115 to i64
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %117) #9
  store i32 %106, ptr %118, align 4, !tbaa !29
  br label %119

119:                                              ; preds = %114, %.lr.ph
  %120 = call double @llvm.fabs.f64(double %112)
  %121 = fcmp olt double %120, 0x3D06849B86A12B9B
  %122 = select i1 %121, double 1.000000e-50, double %112
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %107) #9
  store double %122, ptr %123, align 8, !tbaa !31
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next to i32
  %exitcond.not = icmp eq i32 %.0124, %lftr.wideiv
  br i1 %exitcond.not, label %.loopexit143, label %.lr.ph, !llvm.loop !34

.loopexit143:                                     ; preds = %119, %100, %103, %93
  %124 = add nsw i64 %indvars.iv169, 1
  %125 = add nsw i32 %indvars171, 1
  br label %126

126:                                              ; preds = %.loopexit143, %.thread138
  %indvars.iv.next170.pre-phi = phi i64 [ %87, %.thread138 ], [ %124, %.loopexit143 ]
  %127 = phi i32 [ %88, %.thread138 ], [ %125, %.loopexit143 ]
  %128 = load i32, ptr %42, align 4, !tbaa !28
  %129 = sext i32 %128 to i64
  %130 = icmp slt i64 %indvars.iv.next170.pre-phi, %129
  br i1 %130, label %55, label %.thread, !llvm.loop !35

.thread:                                          ; preds = %126, %67, %39, %37
  %.3119 = phi i32 [ %5, %37 ], [ %5, %39 ], [ %.0116149, %67 ], [ %127, %126 ]
  br i1 %1, label %131, label %.thread139

131:                                              ; preds = %.thread
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #9
  invoke void @"_ZN20HighsSparseVectorSum7cleanupIZNK17HighsSparseMatrix20priceByRowWithSwitchEbR11HVectorBaseIdERKS3_didiE3$_0EEvOT_"(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %134 unwind label %132

132:                                              ; preds = %131
  %133 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #9
  br label %212

134:                                              ; preds = %131
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #9
  %135 = getelementptr inbounds i8, ptr %3, i64 4
  %136 = load i32, ptr %135, align 4, !tbaa !28
  %137 = icmp slt i32 %.3119, %136
  br i1 %137, label %141, label %193

.thread139:                                       ; preds = %.thread
  %138 = getelementptr inbounds i8, ptr %3, i64 4
  %139 = load i32, ptr %138, align 4, !tbaa !28
  %140 = icmp slt i32 %.3119, %139
  br i1 %140, label %.thread140, label %.thread141

141:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #9
  invoke void @_ZNSt6vectorI12HighsCDoubleSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %142 unwind label %148

142:                                              ; preds = %141
  invoke void @_ZNK17HighsSparseMatrix21priceByRowDenseResultERSt6vectorI12HighsCDoubleSaIS1_EERK11HVectorBaseIdEii(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(176) %3, i32 noundef %.3119, i32 noundef -2)
          to label %143 unwind label %150

143:                                              ; preds = %142
  %144 = getelementptr inbounds i8, ptr %2, i64 4
  store i32 0, ptr %144, align 4, !tbaa !28
  %145 = load i32, ptr %26, align 4, !tbaa !5
  %146 = icmp sgt i32 %145, 0
  br i1 %146, label %.lr.ph160, label %._crit_edge

.lr.ph160:                                        ; preds = %143
  %147 = getelementptr inbounds i8, ptr %2, i64 32
  br label %152

._crit_edge:                                      ; preds = %165, %143
  call void @_ZNSt6vectorI12HighsCDoubleSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #9
  br label %.loopexit

148:                                              ; preds = %141
  %149 = landingpad { ptr, i32 }
          cleanup
  br label %169

150:                                              ; preds = %142
  %151 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI12HighsCDoubleSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #9
  br label %169

152:                                              ; preds = %.lr.ph160, %165
  %indvars.iv179 = phi i64 [ 0, %.lr.ph160 ], [ %indvars.iv.next180, %165 ]
  %153 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI12HighsCDoubleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv179) #9
  %154 = call noundef double @_ZNK12HighsCDoublecvdEv(ptr noundef nonnull align 8 dereferenceable(16) %153)
  %155 = call double @llvm.fabs.f64(double %154)
  %156 = fcmp olt double %155, 0x3D06849B86A12B9B
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %147, i64 noundef %indvars.iv179) #9
  br i1 %156, label %158, label %159

158:                                              ; preds = %152
  store double 0.000000e+00, ptr %157, align 8, !tbaa !31
  br label %165

159:                                              ; preds = %152
  store double %154, ptr %157, align 8, !tbaa !31
  %160 = load i32, ptr %144, align 4, !tbaa !28
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %144, align 4, !tbaa !28
  %162 = sext i32 %160 to i64
  %163 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %162) #9
  %164 = trunc nuw nsw i64 %indvars.iv179 to i32
  store i32 %164, ptr %163, align 4, !tbaa !29
  br label %165

165:                                              ; preds = %159, %158
  %indvars.iv.next180 = add nuw nsw i64 %indvars.iv179, 1
  %166 = load i32, ptr %26, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = icmp slt i64 %indvars.iv.next180, %167
  br i1 %168, label %152, label %._crit_edge, !llvm.loop !36

169:                                              ; preds = %150, %148
  %.pn133 = phi { ptr, i32 } [ %151, %150 ], [ %149, %148 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #9
  br label %212

.thread140:                                       ; preds = %.thread139
  %170 = getelementptr inbounds i8, ptr %2, i64 32
  invoke void @_ZNK17HighsSparseMatrix21priceByRowDenseResultERSt6vectorIdSaIdEERK11HVectorBaseIdEii(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 8 dereferenceable(24) %170, ptr noundef nonnull align 8 dereferenceable(176) %3, i32 noundef %.3119, i32 noundef -2)
          to label %171 unwind label %175

171:                                              ; preds = %.thread140
  %172 = getelementptr inbounds i8, ptr %2, i64 4
  store i32 0, ptr %172, align 4, !tbaa !28
  %173 = load i32, ptr %26, align 4, !tbaa !5
  %174 = icmp sgt i32 %173, 0
  br i1 %174, label %.lr.ph158, label %.loopexit

175:                                              ; preds = %.thread141, %.thread140
  %176 = landingpad { ptr, i32 }
          cleanup
  br label %212

.lr.ph158:                                        ; preds = %171, %189
  %indvars.iv176 = phi i64 [ %indvars.iv.next177, %189 ], [ 0, %171 ]
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %170, i64 noundef %indvars.iv176) #9
  %178 = load double, ptr %177, align 8, !tbaa !31
  %179 = call double @llvm.fabs.f64(double %178)
  %180 = fcmp olt double %179, 0x3D06849B86A12B9B
  br i1 %180, label %181, label %183

181:                                              ; preds = %.lr.ph158
  %182 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %170, i64 noundef %indvars.iv176) #9
  store double 0.000000e+00, ptr %182, align 8, !tbaa !31
  br label %189

183:                                              ; preds = %.lr.ph158
  %184 = load i32, ptr %172, align 4, !tbaa !28
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %172, align 4, !tbaa !28
  %186 = sext i32 %184 to i64
  %187 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %186) #9
  %188 = trunc nuw nsw i64 %indvars.iv176 to i32
  store i32 %188, ptr %187, align 4, !tbaa !29
  br label %189

189:                                              ; preds = %183, %181
  %indvars.iv.next177 = add nuw nsw i64 %indvars.iv176, 1
  %190 = load i32, ptr %26, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = icmp slt i64 %indvars.iv.next177, %191
  br i1 %192, label %.lr.ph158, label %.loopexit, !llvm.loop !37

193:                                              ; preds = %134
  %194 = getelementptr inbounds i8, ptr %9, i64 24
  %195 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(24) %194) #9
  %196 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  %197 = load i32, ptr %26, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %198)
          to label %199 unwind label %204

199:                                              ; preds = %193
  %200 = trunc i64 %196 to i32
  %201 = getelementptr inbounds i8, ptr %2, i64 4
  store i32 %200, ptr %201, align 4, !tbaa !28
  %202 = icmp sgt i32 %200, 0
  br i1 %202, label %.lr.ph156, label %.loopexit

.lr.ph156:                                        ; preds = %199
  %203 = getelementptr inbounds i8, ptr %2, i64 32
  %wide.trip.count = and i64 %196, 2147483647
  br label %206

204:                                              ; preds = %193
  %205 = landingpad { ptr, i32 }
          cleanup
  br label %212

206:                                              ; preds = %.lr.ph156, %206
  %indvars.iv172 = phi i64 [ 0, %.lr.ph156 ], [ %indvars.iv.next173, %206 ]
  %207 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %indvars.iv172) #9
  %208 = load i32, ptr %207, align 4, !tbaa !29
  %209 = call noundef double @_ZNK20HighsSparseVectorSum8getValueEi(ptr noundef nonnull align 8 dereferenceable(48) %9, i32 noundef %208)
  %210 = sext i32 %208 to i64
  %211 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %203, i64 noundef %210) #9
  store double %209, ptr %211, align 8, !tbaa !31
  %indvars.iv.next173 = add nuw nsw i64 %indvars.iv172, 1
  %exitcond175.not = icmp eq i64 %indvars.iv.next173, %wide.trip.count
  br i1 %exitcond175.not, label %.loopexit, label %206, !llvm.loop !38

.thread141:                                       ; preds = %.thread139
  invoke void @_ZN11HVectorBaseIdE5tightEv(ptr noundef nonnull align 8 dereferenceable(176) %2)
          to label %.loopexit unwind label %175

.loopexit:                                        ; preds = %189, %206, %199, %171, %.thread141, %._crit_edge
  call void @_ZN20HighsSparseVectorSumD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #9
  ret void

212:                                              ; preds = %132, %169, %175, %204, %101, %83, %18
  %.pn133.pn.pn = phi { ptr, i32 } [ %19, %18 ], [ %.pn133, %169 ], [ %176, %175 ], [ %205, %204 ], [ %133, %132 ], [ %102, %101 ], [ %84, %83 ]
  call void @_ZN20HighsSparseVectorSumD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #9
  resume { ptr, i32 } %.pn133.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN20HighsSparseVectorSumC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN20HighsSparseVectorSum12setDimensionEi(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK17HighsSparseMatrix19debugReportRowPriceEidiRKSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(112), i32 noundef, double noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN20HighsSparseVectorSum7cleanupIZNK17HighsSparseMatrix20priceByRowWithSwitchEbR11HVectorBaseIdERKS3_didiE3$_0EEvOT_"(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI12HighsCDoubleSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK17HighsSparseMatrix21priceByRowDenseResultERSt6vectorI12HighsCDoubleSaIS1_EERK11HVectorBaseIdEii(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(176), i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK17HighsSparseMatrix21priceByRowDenseResultERSt6vectorIdSaIdEERK11HVectorBaseIdEii(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(176), i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

declare void @_ZN11HVectorBaseIdE5tightEv(ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #7

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 4}
!6 = !{!"_ZTS17HighsSparseMatrix", !7, i64 0, !10, i64 4, !10, i64 8, !11, i64 16, !11, i64 40, !11, i64 64, !16, i64 88}
!7 = !{!"_ZTS12MatrixFormat", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTSSt6vectorIiSaIiEE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"_ZTSSt6vectorIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!20 = !{!21, !10, i64 0}
!21 = !{!"_ZTS11HVectorBaseIdE", !10, i64 0, !10, i64 4, !11, i64 8, !16, i64 32, !22, i64 56, !23, i64 64, !11, i64 88, !15, i64 112, !27, i64 120, !10, i64 124, !11, i64 128, !16, i64 152}
!22 = !{!"double", !8, i64 0}
!23 = !{!"_ZTSSt6vectorIcSaIcEE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!27 = !{!"bool", !8, i64 0}
!28 = !{!21, !10, i64 4}
!29 = !{!10, !10, i64 0}
!30 = !{!6, !7, i64 0}
!31 = !{!22, !22, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = distinct !{!34, !33}
!35 = distinct !{!35, !33}
!36 = distinct !{!36, !33}
!37 = distinct !{!37, !33}
!38 = distinct !{!38, !33}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass