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

; 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.223" = type { %"struct.std::_Vector_base.224" }
%"struct.std::_Vector_base.224" = 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::vector.579" = type { %"struct.std::_Vector_base.580" }
%"struct.std::_Vector_base.580" = type { %"struct.std::_Vector_base<std::unique_ptr<std::vector<cfg::Block *>>, std::allocator<std::unique_ptr<std::vector<cfg::Block *>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<std::vector<cfg::Block *>>, std::allocator<std::unique_ptr<std::vector<cfg::Block *>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<std::vector<cfg::Block *>>, std::allocator<std::unique_ptr<std::vector<cfg::Block *>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<std::vector<cfg::Block *>>, std::allocator<std::unique_ptr<std::vector<cfg::Block *>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.UnorderedMap.584 = type { %"class.std::unordered_map.586" }
%"class.std::unordered_map.586" = type { %"class.std::_Hashtable.587" }
%"class.std::_Hashtable.587" = 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.sparta::WeakTopologicalOrdering" = type { %"class.std::vector.600" }
%"class.std::vector.600" = type { %"struct.std::_Vector_base.601" }
%"struct.std::_Vector_base.601" = type { %"struct.std::_Vector_base<sparta::WtoComponent<std::vector<cfg::Block *> *>, std::allocator<sparta::WtoComponent<std::vector<cfg::Block *> *>>>::_Vector_impl" }
%"struct.std::_Vector_base<sparta::WtoComponent<std::vector<cfg::Block *> *>, std::allocator<sparta::WtoComponent<std::vector<cfg::Block *> *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<sparta::WtoComponent<std::vector<cfg::Block *> *>, std::allocator<sparta::WtoComponent<std::vector<cfg::Block *> *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sparta::WtoComponent<std::vector<cfg::Block *> *>, std::allocator<sparta::WtoComponent<std::vector<cfg::Block *> *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.cfg::ControlFlowGraph" = type { %"class.std::map", %class.UnorderedSet, ptr, ptr, ptr, i32, i8, i8, i8, %"class.std::vector" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, cfg::Block *>, std::_Select1st<std::pair<const unsigned long, cfg::Block *>>, std::less<unsigned long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, cfg::Block *>, std::_Select1st<std::pair<const unsigned long, cfg::Block *>>, std::less<unsigned long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%class.UnorderedSet = type { %"class.std::unordered_set" }
%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<IRInstruction *, std::allocator<IRInstruction *>>::_Vector_impl" }
%"struct.std::_Vector_base<IRInstruction *, std::allocator<IRInstruction *>>::_Vector_impl" = type { %"struct.std::_Vector_base<IRInstruction *, std::allocator<IRInstruction *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<IRInstruction *, std::allocator<IRInstruction *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.8 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [33 x i8], align 1
@__PRETTY_FUNCTION__._ZN3cfg16ControlFlowGraph5orderERKSt10unique_ptrINS_21LinearizationStrategyESt14default_deleteIS2_EEb = external hidden unnamed_addr constant [104 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [57 x i8], align 1

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: noreturn
declare void @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3cfg16ControlFlowGraph8simplifyEv(ptr noundef nonnull align 8 dereferenceable(160)) #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3cfg16ControlFlowGraph5orderERKSt10unique_ptrINS_21LinearizationStrategyESt14default_deleteIS2_EEb(ptr dead_on_unwind noalias writable sret(%"class.std::vector.223") align 8 %0, ptr noundef nonnull align 8 dereferenceable(160) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, i1 noundef zeroext %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca %"class.std::vector.579", align 8
  %10 = alloca %class.UnorderedMap.584, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.sparta::WeakTopologicalOrdering", align 8
  %14 = alloca i1, align 1
  %15 = alloca %"class.sparta::WeakTopologicalOrdering", align 8
  %16 = alloca i1, align 1
  %17 = alloca %"class.sparta::WeakTopologicalOrdering", align 8
  %18 = alloca i1, align 1
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %19 = zext i1 %3 to i8
  store i8 %19, ptr %8, align 1, !tbaa !9
  %20 = load ptr, ptr %6, align 8
  %21 = load i8, ptr %8, align 1, !tbaa !9, !range !11, !noundef !12
  %22 = trunc i8 %21 to i1
  br i1 %22, label %25, label %23

23:                                               ; preds = %4
  %24 = call noundef i32 @_ZN3cfg16ControlFlowGraph8simplifyEv(ptr noundef nonnull align 8 dereferenceable(160) %20)
  br label %25

25:                                               ; preds = %23, %4
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #5
  call void @_ZNSt6vectorISt10unique_ptrIS_IPN3cfg5BlockESaIS3_EESt14default_deleteIS5_EESaIS8_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  call void @llvm.lifetime.start.p0(i64 56, ptr %10) #5
  invoke void @_ZN12UnorderedMapIPN3cfg5BlockEPSt6vectorIS2_SaIS2_EESt4hashIS2_ESt8equal_toIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %10)
          to label %26 unwind label %60

26:                                               ; preds = %25
  %27 = getelementptr inbounds %"class.cfg::ControlFlowGraph", ptr %20, i32 0, i32 0
  %28 = call noundef i64 @_ZNKSt3mapImPN3cfg5BlockESt4lessImESaISt4pairIKmS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %27) #5
  invoke void @_ZN12UnorderedMapIPN3cfg5BlockEPSt6vectorIS2_SaIS2_EESt4hashIS2_ESt8equal_toIS2_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(56) %10, i64 noundef %28)
          to label %29 unwind label %64

29:                                               ; preds = %26
  invoke void @_ZN3cfg16ControlFlowGraph12build_chainsEPSt6vectorISt10unique_ptrIS1_IPNS_5BlockESaIS4_EESt14default_deleteIS6_EESaIS9_EEP12UnorderedMapIS4_PS6_St4hashIS4_ESt8equal_toIS4_EE(ptr noundef nonnull align 8 dereferenceable(160) %20, ptr noundef %9, ptr noundef %10)
          to label %30 unwind label %64

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #5
  invoke void @_ZN3cfg16ControlFlowGraph9build_wtoERK12UnorderedMapIPNS_5BlockEPSt6vectorIS3_SaIS3_EESt4hashIS3_ESt8equal_toIS3_EE(ptr dead_on_unwind writable sret(%"class.sparta::WeakTopologicalOrdering") align 8 %13, ptr noundef nonnull align 8 dereferenceable(160) %20, ptr noundef nonnull align 8 dereferenceable(56) %10)
          to label %31 unwind label %68

31:                                               ; preds = %30
  store i1 false, ptr %14, align 1
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN3cfg21LinearizationStrategyESt14default_deleteIS1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #5
  store i1 false, ptr %16, align 1
  store i1 false, ptr %18, align 1
  br i1 %33, label %34, label %41

34:                                               ; preds = %31
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = call noundef ptr @_ZNKSt10unique_ptrIN3cfg21LinearizationStrategyESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #5
  call void @_ZN6sparta23WeakTopologicalOrderingIPSt6vectorIPN3cfg5BlockESaIS4_EESt4hashIS7_EEC2EOSA_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  store i1 true, ptr %16, align 1
  %37 = load ptr, ptr %36, align 8, !tbaa !13
  %38 = getelementptr inbounds ptr, ptr %37, i64 2
  %39 = load ptr, ptr %38, align 8
  invoke void %39(ptr dead_on_unwind writable sret(%"class.std::vector.223") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(160) %20, ptr noundef %15)
          to label %40 unwind label %72

40:                                               ; preds = %34
  br label %43

41:                                               ; preds = %31
  call void @_ZN6sparta23WeakTopologicalOrderingIPSt6vectorIPN3cfg5BlockESaIS4_EESt4hashIS7_EEC2EOSA_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  store i1 true, ptr %18, align 1
  invoke void @_ZN3cfg16ControlFlowGraph10wto_chainsEN6sparta23WeakTopologicalOrderingIPSt6vectorIPNS_5BlockESaIS5_EESt4hashIS8_EEE(ptr dead_on_unwind writable sret(%"class.std::vector.223") align 8 %0, ptr noundef nonnull align 8 dereferenceable(160) %20, ptr noundef %17)
          to label %42 unwind label %76

42:                                               ; preds = %41
  br label %43

43:                                               ; preds = %42, %40
  %44 = load i1, ptr %18, align 1
  br i1 %44, label %45, label %46

45:                                               ; preds = %43
  call void @_ZN6sparta23WeakTopologicalOrderingIPSt6vectorIPN3cfg5BlockESaIS4_EESt4hashIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  br label %46

46:                                               ; preds = %45, %43
  %47 = load i1, ptr %16, align 1
  br i1 %47, label %48, label %49

48:                                               ; preds = %46
  call void @_ZN6sparta23WeakTopologicalOrderingIPSt6vectorIPN3cfg5BlockESaIS4_EESt4hashIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  br label %49

49:                                               ; preds = %48, %46
  %50 = call noundef i64 @_ZNKSt6vectorIPN3cfg5BlockESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %51 = getelementptr inbounds %"class.cfg::ControlFlowGraph", ptr %20, i32 0, i32 0
  %52 = call noundef i64 @_ZNKSt3mapImPN3cfg5BlockESt4lessImESaISt4pairIKmS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %51) #5
  %53 = icmp eq i64 %50, %52
  br i1 %53, label %54, label %55

54:                                               ; preds = %49
  br label %92

55:                                               ; preds = %49
  %56 = call noundef i64 @_ZNKSt6vectorIPN3cfg5BlockESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %57 = getelementptr inbounds %"class.cfg::ControlFlowGraph", ptr %20, i32 0, i32 0
  %58 = call noundef i64 @_ZNKSt3mapImPN3cfg5BlockESt4lessImESaISt4pairIKmS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %57) #5
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.79, ptr noundef @.str.8, i32 noundef 1873, ptr noundef @__PRETTY_FUNCTION__._ZN3cfg16ControlFlowGraph5orderERKSt10unique_ptrINS_21LinearizationStrategyESt14default_deleteIS2_EEb, i32 noundef 2, ptr noundef @.str.80, i64 noundef %56, i64 noundef %58) #6
          to label %59 unwind label %87

59:                                               ; preds = %55
  unreachable

60:                                               ; preds = %25
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %11, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %12, align 4
  br label %110

64:                                               ; preds = %29, %26
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %11, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %12, align 4
  br label %109

68:                                               ; preds = %30
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %11, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %12, align 4
  br label %108

72:                                               ; preds = %34
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %11, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %12, align 4
  br label %83

76:                                               ; preds = %41
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %11, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %12, align 4
  %80 = load i1, ptr %18, align 1
  br i1 %80, label %81, label %82

81:                                               ; preds = %76
  call void @_ZN6sparta23WeakTopologicalOrderingIPSt6vectorIPN3cfg5BlockESaIS4_EESt4hashIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  br label %82

82:                                               ; preds = %81, %76
  br label %83

83:                                               ; preds = %82, %72
  %84 = load i1, ptr %16, align 1
  br i1 %84, label %85, label %86

85:                                               ; preds = %83
  call void @_ZN6sparta23WeakTopologicalOrderingIPSt6vectorIPN3cfg5BlockESaIS4_EESt4hashIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  br label %86

86:                                               ; preds = %85, %83
  br label %107

87:                                               ; preds = %100, %92, %55
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %11, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %12, align 4
  call void @_ZNSt6vectorIPN3cfg5BlockESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %107

91:                                               ; No predecessors!
  br label %92

92:                                               ; preds = %91, %54
  %93 = getelementptr inbounds %"class.cfg::ControlFlowGraph", ptr %20, i32 0, i32 3
  %94 = load ptr, ptr %93, align 8, !tbaa !15
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPN3cfg5BlockESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0)
          to label %96 unwind label %87

96:                                               ; preds = %92
  %97 = load ptr, ptr %95, align 8, !tbaa !5
  %98 = icmp eq ptr %94, %97
  br i1 %98, label %99, label %100

99:                                               ; preds = %96
  br label %103

100:                                              ; preds = %96
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.81, ptr noundef @.str.8, i32 noundef 1876, ptr noundef @__PRETTY_FUNCTION__._ZN3cfg16ControlFlowGraph5orderERKSt10unique_ptrINS_21LinearizationStrategyESt14default_deleteIS2_EEb, i32 noundef 2, ptr noundef @.str.9) #6
          to label %101 unwind label %87

101:                                              ; preds = %100
  unreachable

102:                                              ; No predecessors!
  br label %103

103:                                              ; preds = %102, %99
  store i1 true, ptr %14, align 1
  %104 = load i1, ptr %14, align 1
  br i1 %104, label %106, label %105

105:                                              ; preds = %103
  call void @_ZNSt6vectorIPN3cfg5BlockESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %106

106:                                              ; preds = %105, %103
  call void @_ZN6sparta23WeakTopologicalOrderingIPSt6vectorIPN3cfg5BlockESaIS4_EESt4hashIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  call void @_ZN12UnorderedMapIPN3cfg5BlockEPSt6vectorIS2_SaIS2_EESt4hashIS2_ESt8equal_toIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %10) #5
  call void @_ZNSt6vectorISt10unique_ptrIS_IPN3cfg5BlockESaIS3_EESt14default_deleteIS5_EESaIS8_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #5
  ret void

107:                                              ; preds = %87, %86
  call void @_ZN6sparta23WeakTopologicalOrderingIPSt6vectorIPN3cfg5BlockESaIS4_EESt4hashIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  br label %108

108:                                              ; preds = %107, %68
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  br label %109

109:                                              ; preds = %108, %64
  call void @_ZN12UnorderedMapIPN3cfg5BlockEPSt6vectorIS2_SaIS2_EESt4hashIS2_ESt8equal_toIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #5
  br label %110

110:                                              ; preds = %109, %60
  call void @llvm.lifetime.end.p0(i64 56, ptr %10) #5
  call void @_ZNSt6vectorISt10unique_ptrIS_IPN3cfg5BlockESaIS3_EESt14default_deleteIS5_EESaIS8_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #5
  br label %111

111:                                              ; preds = %110
  %112 = load ptr, ptr %11, align 8
  %113 = load i32, ptr %12, align 4
  %114 = insertvalue { ptr, i32 } poison, ptr %112, 0
  %115 = insertvalue { ptr, i32 } %114, i32 %113, 1
  resume { ptr, i32 } %115
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12UnorderedMapIPN3cfg5BlockEPSt6vectorIS2_SaIS2_EESt4hashIS2_ESt8equal_toIS2_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt3mapImPN3cfg5BlockESt4lessImESaISt4pairIKmS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3cfg16ControlFlowGraph9build_wtoERK12UnorderedMapIPNS_5BlockEPSt6vectorIS3_SaIS3_EESt4hashIS3_ESt8equal_toIS3_EE(ptr dead_on_unwind noalias writable sret(%"class.sparta::WeakTopologicalOrdering") align 8, ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(56)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt10unique_ptrIN3cfg21LinearizationStrategyESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3cfg16ControlFlowGraph10wto_chainsEN6sparta23WeakTopologicalOrderingIPSt6vectorIPNS_5BlockESaIS5_EESt4hashIS8_EEE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.223") align 8, ptr noundef nonnull align 8 dereferenceable(160), ptr noundef) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIPN3cfg5BlockESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn "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 = { 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 = { 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 }
attributes #6 = { noreturn }

!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}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !6, i64 112}
!16 = !{!"_ZTSN3cfg16ControlFlowGraphE", !17, i64 0, !26, i64 48, !6, i64 104, !6, i64 112, !6, i64 120, !32, i64 128, !10, i64 132, !10, i64 133, !10, i64 134, !33, i64 136}
!17 = !{!"_ZTSSt3mapImPN3cfg5BlockESt4lessImESaISt4pairIKmS2_EEE", !18, i64 0}
!18 = !{!"_ZTSSt8_Rb_treeImSt4pairIKmPN3cfg5BlockEESt10_Select1stIS5_ESt4lessImESaIS5_EE", !19, i64 0}
!19 = !{!"_ZTSNSt8_Rb_treeImSt4pairIKmPN3cfg5BlockEESt10_Select1stIS5_ESt4lessImESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !20, i64 0, !22, i64 8}
!20 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessImEE", !21, i64 0}
!21 = !{!"_ZTSSt4lessImE"}
!22 = !{!"_ZTSSt15_Rb_tree_header", !23, i64 0, !25, i64 32}
!23 = !{!"_ZTSSt18_Rb_tree_node_base", !24, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!24 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!25 = !{!"long", !7, i64 0}
!26 = !{!"_ZTS12UnorderedSetIPN3cfg4EdgeESt4hashIS2_ESt8equal_toIS2_EE", !27, i64 0}
!27 = !{!"_ZTSSt13unordered_setIPN3cfg4EdgeESt4hashIS2_ESt8equal_toIS2_ESaIS2_EE", !28, i64 0}
!28 = !{!"_ZTSSt10_HashtableIPN3cfg4EdgeES2_SaIS2_ENSt8__detail9_IdentityESt8equal_toIS2_ESt4hashIS2_ENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb1ELb1EEEE", !6, i64 0, !25, i64 8, !29, i64 16, !25, i64 24, !30, i64 32, !6, i64 48}
!29 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!30 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !31, i64 0, !25, i64 8}
!31 = !{!"float", !7, i64 0}
!32 = !{!"int", !7, i64 0}
!33 = !{!"_ZTSSt6vectorIP13IRInstructionSaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseIP13IRInstructionSaIS1_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIP13IRInstructionSaIS1_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIP13IRInstructionSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}


; 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.223" = type { %"struct.std::_Vector_base.224" }
%"struct.std::_Vector_base.224" = 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::vector.579" = type { %"struct.std::_Vector_base.580" }
%"struct.std::_Vector_base.580" = type { %"struct.std::_Vector_base<std::unique_ptr<std::vector<cfg::Block *>>, std::allocator<std::unique_ptr<std::vector<cfg::Block *>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<std::vector<cfg::Block *>>, std::allocator<std::unique_ptr<std::vector<cfg::Block *>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<std::vector<cfg::Block *>>, std::allocator<std::unique_ptr<std::vector<cfg::Block *>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<std::vector<cfg::Block *>>, std::allocator<std::unique_ptr<std::vector<cfg::Block *>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.UnorderedMap.584 = type { %"class.std::unordered_map.586" }
%"class.std::unordered_map.586" = type { %"class.std::_Hashtable.587" }
%"class.std::_Hashtable.587" = 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.sparta::WeakTopologicalOrdering" = type { %"class.std::vector.600" }
%"class.std::vector.600" = type { %"struct.std::_Vector_base.601" }
%"struct.std::_Vector_base.601" = type { %"struct.std::_Vector_base<sparta::WtoComponent<std::vector<cfg::Block *> *>, std::allocator<sparta::WtoComponent<std::vector<cfg::Block *> *>>>::_Vector_impl" }
%"struct.std::_Vector_base<sparta::WtoComponent<std::vector<cfg::Block *> *>, std::allocator<sparta::WtoComponent<std::vector<cfg::Block *> *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<sparta::WtoComponent<std::vector<cfg::Block *> *>, std::allocator<sparta::WtoComponent<std::vector<cfg::Block *> *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sparta::WtoComponent<std::vector<cfg::Block *> *>, std::allocator<sparta::WtoComponent<std::vector<cfg::Block *> *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.8 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [33 x i8], align 1
@__PRETTY_FUNCTION__._ZN3cfg16ControlFlowGraph5orderERKSt10unique_ptrINS_21LinearizationStrategyESt14default_deleteIS2_EEb = external hidden unnamed_addr constant [104 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [57 x i8], align 1

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: noreturn
declare void @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3cfg16ControlFlowGraph5orderERKSt10unique_ptrINS_21LinearizationStrategyESt14default_deleteIS2_EEb(ptr dead_on_unwind noalias writable sret(%"class.std::vector.223") align 8 %0, ptr noundef nonnull align 8 dereferenceable(160) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, i1 noundef zeroext %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::vector.579", align 8
  %6 = alloca %class.UnorderedMap.584, align 8
  %7 = alloca %"class.sparta::WeakTopologicalOrdering", align 8
  %8 = alloca %"class.sparta::WeakTopologicalOrdering", align 8
  %9 = alloca %"class.sparta::WeakTopologicalOrdering", align 8
  br i1 %3, label %12, label %10

10:                                               ; preds = %4
  %11 = tail call noundef i32 @_ZN3cfg16ControlFlowGraph8simplifyEv(ptr noundef nonnull align 8 dereferenceable(160) %1)
  br label %12

12:                                               ; preds = %10, %4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  call void @_ZNSt6vectorISt10unique_ptrIS_IPN3cfg5BlockESaIS3_EESt14default_deleteIS5_EESaIS8_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %6) #5
  call void @_ZN12UnorderedMapIPN3cfg5BlockEPSt6vectorIS2_SaIS2_EESt4hashIS2_ESt8equal_toIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6)
  %13 = call noundef i64 @_ZNKSt3mapImPN3cfg5BlockESt4lessImESaISt4pairIKmS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #5
  invoke void @_ZN12UnorderedMapIPN3cfg5BlockEPSt6vectorIS2_SaIS2_EESt4hashIS2_ESt8equal_toIS2_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(56) %6, i64 noundef %13)
          to label %14 unwind label %31

14:                                               ; preds = %12
  invoke void @_ZN3cfg16ControlFlowGraph12build_chainsEPSt6vectorISt10unique_ptrIS1_IPNS_5BlockESaIS4_EESt14default_deleteIS6_EESaIS9_EEP12UnorderedMapIS4_PS6_St4hashIS4_ESt8equal_toIS4_EE(ptr noundef nonnull align 8 dereferenceable(160) %1, ptr noundef nonnull %5, ptr noundef nonnull %6)
          to label %15 unwind label %31

15:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  invoke void @_ZN3cfg16ControlFlowGraph9build_wtoERK12UnorderedMapIPNS_5BlockEPSt6vectorIS3_SaIS3_EESt4hashIS3_ESt8equal_toIS3_EE(ptr dead_on_unwind nonnull writable sret(%"class.sparta::WeakTopologicalOrdering") align 8 %7, ptr noundef nonnull align 8 dereferenceable(160) %1, ptr noundef nonnull align 8 dereferenceable(56) %6)
          to label %16 unwind label %33

16:                                               ; preds = %15
  %17 = call noundef zeroext i1 @_ZNKSt10unique_ptrIN3cfg21LinearizationStrategyESt14default_deleteIS1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  br i1 %17, label %18, label %23

18:                                               ; preds = %16
  %19 = call noundef ptr @_ZNKSt10unique_ptrIN3cfg21LinearizationStrategyESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  call void @_ZN6sparta23WeakTopologicalOrderingIPSt6vectorIPN3cfg5BlockESaIS4_EESt4hashIS7_EEC2EOSA_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %20 = load ptr, ptr %19, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %20, i64 16
  %22 = load ptr, ptr %21, align 8
  invoke void %22(ptr dead_on_unwind writable sret(%"class.std::vector.223") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(160) %1, ptr noundef nonnull %8)
          to label %.critedge unwind label %37

23:                                               ; preds = %16
  call void @_ZN6sparta23WeakTopologicalOrderingIPSt6vectorIPN3cfg5BlockESaIS4_EESt4hashIS7_EEC2EOSA_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  invoke void @_ZN3cfg16ControlFlowGraph10wto_chainsEN6sparta23WeakTopologicalOrderingIPSt6vectorIPNS_5BlockESaIS5_EESt4hashIS8_EEE(ptr dead_on_unwind writable sret(%"class.std::vector.223") align 8 %0, ptr noundef nonnull align 8 dereferenceable(160) %1, ptr noundef nonnull %9)
          to label %.critedge unwind label %35

.critedge:                                        ; preds = %18, %23
  %.sink = phi ptr [ %9, %23 ], [ %8, %18 ]
  call void @_ZN6sparta23WeakTopologicalOrderingIPSt6vectorIPN3cfg5BlockESaIS4_EESt4hashIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.sink) #5
  %24 = call noundef i64 @_ZNKSt6vectorIPN3cfg5BlockESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %25 = call noundef i64 @_ZNKSt3mapImPN3cfg5BlockESt4lessImESaISt4pairIKmS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #5
  %26 = icmp eq i64 %24, %25
  br i1 %26, label %41, label %27

27:                                               ; preds = %.critedge
  %28 = call noundef i64 @_ZNKSt6vectorIPN3cfg5BlockESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %29 = call noundef i64 @_ZNKSt3mapImPN3cfg5BlockESt4lessImESaISt4pairIKmS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #5
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.79, ptr noundef nonnull @.str.8, i32 noundef 1873, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3cfg16ControlFlowGraph5orderERKSt10unique_ptrINS_21LinearizationStrategyESt14default_deleteIS2_EEb, i32 noundef 2, ptr noundef nonnull @.str.80, i64 noundef %28, i64 noundef %29) #6
          to label %30 unwind label %39

30:                                               ; preds = %27
  unreachable

31:                                               ; preds = %14, %12
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %53

33:                                               ; preds = %15
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %52

35:                                               ; preds = %23
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6sparta23WeakTopologicalOrderingIPSt6vectorIPN3cfg5BlockESaIS4_EESt4hashIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  br label %51

37:                                               ; preds = %18
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6sparta23WeakTopologicalOrderingIPSt6vectorIPN3cfg5BlockESaIS4_EESt4hashIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  br label %51

39:                                               ; preds = %48, %41, %27
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIPN3cfg5BlockESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %51

41:                                               ; preds = %.critedge
  %42 = getelementptr inbounds i8, ptr %1, i64 112
  %43 = load ptr, ptr %42, align 8, !tbaa !8
  %44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPN3cfg5BlockESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0)
          to label %45 unwind label %39

45:                                               ; preds = %41
  %46 = load ptr, ptr %44, align 8, !tbaa !33
  %47 = icmp eq ptr %43, %46
  br i1 %47, label %50, label %48

48:                                               ; preds = %45
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.81, ptr noundef nonnull @.str.8, i32 noundef 1876, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3cfg16ControlFlowGraph5orderERKSt10unique_ptrINS_21LinearizationStrategyESt14default_deleteIS2_EEb, i32 noundef 2, ptr noundef nonnull @.str.9) #6
          to label %49 unwind label %39

49:                                               ; preds = %48
  unreachable

50:                                               ; preds = %45
  call void @_ZN6sparta23WeakTopologicalOrderingIPSt6vectorIPN3cfg5BlockESaIS4_EESt4hashIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @_ZN12UnorderedMapIPN3cfg5BlockEPSt6vectorIS2_SaIS2_EESt4hashIS2_ESt8equal_toIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %6) #5
  call void @_ZNSt6vectorISt10unique_ptrIS_IPN3cfg5BlockESaIS3_EESt14default_deleteIS5_EESaIS8_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  ret void

51:                                               ; preds = %35, %37, %39
  %.pn18 = phi { ptr, i32 } [ %40, %39 ], [ %38, %37 ], [ %36, %35 ]
  call void @_ZN6sparta23WeakTopologicalOrderingIPSt6vectorIPN3cfg5BlockESaIS4_EESt4hashIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  br label %52

52:                                               ; preds = %51, %33
  %.pn18.pn = phi { ptr, i32 } [ %.pn18, %51 ], [ %34, %33 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  br label %53

53:                                               ; preds = %52, %31
  %.pn18.pn.pn = phi { ptr, i32 } [ %.pn18.pn, %52 ], [ %32, %31 ]
  call void @_ZN12UnorderedMapIPN3cfg5BlockEPSt6vectorIS2_SaIS2_EESt4hashIS2_ESt8equal_toIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %6) #5
  call void @_ZNSt6vectorISt10unique_ptrIS_IPN3cfg5BlockESaIS3_EESt14default_deleteIS5_EESaIS8_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  resume { ptr, i32 } %.pn18.pn.pn
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12UnorderedMapIPN3cfg5BlockEPSt6vectorIS2_SaIS2_EESt4hashIS2_ESt8equal_toIS2_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt3mapImPN3cfg5BlockESt4lessImESaISt4pairIKmS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3cfg16ControlFlowGraph9build_wtoERK12UnorderedMapIPNS_5BlockEPSt6vectorIS3_SaIS3_EESt4hashIS3_ESt8equal_toIS3_EE(ptr dead_on_unwind noalias writable sret(%"class.sparta::WeakTopologicalOrdering") align 8, ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3cfg16ControlFlowGraph10wto_chainsEN6sparta23WeakTopologicalOrderingIPSt6vectorIPNS_5BlockESaIS5_EESt4hashIS8_EEE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.223") align 8, ptr noundef nonnull align 8 dereferenceable(160), ptr noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIPN3cfg5BlockESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn "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 = { 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 = { 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 }
attributes #6 = { noreturn }

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !19, i64 112}
!9 = !{!"_ZTSN3cfg16ControlFlowGraphE", !10, i64 0, !21, i64 48, !19, i64 104, !19, i64 112, !19, i64 120, !27, i64 128, !28, i64 132, !28, i64 133, !28, i64 134, !29, i64 136}
!10 = !{!"_ZTSSt3mapImPN3cfg5BlockESt4lessImESaISt4pairIKmS2_EEE", !11, i64 0}
!11 = !{!"_ZTSSt8_Rb_treeImSt4pairIKmPN3cfg5BlockEESt10_Select1stIS5_ESt4lessImESaIS5_EE", !12, i64 0}
!12 = !{!"_ZTSNSt8_Rb_treeImSt4pairIKmPN3cfg5BlockEESt10_Select1stIS5_ESt4lessImESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !13, i64 0, !15, i64 8}
!13 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessImEE", !14, i64 0}
!14 = !{!"_ZTSSt4lessImE"}
!15 = !{!"_ZTSSt15_Rb_tree_header", !16, i64 0, !20, i64 32}
!16 = !{!"_ZTSSt18_Rb_tree_node_base", !17, i64 0, !19, i64 8, !19, i64 16, !19, i64 24}
!17 = !{!"_ZTSSt14_Rb_tree_color", !18, i64 0}
!18 = !{!"omnipotent char", !7, i64 0}
!19 = !{!"any pointer", !18, i64 0}
!20 = !{!"long", !18, i64 0}
!21 = !{!"_ZTS12UnorderedSetIPN3cfg4EdgeESt4hashIS2_ESt8equal_toIS2_EE", !22, i64 0}
!22 = !{!"_ZTSSt13unordered_setIPN3cfg4EdgeESt4hashIS2_ESt8equal_toIS2_ESaIS2_EE", !23, i64 0}
!23 = !{!"_ZTSSt10_HashtableIPN3cfg4EdgeES2_SaIS2_ENSt8__detail9_IdentityESt8equal_toIS2_ESt4hashIS2_ENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb1ELb1EEEE", !19, i64 0, !20, i64 8, !24, i64 16, !20, i64 24, !25, i64 32, !19, i64 48}
!24 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !19, i64 0}
!25 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !26, i64 0, !20, i64 8}
!26 = !{!"float", !18, i64 0}
!27 = !{!"int", !18, i64 0}
!28 = !{!"bool", !18, i64 0}
!29 = !{!"_ZTSSt6vectorIP13IRInstructionSaIS1_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIP13IRInstructionSaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIP13IRInstructionSaIS1_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIP13IRInstructionSaIS1_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!33 = !{!19, !19, i64 0}


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