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

; 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.91 = type { ptr, ptr, ptr }
%class.anon.92 = type { 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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8HEkkDual21majorUpdateFtranFinalEv(ptr noundef nonnull align 8 dereferenceable(10968) %0) #4 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca ptr, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca %class.anon.91, align 8
  %16 = alloca double, align 8
  %17 = alloca %class.anon.92, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %27 = load ptr, ptr %2, align 8
  %28 = getelementptr inbounds %class.HEkkDual, ptr %27, i32 0, i32 11
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  call void @_ZN20HighsSimplexAnalysis17simplexTimerStartEii(ptr noundef nonnull align 8 dereferenceable(8576) %29, i32 noundef 70, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  %30 = getelementptr inbounds %class.HEkkDual, ptr %27, i32 0, i32 44
  %31 = getelementptr inbounds %class.HEkkDualRHS, ptr %30, i32 0, i32 2
  %32 = load i32, ptr %31, align 8, !tbaa !48
  %33 = icmp slt i32 %32, 0
  %34 = zext i1 %33 to i32
  store i32 %34, ptr %3, align 4, !tbaa !49
  %35 = load i32, ptr %3, align 4, !tbaa !49
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %155

37:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !49
  br label %38

38:                                               ; preds = %151, %37
  %39 = load i32, ptr %4, align 4, !tbaa !49
  %40 = getelementptr inbounds %class.HEkkDual, ptr %27, i32 0, i32 67
  %41 = load i32, ptr %40, align 4, !tbaa !50
  %42 = icmp slt i32 %39, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %38
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %154

44:                                               ; preds = %38
  %45 = getelementptr inbounds %class.HEkkDual, ptr %27, i32 0, i32 71
  %46 = load i32, ptr %4, align 4, !tbaa !49
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [8 x %"struct.HEkkDual::MFinish"], ptr %45, i64 0, i64 %47
  %49 = getelementptr inbounds %"struct.HEkkDual::MFinish", ptr %48, i32 0, i32 12
  %50 = load ptr, ptr %49, align 8, !tbaa !51
  %51 = getelementptr inbounds %class.HVectorBase, ptr %50, i32 0, i32 1
  store i32 -1, ptr %51, align 4, !tbaa !53
  %52 = getelementptr inbounds %class.HEkkDual, ptr %27, i32 0, i32 71
  %53 = load i32, ptr %4, align 4, !tbaa !49
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [8 x %"struct.HEkkDual::MFinish"], ptr %52, i64 0, i64 %54
  %56 = getelementptr inbounds %"struct.HEkkDual::MFinish", ptr %55, i32 0, i32 11
  %57 = load ptr, ptr %56, align 8, !tbaa !54
  %58 = getelementptr inbounds %class.HVectorBase, ptr %57, i32 0, i32 1
  store i32 -1, ptr %58, align 4, !tbaa !53
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %59 = getelementptr inbounds %class.HEkkDual, ptr %27, i32 0, i32 71
  %60 = load i32, ptr %4, align 4, !tbaa !49
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [8 x %"struct.HEkkDual::MFinish"], ptr %59, i64 0, i64 %61
  %63 = getelementptr inbounds %"struct.HEkkDual::MFinish", ptr %62, i32 0, i32 12
  %64 = load ptr, ptr %63, align 8, !tbaa !51
  %65 = getelementptr inbounds %class.HVectorBase, ptr %64, i32 0, i32 3
  %66 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #5
  store ptr %66, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %67 = getelementptr inbounds %class.HEkkDual, ptr %27, i32 0, i32 71
  %68 = load i32, ptr %4, align 4, !tbaa !49
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [8 x %"struct.HEkkDual::MFinish"], ptr %67, i64 0, i64 %69
  %71 = getelementptr inbounds %"struct.HEkkDual::MFinish", ptr %70, i32 0, i32 11
  %72 = load ptr, ptr %71, align 8, !tbaa !54
  %73 = getelementptr inbounds %class.HVectorBase, ptr %72, i32 0, i32 3
  %74 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %73) #5
  store ptr %74, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !49
  br label %75

75:                                               ; preds = %147, %44
  %76 = load i32, ptr %8, align 4, !tbaa !49
  %77 = load i32, ptr %4, align 4, !tbaa !49
  %78 = icmp slt i32 %76, %77
  br i1 %78, label %80, label %79

79:                                               ; preds = %75
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %150

80:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %81 = getelementptr inbounds %class.HEkkDual, ptr %27, i32 0, i32 71
  %82 = load i32, ptr %8, align 4, !tbaa !49
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [8 x %"struct.HEkkDual::MFinish"], ptr %81, i64 0, i64 %83
  %85 = getelementptr inbounds %"struct.HEkkDual::MFinish", ptr %84, i32 0, i32 3
  %86 = load i32, ptr %85, align 8, !tbaa !55
  store i32 %86, ptr %9, align 4, !tbaa !49
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %87 = getelementptr inbounds %class.HEkkDual, ptr %27, i32 0, i32 71
  %88 = load i32, ptr %8, align 4, !tbaa !49
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [8 x %"struct.HEkkDual::MFinish"], ptr %87, i64 0, i64 %89
  %91 = getelementptr inbounds %"struct.HEkkDual::MFinish", ptr %90, i32 0, i32 6
  %92 = load double, ptr %91, align 8, !tbaa !56
  store double %92, ptr %10, align 8, !tbaa !57
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %93 = getelementptr inbounds %class.HEkkDual, ptr %27, i32 0, i32 71
  %94 = load i32, ptr %8, align 4, !tbaa !49
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [8 x %"struct.HEkkDual::MFinish"], ptr %93, i64 0, i64 %95
  %97 = getelementptr inbounds %"struct.HEkkDual::MFinish", ptr %96, i32 0, i32 12
  %98 = load ptr, ptr %97, align 8, !tbaa !51
  %99 = getelementptr inbounds %class.HVectorBase, ptr %98, i32 0, i32 3
  %100 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %99) #5
  store ptr %100, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = load i32, ptr %9, align 4, !tbaa !49
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds double, ptr %101, i64 %103
  %105 = load double, ptr %104, align 8, !tbaa !57
  store double %105, ptr %12, align 8, !tbaa !57
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = load i32, ptr %9, align 4, !tbaa !49
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds double, ptr %106, i64 %108
  %110 = load double, ptr %109, align 8, !tbaa !57
  store double %110, ptr %13, align 8, !tbaa !57
  %111 = load double, ptr %12, align 8, !tbaa !57
  %112 = call double @llvm.fabs.f64(double %111)
  %113 = fcmp ogt double %112, 0x3D06849B86A12B9B
  br i1 %113, label %114, label %128

114:                                              ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %115 = load double, ptr %12, align 8, !tbaa !57
  %116 = load double, ptr %10, align 8, !tbaa !57
  %117 = fdiv double %115, %116
  store double %117, ptr %14, align 8, !tbaa !57
  %118 = getelementptr inbounds %class.HEkkDual, ptr %27, i32 0, i32 5
  %119 = load i32, ptr %118, align 8, !tbaa !58
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #5
  %120 = getelementptr inbounds %class.anon.91, ptr %15, i32 0, i32 0
  store ptr %6, ptr %120, align 8, !tbaa !5
  %121 = getelementptr inbounds %class.anon.91, ptr %15, i32 0, i32 1
  store ptr %14, ptr %121, align 8, !tbaa !5
  %122 = getelementptr inbounds %class.anon.91, ptr %15, i32 0, i32 2
  store ptr %11, ptr %122, align 8, !tbaa !5
  call void @"_ZN5highs8parallel8for_eachIZN8HEkkDual21majorUpdateFtranFinalEvE3$_0EEviiOT_i"(i32 noundef 0, i32 noundef %119, ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef 100)
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  %123 = load double, ptr %14, align 8, !tbaa !57
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = load i32, ptr %9, align 4, !tbaa !49
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds double, ptr %124, i64 %126
  store double %123, ptr %127, align 8, !tbaa !57
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %128

128:                                              ; preds = %114, %80
  %129 = load double, ptr %13, align 8, !tbaa !57
  %130 = call double @llvm.fabs.f64(double %129)
  %131 = fcmp ogt double %130, 0x3D06849B86A12B9B
  br i1 %131, label %132, label %146

132:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %133 = load double, ptr %13, align 8, !tbaa !57
  %134 = load double, ptr %10, align 8, !tbaa !57
  %135 = fdiv double %133, %134
  store double %135, ptr %16, align 8, !tbaa !57
  %136 = getelementptr inbounds %class.HEkkDual, ptr %27, i32 0, i32 5
  %137 = load i32, ptr %136, align 8, !tbaa !58
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #5
  %138 = getelementptr inbounds %class.anon.92, ptr %17, i32 0, i32 0
  store ptr %7, ptr %138, align 8, !tbaa !5
  %139 = getelementptr inbounds %class.anon.92, ptr %17, i32 0, i32 1
  store ptr %16, ptr %139, align 8, !tbaa !5
  %140 = getelementptr inbounds %class.anon.92, ptr %17, i32 0, i32 2
  store ptr %11, ptr %140, align 8, !tbaa !5
  call void @"_ZN5highs8parallel8for_eachIZN8HEkkDual21majorUpdateFtranFinalEvE3$_1EEviiOT_i"(i32 noundef 0, i32 noundef %137, ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef 100)
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  %141 = load double, ptr %16, align 8, !tbaa !57
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  %143 = load i32, ptr %9, align 4, !tbaa !49
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds double, ptr %142, i64 %144
  store double %141, ptr %145, align 8, !tbaa !57
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %146

146:                                              ; preds = %132, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %147

147:                                              ; preds = %146
  %148 = load i32, ptr %8, align 4, !tbaa !49
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %8, align 4, !tbaa !49
  br label %75, !llvm.loop !59

150:                                              ; preds = %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %151

151:                                              ; preds = %150
  %152 = load i32, ptr %4, align 4, !tbaa !49
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %4, align 4, !tbaa !49
  br label %38, !llvm.loop !61

154:                                              ; preds = %43
  br label %250

155:                                              ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !49
  br label %156

156:                                              ; preds = %246, %155
  %157 = load i32, ptr %18, align 4, !tbaa !49
  %158 = getelementptr inbounds %class.HEkkDual, ptr %27, i32 0, i32 67
  %159 = load i32, ptr %158, align 4, !tbaa !50
  %160 = icmp slt i32 %157, %159
  br i1 %160, label %162, label %161

161:                                              ; preds = %156
  store i32 8, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %249

162:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %163 = getelementptr inbounds %class.HEkkDual, ptr %27, i32 0, i32 71
  %164 = load i32, ptr %18, align 4, !tbaa !49
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [8 x %"struct.HEkkDual::MFinish"], ptr %163, i64 0, i64 %165
  store ptr %166, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %167 = load ptr, ptr %19, align 8, !tbaa !5
  %168 = getelementptr inbounds %"struct.HEkkDual::MFinish", ptr %167, i32 0, i32 12
  %169 = load ptr, ptr %168, align 8, !tbaa !51
  store ptr %169, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %170 = load ptr, ptr %19, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.HEkkDual::MFinish", ptr %170, i32 0, i32 11
  %172 = load ptr, ptr %171, align 8, !tbaa !54
  store ptr %172, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !49
  br label %173

173:                                              ; preds = %242, %162
  %174 = load i32, ptr %22, align 4, !tbaa !49
  %175 = load i32, ptr %18, align 4, !tbaa !49
  %176 = icmp slt i32 %174, %175
  br i1 %176, label %178, label %177

177:                                              ; preds = %173
  store i32 11, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %245

178:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %179 = getelementptr inbounds %class.HEkkDual, ptr %27, i32 0, i32 71
  %180 = load i32, ptr %22, align 4, !tbaa !49
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [8 x %"struct.HEkkDual::MFinish"], ptr %179, i64 0, i64 %181
  store ptr %182, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %183 = load ptr, ptr %23, align 8, !tbaa !5
  %184 = getelementptr inbounds %"struct.HEkkDual::MFinish", ptr %183, i32 0, i32 3
  %185 = load i32, ptr %184, align 8, !tbaa !55
  store i32 %185, ptr %24, align 4, !tbaa !49
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %186 = load ptr, ptr %20, align 8, !tbaa !5
  %187 = getelementptr inbounds %class.HVectorBase, ptr %186, i32 0, i32 3
  %188 = load i32, ptr %24, align 4, !tbaa !49
  %189 = sext i32 %188 to i64
  %190 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %187, i64 noundef %189) #5
  %191 = load double, ptr %190, align 8, !tbaa !57
  store double %191, ptr %25, align 8, !tbaa !57
  %192 = load double, ptr %25, align 8, !tbaa !57
  %193 = call double @llvm.fabs.f64(double %192)
  %194 = fcmp ogt double %193, 0x3D06849B86A12B9B
  br i1 %194, label %195, label %213

195:                                              ; preds = %178
  %196 = load ptr, ptr %23, align 8, !tbaa !5
  %197 = getelementptr inbounds %"struct.HEkkDual::MFinish", ptr %196, i32 0, i32 6
  %198 = load double, ptr %197, align 8, !tbaa !56
  %199 = load double, ptr %25, align 8, !tbaa !57
  %200 = fdiv double %199, %198
  store double %200, ptr %25, align 8, !tbaa !57
  %201 = load ptr, ptr %20, align 8, !tbaa !5
  %202 = load double, ptr %25, align 8, !tbaa !57
  %203 = fneg double %202
  %204 = load ptr, ptr %23, align 8, !tbaa !5
  %205 = getelementptr inbounds %"struct.HEkkDual::MFinish", ptr %204, i32 0, i32 12
  %206 = load ptr, ptr %205, align 8, !tbaa !51
  call void @_ZN11HVectorBaseIdE5saxpyIddEEvT_PKS_IT0_E(ptr noundef nonnull align 8 dereferenceable(176) %201, double noundef %203, ptr noundef %206)
  %207 = load double, ptr %25, align 8, !tbaa !57
  %208 = load ptr, ptr %20, align 8, !tbaa !5
  %209 = getelementptr inbounds %class.HVectorBase, ptr %208, i32 0, i32 3
  %210 = load i32, ptr %24, align 4, !tbaa !49
  %211 = sext i32 %210 to i64
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %209, i64 noundef %211) #5
  store double %207, ptr %212, align 8, !tbaa !57
  br label %213

213:                                              ; preds = %195, %178
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %214 = load ptr, ptr %21, align 8, !tbaa !5
  %215 = getelementptr inbounds %class.HVectorBase, ptr %214, i32 0, i32 3
  %216 = load i32, ptr %24, align 4, !tbaa !49
  %217 = sext i32 %216 to i64
  %218 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %215, i64 noundef %217) #5
  %219 = load double, ptr %218, align 8, !tbaa !57
  store double %219, ptr %26, align 8, !tbaa !57
  %220 = load double, ptr %26, align 8, !tbaa !57
  %221 = call double @llvm.fabs.f64(double %220)
  %222 = fcmp ogt double %221, 0x3D06849B86A12B9B
  br i1 %222, label %223, label %241

223:                                              ; preds = %213
  %224 = load ptr, ptr %23, align 8, !tbaa !5
  %225 = getelementptr inbounds %"struct.HEkkDual::MFinish", ptr %224, i32 0, i32 6
  %226 = load double, ptr %225, align 8, !tbaa !56
  %227 = load double, ptr %26, align 8, !tbaa !57
  %228 = fdiv double %227, %226
  store double %228, ptr %26, align 8, !tbaa !57
  %229 = load ptr, ptr %21, align 8, !tbaa !5
  %230 = load double, ptr %26, align 8, !tbaa !57
  %231 = fneg double %230
  %232 = load ptr, ptr %23, align 8, !tbaa !5
  %233 = getelementptr inbounds %"struct.HEkkDual::MFinish", ptr %232, i32 0, i32 12
  %234 = load ptr, ptr %233, align 8, !tbaa !51
  call void @_ZN11HVectorBaseIdE5saxpyIddEEvT_PKS_IT0_E(ptr noundef nonnull align 8 dereferenceable(176) %229, double noundef %231, ptr noundef %234)
  %235 = load double, ptr %26, align 8, !tbaa !57
  %236 = load ptr, ptr %21, align 8, !tbaa !5
  %237 = getelementptr inbounds %class.HVectorBase, ptr %236, i32 0, i32 3
  %238 = load i32, ptr %24, align 4, !tbaa !49
  %239 = sext i32 %238 to i64
  %240 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %237, i64 noundef %239) #5
  store double %235, ptr %240, align 8, !tbaa !57
  br label %241

241:                                              ; preds = %223, %213
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %242

242:                                              ; preds = %241
  %243 = load i32, ptr %22, align 4, !tbaa !49
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %22, align 4, !tbaa !49
  br label %173, !llvm.loop !62

245:                                              ; preds = %177
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %246

246:                                              ; preds = %245
  %247 = load i32, ptr %18, align 4, !tbaa !49
  %248 = add nsw i32 %247, 1
  store i32 %248, ptr %18, align 4, !tbaa !49
  br label %156, !llvm.loop !63

249:                                              ; preds = %161
  br label %250

250:                                              ; preds = %249, %154
  %251 = getelementptr inbounds %class.HEkkDual, ptr %27, i32 0, i32 11
  %252 = load ptr, ptr %251, align 8, !tbaa !9
  call void @_ZN20HighsSimplexAnalysis16simplexTimerStopEii(ptr noundef nonnull align 8 dereferenceable(8576) %252, i32 noundef 70, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret void
}

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN5highs8parallel8for_eachIZN8HEkkDual21majorUpdateFtranFinalEvE3$_1EEviiOT_i"(i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 1832}
!49 = !{!12, !12, i64 0}
!50 = !{!10, !12, i64 5324}
!51 = !{!52, !6, i64 104}
!52 = !{!"_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}
!53 = !{!16, !12, i64 4}
!54 = !{!52, !6, i64 96}
!55 = !{!52, !12, i64 40}
!56 = !{!52, !14, i64 56}
!57 = !{!14, !14, i64 0}
!58 = !{!10, !12, i64 24}
!59 = distinct !{!59, !60}
!60 = !{!"llvm.loop.mustprogress"}
!61 = distinct !{!61, !60}
!62 = distinct !{!62, !60}
!63 = distinct !{!63, !60}


; 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.91 = type { ptr, ptr, ptr }
%class.anon.92 = type { 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 }

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8HEkkDual21majorUpdateFtranFinalEv(ptr nocapture noundef nonnull readonly align 8 dereferenceable(10968) %0) local_unnamed_addr #4 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca double, align 8
  %6 = alloca %class.anon.91, align 8
  %7 = alloca double, align 8
  %8 = alloca %class.anon.92, align 8
  %9 = getelementptr inbounds i8, ptr %0, i64 64
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  tail call void @_ZN20HighsSimplexAnalysis17simplexTimerStartEii(ptr noundef nonnull align 8 dereferenceable(8576) %10, i32 noundef 70, i32 noundef 0)
  %11 = getelementptr inbounds i8, ptr %0, i64 1832
  %12 = load i32, ptr %11, align 8, !tbaa !47
  %13 = icmp slt i32 %12, 0
  %14 = getelementptr inbounds i8, ptr %0, i64 5324
  %15 = load i32, ptr %14, align 4, !tbaa !48
  %16 = icmp sgt i32 %15, 0
  br i1 %13, label %.preheader, label %.preheader58

.preheader58:                                     ; preds = %1
  br i1 %16, label %.lr.ph62, label %.loopexit

.lr.ph62:                                         ; preds = %.preheader58
  %17 = getelementptr inbounds i8, ptr %0, i64 10008
  br label %74

.preheader:                                       ; preds = %1
  br i1 %16, label %.lr.ph68, label %.loopexit

.lr.ph68:                                         ; preds = %.preheader
  %18 = getelementptr inbounds i8, ptr %0, i64 10008
  %19 = getelementptr inbounds i8, ptr %0, i64 24
  %20 = getelementptr inbounds i8, ptr %6, i64 8
  %21 = getelementptr inbounds i8, ptr %6, i64 16
  %22 = getelementptr inbounds i8, ptr %8, i64 8
  %23 = getelementptr inbounds i8, ptr %8, i64 16
  br label %24

24:                                               ; preds = %.lr.ph68, %._crit_edge66
  %indvars.iv79 = phi i64 [ 0, %.lr.ph68 ], [ %indvars.iv.next80, %._crit_edge66 ]
  %25 = getelementptr inbounds [8 x %"struct.HEkkDual::MFinish"], ptr %18, i64 0, i64 %indvars.iv79
  %26 = getelementptr inbounds i8, ptr %25, i64 104
  %27 = load ptr, ptr %26, align 8, !tbaa !49
  %28 = getelementptr inbounds i8, ptr %27, i64 4
  store i32 -1, ptr %28, align 4, !tbaa !51
  %29 = getelementptr inbounds i8, ptr %25, i64 96
  %30 = load ptr, ptr %29, align 8, !tbaa !52
  %31 = getelementptr inbounds i8, ptr %30, i64 4
  store i32 -1, ptr %31, align 4, !tbaa !51
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %32 = getelementptr inbounds i8, ptr %27, i64 32
  %33 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #5
  store ptr %33, ptr %2, align 8, !tbaa !53
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %34 = load ptr, ptr %29, align 8, !tbaa !52
  %35 = getelementptr inbounds i8, ptr %34, i64 32
  %36 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #5
  store ptr %36, ptr %3, align 8, !tbaa !53
  %.not69 = icmp eq i64 %indvars.iv79, 0
  br i1 %.not69, label %._crit_edge66, label %.lr.ph65

._crit_edge66:                                    ; preds = %73, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %37 = load i32, ptr %14, align 4, !tbaa !48
  %38 = sext i32 %37 to i64
  %39 = icmp slt i64 %indvars.iv.next80, %38
  br i1 %39, label %24, label %.loopexit, !llvm.loop !54

.lr.ph65:                                         ; preds = %24, %73
  %indvars.iv75 = phi i64 [ %indvars.iv.next76, %73 ], [ 0, %24 ]
  %40 = getelementptr inbounds [8 x %"struct.HEkkDual::MFinish"], ptr %18, i64 0, i64 %indvars.iv75
  %41 = getelementptr inbounds i8, ptr %40, i64 40
  %42 = load i32, ptr %41, align 8, !tbaa !56
  %43 = getelementptr inbounds i8, ptr %40, i64 56
  %44 = load double, ptr %43, align 8, !tbaa !57
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %45 = getelementptr inbounds i8, ptr %40, i64 104
  %46 = load ptr, ptr %45, align 8, !tbaa !49
  %47 = getelementptr inbounds i8, ptr %46, i64 32
  %48 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #5
  store ptr %48, ptr %4, align 8, !tbaa !53
  %49 = load ptr, ptr %2, align 8, !tbaa !53
  %50 = sext i32 %42 to i64
  %51 = getelementptr inbounds double, ptr %49, i64 %50
  %52 = load double, ptr %51, align 8, !tbaa !58
  %53 = load ptr, ptr %3, align 8, !tbaa !53
  %54 = getelementptr inbounds double, ptr %53, i64 %50
  %55 = load double, ptr %54, align 8, !tbaa !58
  %56 = call double @llvm.fabs.f64(double %52)
  %57 = fcmp ogt double %56, 0x3D06849B86A12B9B
  br i1 %57, label %58, label %64

58:                                               ; preds = %.lr.ph65
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %59 = fdiv double %52, %44
  store double %59, ptr %5, align 8, !tbaa !58
  %60 = load i32, ptr %19, align 8, !tbaa !59
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  store ptr %2, ptr %6, align 8, !tbaa !53
  store ptr %5, ptr %20, align 8, !tbaa !53
  store ptr %4, ptr %21, align 8, !tbaa !53
  call void @"_ZN5highs8parallel8for_eachIZN8HEkkDual21majorUpdateFtranFinalEvE3$_0EEviiOT_i"(i32 noundef 0, i32 noundef %60, ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 100)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  %61 = load double, ptr %5, align 8, !tbaa !58
  %62 = load ptr, ptr %2, align 8, !tbaa !53
  %63 = getelementptr inbounds double, ptr %62, i64 %50
  store double %61, ptr %63, align 8, !tbaa !58
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %64

64:                                               ; preds = %58, %.lr.ph65
  %65 = call double @llvm.fabs.f64(double %55)
  %66 = fcmp ogt double %65, 0x3D06849B86A12B9B
  br i1 %66, label %67, label %73

67:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %68 = fdiv double %55, %44
  store double %68, ptr %7, align 8, !tbaa !58
  %69 = load i32, ptr %19, align 8, !tbaa !59
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  store ptr %3, ptr %8, align 8, !tbaa !53
  store ptr %7, ptr %22, align 8, !tbaa !53
  store ptr %4, ptr %23, align 8, !tbaa !53
  call void @"_ZN5highs8parallel8for_eachIZN8HEkkDual21majorUpdateFtranFinalEvE3$_1EEviiOT_i"(i32 noundef 0, i32 noundef %69, ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef 100)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  %70 = load double, ptr %7, align 8, !tbaa !58
  %71 = load ptr, ptr %3, align 8, !tbaa !53
  %72 = getelementptr inbounds double, ptr %71, i64 %50
  store double %70, ptr %72, align 8, !tbaa !58
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %73

73:                                               ; preds = %67, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 1
  %exitcond78.not = icmp eq i64 %indvars.iv.next76, %indvars.iv79
  br i1 %exitcond78.not, label %._crit_edge66, label %.lr.ph65, !llvm.loop !60

74:                                               ; preds = %.lr.ph62, %._crit_edge
  %75 = phi i32 [ %15, %.lr.ph62 ], [ %83, %._crit_edge ]
  %indvars.iv72 = phi i64 [ 0, %.lr.ph62 ], [ %indvars.iv.next73, %._crit_edge ]
  %76 = getelementptr inbounds [8 x %"struct.HEkkDual::MFinish"], ptr %17, i64 0, i64 %indvars.iv72
  %77 = getelementptr inbounds i8, ptr %76, i64 104
  %78 = load ptr, ptr %77, align 8, !tbaa !49
  %79 = getelementptr inbounds i8, ptr %76, i64 96
  %80 = load ptr, ptr %79, align 8, !tbaa !52
  %.not = icmp eq i64 %indvars.iv72, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %74
  %81 = getelementptr inbounds i8, ptr %78, i64 32
  %82 = getelementptr inbounds i8, ptr %80, i64 32
  br label %86

._crit_edge.loopexit:                             ; preds = %116
  %.pre = load i32, ptr %14, align 4, !tbaa !48
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %74
  %83 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %75, %74 ]
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
  %84 = sext i32 %83 to i64
  %85 = icmp slt i64 %indvars.iv.next73, %84
  br i1 %85, label %74, label %.loopexit, !llvm.loop !61

86:                                               ; preds = %.lr.ph, %116
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %116 ]
  %87 = getelementptr inbounds [8 x %"struct.HEkkDual::MFinish"], ptr %17, i64 0, i64 %indvars.iv
  %88 = getelementptr inbounds i8, ptr %87, i64 40
  %89 = load i32, ptr %88, align 8, !tbaa !56
  %90 = sext i32 %89 to i64
  %91 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef %90) #5
  %92 = load double, ptr %91, align 8, !tbaa !58
  %93 = tail call double @llvm.fabs.f64(double %92)
  %94 = fcmp ogt double %93, 0x3D06849B86A12B9B
  br i1 %94, label %95, label %103

95:                                               ; preds = %86
  %96 = getelementptr inbounds i8, ptr %87, i64 56
  %97 = load double, ptr %96, align 8, !tbaa !57
  %98 = fdiv double %92, %97
  %99 = fneg double %98
  %100 = getelementptr inbounds i8, ptr %87, i64 104
  %101 = load ptr, ptr %100, align 8, !tbaa !49
  tail call void @_ZN11HVectorBaseIdE5saxpyIddEEvT_PKS_IT0_E(ptr noundef nonnull align 8 dereferenceable(176) %78, double noundef %99, ptr noundef %101)
  %102 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef %90) #5
  store double %98, ptr %102, align 8, !tbaa !58
  br label %103

103:                                              ; preds = %95, %86
  %104 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %90) #5
  %105 = load double, ptr %104, align 8, !tbaa !58
  %106 = tail call double @llvm.fabs.f64(double %105)
  %107 = fcmp ogt double %106, 0x3D06849B86A12B9B
  br i1 %107, label %108, label %116

108:                                              ; preds = %103
  %109 = getelementptr inbounds i8, ptr %87, i64 56
  %110 = load double, ptr %109, align 8, !tbaa !57
  %111 = fdiv double %105, %110
  %112 = fneg double %111
  %113 = getelementptr inbounds i8, ptr %87, i64 104
  %114 = load ptr, ptr %113, align 8, !tbaa !49
  tail call void @_ZN11HVectorBaseIdE5saxpyIddEEvT_PKS_IT0_E(ptr noundef nonnull align 8 dereferenceable(176) %80, double noundef %112, ptr noundef %114)
  %115 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %90) #5
  store double %111, ptr %115, align 8, !tbaa !58
  br label %116

116:                                              ; preds = %108, %103
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %indvars.iv72
  br i1 %exitcond.not, label %._crit_edge.loopexit, label %86, !llvm.loop !62

.loopexit:                                        ; preds = %._crit_edge, %._crit_edge66, %.preheader58, %.preheader
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN20HighsSimplexAnalysis16simplexTimerStopEii(ptr noundef nonnull align 8 dereferenceable(8576) %117, i32 noundef 70, i32 noundef 0)
  ret void
}

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN5highs8parallel8for_eachIZN8HEkkDual21majorUpdateFtranFinalEvE3$_1EEviiOT_i"(i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 1832}
!48 = !{!6, !10, i64 5324}
!49 = !{!50, !12, i64 104}
!50 = !{!"_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}
!51 = !{!15, !10, i64 4}
!52 = !{!50, !12, i64 96}
!53 = !{!12, !12, i64 0}
!54 = distinct !{!54, !55}
!55 = !{!"llvm.loop.mustprogress"}
!56 = !{!50, !10, i64 40}
!57 = !{!50, !13, i64 56}
!58 = !{!13, !13, i64 0}
!59 = !{!6, !10, i64 24}
!60 = distinct !{!60, !55}
!61 = distinct !{!61, !55}
!62 = distinct !{!62, !55}


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