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

; 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.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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN8HEkkDual17newDevexFrameworkEd(ptr noundef nonnull align 8 dereferenceable(10968) %0, double noundef %1) #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca i32, align 4
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store double %1, ptr %4, align 8, !tbaa !9
  %16 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 25, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  store double 1.000000e-02, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  store double 3.000000e+00, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %17 = load double, ptr %4, align 8, !tbaa !9
  %18 = getelementptr inbounds %class.HEkkDual, ptr %16, i32 0, i32 55
  %19 = load double, ptr %18, align 8, !tbaa !13
  %20 = fdiv double %17, %19
  store double %20, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %21 = getelementptr inbounds %class.HEkkDual, ptr %16, i32 0, i32 55
  %22 = load double, ptr %21, align 8, !tbaa !13
  %23 = load double, ptr %4, align 8, !tbaa !9
  %24 = fdiv double %22, %23
  store double %24, ptr %10, align 8, !tbaa !9
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %26 = load double, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  store double %26, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %27 = getelementptr inbounds %class.HEkkDual, ptr %16, i32 0, i32 5
  %28 = load i32, ptr %27, align 8, !tbaa !50
  %29 = sitofp i32 %28 to double
  %30 = fdiv double %29, 1.000000e-02
  %31 = fptosi double %30 to i32
  store i32 %31, ptr %11, align 4, !tbaa !11
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %33 = load i32, ptr %32, align 4, !tbaa !11
  store i32 %33, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  store double 9.000000e+00, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #3
  %34 = load double, ptr %8, align 8, !tbaa !9
  %35 = fcmp ole double %34, 9.000000e+00
  %36 = zext i1 %35 to i8
  store i8 %36, ptr %13, align 1, !tbaa !51
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #3
  %37 = getelementptr inbounds %class.HEkkDual, ptr %16, i32 0, i32 1
  %38 = load i32, ptr %37, align 4, !tbaa !52
  %39 = load i32, ptr %11, align 4, !tbaa !11
  %40 = icmp sle i32 %38, %39
  %41 = zext i1 %40 to i8
  store i8 %41, ptr %14, align 1, !tbaa !51
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #3
  %42 = load i8, ptr %13, align 1, !tbaa !51, !range !53, !noundef !54
  %43 = trunc i8 %42 to i1
  br i1 %43, label %44, label %48

44:                                               ; preds = %2
  %45 = load i8, ptr %14, align 1, !tbaa !51, !range !53, !noundef !54
  %46 = trunc i8 %45 to i1
  %47 = xor i1 %46, true
  br label %48

48:                                               ; preds = %44, %2
  %49 = phi i1 [ true, %2 ], [ %47, %44 ]
  %50 = zext i1 %49 to i8
  store i8 %50, ptr %15, align 1, !tbaa !51
  %51 = load i8, ptr %15, align 1, !tbaa !51, !range !53, !noundef !54
  %52 = trunc i8 %51 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret i1 %52
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 2032}
!14 = !{!"_ZTS8HEkkDual", !15, i64 0, !12, i64 4, !16, i64 8, !16, i64 9, !6, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !10, 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, !16, i64 168, !17, i64 172, !16, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !16, i64 224, !12, i64 228, !12, i64 232, !18, i64 240, !18, i64 416, !18, i64 592, !18, i64 768, !18, i64 944, !18, i64 1120, !18, i64 1296, !31, i64 1472, !12, i64 1808, !45, i64 1816, !12, i64 1968, !12, i64 1972, !12, i64 1976, !12, i64 1980, !10, i64 1984, !10, i64 1992, !10, i64 2000, !10, i64 2008, !10, i64 2016, !10, i64 2024, !10, i64 2032, !16, i64 2040, !12, i64 2044, !12, i64 2048, !7, i64 2052, !7, i64 2088, !7, i64 2984, !7, i64 3880, !46, 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}
!15 = !{!"_ZTS16SimplexAlgorithm", !7, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTS14EdgeWeightMode", !7, i64 0}
!18 = !{!"_ZTS11HVectorBaseIdE", !12, i64 0, !12, i64 4, !19, i64 8, !23, i64 32, !10, i64 56, !27, i64 64, !19, i64 88, !6, i64 112, !16, i64 120, !12, i64 124, !19, i64 128, !23, i64 152}
!19 = !{!"_ZTSSt6vectorIiSaIiEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt6vectorIdSaIdEE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSSt6vectorIcSaIcEE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!"_ZTS11HEkkDualRow", !6, i64 0, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !32, i64 56, !12, i64 104, !19, i64 112, !23, i64 136, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !12, i64 192, !12, i64 196, !41, i64 200, !19, i64 224, !12, i64 248, !41, i64 256, !41, i64 280, !19, i64 304, !6, i64 328}
!32 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !33, i64 0}
!33 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !34, i64 0}
!34 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !35, i64 0, !37, i64 8}
!35 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !36, i64 0}
!36 = !{!"_ZTSSt4lessIiE"}
!37 = !{!"_ZTSSt15_Rb_tree_header", !38, i64 0, !40, i64 32}
!38 = !{!"_ZTSSt18_Rb_tree_node_base", !39, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!39 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!40 = !{!"long", !7, i64 0}
!41 = !{!"_ZTSSt6vectorISt4pairIidESaIS1_EE", !42, i64 0}
!42 = !{!"_ZTSSt12_Vector_baseISt4pairIidESaIS1_EE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseISt4pairIidESaIS1_EE12_Vector_implE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseISt4pairIidESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!45 = !{!"_ZTS11HEkkDualRHS", !6, i64 0, !10, i64 8, !12, i64 16, !27, i64 24, !19, i64 48, !23, i64 72, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112, !19, i64 120, !6, i64 144}
!46 = !{!"_ZTSSt6vectorI11HEkkDualRowSaIS0_EE", !47, i64 0}
!47 = !{!"_ZTSSt12_Vector_baseI11HEkkDualRowSaIS0_EE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseI11HEkkDualRowSaIS0_EE12_Vector_implE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseI11HEkkDualRowSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!50 = !{!14, !12, i64 24}
!51 = !{!16, !16, i64 0}
!52 = !{!14, !12, i64 4}
!53 = !{i8 0, i8 2}
!54 = !{}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN8HEkkDual17newDevexFrameworkEd(ptr nocapture noundef nonnull readonly align 8 dereferenceable(10968) %0, double noundef %1) local_unnamed_addr #2 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  store i32 25, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %7 = getelementptr inbounds i8, ptr %0, i64 2032
  %8 = load double, ptr %7, align 8, !tbaa !9
  %9 = fdiv double %1, %8
  store double %9, ptr %4, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %10 = fdiv double %8, %1
  store double %10, ptr %5, align 8, !tbaa !48
  %11 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %12 = load double, ptr %11, align 8, !tbaa !48
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
  %13 = getelementptr inbounds i8, ptr %0, i64 24
  %14 = load i32, ptr %13, align 8, !tbaa !49
  %15 = sitofp i32 %14 to double
  %16 = fdiv double %15, 1.000000e-02
  %17 = fptosi double %16 to i32
  store i32 %17, ptr %6, align 4, !tbaa !5
  %18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = fcmp ugt double %12, 9.000000e+00
  %21 = getelementptr inbounds i8, ptr %0, i64 4
  %22 = load i32, ptr %21, align 4, !tbaa !50
  %.not = icmp sgt i32 %22, %19
  %23 = select i1 %20, i1 true, i1 %.not
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  ret i1 %23
}

; 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 #1

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !14, i64 2032}
!10 = !{!"_ZTS8HEkkDual", !11, i64 0, !6, i64 4, !12, i64 8, !12, i64 9, !13, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !14, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !12, i64 168, !15, i64 172, !12, i64 176, !14, i64 184, !14, i64 192, !14, i64 200, !14, i64 208, !14, i64 216, !12, i64 224, !6, i64 228, !6, 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, !6, i64 1808, !43, i64 1816, !6, i64 1968, !6, i64 1972, !6, i64 1976, !6, i64 1980, !14, i64 1984, !14, i64 1992, !14, i64 2000, !14, i64 2008, !14, i64 2016, !14, i64 2024, !14, i64 2032, !12, i64 2040, !6, i64 2044, !6, i64 2048, !7, i64 2052, !7, i64 2088, !7, i64 2984, !7, i64 3880, !44, i64 5288, !6, i64 5312, !6, i64 5316, !6, i64 5320, !6, i64 5324, !6, i64 5328, !6, i64 5332, !7, i64 5336, !7, i64 10008}
!11 = !{!"_ZTS16SimplexAlgorithm", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!"_ZTS14EdgeWeightMode", !7, i64 0}
!16 = !{!"_ZTS11HVectorBaseIdE", !6, i64 0, !6, i64 4, !17, i64 8, !21, i64 32, !14, i64 56, !25, i64 64, !17, i64 88, !13, i64 112, !12, i64 120, !6, 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", !13, i64 0, !13, i64 8, !13, 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", !13, i64 0, !13, i64 8, !13, 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", !13, i64 0, !13, i64 8, !13, i64 16}
!29 = !{!"_ZTS11HEkkDualRow", !13, i64 0, !6, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !30, i64 56, !6, i64 104, !17, i64 112, !21, i64 136, !14, i64 160, !14, i64 168, !14, i64 176, !14, i64 184, !6, i64 192, !6, i64 196, !39, i64 200, !17, i64 224, !6, i64 248, !39, i64 256, !39, i64 280, !17, i64 304, !13, 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, !13, i64 8, !13, i64 16, !13, 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", !13, i64 0, !13, i64 8, !13, i64 16}
!43 = !{!"_ZTS11HEkkDualRHS", !13, i64 0, !14, i64 8, !6, i64 16, !25, i64 24, !17, i64 48, !21, i64 72, !6, i64 96, !6, i64 100, !6, i64 104, !6, i64 108, !6, i64 112, !17, i64 120, !13, 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", !13, i64 0, !13, i64 8, !13, i64 16}
!48 = !{!14, !14, i64 0}
!49 = !{!10, !6, i64 24}
!50 = !{!10, !6, i64 4}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass