; LLVM IR from ERGO-Code/HiGHS :: src/test/DevKkt.ll (ZN8presolve13dev_kkt_check8initInfoEv)

; 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.presolve::dev_kkt_check::KktInfo" = type <{ %"class.std::map", i8, i8, i8, i8, i8, i8, [2 x i8] }>
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<presolve::dev_kkt_check::KktCondition, std::pair<const presolve::dev_kkt_check::KktCondition, presolve::dev_kkt_check::KktConditionDetails>, std::_Select1st<std::pair<const presolve::dev_kkt_check::KktCondition, presolve::dev_kkt_check::KktConditionDetails>>, std::less<presolve::dev_kkt_check::KktCondition>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<presolve::dev_kkt_check::KktCondition, std::pair<const presolve::dev_kkt_check::KktCondition, presolve::dev_kkt_check::KktConditionDetails>, std::_Select1st<std::pair<const presolve::dev_kkt_check::KktCondition, presolve::dev_kkt_check::KktConditionDetails>>, std::less<presolve::dev_kkt_check::KktCondition>>::_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 }
%"struct.presolve::dev_kkt_check::KktConditionDetails" = type { i32, double, double, i32, i32 }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8presolve13dev_kkt_check8initInfoEv(ptr dead_on_unwind noalias writable sret(%"struct.presolve::dev_kkt_check::KktInfo") align 8 %0) #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i1, align 1
  %4 = alloca %"struct.presolve::dev_kkt_check::KktConditionDetails", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"struct.presolve::dev_kkt_check::KktConditionDetails", align 8
  %9 = alloca i32, align 4
  %10 = alloca %"struct.presolve::dev_kkt_check::KktConditionDetails", align 8
  %11 = alloca i32, align 4
  %12 = alloca %"struct.presolve::dev_kkt_check::KktConditionDetails", align 8
  %13 = alloca i32, align 4
  %14 = alloca %"struct.presolve::dev_kkt_check::KktConditionDetails", align 8
  %15 = alloca i32, align 4
  %16 = alloca %"struct.presolve::dev_kkt_check::KktConditionDetails", align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %2, align 8
  store i1 false, ptr %3, align 1
  call void @_ZN8presolve13dev_kkt_check7KktInfoC2Ev(ptr noundef nonnull align 8 dereferenceable(54) %0) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #5
  invoke void @_ZN8presolve13dev_kkt_check19KktConditionDetailsC2ENS0_12KktConditionE(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 0)
          to label %18 unwind label %43

18:                                               ; preds = %1
  %19 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %0, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  %20 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %19, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %21 unwind label %47

21:                                               ; preds = %18
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %4, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #5
  invoke void @_ZN8presolve13dev_kkt_check19KktConditionDetailsC2ENS0_12KktConditionE(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 1)
          to label %22 unwind label %52

22:                                               ; preds = %21
  %23 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %0, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 1, ptr %9, align 4, !tbaa !5
  %24 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %25 unwind label %56

25:                                               ; preds = %22
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %8, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #5
  invoke void @_ZN8presolve13dev_kkt_check19KktConditionDetailsC2ENS0_12KktConditionE(ptr noundef nonnull align 8 dereferenceable(32) %10, i32 noundef 2)
          to label %26 unwind label %61

26:                                               ; preds = %25
  %27 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %0, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 2, ptr %11, align 4, !tbaa !5
  %28 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %27, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %29 unwind label %65

29:                                               ; preds = %26
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %28, ptr align 8 %10, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #5
  invoke void @_ZN8presolve13dev_kkt_check19KktConditionDetailsC2ENS0_12KktConditionE(ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef 3)
          to label %30 unwind label %70

30:                                               ; preds = %29
  %31 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %0, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 3, ptr %13, align 4, !tbaa !5
  %32 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %31, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %33 unwind label %74

33:                                               ; preds = %30
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %32, ptr align 8 %12, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #5
  invoke void @_ZN8presolve13dev_kkt_check19KktConditionDetailsC2ENS0_12KktConditionE(ptr noundef nonnull align 8 dereferenceable(32) %14, i32 noundef 4)
          to label %34 unwind label %79

34:                                               ; preds = %33
  %35 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %0, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 4, ptr %15, align 4, !tbaa !5
  %36 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %35, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %37 unwind label %83

37:                                               ; preds = %34
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %36, ptr align 8 %14, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #5
  invoke void @_ZN8presolve13dev_kkt_check19KktConditionDetailsC2ENS0_12KktConditionE(ptr noundef nonnull align 8 dereferenceable(32) %16, i32 noundef 5)
          to label %38 unwind label %88

38:                                               ; preds = %37
  %39 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %0, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 5, ptr %17, align 4, !tbaa !5
  %40 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %39, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %41 unwind label %92

41:                                               ; preds = %38
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %40, ptr align 8 %16, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #5
  store i1 true, ptr %3, align 1
  %42 = load i1, ptr %3, align 1
  br i1 %42, label %98, label %97

43:                                               ; preds = %1
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %5, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %6, align 4
  br label %51

47:                                               ; preds = %18
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %5, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %51

51:                                               ; preds = %47, %43
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #5
  br label %99

52:                                               ; preds = %21
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %5, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %6, align 4
  br label %60

56:                                               ; preds = %22
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %5, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %60

60:                                               ; preds = %56, %52
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  br label %99

61:                                               ; preds = %25
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %5, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %6, align 4
  br label %69

65:                                               ; preds = %26
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %5, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %69

69:                                               ; preds = %65, %61
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #5
  br label %99

70:                                               ; preds = %29
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %5, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %6, align 4
  br label %78

74:                                               ; preds = %30
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %5, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %78

78:                                               ; preds = %74, %70
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #5
  br label %99

79:                                               ; preds = %33
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %5, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %6, align 4
  br label %87

83:                                               ; preds = %34
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %5, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %87

87:                                               ; preds = %83, %79
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  br label %99

88:                                               ; preds = %37
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %5, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %6, align 4
  br label %96

92:                                               ; preds = %38
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %5, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %96

96:                                               ; preds = %92, %88
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #5
  br label %99

97:                                               ; preds = %41
  call void @_ZN8presolve13dev_kkt_check7KktInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(54) %0) #5
  br label %98

98:                                               ; preds = %97, %41
  ret void

99:                                               ; preds = %96, %87, %78, %69, %60, %51
  call void @_ZN8presolve13dev_kkt_check7KktInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(54) %0) #5
  br label %100

100:                                              ; preds = %99
  %101 = load ptr, ptr %5, align 8
  %102 = load i32, ptr %6, align 4
  %103 = insertvalue { ptr, i32 } poison, ptr %101, 0
  %104 = insertvalue { ptr, i32 } %103, i32 %102, 1
  resume { ptr, i32 } %104
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8presolve13dev_kkt_check19KktConditionDetailsC2ENS0_12KktConditionE(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"_ZTSN8presolve13dev_kkt_check12KktConditionE", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 4, !5, i64 8, i64 8, !10, i64 16, i64 8, !10, i64 24, i64 4, !12, i64 28, i64 4, !12}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !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.presolve::dev_kkt_check::KktInfo" = type <{ %"class.std::map", i8, i8, i8, i8, i8, i8, [2 x i8] }>
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<presolve::dev_kkt_check::KktCondition, std::pair<const presolve::dev_kkt_check::KktCondition, presolve::dev_kkt_check::KktConditionDetails>, std::_Select1st<std::pair<const presolve::dev_kkt_check::KktCondition, presolve::dev_kkt_check::KktConditionDetails>>, std::less<presolve::dev_kkt_check::KktCondition>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<presolve::dev_kkt_check::KktCondition, std::pair<const presolve::dev_kkt_check::KktCondition, presolve::dev_kkt_check::KktConditionDetails>, std::_Select1st<std::pair<const presolve::dev_kkt_check::KktCondition, presolve::dev_kkt_check::KktConditionDetails>>, std::less<presolve::dev_kkt_check::KktCondition>>::_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 }
%"struct.presolve::dev_kkt_check::KktConditionDetails" = type { i32, double, double, i32, i32 }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8presolve13dev_kkt_check8initInfoEv(ptr dead_on_unwind noalias nonnull writable sret(%"struct.presolve::dev_kkt_check::KktInfo") align 8 %0) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.presolve::dev_kkt_check::KktConditionDetails", align 8
  %3 = alloca i32, align 4
  %4 = alloca %"struct.presolve::dev_kkt_check::KktConditionDetails", align 8
  %5 = alloca i32, align 4
  %6 = alloca %"struct.presolve::dev_kkt_check::KktConditionDetails", align 8
  %7 = alloca i32, align 4
  %8 = alloca %"struct.presolve::dev_kkt_check::KktConditionDetails", align 8
  %9 = alloca i32, align 4
  %10 = alloca %"struct.presolve::dev_kkt_check::KktConditionDetails", align 8
  %11 = alloca i32, align 4
  %12 = alloca %"struct.presolve::dev_kkt_check::KktConditionDetails", align 8
  %13 = alloca i32, align 4
  tail call void @_ZN8presolve13dev_kkt_check7KktInfoC2Ev(ptr noundef nonnull align 8 dereferenceable(54) %0) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #5
  call void @_ZN8presolve13dev_kkt_check19KktConditionDetailsC2ENS0_12KktConditionE(ptr noundef nonnull align 8 dereferenceable(32) %2, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  %14 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %15 unwind label %26

15:                                               ; preds = %1
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %2, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  call void @_ZN8presolve13dev_kkt_check19KktConditionDetailsC2ENS0_12KktConditionE(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 1, ptr %5, align 4, !tbaa !5
  %16 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %17 unwind label %28

17:                                               ; preds = %15
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %4, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  call void @_ZN8presolve13dev_kkt_check19KktConditionDetailsC2ENS0_12KktConditionE(ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  store i32 2, ptr %7, align 4, !tbaa !5
  %18 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %19 unwind label %30

19:                                               ; preds = %17
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %6, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #5
  call void @_ZN8presolve13dev_kkt_check19KktConditionDetailsC2ENS0_12KktConditionE(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 3)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  store i32 3, ptr %9, align 4, !tbaa !5
  %20 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %21 unwind label %32

21:                                               ; preds = %19
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %8, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #5
  call void @_ZN8presolve13dev_kkt_check19KktConditionDetailsC2ENS0_12KktConditionE(ptr noundef nonnull align 8 dereferenceable(32) %10, i32 noundef 4)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  store i32 4, ptr %11, align 4, !tbaa !5
  %22 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %23 unwind label %34

23:                                               ; preds = %21
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %10, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #5
  call void @_ZN8presolve13dev_kkt_check19KktConditionDetailsC2ENS0_12KktConditionE(ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef 5)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #5
  store i32 5, ptr %13, align 4, !tbaa !5
  %24 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %25 unwind label %36

25:                                               ; preds = %23
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(32) %12, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #5
  ret void

26:                                               ; preds = %1
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  br label %38

28:                                               ; preds = %15
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br label %38

30:                                               ; preds = %17
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  br label %38

32:                                               ; preds = %19
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  br label %38

34:                                               ; preds = %21
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  br label %38

36:                                               ; preds = %23
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #5
  br label %38

38:                                               ; preds = %36, %34, %32, %30, %28, %26
  %.pn = phi { ptr, i32 } [ %37, %36 ], [ %35, %34 ], [ %33, %32 ], [ %31, %30 ], [ %29, %28 ], [ %27, %26 ]
  call void @_ZN8presolve13dev_kkt_check7KktInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(54) %0) #5
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8presolve13dev_kkt_check19KktConditionDetailsC2ENS0_12KktConditionE(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"_ZTSN8presolve13dev_kkt_check12KktConditionE", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 4, !5, i64 8, i64 8, !10, i64 16, i64 8, !10, i64 24, i64 4, !12, i64 28, i64 4, !12}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}


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