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

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"struct.presolve::dev_kkt_check::State" = type { i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"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 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.45 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [23 x i8], align 1
@__PRETTY_FUNCTION__._ZN8presolve13dev_kkt_check8checkKktERKNS0_5StateERNS0_7KktInfoE = external hidden unnamed_addr constant [65 x i8], align 1

; 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 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: mustprogress uwtable
declare dso_local void @_ZN8presolve13dev_kkt_check17checkPrimalBoundsERKNS0_5StateERNS0_19KktConditionDetailsE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(32)) #1

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8presolve13dev_kkt_check21checkPrimalFeasMatrixERKNS0_5StateERNS0_19KktConditionDetailsE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8presolve13dev_kkt_check20checkDualFeasibilityERKNS0_5StateERNS0_19KktConditionDetailsE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8presolve13dev_kkt_check27checkComplementarySlacknessERKNS0_5StateERNS0_19KktConditionDetailsE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8presolve13dev_kkt_check29checkStationarityOfLagrangianERKNS0_5StateERNS0_19KktConditionDetailsE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8presolve13dev_kkt_check26checkBasicFeasibleSolutionERKNS0_5StateERNS0_19KktConditionDetailsE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN8presolve13dev_kkt_check8checkKktERKNS0_5StateERNS0_7KktInfoE(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef nonnull align 8 dereferenceable(54) %1) #1 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.presolve::dev_kkt_check::State", ptr %18, i32 0, i32 0
  %20 = load i32, ptr %19, align 8, !tbaa !9
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %22, label %25

22:                                               ; preds = %2
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.64)
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i1 true, ptr %3, align 1
  br label %139

25:                                               ; preds = %2
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %28, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !12
  %30 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %29, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @_ZN8presolve13dev_kkt_check17checkPrimalBoundsERKNS0_5StateERNS0_19KktConditionDetailsE(ptr noundef nonnull align 8 dereferenceable(168) %27, ptr noundef nonnull align 8 dereferenceable(32) %30)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %32, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 1, ptr %7, align 4, !tbaa !12
  %34 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %33, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @_ZN8presolve13dev_kkt_check21checkPrimalFeasMatrixERKNS0_5StateERNS0_19KktConditionDetailsE(ptr noundef nonnull align 8 dereferenceable(168) %31, ptr noundef nonnull align 8 dereferenceable(32) %34)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %36, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 2, ptr %8, align 4, !tbaa !12
  %38 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %37, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @_ZN8presolve13dev_kkt_check20checkDualFeasibilityERKNS0_5StateERNS0_19KktConditionDetailsE(ptr noundef nonnull align 8 dereferenceable(168) %35, ptr noundef nonnull align 8 dereferenceable(32) %38)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %40, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 3, ptr %9, align 4, !tbaa !12
  %42 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %41, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @_ZN8presolve13dev_kkt_check27checkComplementarySlacknessERKNS0_5StateERNS0_19KktConditionDetailsE(ptr noundef nonnull align 8 dereferenceable(168) %39, ptr noundef nonnull align 8 dereferenceable(32) %42)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %44, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 4, ptr %10, align 4, !tbaa !12
  %46 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %45, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @_ZN8presolve13dev_kkt_check29checkStationarityOfLagrangianERKNS0_5StateERNS0_19KktConditionDetailsE(ptr noundef nonnull align 8 dereferenceable(168) %43, ptr noundef nonnull align 8 dereferenceable(32) %46)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %48, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 5, ptr %11, align 4, !tbaa !12
  %50 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %49, ptr noundef nonnull align 4 dereferenceable(4) %11)
  call void @_ZN8presolve13dev_kkt_check26checkBasicFeasibleSolutionERKNS0_5StateERNS0_19KktConditionDetailsE(ptr noundef nonnull align 8 dereferenceable(168) %47, ptr noundef nonnull align 8 dereferenceable(32) %50)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %51, i32 0, i32 0
  %53 = call noundef i64 @_ZNKSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %52) #5
  %54 = icmp eq i64 %53, 6
  br i1 %54, label %55, label %56

55:                                               ; preds = %25
  br label %58

56:                                               ; preds = %25
  call void @__assert_fail(ptr noundef @.str.65, ptr noundef @.str.45, i32 noundef 447, ptr noundef @__PRETTY_FUNCTION__._ZN8presolve13dev_kkt_check8checkKktERKNS0_5StateERNS0_7KktInfoE) #6
  unreachable

57:                                               ; No predecessors!
  br label %58

58:                                               ; preds = %57, %55
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %59, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !12
  %61 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %60, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %62 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktConditionDetails", ptr %61, i32 0, i32 4
  %63 = load i32, ptr %62, align 4, !tbaa !14
  %64 = icmp eq i32 %63, 0
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %65, i32 0, i32 1
  %67 = zext i1 %64 to i8
  store i8 %67, ptr %66, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %68, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 1, ptr %13, align 4, !tbaa !12
  %70 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %69, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %71 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktConditionDetails", ptr %70, i32 0, i32 4
  %72 = load i32, ptr %71, align 4, !tbaa !14
  %73 = icmp eq i32 %72, 0
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %74, i32 0, i32 2
  %76 = zext i1 %73 to i8
  store i8 %76, ptr %75, align 1, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %77, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 2, ptr %14, align 4, !tbaa !12
  %79 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %78, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %80 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktConditionDetails", ptr %79, i32 0, i32 4
  %81 = load i32, ptr %80, align 4, !tbaa !14
  %82 = icmp eq i32 %81, 0
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %83, i32 0, i32 3
  %85 = zext i1 %82 to i8
  store i8 %85, ptr %84, align 2, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %86, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 3, ptr %15, align 4, !tbaa !12
  %88 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %87, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %89 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktConditionDetails", ptr %88, i32 0, i32 4
  %90 = load i32, ptr %89, align 4, !tbaa !14
  %91 = icmp eq i32 %90, 0
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %92, i32 0, i32 5
  %94 = zext i1 %91 to i8
  store i8 %94, ptr %93, align 4, !tbaa !31
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %95, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 4, ptr %16, align 4, !tbaa !12
  %97 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %96, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %98 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktConditionDetails", ptr %97, i32 0, i32 4
  %99 = load i32, ptr %98, align 4, !tbaa !14
  %100 = icmp eq i32 %99, 0
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %101, i32 0, i32 4
  %103 = zext i1 %100 to i8
  store i8 %103, ptr %102, align 1, !tbaa !32
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %104, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 5, ptr %17, align 4, !tbaa !12
  %106 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %105, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %107 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktConditionDetails", ptr %106, i32 0, i32 4
  %108 = load i32, ptr %107, align 4, !tbaa !14
  %109 = icmp eq i32 %108, 0
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %110, i32 0, i32 6
  %112 = zext i1 %109 to i8
  store i8 %112, ptr %111, align 1, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %113, i32 0, i32 2
  %115 = load i8, ptr %114, align 1, !tbaa !29, !range !34, !noundef !35
  %116 = trunc i8 %115 to i1
  br i1 %116, label %117, label %138

117:                                              ; preds = %58
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %118, i32 0, i32 1
  %120 = load i8, ptr %119, align 8, !tbaa !17, !range !34, !noundef !35
  %121 = trunc i8 %120 to i1
  br i1 %121, label %122, label %138

122:                                              ; preds = %117
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %123, i32 0, i32 3
  %125 = load i8, ptr %124, align 2, !tbaa !30, !range !34, !noundef !35
  %126 = trunc i8 %125 to i1
  br i1 %126, label %127, label %138

127:                                              ; preds = %122
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %128, i32 0, i32 5
  %130 = load i8, ptr %129, align 4, !tbaa !31, !range !34, !noundef !35
  %131 = trunc i8 %130 to i1
  br i1 %131, label %132, label %138

132:                                              ; preds = %127
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.presolve::dev_kkt_check::KktInfo", ptr %133, i32 0, i32 4
  %135 = load i8, ptr %134, align 1, !tbaa !32, !range !34, !noundef !35
  %136 = trunc i8 %135 to i1
  br i1 %136, label %137, label %138

137:                                              ; preds = %132
  store i1 true, ptr %3, align 1
  br label %139

138:                                              ; preds = %132, %127, %122, %117, %58
  store i1 false, ptr %3, align 1
  br label %139

139:                                              ; preds = %138, %137, %22
  %140 = load i1, ptr %3, align 1
  ret i1 %140
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) #4 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 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 = { noreturn nounwind "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 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 #5 = { nounwind }
attributes #6 = { noreturn 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, !11, i64 0}
!10 = !{!"_ZTSN8presolve13dev_kkt_check5StateE", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, 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}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"_ZTSN8presolve13dev_kkt_check12KktConditionE", !7, i64 0}
!14 = !{!15, !11, i64 28}
!15 = !{!"_ZTSN8presolve13dev_kkt_check19KktConditionDetailsE", !13, i64 0, !16, i64 8, !16, i64 16, !11, i64 24, !11, i64 28}
!16 = !{!"double", !7, i64 0}
!17 = !{!18, !28, i64 48}
!18 = !{!"_ZTSN8presolve13dev_kkt_check7KktInfoE", !19, i64 0, !28, i64 48, !28, i64 49, !28, i64 50, !28, i64 51, !28, i64 52, !28, i64 53}
!19 = !{!"_ZTSSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEE", !20, i64 0}
!20 = !{!"_ZTSSt8_Rb_treeIN8presolve13dev_kkt_check12KktConditionESt4pairIKS2_NS1_19KktConditionDetailsEESt10_Select1stIS6_ESt4lessIS2_ESaIS6_EE", !21, i64 0}
!21 = !{!"_ZTSNSt8_Rb_treeIN8presolve13dev_kkt_check12KktConditionESt4pairIKS2_NS1_19KktConditionDetailsEESt10_Select1stIS6_ESt4lessIS2_ESaIS6_EE13_Rb_tree_implISA_Lb1EEE", !22, i64 0, !24, i64 8}
!22 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIN8presolve13dev_kkt_check12KktConditionEEE", !23, i64 0}
!23 = !{!"_ZTSSt4lessIN8presolve13dev_kkt_check12KktConditionEE"}
!24 = !{!"_ZTSSt15_Rb_tree_header", !25, i64 0, !27, i64 32}
!25 = !{!"_ZTSSt18_Rb_tree_node_base", !26, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!26 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!27 = !{!"long", !7, i64 0}
!28 = !{!"bool", !7, i64 0}
!29 = !{!18, !28, i64 49}
!30 = !{!18, !28, i64 50}
!31 = !{!18, !28, i64 52}
!32 = !{!18, !28, i64 51}
!33 = !{!18, !28, i64 53}
!34 = !{i8 0, i8 2}
!35 = !{}


; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.45 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [23 x i8], align 1
@__PRETTY_FUNCTION__._ZN8presolve13dev_kkt_check8checkKktERKNS0_5StateERNS0_7KktInfoE = external hidden unnamed_addr constant [65 x i8], align 1

; 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 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 uwtable
declare dso_local void @_ZN8presolve13dev_kkt_check17checkPrimalBoundsERKNS0_5StateERNS0_19KktConditionDetailsE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8presolve13dev_kkt_check21checkPrimalFeasMatrixERKNS0_5StateERNS0_19KktConditionDetailsE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8presolve13dev_kkt_check20checkDualFeasibilityERKNS0_5StateERNS0_19KktConditionDetailsE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8presolve13dev_kkt_check27checkComplementarySlacknessERKNS0_5StateERNS0_19KktConditionDetailsE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8presolve13dev_kkt_check29checkStationarityOfLagrangianERKNS0_5StateERNS0_19KktConditionDetailsE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8presolve13dev_kkt_check26checkBasicFeasibleSolutionERKNS0_5StateERNS0_19KktConditionDetailsE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN8presolve13dev_kkt_check8checkKktERKNS0_5StateERNS0_7KktInfoE(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef nonnull align 8 dereferenceable(54) %1) local_unnamed_addr #1 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = load i32, ptr %0, align 8, !tbaa !5
  %16 = icmp eq i32 %15, 0
  br i1 %16, label %17, label %20

17:                                               ; preds = %2
  %18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.64)
  %19 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %83

20:                                               ; preds = %2
  %21 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 0, ptr %3, align 4, !tbaa !11
  %22 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @_ZN8presolve13dev_kkt_check17checkPrimalBoundsERKNS0_5StateERNS0_19KktConditionDetailsE(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef nonnull align 8 dereferenceable(32) %22)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  store i32 1, ptr %4, align 4, !tbaa !11
  %23 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @_ZN8presolve13dev_kkt_check21checkPrimalFeasMatrixERKNS0_5StateERNS0_19KktConditionDetailsE(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef nonnull align 8 dereferenceable(32) %23)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 2, ptr %5, align 4, !tbaa !11
  %24 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @_ZN8presolve13dev_kkt_check20checkDualFeasibilityERKNS0_5StateERNS0_19KktConditionDetailsE(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef nonnull align 8 dereferenceable(32) %24)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  store i32 3, ptr %6, align 4, !tbaa !11
  %25 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @_ZN8presolve13dev_kkt_check27checkComplementarySlacknessERKNS0_5StateERNS0_19KktConditionDetailsE(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef nonnull align 8 dereferenceable(32) %25)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  store i32 4, ptr %7, align 4, !tbaa !11
  %26 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @_ZN8presolve13dev_kkt_check29checkStationarityOfLagrangianERKNS0_5StateERNS0_19KktConditionDetailsE(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef nonnull align 8 dereferenceable(32) %26)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  store i32 5, ptr %8, align 4, !tbaa !11
  %27 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @_ZN8presolve13dev_kkt_check26checkBasicFeasibleSolutionERKNS0_5StateERNS0_19KktConditionDetailsE(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef nonnull align 8 dereferenceable(32) %27)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  %28 = call noundef i64 @_ZNKSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #5
  %29 = icmp eq i64 %28, 6
  br i1 %29, label %31, label %30

30:                                               ; preds = %20
  call void @__assert_fail(ptr noundef nonnull @.str.65, ptr noundef nonnull @.str.45, i32 noundef 447, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8presolve13dev_kkt_check8checkKktERKNS0_5StateERNS0_7KktInfoE) #6
  unreachable

31:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  store i32 0, ptr %9, align 4, !tbaa !11
  %32 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %33 = getelementptr inbounds i8, ptr %32, i64 28
  %34 = load i32, ptr %33, align 4, !tbaa !13
  %35 = icmp eq i32 %34, 0
  %36 = getelementptr inbounds i8, ptr %1, i64 48
  %37 = zext i1 %35 to i8
  store i8 %37, ptr %36, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  store i32 1, ptr %10, align 4, !tbaa !11
  %38 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %39 = getelementptr inbounds i8, ptr %38, i64 28
  %40 = load i32, ptr %39, align 4, !tbaa !13
  %41 = icmp eq i32 %40, 0
  %42 = getelementptr inbounds i8, ptr %1, i64 49
  %43 = zext i1 %41 to i8
  store i8 %43, ptr %42, align 1, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  store i32 2, ptr %11, align 4, !tbaa !11
  %44 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %45 = getelementptr inbounds i8, ptr %44, i64 28
  %46 = load i32, ptr %45, align 4, !tbaa !13
  %47 = icmp eq i32 %46, 0
  %48 = getelementptr inbounds i8, ptr %1, i64 50
  %49 = zext i1 %47 to i8
  store i8 %49, ptr %48, align 2, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  store i32 3, ptr %12, align 4, !tbaa !11
  %50 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %51 = getelementptr inbounds i8, ptr %50, i64 28
  %52 = load i32, ptr %51, align 4, !tbaa !13
  %53 = icmp eq i32 %52, 0
  %54 = getelementptr inbounds i8, ptr %1, i64 52
  %55 = zext i1 %53 to i8
  store i8 %55, ptr %54, align 4, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #5
  store i32 4, ptr %13, align 4, !tbaa !11
  %56 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %57 = getelementptr inbounds i8, ptr %56, i64 28
  %58 = load i32, ptr %57, align 4, !tbaa !13
  %59 = icmp eq i32 %58, 0
  %60 = getelementptr inbounds i8, ptr %1, i64 51
  %61 = zext i1 %59 to i8
  store i8 %61, ptr %60, align 1, !tbaa !31
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #5
  store i32 5, ptr %14, align 4, !tbaa !11
  %62 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %63 = getelementptr inbounds i8, ptr %62, i64 28
  %64 = load i32, ptr %63, align 4, !tbaa !13
  %65 = icmp eq i32 %64, 0
  %66 = getelementptr inbounds i8, ptr %1, i64 53
  %67 = zext i1 %65 to i8
  store i8 %67, ptr %66, align 1, !tbaa !32
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  %68 = load i8, ptr %42, align 1, !tbaa !28, !range !33, !noundef !34
  %69 = trunc nuw i8 %68 to i1
  br i1 %69, label %70, label %82

70:                                               ; preds = %31
  %71 = load i8, ptr %36, align 8, !tbaa !16, !range !33, !noundef !34
  %72 = trunc nuw i8 %71 to i1
  br i1 %72, label %73, label %82

73:                                               ; preds = %70
  %74 = load i8, ptr %48, align 2, !tbaa !29, !range !33, !noundef !34
  %75 = trunc nuw i8 %74 to i1
  br i1 %75, label %76, label %82

76:                                               ; preds = %73
  %77 = load i8, ptr %54, align 4, !tbaa !30, !range !33, !noundef !34
  %78 = trunc nuw i8 %77 to i1
  br i1 %78, label %79, label %82

79:                                               ; preds = %76
  %80 = load i8, ptr %60, align 1, !tbaa !31, !range !33, !noundef !34
  %81 = trunc nuw i8 %80 to i1
  br i1 %81, label %83, label %82

82:                                               ; preds = %79, %76, %73, %70, %31
  br label %83

83:                                               ; preds = %79, %82, %17
  %.0 = phi i1 [ true, %17 ], [ false, %82 ], [ true, %79 ]
  ret i1 %.0
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4 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 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 = { noreturn nounwind "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 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 #5 = { nounwind }
attributes #6 = { noreturn 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, !7, i64 0}
!6 = !{!"_ZTSN8presolve13dev_kkt_check5StateE", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN8presolve13dev_kkt_check12KktConditionE", !8, i64 0}
!13 = !{!14, !7, i64 28}
!14 = !{!"_ZTSN8presolve13dev_kkt_check19KktConditionDetailsE", !12, i64 0, !15, i64 8, !15, i64 16, !7, i64 24, !7, i64 28}
!15 = !{!"double", !8, i64 0}
!16 = !{!17, !27, i64 48}
!17 = !{!"_ZTSN8presolve13dev_kkt_check7KktInfoE", !18, i64 0, !27, i64 48, !27, i64 49, !27, i64 50, !27, i64 51, !27, i64 52, !27, i64 53}
!18 = !{!"_ZTSSt3mapIN8presolve13dev_kkt_check12KktConditionENS1_19KktConditionDetailsESt4lessIS2_ESaISt4pairIKS2_S3_EEE", !19, i64 0}
!19 = !{!"_ZTSSt8_Rb_treeIN8presolve13dev_kkt_check12KktConditionESt4pairIKS2_NS1_19KktConditionDetailsEESt10_Select1stIS6_ESt4lessIS2_ESaIS6_EE", !20, i64 0}
!20 = !{!"_ZTSNSt8_Rb_treeIN8presolve13dev_kkt_check12KktConditionESt4pairIKS2_NS1_19KktConditionDetailsEESt10_Select1stIS6_ESt4lessIS2_ESaIS6_EE13_Rb_tree_implISA_Lb1EEE", !21, i64 0, !23, i64 8}
!21 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIN8presolve13dev_kkt_check12KktConditionEEE", !22, i64 0}
!22 = !{!"_ZTSSt4lessIN8presolve13dev_kkt_check12KktConditionEE"}
!23 = !{!"_ZTSSt15_Rb_tree_header", !24, i64 0, !26, i64 32}
!24 = !{!"_ZTSSt18_Rb_tree_node_base", !25, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!25 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!26 = !{!"long", !8, i64 0}
!27 = !{!"bool", !8, i64 0}
!28 = !{!17, !27, i64 49}
!29 = !{!17, !27, i64 50}
!30 = !{!17, !27, i64 52}
!31 = !{!17, !27, i64 51}
!32 = !{!17, !27, i64 53}
!33 = !{i8 0, i8 2}
!34 = !{}


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