; LLVM IR from ERGO-Code/HiGHS :: src/presolve/HPresolve.ll (ZNK8presolve9HPresolve15getMaxAbsRowValEi)

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

%struct.HighsTripletTreeSlicePreOrder = type { %class.HighsMatrixSlice.base.109, [4 x i8] }
%class.HighsMatrixSlice.base.109 = type <{ ptr, ptr, ptr, ptr, i32 }>
%"class.HighsMatrixSlice<HighsTripletTreeSlicePreOrder>::iterator" = type <{ %class.HighsSliceNonzero, ptr, ptr, %"class.std::vector.5", i32, [4 x i8] }>
%class.HighsSliceNonzero = type { ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8presolve9HPresolve12getRowVectorEi(ptr dead_on_unwind noalias writable sret(%struct.HighsTripletTreeSlicePreOrder) align 8, ptr noundef nonnull align 8 dereferenceable(1720), i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.HighsMatrixSlice<HighsTripletTreeSlicePreOrder>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(36)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE3endEv(ptr dead_on_unwind noalias writable sret(%"class.HighsMatrixSlice<HighsTripletTreeSlicePreOrder>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(36)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE8iteratorneERKS2_(ptr noundef nonnull align 8 dereferenceable(60), ptr noundef nonnull align 8 dereferenceable(60)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(60) ptr @_ZN16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(60)) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZNK8presolve9HPresolve15getMaxAbsRowValEi(ptr noundef nonnull align 8 dereferenceable(1720) %0, i32 noundef %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca double, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %struct.HighsTripletTreeSlicePreOrder, align 8
  %8 = alloca %"class.HighsMatrixSlice<HighsTripletTreeSlicePreOrder>::iterator", align 8
  %9 = alloca %"class.HighsMatrixSlice<HighsTripletTreeSlicePreOrder>::iterator", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %14 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store double 0.000000e+00, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #4
  %15 = load i32, ptr %4, align 4, !tbaa !9
  call void @_ZNK8presolve9HPresolve12getRowVectorEi(ptr dead_on_unwind writable sret(%struct.HighsTripletTreeSlicePreOrder) align 8 %7, ptr noundef nonnull align 8 dereferenceable(1720) %14, i32 noundef %15)
  store ptr %7, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %8) #4
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE5beginEv(ptr dead_on_unwind writable sret(%"class.HighsMatrixSlice<HighsTripletTreeSlicePreOrder>::iterator") align 8 %8, ptr noundef nonnull align 8 dereferenceable(36) %16)
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #4
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE3endEv(ptr dead_on_unwind writable sret(%"class.HighsMatrixSlice<HighsTripletTreeSlicePreOrder>::iterator") align 8 %9, ptr noundef nonnull align 8 dereferenceable(36) %17)
          to label %18 unwind label %23

18:                                               ; preds = %2
  br label %19

19:                                               ; preds = %44, %18
  %20 = invoke noundef zeroext i1 @_ZNK16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE8iteratorneERKS2_(ptr noundef nonnull align 8 dereferenceable(60) %8, ptr noundef nonnull align 8 dereferenceable(60) %9)
          to label %21 unwind label %27

21:                                               ; preds = %19
  br i1 %20, label %31, label %22

22:                                               ; preds = %21
  call void @_ZN16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %9) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #4
  call void @_ZN16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %8) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %56

23:                                               ; preds = %2
  %24 = landingpad { ptr, i32 }
          cleanup
  %25 = extractvalue { ptr, i32 } %24, 0
  store ptr %25, ptr %10, align 8
  %26 = extractvalue { ptr, i32 } %24, 1
  store i32 %26, ptr %11, align 4
  br label %55

27:                                               ; preds = %42, %19
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %10, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %11, align 4
  br label %54

31:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %32 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(60) %8)
          to label %33 unwind label %45

33:                                               ; preds = %31
  store ptr %32, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %34 = load ptr, ptr %12, align 8, !tbaa !5
  %35 = invoke noundef double @_ZNK17HighsSliceNonzero5valueEv(ptr noundef nonnull align 8 dereferenceable(16) %34)
          to label %36 unwind label %49

36:                                               ; preds = %33
  %37 = invoke noundef double @_ZSt3absd(double noundef %35)
          to label %38 unwind label %49

38:                                               ; preds = %36
  store double %37, ptr %13, align 8, !tbaa !11
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %40 unwind label %49

40:                                               ; preds = %38
  %41 = load double, ptr %39, align 8, !tbaa !11
  store double %41, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %42

42:                                               ; preds = %40
  %43 = invoke noundef nonnull align 8 dereferenceable(60) ptr @_ZN16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(60) %8)
          to label %44 unwind label %27

44:                                               ; preds = %42
  br label %19

45:                                               ; preds = %31
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %10, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %11, align 4
  br label %53

49:                                               ; preds = %38, %36, %33
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %10, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %53

53:                                               ; preds = %49, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %54

54:                                               ; preds = %53, %27
  call void @_ZN16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %9) #4
  br label %55

55:                                               ; preds = %54, %23
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #4
  call void @_ZN16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %8) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %58

56:                                               ; preds = %22
  %57 = load double, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret double %57

58:                                               ; preds = %55
  %59 = load ptr, ptr %10, align 8
  %60 = load i32, ptr %11, align 4
  %61 = insertvalue { ptr, i32 } poison, ptr %59, 0
  %62 = insertvalue { ptr, i32 } %61, i32 %60, 1
  resume { ptr, i32 } %62
}

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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}


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

%struct.HighsTripletTreeSlicePreOrder = type { %class.HighsMatrixSlice.base.109, [4 x i8] }
%class.HighsMatrixSlice.base.109 = type <{ ptr, ptr, ptr, ptr, i32 }>
%"class.HighsMatrixSlice<HighsTripletTreeSlicePreOrder>::iterator" = type <{ %class.HighsSliceNonzero, ptr, ptr, %"class.std::vector.5", i32, [4 x i8] }>
%class.HighsSliceNonzero = type { ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8presolve9HPresolve12getRowVectorEi(ptr dead_on_unwind noalias writable sret(%struct.HighsTripletTreeSlicePreOrder) align 8, ptr noundef nonnull align 8 dereferenceable(1720), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.HighsMatrixSlice<HighsTripletTreeSlicePreOrder>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE3endEv(ptr dead_on_unwind noalias writable sret(%"class.HighsMatrixSlice<HighsTripletTreeSlicePreOrder>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE8iteratorneERKS2_(ptr noundef nonnull align 8 dereferenceable(60), ptr noundef nonnull align 8 dereferenceable(60)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(60) ptr @_ZN16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(60)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZNK8presolve9HPresolve15getMaxAbsRowValEi(ptr noundef nonnull align 8 dereferenceable(1720) %0, i32 noundef %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca double, align 8
  %4 = alloca %struct.HighsTripletTreeSlicePreOrder, align 8
  %5 = alloca %"class.HighsMatrixSlice<HighsTripletTreeSlicePreOrder>::iterator", align 8
  %6 = alloca %"class.HighsMatrixSlice<HighsTripletTreeSlicePreOrder>::iterator", align 8
  %7 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  store double 0.000000e+00, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #4
  call void @_ZNK8presolve9HPresolve12getRowVectorEi(ptr dead_on_unwind nonnull writable sret(%struct.HighsTripletTreeSlicePreOrder) align 8 %4, ptr noundef nonnull align 8 dereferenceable(1720) %0, i32 noundef %1)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #4
  call void @_ZNK16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.HighsMatrixSlice<HighsTripletTreeSlicePreOrder>::iterator") align 8 %5, ptr noundef nonnull align 8 dereferenceable(36) %4)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #4
  invoke void @_ZNK16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.HighsMatrixSlice<HighsTripletTreeSlicePreOrder>::iterator") align 8 %6, ptr noundef nonnull align 8 dereferenceable(36) %4)
          to label %.preheader unwind label %11

.preheader:                                       ; preds = %2, %15
  %8 = call noundef zeroext i1 @_ZNK16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE8iteratorneERKS2_(ptr noundef nonnull align 8 dereferenceable(60) %5, ptr noundef nonnull align 8 dereferenceable(60) %6)
  br i1 %8, label %15, label %9

9:                                                ; preds = %.preheader
  call void @_ZN16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %6) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #4
  call void @_ZN16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %5) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #4
  %10 = load double, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  ret double %10

11:                                               ; preds = %2
  %12 = landingpad { ptr, i32 }
          cleanup
  br label %22

13:                                               ; preds = %15
  %14 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %6) #4
  br label %22

15:                                               ; preds = %.preheader
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(60) %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %17 = call noundef double @_ZNK17HighsSliceNonzero5valueEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
  %18 = call noundef double @_ZSt3absd(double noundef %17)
  store double %18, ptr %7, align 8, !tbaa !5
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %20 = load double, ptr %19, align 8, !tbaa !5
  store double %20, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  %21 = invoke noundef nonnull align 8 dereferenceable(60) ptr @_ZN16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(60) %5)
          to label %.preheader unwind label %13

22:                                               ; preds = %13, %11
  %.pn = phi { ptr, i32 } [ %14, %13 ], [ %12, %11 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #4
  call void @_ZN16HighsMatrixSliceI29HighsTripletTreeSlicePreOrderE8iteratorD2Ev(ptr noundef nonnull align 8 dereferenceable(60) %5) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  resume { ptr, i32 } %.pn
}

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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass