; LLVM IR from facebook/redex :: service/method-inliner (CFGInliner)

; 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::vector.34" = type { %"struct.std::_Vector_base.35" }
%"struct.std::_Vector_base.35" = type { %"struct.std::_Vector_base<cfg::Edge *, std::allocator<cfg::Edge *>>::_Vector_impl" }
%"struct.std::_Vector_base<cfg::Edge *, std::allocator<cfg::Edge *>>::_Vector_impl" = type { %"struct.std::_Vector_base<cfg::Edge *, std::allocator<cfg::Edge *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cfg::Edge *, std::allocator<cfg::Edge *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon = type { ptr }
%class.anon.122 = type { i8 }
%"class.std::vector.39" = type { %"struct.std::_Vector_base.40" }
%"struct.std::_Vector_base.40" = type { %"struct.std::_Vector_base<cfg::Block *, std::allocator<cfg::Block *>>::_Vector_impl" }
%"struct.std::_Vector_base<cfg::Block *, std::allocator<cfg::Block *>>::_Vector_impl" = type { %"struct.std::_Vector_base<cfg::Block *, std::allocator<cfg::Block *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cfg::Block *, std::allocator<cfg::Block *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::allocator.41" = type { i8 }
%class.anon.123 = type { ptr, 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 uwtable
define dso_local void @_ZN3cfg10CFGInliner12connect_cfgsEbPNS_16ControlFlowGraphEPNS_5BlockERKSt6vectorIS4_SaIS4_EES4_S9_S4_b(i1 noundef zeroext %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef %6, i1 noundef zeroext %7) #1 align 2 personality ptr @__gxx_personality_v0 {
  %9 = alloca i8, align 1
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i8, align 1
  %17 = alloca ptr, align 8
  %18 = alloca %"class.std::vector.34", align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca %class.anon, align 8
  %22 = alloca %class.anon.122, align 1
  %23 = alloca %"class.std::vector.39", align 8
  %24 = alloca %"class.std::initializer_list", align 8
  %25 = alloca [1 x ptr], align 8
  %26 = alloca %"class.std::allocator.41", align 1
  %27 = alloca %"class.std::vector.39", align 8
  %28 = alloca %"class.std::initializer_list", align 8
  %29 = alloca [1 x ptr], align 8
  %30 = alloca %"class.std::allocator.41", align 1
  %31 = alloca %class.anon.123, align 8
  %32 = zext i1 %0 to i8
  store i8 %32, ptr %9, align 1, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !9
  store ptr %2, ptr %11, align 8, !tbaa !9
  store ptr %3, ptr %12, align 8, !tbaa !9
  store ptr %4, ptr %13, align 8, !tbaa !9
  store ptr %5, ptr %14, align 8, !tbaa !9
  store ptr %6, ptr %15, align 8, !tbaa !9
  %33 = zext i1 %7 to i8
  store i8 %33, ptr %16, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #5
  %34 = load ptr, ptr %11, align 8, !tbaa !9
  call void @_ZNK3cfg5Block28get_outgoing_throws_in_orderEv(ptr dead_on_unwind writable sret(%"class.std::vector.34") align 8 %18, ptr noundef nonnull align 8 dereferenceable(104) %34)
  store ptr %18, ptr %17, align 8, !tbaa !9
  %35 = load ptr, ptr %17, align 8, !tbaa !9
  %36 = call noundef zeroext i1 @_ZNKSt6vectorIPN3cfg4EdgeESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #5
  br i1 %36, label %46, label %37

37:                                               ; preds = %8
  %38 = load ptr, ptr %10, align 8, !tbaa !9
  %39 = load ptr, ptr %12, align 8, !tbaa !9
  %40 = load ptr, ptr %17, align 8, !tbaa !9
  invoke void @_ZN3cfg10CFGInliner27add_callee_throws_to_callerEPNS_16ControlFlowGraphERKSt6vectorIPNS_5BlockESaIS5_EERKS3_IPNS_4EdgeESaISB_EE(ptr noundef %38, ptr noundef nonnull align 8 dereferenceable(24) %39, ptr noundef nonnull align 8 dereferenceable(24) %40)
          to label %41 unwind label %42

41:                                               ; preds = %37
  br label %46

42:                                               ; preds = %37
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %19, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %20, align 4
  br label %126

46:                                               ; preds = %41, %8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %47 = getelementptr inbounds %class.anon, ptr %21, i32 0, i32 0
  store ptr %10, ptr %47, align 8, !tbaa !9
  %48 = load i8, ptr %9, align 1, !tbaa !5, !range !11, !noundef !12
  %49 = trunc i8 %48 to i1
  br i1 %49, label %50, label %77

50:                                               ; preds = %46
  %51 = load ptr, ptr %10, align 8, !tbaa !9
  %52 = load ptr, ptr %11, align 8, !tbaa !9
  invoke void @"_ZN3cfg16ControlFlowGraph19delete_succ_edge_ifIZNS_10CFGInliner12connect_cfgsEbPS0_PNS_5BlockERKSt6vectorIS5_SaIS5_EES5_SA_S5_bE3$_1EEvS5_T_"(ptr noundef nonnull align 8 dereferenceable(160) %51, ptr noundef %52)
          to label %53 unwind label %64

53:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %54 = load ptr, ptr %11, align 8, !tbaa !9
  store ptr %54, ptr %25, align 8, !tbaa !9
  %55 = getelementptr inbounds %"class.std::initializer_list", ptr %24, i32 0, i32 0
  store ptr %25, ptr %55, align 8, !tbaa !13
  %56 = getelementptr inbounds %"class.std::initializer_list", ptr %24, i32 0, i32 1
  store i64 1, ptr %56, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #5
  call void @_ZNSaIPN3cfg5BlockEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #5
  %57 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8
  %59 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 1
  %60 = load i64, ptr %59, align 8
  invoke void @_ZNSt6vectorIPN3cfg5BlockESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr %58, i64 %60, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %61 unwind label %68

61:                                               ; preds = %53
  %62 = load ptr, ptr %13, align 8, !tbaa !9
  invoke void @"_ZZN3cfg10CFGInliner12connect_cfgsEbPNS_16ControlFlowGraphEPNS_5BlockERKSt6vectorIS4_SaIS4_EES4_S9_S4_bENK3$_0clES9_S4_"(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef %62)
          to label %63 unwind label %72

63:                                               ; preds = %61
  call void @_ZNSt6vectorIPN3cfg5BlockESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  call void @_ZNSt15__new_allocatorIPN3cfg5BlockEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #5
  br label %100

64:                                               ; preds = %77, %50
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %19, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %20, align 4
  br label %125

68:                                               ; preds = %53
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %19, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %20, align 4
  br label %76

72:                                               ; preds = %61
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %19, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %20, align 4
  call void @_ZNSt6vectorIPN3cfg5BlockESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  br label %76

76:                                               ; preds = %72, %68
  call void @_ZNSt15__new_allocatorIPN3cfg5BlockEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #5
  br label %125

77:                                               ; preds = %46
  %78 = load ptr, ptr %10, align 8, !tbaa !9
  %79 = load ptr, ptr %15, align 8, !tbaa !9
  invoke void @_ZN3cfg16ControlFlowGraph17delete_succ_edgesEPNS_5BlockE(ptr noundef nonnull align 8 dereferenceable(160) %78, ptr noundef %79)
          to label %80 unwind label %64

80:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %81 = load ptr, ptr %15, align 8, !tbaa !9
  store ptr %81, ptr %29, align 8, !tbaa !9
  %82 = getelementptr inbounds %"class.std::initializer_list", ptr %28, i32 0, i32 0
  store ptr %29, ptr %82, align 8, !tbaa !13
  %83 = getelementptr inbounds %"class.std::initializer_list", ptr %28, i32 0, i32 1
  store i64 1, ptr %83, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #5
  call void @_ZNSaIPN3cfg5BlockEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #5
  %84 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8
  %86 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 1
  %87 = load i64, ptr %86, align 8
  invoke void @_ZNSt6vectorIPN3cfg5BlockESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr %85, i64 %87, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %88 unwind label %91

88:                                               ; preds = %80
  %89 = load ptr, ptr %13, align 8, !tbaa !9
  invoke void @"_ZZN3cfg10CFGInliner12connect_cfgsEbPNS_16ControlFlowGraphEPNS_5BlockERKSt6vectorIS4_SaIS4_EES4_S9_S4_bENK3$_0clES9_S4_"(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef %89)
          to label %90 unwind label %95

90:                                               ; preds = %88
  call void @_ZNSt6vectorIPN3cfg5BlockESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #5
  call void @_ZNSt15__new_allocatorIPN3cfg5BlockEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #5
  br label %100

91:                                               ; preds = %80
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %19, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %20, align 4
  br label %99

95:                                               ; preds = %88
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %19, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %20, align 4
  call void @_ZNSt6vectorIPN3cfg5BlockESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #5
  br label %99

99:                                               ; preds = %95, %91
  call void @_ZNSt15__new_allocatorIPN3cfg5BlockEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #5
  br label %125

100:                                              ; preds = %90, %63
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #5
  %101 = getelementptr inbounds %class.anon.123, ptr %31, i32 0, i32 0
  store ptr %16, ptr %101, align 8, !tbaa !9
  %102 = getelementptr inbounds %class.anon.123, ptr %31, i32 0, i32 1
  store ptr %10, ptr %102, align 8, !tbaa !9
  %103 = load i8, ptr %9, align 1, !tbaa !5, !range !11, !noundef !12
  %104 = trunc i8 %103 to i1
  br i1 %104, label %105, label %115

105:                                              ; preds = %100
  %106 = load ptr, ptr %14, align 8, !tbaa !9
  %107 = load ptr, ptr %15, align 8, !tbaa !9
  %108 = invoke noundef ptr @"_ZZN3cfg10CFGInliner12connect_cfgsEbPNS_16ControlFlowGraphEPNS_5BlockERKSt6vectorIS4_SaIS4_EES4_S9_S4_bENK3$_2clES4_"(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef %107)
          to label %109 unwind label %111

109:                                              ; preds = %105
  invoke void @"_ZZN3cfg10CFGInliner12connect_cfgsEbPNS_16ControlFlowGraphEPNS_5BlockERKSt6vectorIS4_SaIS4_EES4_S9_S4_bENK3$_0clES9_S4_"(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(24) %106, ptr noundef %108)
          to label %110 unwind label %111

110:                                              ; preds = %109
  br label %124

111:                                              ; preds = %122, %118, %115, %109, %105
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %19, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #5
  br label %125

115:                                              ; preds = %100
  %116 = load ptr, ptr %10, align 8, !tbaa !9
  %117 = load ptr, ptr %11, align 8, !tbaa !9
  invoke void @_ZN3cfg16ControlFlowGraph17delete_pred_edgesEPNS_5BlockE(ptr noundef nonnull align 8 dereferenceable(160) %116, ptr noundef %117)
          to label %118 unwind label %111

118:                                              ; preds = %115
  %119 = load ptr, ptr %14, align 8, !tbaa !9
  %120 = load ptr, ptr %11, align 8, !tbaa !9
  %121 = invoke noundef ptr @"_ZZN3cfg10CFGInliner12connect_cfgsEbPNS_16ControlFlowGraphEPNS_5BlockERKSt6vectorIS4_SaIS4_EES4_S9_S4_bENK3$_2clES4_"(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef %120)
          to label %122 unwind label %111

122:                                              ; preds = %118
  invoke void @"_ZZN3cfg10CFGInliner12connect_cfgsEbPNS_16ControlFlowGraphEPNS_5BlockERKSt6vectorIS4_SaIS4_EES4_S9_S4_bENK3$_0clES9_S4_"(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(24) %119, ptr noundef %121)
          to label %123 unwind label %111

123:                                              ; preds = %122
  br label %124

124:                                              ; preds = %123, %110
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @_ZNSt6vectorIPN3cfg4EdgeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  ret void

125:                                              ; preds = %111, %99, %76, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %126

126:                                              ; preds = %125, %42
  call void @_ZNSt6vectorIPN3cfg4EdgeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %127

127:                                              ; preds = %126
  %128 = load ptr, ptr %19, align 8
  %129 = load i32, ptr %20, align 4
  %130 = insertvalue { ptr, i32 } poison, ptr %128, 0
  %131 = insertvalue { ptr, i32 } %130, i32 %129, 1
  resume { ptr, i32 } %131
}

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

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

declare void @_ZNK3cfg5Block28get_outgoing_throws_in_orderEv(ptr dead_on_unwind writable sret(%"class.std::vector.34") align 8, ptr noundef nonnull align 8 dereferenceable(104)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIPN3cfg4EdgeESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN3cfg16ControlFlowGraph19delete_succ_edge_ifIZNS_10CFGInliner12connect_cfgsEbPS0_PNS_5BlockERKSt6vectorIS5_SaIS5_EES5_SA_S5_bE3$_1EEvS5_T_"(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN3cfg10CFGInliner12connect_cfgsEbPNS_16ControlFlowGraphEPNS_5BlockERKSt6vectorIS4_SaIS4_EES4_S9_S4_bENK3$_0clES9_S4_"(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIPN3cfg5BlockESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

declare void @_ZN3cfg16ControlFlowGraph17delete_succ_edgesEPNS_5BlockE(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef ptr @"_ZZN3cfg10CFGInliner12connect_cfgsEbPNS_16ControlFlowGraphEPNS_5BlockERKSt6vectorIS4_SaIS4_EES4_S9_S4_bENK3$_2clES4_"(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #4 align 2

declare void @_ZN3cfg16ControlFlowGraph17delete_pred_edgesEPNS_5BlockE(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIPN3cfg5BlockEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { 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 = { "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 = { 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 #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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSSt16initializer_listIPN3cfg5BlockEE", !10, i64 0, !15, i64 8}
!15 = !{!"long", !7, i64 0}
!16 = !{!14, !15, i64 8}


; 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::vector.34" = type { %"struct.std::_Vector_base.35" }
%"struct.std::_Vector_base.35" = type { %"struct.std::_Vector_base<cfg::Edge *, std::allocator<cfg::Edge *>>::_Vector_impl" }
%"struct.std::_Vector_base<cfg::Edge *, std::allocator<cfg::Edge *>>::_Vector_impl" = type { %"struct.std::_Vector_base<cfg::Edge *, std::allocator<cfg::Edge *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cfg::Edge *, std::allocator<cfg::Edge *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon = type { ptr }
%"class.std::vector.39" = type { %"struct.std::_Vector_base.40" }
%"struct.std::_Vector_base.40" = type { %"struct.std::_Vector_base<cfg::Block *, std::allocator<cfg::Block *>>::_Vector_impl" }
%"struct.std::_Vector_base<cfg::Block *, std::allocator<cfg::Block *>>::_Vector_impl" = type { %"struct.std::_Vector_base<cfg::Block *, std::allocator<cfg::Block *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cfg::Block *, std::allocator<cfg::Block *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.41" = type { i8 }
%class.anon.123 = type { ptr, ptr }

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 uwtable
define dso_local void @_ZN3cfg10CFGInliner12connect_cfgsEbPNS_16ControlFlowGraphEPNS_5BlockERKSt6vectorIS4_SaIS4_EES4_S9_S4_b(i1 noundef zeroext %0, ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef %6, i1 noundef zeroext %7) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca %"class.std::vector.34", align 8
  %12 = alloca %class.anon, align 8
  %13 = alloca %"class.std::vector.39", align 8
  %14 = alloca [1 x ptr], align 8
  %15 = alloca %"class.std::allocator.41", align 1
  %16 = alloca %"class.std::vector.39", align 8
  %17 = alloca [1 x ptr], align 8
  %18 = alloca %"class.std::allocator.41", align 1
  %19 = alloca %class.anon.123, align 8
  store ptr %1, ptr %9, align 8, !tbaa !5
  %20 = zext i1 %7 to i8
  store i8 %20, ptr %10, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  call void @_ZNK3cfg5Block28get_outgoing_throws_in_orderEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.34") align 8 %11, ptr noundef nonnull align 8 dereferenceable(104) %2)
  %21 = call noundef zeroext i1 @_ZNKSt6vectorIPN3cfg4EdgeESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  br i1 %21, label %25, label %22

22:                                               ; preds = %8
  invoke void @_ZN3cfg10CFGInliner27add_callee_throws_to_callerEPNS_16ControlFlowGraphERKSt6vectorIPNS_5BlockESaIS5_EERKS3_IPNS_4EdgeESaISB_EE(ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %25 unwind label %23

23:                                               ; preds = %22
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %57

25:                                               ; preds = %22, %8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  store ptr %9, ptr %12, align 8, !tbaa !5
  br i1 %0, label %26, label %36

26:                                               ; preds = %25
  invoke void @"_ZN3cfg16ControlFlowGraph19delete_succ_edge_ifIZNS_10CFGInliner12connect_cfgsEbPS0_PNS_5BlockERKSt6vectorIS5_SaIS5_EES5_SA_S5_bE3$_1EEvS5_T_"(ptr noundef nonnull align 8 dereferenceable(160) %1, ptr noundef nonnull %2)
          to label %27 unwind label %29

27:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  store ptr %2, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #5
  call void @_ZNSaIPN3cfg5BlockEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  invoke void @_ZNSt6vectorIPN3cfg5BlockESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr nonnull %14, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %28 unwind label %31

28:                                               ; preds = %27
  invoke void @"_ZZN3cfg10CFGInliner12connect_cfgsEbPNS_16ControlFlowGraphEPNS_5BlockERKSt6vectorIS4_SaIS4_EES4_S9_S4_bENK3$_0clES9_S4_"(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef %4)
          to label %44 unwind label %33

29:                                               ; preds = %36, %26
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %56

31:                                               ; preds = %27
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %35

33:                                               ; preds = %28
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIPN3cfg5BlockESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  br label %35

35:                                               ; preds = %33, %31
  %.pn25 = phi { ptr, i32 } [ %34, %33 ], [ %32, %31 ]
  call void @_ZNSt15__new_allocatorIPN3cfg5BlockEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  br label %56

36:                                               ; preds = %25
  invoke void @_ZN3cfg16ControlFlowGraph17delete_succ_edgesEPNS_5BlockE(ptr noundef nonnull align 8 dereferenceable(160) %1, ptr noundef %6)
          to label %37 unwind label %29

37:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #5
  store ptr %6, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #5
  call void @_ZNSaIPN3cfg5BlockEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  invoke void @_ZNSt6vectorIPN3cfg5BlockESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr nonnull %17, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %38 unwind label %39

38:                                               ; preds = %37
  invoke void @"_ZZN3cfg10CFGInliner12connect_cfgsEbPNS_16ControlFlowGraphEPNS_5BlockERKSt6vectorIS4_SaIS4_EES4_S9_S4_bENK3$_0clES9_S4_"(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef %4)
          to label %49 unwind label %41

39:                                               ; preds = %37
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %43

41:                                               ; preds = %38
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIPN3cfg5BlockESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  br label %43

43:                                               ; preds = %41, %39
  %.pn = phi { ptr, i32 } [ %42, %41 ], [ %40, %39 ]
  call void @_ZNSt15__new_allocatorIPN3cfg5BlockEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #5
  br label %56

44:                                               ; preds = %28
  call void @_ZNSt6vectorIPN3cfg5BlockESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  call void @_ZNSt15__new_allocatorIPN3cfg5BlockEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #5
  store ptr %10, ptr %19, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %19, i64 8
  store ptr %9, ptr %45, align 8, !tbaa !5
  %46 = invoke noundef ptr @"_ZZN3cfg10CFGInliner12connect_cfgsEbPNS_16ControlFlowGraphEPNS_5BlockERKSt6vectorIS4_SaIS4_EES4_S9_S4_bENK3$_2clES4_"(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef %6)
          to label %.invoke unwind label %47

47:                                               ; preds = %.invoke, %52, %49, %44
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #5
  br label %56

49:                                               ; preds = %38
  call void @_ZNSt6vectorIPN3cfg5BlockESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  call void @_ZNSt15__new_allocatorIPN3cfg5BlockEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #5
  store ptr %10, ptr %19, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %19, i64 8
  store ptr %9, ptr %50, align 8, !tbaa !5
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN3cfg16ControlFlowGraph17delete_pred_edgesEPNS_5BlockE(ptr noundef nonnull align 8 dereferenceable(160) %51, ptr noundef nonnull %2)
          to label %52 unwind label %47

52:                                               ; preds = %49
  %53 = invoke noundef ptr @"_ZZN3cfg10CFGInliner12connect_cfgsEbPNS_16ControlFlowGraphEPNS_5BlockERKSt6vectorIS4_SaIS4_EES4_S9_S4_bENK3$_2clES4_"(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull %2)
          to label %.invoke unwind label %47

.invoke:                                          ; preds = %44, %52
  %54 = phi ptr [ %53, %52 ], [ %46, %44 ]
  invoke void @"_ZZN3cfg10CFGInliner12connect_cfgsEbPNS_16ControlFlowGraphEPNS_5BlockERKSt6vectorIS4_SaIS4_EES4_S9_S4_bENK3$_0clES9_S4_"(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef %54)
          to label %55 unwind label %47

55:                                               ; preds = %.invoke
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @_ZNSt6vectorIPN3cfg4EdgeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  ret void

56:                                               ; preds = %47, %43, %35, %29
  %.pn27 = phi { ptr, i32 } [ %48, %47 ], [ %.pn25, %35 ], [ %30, %29 ], [ %.pn, %43 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %57

57:                                               ; preds = %56, %23
  %.pn27.pn = phi { ptr, i32 } [ %.pn27, %56 ], [ %24, %23 ]
  call void @_ZNSt6vectorIPN3cfg4EdgeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  resume { ptr, i32 } %.pn27.pn
}

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

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

declare void @_ZNK3cfg5Block28get_outgoing_throws_in_orderEv(ptr dead_on_unwind writable sret(%"class.std::vector.34") align 8, ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIPN3cfg4EdgeESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN3cfg16ControlFlowGraph19delete_succ_edge_ifIZNS_10CFGInliner12connect_cfgsEbPS0_PNS_5BlockERKSt6vectorIS5_SaIS5_EES5_SA_S5_bE3$_1EEvS5_T_"(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN3cfg10CFGInliner12connect_cfgsEbPNS_16ControlFlowGraphEPNS_5BlockERKSt6vectorIS4_SaIS4_EES4_S9_S4_bENK3$_0clES9_S4_"(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIPN3cfg5BlockESaIS2_EEC2ESt16initializer_listIS2_ERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

declare void @_ZN3cfg16ControlFlowGraph17delete_succ_edgesEPNS_5BlockE(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef ptr @"_ZZN3cfg10CFGInliner12connect_cfgsEbPNS_16ControlFlowGraphEPNS_5BlockERKSt6vectorIS4_SaIS4_EES4_S9_S4_bENK3$_2clES4_"(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #4 align 2

declare void @_ZN3cfg16ControlFlowGraph17delete_pred_edgesEPNS_5BlockE(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIPN3cfg5BlockEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { 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 = { "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 = { 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 #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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}


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