; LLVM IR from facebook/redex :: libredex/ControlFlow.ll (ZNK3cfg5Block14is_unreachableEv)

; 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.UnorderedSet.40 = type { %"class.std::unordered_set.42" }
%"class.std::unordered_set.42" = type { %"class.std::_Hashtable.43" }
%"class.std::_Hashtable.43" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.std::pair" = type <{ %"class.UnorderedSet<const cfg::Block *>::FixedIterator", i8, [7 x i8] }>
%"class.UnorderedSet<const cfg::Block *>::FixedIterator" = type { %"struct.std::__detail::_Node_iterator" }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.ir_list::ConstInstructionIterable" = type { %"class.ir_list::InstructionIterableImpl" }
%"class.ir_list::InstructionIterableImpl" = type { %"class.boost::intrusive::list_iterator.38", %"class.boost::intrusive::list_iterator.38" }
%"class.boost::intrusive::list_iterator.38" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }
%"class.ir_list::InstructionIteratorImpl.62" = type { %"class.boost::intrusive::list_iterator.38", %"class.boost::intrusive::list_iterator.38" }
%struct.MethodItemEntry = type { %"class.boost::intrusive::list_member_hook", i32, %union.anon.16 }
%"class.boost::intrusive::list_member_hook" = type { %"class.boost::intrusive::generic_hook" }
%"class.boost::intrusive::generic_hook" = type { %"struct.boost::intrusive::list_node" }
%"struct.boost::intrusive::list_node" = type { ptr, ptr }
%union.anon.16 = type { ptr }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK3cfg5Block14is_unreachableEv(ptr noundef nonnull align 8 dereferenceable(104) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca %class.UnorderedSet.40, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"struct.std::pair", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca { ptr, i8 }, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.ir_list::ConstInstructionIterable", align 8
  %12 = alloca %"class.ir_list::InstructionIteratorImpl.62", align 8
  %13 = alloca %"class.ir_list::InstructionIteratorImpl.62", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr %4) #5
  call void @_ZN12UnorderedSetIPKN3cfg5BlockESt4hashIS3_ESt8equal_toIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store ptr %14, ptr %5, align 8, !tbaa !5
  br label %15

15:                                               ; preds = %85, %1
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #5
  br i1 %17, label %18, label %24

18:                                               ; preds = %15
  %19 = invoke { ptr, i8 } @_ZN12UnorderedSetIPKN3cfg5BlockESt4hashIS3_ESt8equal_toIS3_EE6insertERKS3_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %20 unwind label %27

20:                                               ; preds = %18
  store { ptr, i8 } %19, ptr %9, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %9, i64 9, i1 false)
  %21 = getelementptr inbounds %"struct.std::pair", ptr %6, i32 0, i32 1
  %22 = load i8, ptr %21, align 8, !tbaa !9, !range !15, !noundef !16
  %23 = trunc i8 %22 to i1
  br label %24

24:                                               ; preds = %20, %15
  %25 = phi i1 [ false, %15 ], [ %23, %20 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  br i1 %25, label %31, label %26

26:                                               ; preds = %24
  store i32 2, ptr %10, align 4
  br label %87

27:                                               ; preds = %18
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %7, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  br label %89

31:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN7ir_list24ConstInstructionIterableC2IN3cfg5BlockEEEPKT_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %32)
          to label %33 unwind label %40

33:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  invoke void @_ZNK7ir_list23InstructionIterableImplILb1EE5beginEv(ptr dead_on_unwind writable sret(%"class.ir_list::InstructionIteratorImpl.62") align 8 %12, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %34 unwind label %44

34:                                               ; preds = %33
  br label %35

35:                                               ; preds = %75, %34
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  invoke void @_ZNK7ir_list23InstructionIterableImplILb1EE3endEv(ptr dead_on_unwind writable sret(%"class.ir_list::InstructionIteratorImpl.62") align 8 %13, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %36 unwind label %48

36:                                               ; preds = %35
  %37 = invoke noundef zeroext i1 @_ZNK7ir_list23InstructionIteratorImplILb1EEneERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %38 unwind label %48

38:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  br i1 %37, label %52, label %39

39:                                               ; preds = %38
  store i32 4, ptr %10, align 4
  br label %76

40:                                               ; preds = %79, %31
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %7, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %8, align 4
  br label %86

44:                                               ; preds = %73, %68, %64, %62, %58, %54, %52, %33
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %7, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %8, align 4
  br label %78

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

52:                                               ; preds = %38
  %53 = invoke noundef ptr @_ZNK7ir_list23InstructionIteratorImplILb1EEptEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %54 unwind label %44

54:                                               ; preds = %52
  %55 = getelementptr inbounds %struct.MethodItemEntry, ptr %53, i32 0, i32 2
  %56 = load ptr, ptr %55, align 8, !tbaa !17
  %57 = invoke noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %56)
          to label %58 unwind label %44

58:                                               ; preds = %54
  %59 = invoke noundef zeroext i1 @_ZN6opcode14is_unreachableE8IROpcode(i16 noundef zeroext %57)
          to label %60 unwind label %44

60:                                               ; preds = %58
  br i1 %59, label %61, label %62

61:                                               ; preds = %60
  store i1 true, ptr %2, align 1
  store i32 1, ptr %10, align 4
  br label %76

62:                                               ; preds = %60
  %63 = invoke noundef ptr @_ZNK7ir_list23InstructionIteratorImplILb1EEptEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %64 unwind label %44

64:                                               ; preds = %62
  %65 = getelementptr inbounds %struct.MethodItemEntry, ptr %63, i32 0, i32 2
  %66 = load ptr, ptr %65, align 8, !tbaa !17
  %67 = invoke noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %66)
          to label %68 unwind label %44

68:                                               ; preds = %64
  %69 = invoke noundef zeroext i1 @_ZN6opcode15is_a_load_paramE8IROpcode(i16 noundef zeroext %67)
          to label %70 unwind label %44

70:                                               ; preds = %68
  br i1 %69, label %71, label %72

71:                                               ; preds = %70
  br label %73

72:                                               ; preds = %70
  store i1 false, ptr %2, align 1
  store i32 1, ptr %10, align 4
  br label %76

73:                                               ; preds = %71
  %74 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7ir_list23InstructionIteratorImplILb1EEppEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %75 unwind label %44

75:                                               ; preds = %73
  br label %35, !llvm.loop !18

76:                                               ; preds = %72, %61, %39
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  %77 = load i32, ptr %10, align 4
  switch i32 %77, label %83 [
    i32 4, label %79
  ]

78:                                               ; preds = %48, %44
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  br label %86

79:                                               ; preds = %76
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = invoke noundef ptr @_ZNK3cfg5Block17goes_to_only_edgeEv(ptr noundef nonnull align 8 dereferenceable(104) %80)
          to label %82 unwind label %40

82:                                               ; preds = %79
  store ptr %81, ptr %5, align 8, !tbaa !5
  store i32 0, ptr %10, align 4
  br label %83

83:                                               ; preds = %82, %76
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  %84 = load i32, ptr %10, align 4
  switch i32 %84, label %87 [
    i32 0, label %85
  ]

85:                                               ; preds = %83
  br label %15, !llvm.loop !20

86:                                               ; preds = %78, %40
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  br label %89

87:                                               ; preds = %83, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  %88 = load i32, ptr %10, align 4
  switch i32 %88, label %91 [
    i32 2, label %90
  ]

89:                                               ; preds = %86, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @_ZN12UnorderedSetIPKN3cfg5BlockESt4hashIS3_ESt8equal_toIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %4) #5
  br label %93

90:                                               ; preds = %87
  store i1 false, ptr %2, align 1
  store i32 1, ptr %10, align 4
  br label %91

91:                                               ; preds = %90, %87
  call void @_ZN12UnorderedSetIPKN3cfg5BlockESt4hashIS3_ESt8equal_toIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %4) #5
  %92 = load i1, ptr %2, align 1
  ret i1 %92

93:                                               ; preds = %89
  %94 = load ptr, ptr %7, align 8
  %95 = load i32, ptr %8, align 4
  %96 = insertvalue { ptr, i32 } poison, ptr %94, 0
  %97 = insertvalue { ptr, i32 } %96, i32 %95, 1
  resume { ptr, i32 } %97
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12UnorderedSetIPKN3cfg5BlockESt4hashIS3_ESt8equal_toIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZN12UnorderedSetIPKN3cfg5BlockESt4hashIS3_ESt8equal_toIS3_EE6insertERKS3_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #2 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) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7ir_list24ConstInstructionIterableC2IN3cfg5BlockEEEPKT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7ir_list23InstructionIterableImplILb1EE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.ir_list::InstructionIteratorImpl.62") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7ir_list23InstructionIterableImplILb1EE3endEv(ptr dead_on_unwind noalias writable sret(%"class.ir_list::InstructionIteratorImpl.62") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6opcode14is_unreachableE8IROpcode(i16 noundef zeroext) #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6opcode15is_a_load_paramE8IROpcode(i16 noundef zeroext) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK3cfg5Block17goes_to_only_edgeEv(ptr noundef nonnull align 8 dereferenceable(104)) #2 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !14, i64 8}
!10 = !{!"_ZTSSt4pairIN12UnorderedSetIPKN3cfg5BlockESt4hashIS4_ESt8equal_toIS4_EE13FixedIteratorEbE", !11, i64 0, !14, i64 8}
!11 = !{!"_ZTSN12UnorderedSetIPKN3cfg5BlockESt4hashIS3_ESt8equal_toIS3_EE13FixedIteratorE", !12, i64 0}
!12 = !{!"_ZTSNSt8__detail14_Node_iteratorIPKN3cfg5BlockELb1ELb0EEE", !13, i64 0}
!13 = !{!"_ZTSNSt8__detail19_Node_iterator_baseIPKN3cfg5BlockELb0EEE", !6, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}


; 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.UnorderedSet.40 = type { %"class.std::unordered_set.42" }
%"class.std::unordered_set.42" = type { %"class.std::_Hashtable.43" }
%"class.std::_Hashtable.43" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.ir_list::ConstInstructionIterable" = type { %"class.ir_list::InstructionIterableImpl" }
%"class.ir_list::InstructionIterableImpl" = type { %"class.boost::intrusive::list_iterator.38", %"class.boost::intrusive::list_iterator.38" }
%"class.boost::intrusive::list_iterator.38" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }
%"class.ir_list::InstructionIteratorImpl.62" = type { %"class.boost::intrusive::list_iterator.38", %"class.boost::intrusive::list_iterator.38" }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK3cfg5Block14is_unreachableEv(ptr noundef nonnull align 8 dereferenceable(104) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %class.UnorderedSet.40, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.ir_list::ConstInstructionIterable", align 8
  %5 = alloca %"class.ir_list::InstructionIteratorImpl.62", align 8
  %6 = alloca %"class.ir_list::InstructionIteratorImpl.62", align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %2) #4
  call void @_ZN12UnorderedSetIPKN3cfg5BlockESt4hashIS3_ESt8equal_toIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  store ptr %0, ptr %3, align 8, !tbaa !5
  br label %7

7:                                                ; preds = %1, %42
  %8 = invoke { ptr, i8 } @_ZN12UnorderedSetIPKN3cfg5BlockESt4hashIS3_ESt8equal_toIS3_EE6insertERKS3_(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %9 unwind label %11

9:                                                ; preds = %7
  %.fca.1.extract = extractvalue { ptr, i8 } %8, 1
  %10 = trunc i8 %.fca.1.extract to i1
  br i1 %10, label %13, label %44

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

13:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZN7ir_list24ConstInstructionIterableC2IN3cfg5BlockEEEPKT_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef %14)
          to label %15 unwind label %18

15:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  invoke void @_ZNK7ir_list23InstructionIterableImplILb1EE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.ir_list::InstructionIteratorImpl.62") align 8 %5, ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %.preheader unwind label %.loopexit.split-lp

.preheader:                                       ; preds = %15, %36
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  invoke void @_ZNK7ir_list23InstructionIterableImplILb1EE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.ir_list::InstructionIteratorImpl.62") align 8 %6, ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %16 unwind label %20

16:                                               ; preds = %.preheader
  %17 = call noundef zeroext i1 @_ZNK7ir_list23InstructionIteratorImplILb1EEneERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  br i1 %17, label %22, label %39

18:                                               ; preds = %39, %13
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %43

.loopexit:                                        ; preds = %22, %29, %36
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %38

.loopexit.split-lp:                               ; preds = %15
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %38

20:                                               ; preds = %.preheader
  %21 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  br label %38

22:                                               ; preds = %16
  %23 = invoke noundef ptr @_ZNK7ir_list23InstructionIteratorImplILb1EEptEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %24 unwind label %.loopexit

24:                                               ; preds = %22
  %25 = getelementptr inbounds i8, ptr %23, i64 24
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %27 = call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %26)
  %28 = call noundef zeroext i1 @_ZN6opcode14is_unreachableE8IROpcode(i16 noundef zeroext %27)
  br i1 %28, label %.critedge, label %29

29:                                               ; preds = %24
  %30 = invoke noundef ptr @_ZNK7ir_list23InstructionIteratorImplILb1EEptEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %31 unwind label %.loopexit

31:                                               ; preds = %29
  %32 = getelementptr inbounds i8, ptr %30, i64 24
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %33)
  %35 = call noundef zeroext i1 @_ZN6opcode15is_a_load_paramE8IROpcode(i16 noundef zeroext %34)
  br i1 %35, label %36, label %.critedge

36:                                               ; preds = %31
  %37 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7ir_list23InstructionIteratorImplILb1EEppEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %.preheader unwind label %.loopexit, !llvm.loop !10

38:                                               ; preds = %.loopexit, %.loopexit.split-lp, %20
  %.pn = phi { ptr, i32 } [ %21, %20 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  br label %43

39:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = invoke noundef ptr @_ZNK3cfg5Block17goes_to_only_edgeEv(ptr noundef nonnull align 8 dereferenceable(104) %40)
          to label %42 unwind label %18

42:                                               ; preds = %39
  store ptr %41, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  %.not = icmp eq ptr %41, null
  br i1 %.not, label %44, label %7

43:                                               ; preds = %38, %18
  %.pn19 = phi { ptr, i32 } [ %19, %18 ], [ %.pn, %38 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  br label %47

.critedge:                                        ; preds = %24, %31
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  br label %45

44:                                               ; preds = %42, %9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  br label %45

45:                                               ; preds = %.critedge, %44
  %46 = phi i1 [ false, %44 ], [ %28, %.critedge ]
  call void @_ZN12UnorderedSetIPKN3cfg5BlockESt4hashIS3_ESt8equal_toIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %2) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %2) #4
  ret i1 %46

47:                                               ; preds = %43, %11
  %.pn19.pn = phi { ptr, i32 } [ %.pn19, %43 ], [ %12, %11 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  call void @_ZN12UnorderedSetIPKN3cfg5BlockESt4hashIS3_ESt8equal_toIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %2) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %2) #4
  resume { ptr, i32 } %.pn19.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12UnorderedSetIPKN3cfg5BlockESt4hashIS3_ESt8equal_toIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZN12UnorderedSetIPKN3cfg5BlockESt4hashIS3_ESt8equal_toIS3_EE6insertERKS3_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7ir_list24ConstInstructionIterableC2IN3cfg5BlockEEEPKT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7ir_list23InstructionIterableImplILb1EE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.ir_list::InstructionIteratorImpl.62") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7ir_list23InstructionIterableImplILb1EE3endEv(ptr dead_on_unwind noalias writable sret(%"class.ir_list::InstructionIteratorImpl.62") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6opcode14is_unreachableE8IROpcode(i16 noundef zeroext) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6opcode15is_a_load_paramE8IROpcode(i16 noundef zeroext) local_unnamed_addr #3

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

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

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

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass