; LLVM IR from ERGO-Code/HiGHS :: src/simplex/HEkkDualMulti.ll (ZN8HEkkDual15minorUpdateRowsEv)

; 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.anon.89 = type { ptr, ptr, ptr, ptr }
%class.HEkkDual = type { i32, i32, i8, i8, ptr, i32, i32, i32, double, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i32, i8, double, double, double, double, double, i8, i32, i32, %class.HVectorBase, %class.HVectorBase, %class.HVectorBase, %class.HVectorBase, %class.HVectorBase, %class.HVectorBase, %class.HVectorBase, %class.HEkkDualRow, i32, %class.HEkkDualRHS, i32, i32, i32, i32, double, double, double, double, double, double, double, i8, i32, i32, [9 x i32], [8 x %class.HighsSparseMatrix], [8 x %class.HighsSparseMatrix], [8 x %class.HVectorBase], %"class.std::vector.18", i32, i32, i32, i32, i32, i32, [8 x %"struct.HEkkDual::MChoice"], [8 x %"struct.HEkkDual::MFinish"] }
%class.HVectorBase = type { i32, i32, %"class.std::vector", %"class.std::vector.3", double, %"class.std::vector.8", %"class.std::vector", ptr, i8, i32, %"class.std::vector", %"class.std::vector.3" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = 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 }
%"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.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.HEkkDualRow = type { ptr, i32, ptr, ptr, ptr, ptr, ptr, %"class.std::set", i32, %"class.std::vector", %"class.std::vector.3", double, double, double, double, i32, i32, %"class.std::vector.13", %"class.std::vector", i32, %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector", ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<std::pair<int, double>, std::allocator<std::pair<int, double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, double>, std::allocator<std::pair<int, double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, double>, std::allocator<std::pair<int, double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, double>, std::allocator<std::pair<int, double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.HEkkDualRHS = type { ptr, double, i32, %"class.std::vector.8", %"class.std::vector", %"class.std::vector.3", i32, i32, i32, i32, i32, %"class.std::vector", ptr }
%class.HighsSparseMatrix = type { i32, i32, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.3" }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<HEkkDualRow, std::allocator<HEkkDualRow>>::_Vector_impl" }
%"struct.std::_Vector_base<HEkkDualRow, std::allocator<HEkkDualRow>>::_Vector_impl" = type { %"struct.std::_Vector_base<HEkkDualRow, std::allocator<HEkkDualRow>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HEkkDualRow, std::allocator<HEkkDualRow>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.HEkkDual::MChoice" = type { i32, double, double, double, double, double, double, %class.HVectorBase, %class.HVectorBase, %class.HVectorBase }
%"struct.HEkkDual::MFinish" = type { i8, double, %"class.std::vector", i32, i32, i32, double, double, double, double, double, ptr, ptr, ptr }

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

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

declare void @_ZN20HighsSimplexAnalysis17simplexTimerStartEii(ptr noundef nonnull align 8 dereferenceable(8576), i32 noundef, i32 noundef) #1

declare void @_ZN20HighsSimplexAnalysis16simplexTimerStopEii(ptr noundef nonnull align 8 dereferenceable(8576), i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8HEkkDual15minorUpdateRowsEv(ptr noundef nonnull align 8 dereferenceable(10968) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca [8 x i32], align 16
  %7 = alloca [8 x double], align 16
  %8 = alloca [8 x ptr], align 16
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca double, align 8
  %13 = alloca %class.anon.89, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca double, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %18 = load ptr, ptr %2, align 8
  %19 = getelementptr inbounds %class.HEkkDual, ptr %18, i32 0, i32 11
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  call void @_ZN20HighsSimplexAnalysis17simplexTimerStartEii(ptr noundef nonnull align 8 dereferenceable(8576) %20, i32 noundef 72, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %21 = getelementptr inbounds %class.HEkkDual, ptr %18, i32 0, i32 71
  %22 = getelementptr inbounds %class.HEkkDual, ptr %18, i32 0, i32 67
  %23 = load i32, ptr %22, align 4, !tbaa !48
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [8 x %"struct.HEkkDual::MFinish"], ptr %21, i64 0, i64 %24
  %26 = getelementptr inbounds %"struct.HEkkDual::MFinish", ptr %25, i32 0, i32 11
  %27 = load ptr, ptr %26, align 8, !tbaa !49
  store ptr %27, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %class.HVectorBase, ptr %28, i32 0, i32 1
  %30 = load i32, ptr %29, align 4, !tbaa !51
  %31 = icmp slt i32 %30, 0
  br i1 %31, label %42, label %32

32:                                               ; preds = %1
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %class.HVectorBase, ptr %33, i32 0, i32 1
  %35 = load i32, ptr %34, align 4, !tbaa !51
  %36 = sitofp i32 %35 to double
  %37 = getelementptr inbounds %class.HEkkDual, ptr %18, i32 0, i32 5
  %38 = load i32, ptr %37, align 8, !tbaa !52
  %39 = sitofp i32 %38 to double
  %40 = fmul double 1.000000e-01, %39
  %41 = fcmp ogt double %36, %40
  br label %42

42:                                               ; preds = %32, %1
  %43 = phi i1 [ true, %1 ], [ %41, %32 ]
  %44 = zext i1 %43 to i32
  store i32 %44, ptr %4, align 4, !tbaa !53
  %45 = load i32, ptr %4, align 4, !tbaa !53
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %137

47:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !53
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !53
  br label %48

48:                                               ; preds = %101, %47
  %49 = load i32, ptr %9, align 4, !tbaa !53
  %50 = getelementptr inbounds %class.HEkkDual, ptr %18, i32 0, i32 64
  %51 = load i32, ptr %50, align 8, !tbaa !54
  %52 = icmp slt i32 %49, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %48
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %104

54:                                               ; preds = %48
  %55 = getelementptr inbounds %class.HEkkDual, ptr %18, i32 0, i32 70
  %56 = load i32, ptr %9, align 4, !tbaa !53
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [8 x %"struct.HEkkDual::MChoice"], ptr %55, i64 0, i64 %57
  %59 = getelementptr inbounds %"struct.HEkkDual::MChoice", ptr %58, i32 0, i32 0
  %60 = load i32, ptr %59, align 8, !tbaa !55
  %61 = icmp sge i32 %60, 0
  br i1 %61, label %62, label %100

62:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %63 = getelementptr inbounds %class.HEkkDual, ptr %18, i32 0, i32 70
  %64 = load i32, ptr %9, align 4, !tbaa !53
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [8 x %"struct.HEkkDual::MChoice"], ptr %63, i64 0, i64 %65
  %67 = getelementptr inbounds %"struct.HEkkDual::MChoice", ptr %66, i32 0, i32 7
  store ptr %67, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %68 = getelementptr inbounds %class.HEkkDual, ptr %18, i32 0, i32 9
  %69 = load ptr, ptr %68, align 8, !tbaa !57
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = getelementptr inbounds %class.HEkkDual, ptr %18, i32 0, i32 48
  %72 = load i32, ptr %71, align 4, !tbaa !58
  %73 = call noundef double @_ZNK17HighsSparseMatrix10computeDotERK11HVectorBaseIdEi(ptr noundef nonnull align 8 dereferenceable(112) %69, ptr noundef nonnull align 8 dereferenceable(176) %70, i32 noundef %72)
  store double %73, ptr %12, align 8, !tbaa !59
  %74 = load double, ptr %12, align 8, !tbaa !59
  %75 = call double @llvm.fabs.f64(double %74)
  %76 = fcmp olt double %75, 0x3D06849B86A12B9B
  br i1 %76, label %77, label %78

77:                                               ; preds = %62
  store i32 4, ptr %10, align 4
  br label %97

78:                                               ; preds = %62
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = load i32, ptr %5, align 4, !tbaa !53
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [8 x ptr], ptr %8, i64 0, i64 %81
  store ptr %79, ptr %82, align 8, !tbaa !5
  %83 = load double, ptr %12, align 8, !tbaa !59
  %84 = fneg double %83
  %85 = getelementptr inbounds %class.HEkkDual, ptr %18, i32 0, i32 53
  %86 = load double, ptr %85, align 8, !tbaa !60
  %87 = fdiv double %84, %86
  %88 = load i32, ptr %5, align 4, !tbaa !53
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 %89
  store double %87, ptr %90, align 8, !tbaa !59
  %91 = load i32, ptr %9, align 4, !tbaa !53
  %92 = load i32, ptr %5, align 4, !tbaa !53
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [8 x i32], ptr %6, i64 0, i64 %93
  store i32 %91, ptr %94, align 4, !tbaa !53
  %95 = load i32, ptr %5, align 4, !tbaa !53
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %5, align 4, !tbaa !53
  store i32 0, ptr %10, align 4
  br label %97

97:                                               ; preds = %78, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  %98 = load i32, ptr %10, align 4
  switch i32 %98, label %200 [
    i32 0, label %99
    i32 4, label %101
  ]

99:                                               ; preds = %97
  br label %100

100:                                              ; preds = %99, %54
  br label %101

101:                                              ; preds = %100, %97
  %102 = load i32, ptr %9, align 4, !tbaa !53
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %9, align 4, !tbaa !53
  br label %48, !llvm.loop !61

104:                                              ; preds = %53
  %105 = load i32, ptr %5, align 4, !tbaa !53
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #4
  %106 = getelementptr inbounds %class.anon.89, ptr %13, i32 0, i32 0
  store ptr %8, ptr %106, align 8, !tbaa !5
  %107 = getelementptr inbounds %class.anon.89, ptr %13, i32 0, i32 1
  store ptr %7, ptr %107, align 8, !tbaa !5
  %108 = getelementptr inbounds %class.anon.89, ptr %13, i32 0, i32 2
  store ptr %3, ptr %108, align 8, !tbaa !5
  %109 = getelementptr inbounds %class.anon.89, ptr %13, i32 0, i32 3
  store ptr %18, ptr %109, align 8, !tbaa !63
  call void @"_ZN5highs8parallel8for_eachIZN8HEkkDual15minorUpdateRowsEvE3$_0EEviiOT_i"(i32 noundef 0, i32 noundef %105, ptr noundef nonnull align 8 dereferenceable(32) %13, i32 noundef 1)
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  %110 = getelementptr inbounds %class.HEkkDual, ptr %18, i32 0, i32 25
  %111 = load i32, ptr %110, align 4, !tbaa !65
  %112 = icmp eq i32 %111, 2
  br i1 %112, label %113, label %136

113:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !53
  br label %114

114:                                              ; preds = %132, %113
  %115 = load i32, ptr %14, align 4, !tbaa !53
  %116 = load i32, ptr %5, align 4, !tbaa !53
  %117 = icmp slt i32 %115, %116
  br i1 %117, label %119, label %118

118:                                              ; preds = %114
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %135

119:                                              ; preds = %114
  %120 = load i32, ptr %14, align 4, !tbaa !53
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [8 x double], ptr %7, i64 0, i64 %121
  %123 = load double, ptr %122, align 8, !tbaa !59
  %124 = getelementptr inbounds %class.HEkkDual, ptr %18, i32 0, i32 70
  %125 = load i32, ptr %14, align 4, !tbaa !53
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [8 x i32], ptr %6, i64 0, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !53
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [8 x %"struct.HEkkDual::MChoice"], ptr %124, i64 0, i64 %129
  %131 = getelementptr inbounds %"struct.HEkkDual::MChoice", ptr %130, i32 0, i32 5
  store double %123, ptr %131, align 8, !tbaa !66
  br label %132

132:                                              ; preds = %119
  %133 = load i32, ptr %14, align 4, !tbaa !53
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %14, align 4, !tbaa !53
  br label %114, !llvm.loop !67

135:                                              ; preds = %118
  br label %136

136:                                              ; preds = %135, %104
  call void @llvm.lifetime.end.p0(i64 64, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %197

137:                                              ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !53
  br label %138

138:                                              ; preds = %193, %137
  %139 = load i32, ptr %15, align 4, !tbaa !53
  %140 = getelementptr inbounds %class.HEkkDual, ptr %18, i32 0, i32 64
  %141 = load i32, ptr %140, align 8, !tbaa !54
  %142 = icmp slt i32 %139, %141
  br i1 %142, label %144, label %143

143:                                              ; preds = %138
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %196

144:                                              ; preds = %138
  %145 = getelementptr inbounds %class.HEkkDual, ptr %18, i32 0, i32 70
  %146 = load i32, ptr %15, align 4, !tbaa !53
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [8 x %"struct.HEkkDual::MChoice"], ptr %145, i64 0, i64 %147
  %149 = getelementptr inbounds %"struct.HEkkDual::MChoice", ptr %148, i32 0, i32 0
  %150 = load i32, ptr %149, align 8, !tbaa !55
  %151 = icmp sge i32 %150, 0
  br i1 %151, label %152, label %192

152:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %153 = getelementptr inbounds %class.HEkkDual, ptr %18, i32 0, i32 70
  %154 = load i32, ptr %15, align 4, !tbaa !53
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [8 x %"struct.HEkkDual::MChoice"], ptr %153, i64 0, i64 %155
  %157 = getelementptr inbounds %"struct.HEkkDual::MChoice", ptr %156, i32 0, i32 7
  store ptr %157, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %158 = getelementptr inbounds %class.HEkkDual, ptr %18, i32 0, i32 9
  %159 = load ptr, ptr %158, align 8, !tbaa !57
  %160 = load ptr, ptr %16, align 8, !tbaa !5
  %161 = getelementptr inbounds %class.HEkkDual, ptr %18, i32 0, i32 48
  %162 = load i32, ptr %161, align 4, !tbaa !58
  %163 = call noundef double @_ZNK17HighsSparseMatrix10computeDotERK11HVectorBaseIdEi(ptr noundef nonnull align 8 dereferenceable(112) %159, ptr noundef nonnull align 8 dereferenceable(176) %160, i32 noundef %162)
  store double %163, ptr %17, align 8, !tbaa !59
  %164 = load double, ptr %17, align 8, !tbaa !59
  %165 = call double @llvm.fabs.f64(double %164)
  %166 = fcmp olt double %165, 0x3D06849B86A12B9B
  br i1 %166, label %167, label %168

167:                                              ; preds = %152
  store i32 10, ptr %10, align 4
  br label %189

168:                                              ; preds = %152
  %169 = load ptr, ptr %16, align 8, !tbaa !5
  %170 = load double, ptr %17, align 8, !tbaa !59
  %171 = fneg double %170
  %172 = getelementptr inbounds %class.HEkkDual, ptr %18, i32 0, i32 53
  %173 = load double, ptr %172, align 8, !tbaa !60
  %174 = fdiv double %171, %173
  %175 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11HVectorBaseIdE5saxpyIddEEvT_PKS_IT0_E(ptr noundef nonnull align 8 dereferenceable(176) %169, double noundef %174, ptr noundef %175)
  %176 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11HVectorBaseIdE5tightEv(ptr noundef nonnull align 8 dereferenceable(176) %176)
  %177 = getelementptr inbounds %class.HEkkDual, ptr %18, i32 0, i32 25
  %178 = load i32, ptr %177, align 4, !tbaa !65
  %179 = icmp eq i32 %178, 2
  br i1 %179, label %180, label %188

180:                                              ; preds = %168
  %181 = load ptr, ptr %16, align 8, !tbaa !5
  %182 = call noundef double @_ZNK11HVectorBaseIdE5norm2Ev(ptr noundef nonnull align 8 dereferenceable(176) %181)
  %183 = getelementptr inbounds %class.HEkkDual, ptr %18, i32 0, i32 70
  %184 = load i32, ptr %15, align 4, !tbaa !53
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [8 x %"struct.HEkkDual::MChoice"], ptr %183, i64 0, i64 %185
  %187 = getelementptr inbounds %"struct.HEkkDual::MChoice", ptr %186, i32 0, i32 5
  store double %182, ptr %187, align 8, !tbaa !66
  br label %188

188:                                              ; preds = %180, %168
  store i32 0, ptr %10, align 4
  br label %189

189:                                              ; preds = %188, %167
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  %190 = load i32, ptr %10, align 4
  switch i32 %190, label %200 [
    i32 0, label %191
    i32 10, label %193
  ]

191:                                              ; preds = %189
  br label %192

192:                                              ; preds = %191, %144
  br label %193

193:                                              ; preds = %192, %189
  %194 = load i32, ptr %15, align 4, !tbaa !53
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %15, align 4, !tbaa !53
  br label %138, !llvm.loop !68

196:                                              ; preds = %143
  br label %197

197:                                              ; preds = %196, %136
  %198 = getelementptr inbounds %class.HEkkDual, ptr %18, i32 0, i32 11
  %199 = load ptr, ptr %198, align 8, !tbaa !9
  call void @_ZN20HighsSimplexAnalysis16simplexTimerStopEii(ptr noundef nonnull align 8 dereferenceable(8576) %199, i32 noundef 72, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret void

200:                                              ; preds = %189, %97
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK17HighsSparseMatrix10computeDotERK11HVectorBaseIdEi(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(176), i32 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN5highs8parallel8for_eachIZN8HEkkDual15minorUpdateRowsEvE3$_0EEviiOT_i"(i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #2

declare void @_ZN11HVectorBaseIdE5saxpyIddEEvT_PKS_IT0_E(ptr noundef nonnull align 8 dereferenceable(176), double noundef, ptr noundef) #1

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

declare noundef double @_ZNK11HVectorBaseIdE5norm2Ev(ptr noundef nonnull align 8 dereferenceable(176)) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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, !6, i64 64}
!10 = !{!"_ZTS8HEkkDual", !11, i64 0, !12, i64 4, !13, i64 8, !13, i64 9, !6, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !14, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !13, i64 168, !15, i64 172, !13, i64 176, !14, i64 184, !14, i64 192, !14, i64 200, !14, i64 208, !14, i64 216, !13, i64 224, !12, i64 228, !12, i64 232, !16, i64 240, !16, i64 416, !16, i64 592, !16, i64 768, !16, i64 944, !16, i64 1120, !16, i64 1296, !29, i64 1472, !12, i64 1808, !43, i64 1816, !12, i64 1968, !12, i64 1972, !12, i64 1976, !12, i64 1980, !14, i64 1984, !14, i64 1992, !14, i64 2000, !14, i64 2008, !14, i64 2016, !14, i64 2024, !14, i64 2032, !13, i64 2040, !12, i64 2044, !12, i64 2048, !7, i64 2052, !7, i64 2088, !7, i64 2984, !7, i64 3880, !44, i64 5288, !12, i64 5312, !12, i64 5316, !12, i64 5320, !12, i64 5324, !12, i64 5328, !12, i64 5332, !7, i64 5336, !7, i64 10008}
!11 = !{!"_ZTS16SimplexAlgorithm", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!"_ZTS14EdgeWeightMode", !7, i64 0}
!16 = !{!"_ZTS11HVectorBaseIdE", !12, i64 0, !12, i64 4, !17, i64 8, !21, i64 32, !14, i64 56, !25, i64 64, !17, i64 88, !6, i64 112, !13, i64 120, !12, i64 124, !17, i64 128, !21, i64 152}
!17 = !{!"_ZTSSt6vectorIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSSt6vectorIdSaIdEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTSSt6vectorIcSaIcEE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"_ZTS11HEkkDualRow", !6, i64 0, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !30, i64 56, !12, i64 104, !17, i64 112, !21, i64 136, !14, i64 160, !14, i64 168, !14, i64 176, !14, i64 184, !12, i64 192, !12, i64 196, !39, i64 200, !17, i64 224, !12, i64 248, !39, i64 256, !39, i64 280, !17, i64 304, !6, i64 328}
!30 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !31, i64 0}
!31 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !32, i64 0}
!32 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !33, i64 0, !35, i64 8}
!33 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !34, i64 0}
!34 = !{!"_ZTSSt4lessIiE"}
!35 = !{!"_ZTSSt15_Rb_tree_header", !36, i64 0, !38, i64 32}
!36 = !{!"_ZTSSt18_Rb_tree_node_base", !37, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!37 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!38 = !{!"long", !7, i64 0}
!39 = !{!"_ZTSSt6vectorISt4pairIidESaIS1_EE", !40, i64 0}
!40 = !{!"_ZTSSt12_Vector_baseISt4pairIidESaIS1_EE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseISt4pairIidESaIS1_EE12_Vector_implE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseISt4pairIidESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!43 = !{!"_ZTS11HEkkDualRHS", !6, i64 0, !14, i64 8, !12, i64 16, !25, i64 24, !17, i64 48, !21, i64 72, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112, !17, i64 120, !6, i64 144}
!44 = !{!"_ZTSSt6vectorI11HEkkDualRowSaIS0_EE", !45, i64 0}
!45 = !{!"_ZTSSt12_Vector_baseI11HEkkDualRowSaIS0_EE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseI11HEkkDualRowSaIS0_EE12_Vector_implE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseI11HEkkDualRowSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!48 = !{!10, !12, i64 5324}
!49 = !{!50, !6, i64 96}
!50 = !{!"_ZTSN8HEkkDual7MFinishE", !7, i64 0, !14, i64 8, !17, i64 16, !12, i64 40, !12, i64 44, !12, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !6, i64 96, !6, i64 104, !6, i64 112}
!51 = !{!16, !12, i64 4}
!52 = !{!10, !12, i64 24}
!53 = !{!12, !12, i64 0}
!54 = !{!10, !12, i64 5312}
!55 = !{!56, !12, i64 0}
!56 = !{!"_ZTSN8HEkkDual7MChoiceE", !12, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !16, i64 56, !16, i64 232, !16, i64 408}
!57 = !{!10, !6, i64 48}
!58 = !{!10, !12, i64 1980}
!59 = !{!14, !14, i64 0}
!60 = !{!10, !14, i64 2016}
!61 = distinct !{!61, !62}
!62 = !{!"llvm.loop.mustprogress"}
!63 = !{!64, !6, i64 24}
!64 = !{!"_ZTSZN8HEkkDual15minorUpdateRowsEvE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!65 = !{!10, !15, i64 172}
!66 = !{!56, !14, i64 40}
!67 = distinct !{!67, !62}
!68 = distinct !{!68, !62}


; 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.anon.89 = type { ptr, ptr, ptr, ptr }
%"struct.HEkkDual::MFinish" = type { i8, double, %"class.std::vector", i32, i32, i32, double, double, double, double, double, 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 }
%"struct.HEkkDual::MChoice" = type { i32, double, double, double, double, double, double, %class.HVectorBase, %class.HVectorBase, %class.HVectorBase }
%class.HVectorBase = type { i32, i32, %"class.std::vector", %"class.std::vector.3", double, %"class.std::vector.8", %"class.std::vector", ptr, i8, i32, %"class.std::vector", %"class.std::vector.3" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = 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 }
%"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 }

; 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

declare void @_ZN20HighsSimplexAnalysis17simplexTimerStartEii(ptr noundef nonnull align 8 dereferenceable(8576), i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @_ZN20HighsSimplexAnalysis16simplexTimerStopEii(ptr noundef nonnull align 8 dereferenceable(8576), i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8HEkkDual15minorUpdateRowsEv(ptr noundef nonnull align 8 dereferenceable(10968) %0) local_unnamed_addr #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca [8 x i32], align 16
  %4 = alloca [8 x double], align 16
  %5 = alloca [8 x ptr], align 16
  %6 = alloca %class.anon.89, align 8
  %7 = getelementptr inbounds i8, ptr %0, i64 64
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  tail call void @_ZN20HighsSimplexAnalysis17simplexTimerStartEii(ptr noundef nonnull align 8 dereferenceable(8576) %8, i32 noundef 72, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  %9 = getelementptr inbounds i8, ptr %0, i64 10008
  %10 = getelementptr inbounds i8, ptr %0, i64 5324
  %11 = load i32, ptr %10, align 4, !tbaa !47
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds [8 x %"struct.HEkkDual::MFinish"], ptr %9, i64 0, i64 %12, i32 11
  %14 = load ptr, ptr %13, align 8, !tbaa !48
  store ptr %14, ptr %2, align 8, !tbaa !50
  %15 = getelementptr inbounds i8, ptr %14, i64 4
  %16 = load i32, ptr %15, align 4, !tbaa !51
  %17 = icmp slt i32 %16, 0
  br i1 %17, label %.critedge, label %18

18:                                               ; preds = %1
  %19 = uitofp nneg i32 %16 to double
  %20 = getelementptr inbounds i8, ptr %0, i64 24
  %21 = load i32, ptr %20, align 8, !tbaa !52
  %22 = sitofp i32 %21 to double
  %23 = fmul double %22, 1.000000e-01
  %24 = fcmp olt double %23, %19
  br i1 %24, label %.critedge, label %.preheader35

.preheader35:                                     ; preds = %18
  %25 = getelementptr inbounds i8, ptr %0, i64 5312
  %26 = load i32, ptr %25, align 8, !tbaa !53
  %27 = icmp sgt i32 %26, 0
  br i1 %27, label %.lr.ph, label %.loopexit36

.lr.ph:                                           ; preds = %.preheader35
  %28 = getelementptr inbounds i8, ptr %0, i64 5336
  %29 = getelementptr inbounds i8, ptr %0, i64 48
  %30 = getelementptr inbounds i8, ptr %0, i64 1980
  %31 = getelementptr inbounds i8, ptr %0, i64 2016
  %32 = getelementptr inbounds i8, ptr %0, i64 172
  br label %105

.critedge:                                        ; preds = %1, %18
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #4
  %33 = getelementptr inbounds i8, ptr %0, i64 5312
  %34 = load i32, ptr %33, align 8, !tbaa !53
  %35 = icmp sgt i32 %34, 0
  br i1 %35, label %.lr.ph40, label %._crit_edge

.lr.ph40:                                         ; preds = %.critedge
  %36 = getelementptr inbounds i8, ptr %0, i64 5336
  %37 = getelementptr inbounds i8, ptr %0, i64 48
  %38 = getelementptr inbounds i8, ptr %0, i64 1980
  %39 = getelementptr inbounds i8, ptr %0, i64 2016
  br label %49

._crit_edge:                                      ; preds = %70, %.critedge
  %.0.lcssa = phi i32 [ 0, %.critedge ], [ %.2, %70 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #4
  store ptr %5, ptr %6, align 8, !tbaa !50
  %40 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr %4, ptr %40, align 8, !tbaa !50
  %41 = getelementptr inbounds i8, ptr %6, i64 16
  store ptr %2, ptr %41, align 8, !tbaa !50
  %42 = getelementptr inbounds i8, ptr %6, i64 24
  store ptr %0, ptr %42, align 8, !tbaa !54
  call void @"_ZN5highs8parallel8for_eachIZN8HEkkDual15minorUpdateRowsEvE3$_0EEviiOT_i"(i32 noundef 0, i32 noundef %.0.lcssa, ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef 1)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  %43 = getelementptr inbounds i8, ptr %0, i64 172
  %44 = load i32, ptr %43, align 4, !tbaa !56
  %45 = icmp eq i32 %44, 2
  %46 = icmp sgt i32 %.0.lcssa, 0
  %or.cond = and i1 %45, %46
  br i1 %or.cond, label %.lr.ph42, label %.loopexit

.lr.ph42:                                         ; preds = %._crit_edge
  %47 = getelementptr inbounds i8, ptr %0, i64 5336
  %wide.trip.count = zext nneg i32 %.0.lcssa to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %48 = icmp ult i32 %.0.lcssa, 4
  br i1 %48, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph42.new

.lr.ph42.new:                                     ; preds = %.lr.ph42
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %74

49:                                               ; preds = %.lr.ph40, %70
  %indvars.iv44 = phi i64 [ 0, %.lr.ph40 ], [ %indvars.iv.next45, %70 ]
  %.039 = phi i32 [ 0, %.lr.ph40 ], [ %.2, %70 ]
  %50 = getelementptr inbounds [8 x %"struct.HEkkDual::MChoice"], ptr %36, i64 0, i64 %indvars.iv44
  %51 = load i32, ptr %50, align 8, !tbaa !57
  %52 = icmp sgt i32 %51, -1
  br i1 %52, label %53, label %70

53:                                               ; preds = %49
  %54 = getelementptr inbounds i8, ptr %50, i64 56
  %55 = load ptr, ptr %37, align 8, !tbaa !59
  %56 = load i32, ptr %38, align 4, !tbaa !60
  %57 = tail call noundef double @_ZNK17HighsSparseMatrix10computeDotERK11HVectorBaseIdEi(ptr noundef nonnull align 8 dereferenceable(112) %55, ptr noundef nonnull align 8 dereferenceable(176) %54, i32 noundef %56)
  %58 = tail call double @llvm.fabs.f64(double %57)
  %59 = fcmp olt double %58, 0x3D06849B86A12B9B
  br i1 %59, label %70, label %60

60:                                               ; preds = %53
  %61 = sext i32 %.039 to i64
  %62 = getelementptr inbounds [8 x ptr], ptr %5, i64 0, i64 %61
  store ptr %54, ptr %62, align 8, !tbaa !50
  %63 = fneg double %57
  %64 = load double, ptr %39, align 8, !tbaa !61
  %65 = fdiv double %63, %64
  %66 = getelementptr inbounds [8 x double], ptr %4, i64 0, i64 %61
  store double %65, ptr %66, align 8, !tbaa !62
  %67 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 %61
  %68 = trunc nuw nsw i64 %indvars.iv44 to i32
  store i32 %68, ptr %67, align 4, !tbaa !63
  %69 = add nsw i32 %.039, 1
  br label %70

70:                                               ; preds = %60, %53, %49
  %.2 = phi i32 [ %.039, %49 ], [ %69, %60 ], [ %.039, %53 ]
  %indvars.iv.next45 = add nuw nsw i64 %indvars.iv44, 1
  %71 = load i32, ptr %33, align 8, !tbaa !53
  %72 = sext i32 %71 to i64
  %73 = icmp slt i64 %indvars.iv.next45, %72
  br i1 %73, label %49, label %._crit_edge, !llvm.loop !64

74:                                               ; preds = %74, %.lr.ph42.new
  %indvars.iv47 = phi i64 [ 0, %.lr.ph42.new ], [ %indvars.iv.next48.3, %74 ]
  %niter = phi i64 [ 0, %.lr.ph42.new ], [ %niter.next.3, %74 ]
  %75 = getelementptr inbounds [8 x double], ptr %4, i64 0, i64 %indvars.iv47
  %76 = load double, ptr %75, align 16, !tbaa !62
  %77 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 %indvars.iv47
  %78 = load i32, ptr %77, align 16, !tbaa !63
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [8 x %"struct.HEkkDual::MChoice"], ptr %47, i64 0, i64 %79, i32 5
  store double %76, ptr %80, align 8, !tbaa !66
  %indvars.iv.next48 = or disjoint i64 %indvars.iv47, 1
  %81 = getelementptr inbounds [8 x double], ptr %4, i64 0, i64 %indvars.iv.next48
  %82 = load double, ptr %81, align 8, !tbaa !62
  %83 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 %indvars.iv.next48
  %84 = load i32, ptr %83, align 4, !tbaa !63
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [8 x %"struct.HEkkDual::MChoice"], ptr %47, i64 0, i64 %85, i32 5
  store double %82, ptr %86, align 8, !tbaa !66
  %indvars.iv.next48.1 = or disjoint i64 %indvars.iv47, 2
  %87 = getelementptr inbounds [8 x double], ptr %4, i64 0, i64 %indvars.iv.next48.1
  %88 = load double, ptr %87, align 16, !tbaa !62
  %89 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 %indvars.iv.next48.1
  %90 = load i32, ptr %89, align 8, !tbaa !63
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [8 x %"struct.HEkkDual::MChoice"], ptr %47, i64 0, i64 %91, i32 5
  store double %88, ptr %92, align 8, !tbaa !66
  %indvars.iv.next48.2 = or disjoint i64 %indvars.iv47, 3
  %93 = getelementptr inbounds [8 x double], ptr %4, i64 0, i64 %indvars.iv.next48.2
  %94 = load double, ptr %93, align 8, !tbaa !62
  %95 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 %indvars.iv.next48.2
  %96 = load i32, ptr %95, align 4, !tbaa !63
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [8 x %"struct.HEkkDual::MChoice"], ptr %47, i64 0, i64 %97, i32 5
  store double %94, ptr %98, align 8, !tbaa !66
  %indvars.iv.next48.3 = add nuw nsw i64 %indvars.iv47, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.loopexit.loopexit.unr-lcssa, label %74, !llvm.loop !67

.loopexit.loopexit.unr-lcssa:                     ; preds = %74, %.lr.ph42
  %indvars.iv47.unr = phi i64 [ 0, %.lr.ph42 ], [ %indvars.iv.next48.3, %74 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit, label %.epil.preheader

.epil.preheader:                                  ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv47.epil = phi i64 [ %indvars.iv.next48.epil, %.epil.preheader ], [ %indvars.iv47.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %99 = getelementptr inbounds [8 x double], ptr %4, i64 0, i64 %indvars.iv47.epil
  %100 = load double, ptr %99, align 8, !tbaa !62
  %101 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 %indvars.iv47.epil
  %102 = load i32, ptr %101, align 4, !tbaa !63
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [8 x %"struct.HEkkDual::MChoice"], ptr %47, i64 0, i64 %103, i32 5
  store double %100, ptr %104, align 8, !tbaa !66
  %indvars.iv.next48.epil = add nuw nsw i64 %indvars.iv47.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.loopexit, label %.epil.preheader, !llvm.loop !68

.loopexit:                                        ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #4
  br label %.loopexit36

105:                                              ; preds = %.lr.ph, %125
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %125 ]
  %106 = getelementptr inbounds [8 x %"struct.HEkkDual::MChoice"], ptr %28, i64 0, i64 %indvars.iv
  %107 = load i32, ptr %106, align 8, !tbaa !57
  %108 = icmp sgt i32 %107, -1
  br i1 %108, label %109, label %125

109:                                              ; preds = %105
  %110 = getelementptr inbounds i8, ptr %106, i64 56
  %111 = load ptr, ptr %29, align 8, !tbaa !59
  %112 = load i32, ptr %30, align 4, !tbaa !60
  %113 = tail call noundef double @_ZNK17HighsSparseMatrix10computeDotERK11HVectorBaseIdEi(ptr noundef nonnull align 8 dereferenceable(112) %111, ptr noundef nonnull align 8 dereferenceable(176) %110, i32 noundef %112)
  %114 = tail call double @llvm.fabs.f64(double %113)
  %115 = fcmp olt double %114, 0x3D06849B86A12B9B
  br i1 %115, label %125, label %116

116:                                              ; preds = %109
  %117 = fneg double %113
  %118 = load double, ptr %31, align 8, !tbaa !61
  %119 = fdiv double %117, %118
  tail call void @_ZN11HVectorBaseIdE5saxpyIddEEvT_PKS_IT0_E(ptr noundef nonnull align 8 dereferenceable(176) %110, double noundef %119, ptr noundef %14)
  tail call void @_ZN11HVectorBaseIdE5tightEv(ptr noundef nonnull align 8 dereferenceable(176) %110)
  %120 = load i32, ptr %32, align 4, !tbaa !56
  %121 = icmp eq i32 %120, 2
  br i1 %121, label %122, label %125

122:                                              ; preds = %116
  %123 = tail call noundef double @_ZNK11HVectorBaseIdE5norm2Ev(ptr noundef nonnull align 8 dereferenceable(176) %110)
  %124 = getelementptr inbounds i8, ptr %106, i64 40
  store double %123, ptr %124, align 8, !tbaa !66
  br label %125

125:                                              ; preds = %109, %122, %116, %105
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %126 = load i32, ptr %25, align 8, !tbaa !53
  %127 = sext i32 %126 to i64
  %128 = icmp slt i64 %indvars.iv.next, %127
  br i1 %128, label %105, label %.loopexit36, !llvm.loop !70

.loopexit36:                                      ; preds = %125, %.preheader35, %.loopexit
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN20HighsSimplexAnalysis16simplexTimerStopEii(ptr noundef nonnull align 8 dereferenceable(8576) %129, i32 noundef 72, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  ret void
}

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN5highs8parallel8for_eachIZN8HEkkDual15minorUpdateRowsEvE3$_0EEviiOT_i"(i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #2

declare void @_ZN11HVectorBaseIdE5saxpyIddEEvT_PKS_IT0_E(ptr noundef nonnull align 8 dereferenceable(176), double noundef, ptr noundef) local_unnamed_addr #1

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

declare noundef double @_ZNK11HVectorBaseIdE5norm2Ev(ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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, !12, i64 64}
!6 = !{!"_ZTS8HEkkDual", !7, i64 0, !10, i64 4, !11, i64 8, !11, i64 9, !12, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !13, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !11, i64 168, !14, i64 172, !11, i64 176, !13, i64 184, !13, i64 192, !13, i64 200, !13, i64 208, !13, i64 216, !11, i64 224, !10, i64 228, !10, i64 232, !15, i64 240, !15, i64 416, !15, i64 592, !15, i64 768, !15, i64 944, !15, i64 1120, !15, i64 1296, !28, i64 1472, !10, i64 1808, !42, i64 1816, !10, i64 1968, !10, i64 1972, !10, i64 1976, !10, i64 1980, !13, i64 1984, !13, i64 1992, !13, i64 2000, !13, i64 2008, !13, i64 2016, !13, i64 2024, !13, i64 2032, !11, i64 2040, !10, i64 2044, !10, i64 2048, !8, i64 2052, !8, i64 2088, !8, i64 2984, !8, i64 3880, !43, i64 5288, !10, i64 5312, !10, i64 5316, !10, i64 5320, !10, i64 5324, !10, i64 5328, !10, i64 5332, !8, i64 5336, !8, i64 10008}
!7 = !{!"_ZTS16SimplexAlgorithm", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"double", !8, i64 0}
!14 = !{!"_ZTS14EdgeWeightMode", !8, i64 0}
!15 = !{!"_ZTS11HVectorBaseIdE", !10, i64 0, !10, i64 4, !16, i64 8, !20, i64 32, !13, i64 56, !24, i64 64, !16, i64 88, !12, i64 112, !11, i64 120, !10, i64 124, !16, i64 128, !20, i64 152}
!16 = !{!"_ZTSSt6vectorIiSaIiEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!20 = !{!"_ZTSSt6vectorIdSaIdEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!24 = !{!"_ZTSSt6vectorIcSaIcEE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!28 = !{!"_ZTS11HEkkDualRow", !12, i64 0, !10, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !29, i64 56, !10, i64 104, !16, i64 112, !20, i64 136, !13, i64 160, !13, i64 168, !13, i64 176, !13, i64 184, !10, i64 192, !10, i64 196, !38, i64 200, !16, i64 224, !10, i64 248, !38, i64 256, !38, i64 280, !16, i64 304, !12, i64 328}
!29 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !30, i64 0}
!30 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !31, i64 0}
!31 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !32, i64 0, !34, i64 8}
!32 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !33, i64 0}
!33 = !{!"_ZTSSt4lessIiE"}
!34 = !{!"_ZTSSt15_Rb_tree_header", !35, i64 0, !37, i64 32}
!35 = !{!"_ZTSSt18_Rb_tree_node_base", !36, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!36 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!37 = !{!"long", !8, i64 0}
!38 = !{!"_ZTSSt6vectorISt4pairIidESaIS1_EE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseISt4pairIidESaIS1_EE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseISt4pairIidESaIS1_EE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseISt4pairIidESaIS1_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!42 = !{!"_ZTS11HEkkDualRHS", !12, i64 0, !13, i64 8, !10, i64 16, !24, i64 24, !16, i64 48, !20, i64 72, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !16, i64 120, !12, i64 144}
!43 = !{!"_ZTSSt6vectorI11HEkkDualRowSaIS0_EE", !44, i64 0}
!44 = !{!"_ZTSSt12_Vector_baseI11HEkkDualRowSaIS0_EE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseI11HEkkDualRowSaIS0_EE12_Vector_implE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseI11HEkkDualRowSaIS0_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!47 = !{!6, !10, i64 5324}
!48 = !{!49, !12, i64 96}
!49 = !{!"_ZTSN8HEkkDual7MFinishE", !8, i64 0, !13, i64 8, !16, i64 16, !10, i64 40, !10, i64 44, !10, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !12, i64 96, !12, i64 104, !12, i64 112}
!50 = !{!12, !12, i64 0}
!51 = !{!15, !10, i64 4}
!52 = !{!6, !10, i64 24}
!53 = !{!6, !10, i64 5312}
!54 = !{!55, !12, i64 24}
!55 = !{!"_ZTSZN8HEkkDual15minorUpdateRowsEvE3$_0", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!56 = !{!6, !14, i64 172}
!57 = !{!58, !10, i64 0}
!58 = !{!"_ZTSN8HEkkDual7MChoiceE", !10, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !15, i64 56, !15, i64 232, !15, i64 408}
!59 = !{!6, !12, i64 48}
!60 = !{!6, !10, i64 1980}
!61 = !{!6, !13, i64 2016}
!62 = !{!13, !13, i64 0}
!63 = !{!10, !10, i64 0}
!64 = distinct !{!64, !65}
!65 = !{!"llvm.loop.mustprogress"}
!66 = !{!58, !13, i64 40}
!67 = distinct !{!67, !65}
!68 = distinct !{!68, !69}
!69 = !{!"llvm.loop.unroll.disable"}
!70 = distinct !{!70, !65}


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