; LLVM IR from alibaba/BladeDISC :: tao_compiler/mlir/ral (ral_context)

; 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::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%class.anon = type { i8 }
%"struct.tao::ral::internal::Voidifier" = type { i8 }
%"class.tao::ral::internal::LogMessage" = type { %"class.std::__cxx11::basic_ostringstream.base", ptr, i32, i32, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_ostringstream.base" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%class.anon.69 = type { i8 }
%class.anon.71 = type { i8 }

@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3tao3ral7Context4callERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPPv(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::function", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %class.anon, align 1
  %12 = alloca %"struct.tao::ral::internal::Voidifier", align 1
  %13 = alloca %"class.tao::ral::internal::LogMessage", align 8
  %14 = alloca i1, align 1
  %15 = alloca i1, align 1
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %class.anon.69, align 1
  %20 = alloca %"struct.tao::ral::internal::Voidifier", align 1
  %21 = alloca %"class.tao::ral::internal::LogMessage", align 8
  %22 = alloca i1, align 1
  %23 = alloca i1, align 1
  %24 = alloca %class.anon.71, align 1
  %25 = alloca %"struct.tao::ral::internal::Voidifier", align 1
  %26 = alloca %"class.tao::ral::internal::LogMessage", align 8
  %27 = alloca i1, align 1
  %28 = alloca i1, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %29 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #8
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3tao3ral17TaoRalApiRegistry6GlobalEv()
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3tao3ral17TaoRalApiRegistry4FindERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::function") align 8 %7, ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(32) %31)
  %32 = call noundef zeroext i1 @_ZNKSt8functionIFvPPvEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  br i1 %32, label %111, label %33

33:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #8
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %34, i64 noundef 0, i64 noundef 9)
          to label %35 unwind label %63

35:                                               ; preds = %33
  %36 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef @.str.5)
          to label %37 unwind label %67

37:                                               ; preds = %35
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #8
  br i1 %36, label %38, label %92

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #8
  store i1 false, ptr %14, align 1
  store i1 false, ptr %15, align 1
  %39 = invoke noundef zeroext i1 @"_ZZN3tao3ral7Context4callERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPPvENK3$_0clEiPKc"(ptr noundef nonnull align 1 dereferenceable(1) %11, i32 noundef 0, ptr noundef @.str.6)
          to label %40 unwind label %72

40:                                               ; preds = %38
  %41 = xor i1 %39, true
  %42 = xor i1 %41, true
  %43 = xor i1 %42, true
  %44 = zext i1 %43 to i64
  %45 = call i64 @llvm.expect.i64(i64 %44, i64 1)
  %46 = icmp ne i64 %45, 0
  br i1 %46, label %47, label %48

47:                                               ; preds = %40
  br label %56

48:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 392, ptr %13) #8
  store i1 true, ptr %14, align 1
  invoke void @_ZN3tao3ral8internal10LogMessageC1EPKcii(ptr noundef nonnull align 8 dereferenceable(128) %13, ptr noundef @.str.6, i32 noundef 110, i32 noundef 0)
          to label %49 unwind label %76

49:                                               ; preds = %48
  store i1 true, ptr %15, align 1
  %50 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN3tao3ral8internal10LogMessageEA11_cEOT_S6_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %13, ptr noundef nonnull align 1 dereferenceable(11) @.str.7)
          to label %51 unwind label %80

51:                                               ; preds = %49
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN3tao3ral8internal10LogMessageENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEOT_SB_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %50, ptr noundef nonnull align 8 dereferenceable(32) %52)
          to label %54 unwind label %80

54:                                               ; preds = %51
  invoke void @_ZNK3tao3ral8internal9VoidifieranINS1_10LogMessageEEEvRKT_(ptr noundef nonnull align 1 dereferenceable(1) %12, ptr noundef nonnull align 8 dereferenceable(128) %53)
          to label %55 unwind label %80

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %55, %47
  %57 = load i1, ptr %15, align 1
  br i1 %57, label %58, label %59

58:                                               ; preds = %56
  call void @_ZN3tao3ral8internal10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %13) #8
  br label %59

59:                                               ; preds = %58, %56
  %60 = load i1, ptr %14, align 1
  br i1 %60, label %61, label %62

61:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 392, ptr %13) #8
  br label %62

62:                                               ; preds = %61, %59
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #8
  store i32 1, ptr %16, align 4
  br label %162

63:                                               ; preds = %33
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %9, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %10, align 4
  br label %71

67:                                               ; preds = %35
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %9, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  br label %71

71:                                               ; preds = %67, %63
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #8
  br label %209

72:                                               ; preds = %38
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %9, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %10, align 4
  br label %91

76:                                               ; preds = %48
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %9, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %10, align 4
  br label %87

80:                                               ; preds = %54, %51, %49
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %9, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %10, align 4
  %84 = load i1, ptr %15, align 1
  br i1 %84, label %85, label %86

85:                                               ; preds = %80
  call void @_ZN3tao3ral8internal10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %13) #8
  br label %86

86:                                               ; preds = %85, %80
  br label %87

87:                                               ; preds = %86, %76
  %88 = load i1, ptr %14, align 1
  br i1 %88, label %89, label %90

89:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 392, ptr %13) #8
  br label %90

90:                                               ; preds = %89, %87
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #8
  br label %91

91:                                               ; preds = %90, %72
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #8
  br label %209

92:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #8
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %18, ptr noundef @.str.8, ptr noundef nonnull align 8 dereferenceable(32) %93)
          to label %94 unwind label %97

94:                                               ; preds = %92
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %17, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str.9)
          to label %95 unwind label %101

95:                                               ; preds = %94
  invoke void @_ZN3tao3ral7Context11signalErrorEiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(56) %29, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %96 unwind label %105

96:                                               ; preds = %95
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #8
  store i32 1, ptr %16, align 4
  br label %162

97:                                               ; preds = %92
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %9, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %10, align 4
  br label %110

101:                                              ; preds = %94
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %9, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %10, align 4
  br label %109

105:                                              ; preds = %95
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %9, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #8
  br label %109

109:                                              ; preds = %105, %101
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #8
  br label %110

110:                                              ; preds = %109, %97
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #8
  br label %209

111:                                              ; preds = %3
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #8
  store i1 false, ptr %22, align 1
  store i1 false, ptr %23, align 1
  %112 = invoke noundef zeroext i1 @"_ZZN3tao3ral7Context4callERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPPvENK3$_1clEiPKc"(ptr noundef nonnull align 1 dereferenceable(1) %19, i32 noundef 1, ptr noundef @.str.6)
          to label %113 unwind label %165

113:                                              ; preds = %111
  %114 = xor i1 %112, true
  %115 = xor i1 %114, true
  %116 = xor i1 %115, true
  %117 = zext i1 %116 to i64
  %118 = call i64 @llvm.expect.i64(i64 %117, i64 1)
  %119 = icmp ne i64 %118, 0
  br i1 %119, label %120, label %121

120:                                              ; preds = %113
  br label %129

121:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 392, ptr %21) #8
  store i1 true, ptr %22, align 1
  invoke void @_ZN3tao3ral8internal10LogMessageC1EPKcii(ptr noundef nonnull align 8 dereferenceable(128) %21, ptr noundef @.str.6, i32 noundef 116, i32 noundef 0)
          to label %122 unwind label %169

122:                                              ; preds = %121
  store i1 true, ptr %23, align 1
  %123 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN3tao3ral8internal10LogMessageEA22_cEOT_S6_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %21, ptr noundef nonnull align 1 dereferenceable(22) @.str.10)
          to label %124 unwind label %173

124:                                              ; preds = %122
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN3tao3ral8internal10LogMessageENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEOT_SB_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %123, ptr noundef nonnull align 8 dereferenceable(32) %125)
          to label %127 unwind label %173

127:                                              ; preds = %124
  invoke void @_ZNK3tao3ral8internal9VoidifieranINS1_10LogMessageEEEvRKT_(ptr noundef nonnull align 1 dereferenceable(1) %20, ptr noundef nonnull align 8 dereferenceable(128) %126)
          to label %128 unwind label %173

128:                                              ; preds = %127
  br label %129

129:                                              ; preds = %128, %120
  %130 = load i1, ptr %23, align 1
  br i1 %130, label %131, label %132

131:                                              ; preds = %129
  call void @_ZN3tao3ral8internal10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %21) #8
  br label %132

132:                                              ; preds = %131, %129
  %133 = load i1, ptr %22, align 1
  br i1 %133, label %134, label %135

134:                                              ; preds = %132
  call void @llvm.lifetime.end.p0(i64 392, ptr %21) #8
  br label %135

135:                                              ; preds = %134, %132
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #8
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNKSt8functionIFvPPvEEclES1_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef %136)
          to label %137 unwind label %185

137:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #8
  store i1 false, ptr %27, align 1
  store i1 false, ptr %28, align 1
  %138 = invoke noundef zeroext i1 @"_ZZN3tao3ral7Context4callERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPPvENK3$_2clEiPKc"(ptr noundef nonnull align 1 dereferenceable(1) %24, i32 noundef 1, ptr noundef @.str.6)
          to label %139 unwind label %189

139:                                              ; preds = %137
  %140 = xor i1 %138, true
  %141 = xor i1 %140, true
  %142 = xor i1 %141, true
  %143 = zext i1 %142 to i64
  %144 = call i64 @llvm.expect.i64(i64 %143, i64 1)
  %145 = icmp ne i64 %144, 0
  br i1 %145, label %146, label %147

146:                                              ; preds = %139
  br label %155

147:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 392, ptr %26) #8
  store i1 true, ptr %27, align 1
  invoke void @_ZN3tao3ral8internal10LogMessageC1EPKcii(ptr noundef nonnull align 8 dereferenceable(128) %26, ptr noundef @.str.6, i32 noundef 118, i32 noundef 0)
          to label %148 unwind label %193

148:                                              ; preds = %147
  store i1 true, ptr %28, align 1
  %149 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN3tao3ral8internal10LogMessageEA21_cEOT_S6_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %26, ptr noundef nonnull align 1 dereferenceable(21) @.str.11)
          to label %150 unwind label %197

150:                                              ; preds = %148
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN3tao3ral8internal10LogMessageENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEOT_SB_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %149, ptr noundef nonnull align 8 dereferenceable(32) %151)
          to label %153 unwind label %197

153:                                              ; preds = %150
  invoke void @_ZNK3tao3ral8internal9VoidifieranINS1_10LogMessageEEEvRKT_(ptr noundef nonnull align 1 dereferenceable(1) %25, ptr noundef nonnull align 8 dereferenceable(128) %152)
          to label %154 unwind label %197

154:                                              ; preds = %153
  br label %155

155:                                              ; preds = %154, %146
  %156 = load i1, ptr %28, align 1
  br i1 %156, label %157, label %158

157:                                              ; preds = %155
  call void @_ZN3tao3ral8internal10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %26) #8
  br label %158

158:                                              ; preds = %157, %155
  %159 = load i1, ptr %27, align 1
  br i1 %159, label %160, label %161

160:                                              ; preds = %158
  call void @llvm.lifetime.end.p0(i64 392, ptr %26) #8
  br label %161

161:                                              ; preds = %160, %158
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #8
  store i32 0, ptr %16, align 4
  br label %162

162:                                              ; preds = %161, %96, %62
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  %163 = load i32, ptr %16, align 4
  switch i32 %163, label %215 [
    i32 0, label %164
    i32 1, label %164
  ]

164:                                              ; preds = %162, %162
  ret void

165:                                              ; preds = %111
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %9, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %10, align 4
  br label %184

169:                                              ; preds = %121
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %9, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %10, align 4
  br label %180

173:                                              ; preds = %127, %124, %122
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %9, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %10, align 4
  %177 = load i1, ptr %23, align 1
  br i1 %177, label %178, label %179

178:                                              ; preds = %173
  call void @_ZN3tao3ral8internal10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %21) #8
  br label %179

179:                                              ; preds = %178, %173
  br label %180

180:                                              ; preds = %179, %169
  %181 = load i1, ptr %22, align 1
  br i1 %181, label %182, label %183

182:                                              ; preds = %180
  call void @llvm.lifetime.end.p0(i64 392, ptr %21) #8
  br label %183

183:                                              ; preds = %182, %180
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #8
  br label %184

184:                                              ; preds = %183, %165
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #8
  br label %209

185:                                              ; preds = %135
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %9, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %10, align 4
  br label %209

189:                                              ; preds = %137
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %9, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %10, align 4
  br label %208

193:                                              ; preds = %147
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %9, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %10, align 4
  br label %204

197:                                              ; preds = %153, %150, %148
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %9, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %10, align 4
  %201 = load i1, ptr %28, align 1
  br i1 %201, label %202, label %203

202:                                              ; preds = %197
  call void @_ZN3tao3ral8internal10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %26) #8
  br label %203

203:                                              ; preds = %202, %197
  br label %204

204:                                              ; preds = %203, %193
  %205 = load i1, ptr %27, align 1
  br i1 %205, label %206, label %207

206:                                              ; preds = %204
  call void @llvm.lifetime.end.p0(i64 392, ptr %26) #8
  br label %207

207:                                              ; preds = %206, %204
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #8
  br label %208

208:                                              ; preds = %207, %189
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #8
  br label %209

209:                                              ; preds = %208, %185, %184, %110, %91, %71
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  br label %210

210:                                              ; preds = %209
  %211 = load ptr, ptr %9, align 8
  %212 = load i32, ptr %10, align 4
  %213 = insertvalue { ptr, i32 } poison, ptr %211, 0
  %214 = insertvalue { ptr, i32 } %213, i32 %212, 1
  resume { ptr, i32 } %214

215:                                              ; preds = %162
  unreachable
}

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN3tao3ral17TaoRalApiRegistry6GlobalEv() #3

declare void @_ZN3tao3ral17TaoRalApiRegistry4FindERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::function") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZN3tao3ral7Context4callERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPPvENK3$_0clEiPKc"(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, ptr noundef) #5 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK3tao3ral8internal9VoidifieranINS1_10LogMessageEEEvRKT_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(128)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN3tao3ral8internal10LogMessageENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEOT_SB_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(32)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN3tao3ral8internal10LogMessageEA11_cEOT_S6_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 1 dereferenceable(11)) #5

declare void @_ZN3tao3ral8internal10LogMessageC1EPKcii(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, i32 noundef, i32 noundef) unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN3tao3ral8internal10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #7

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZN3tao3ral7Context4callERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPPvENK3$_1clEiPKc"(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, ptr noundef) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN3tao3ral8internal10LogMessageEA22_cEOT_S6_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 1 dereferenceable(22)) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZN3tao3ral7Context4callERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPPvENK3$_2clEiPKc"(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, ptr noundef) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN3tao3ral8internal10LogMessageEA21_cEOT_S6_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 1 dereferenceable(21)) #5

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

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


; 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::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%class.anon = type { i8 }
%"struct.tao::ral::internal::Voidifier" = type { i8 }
%"class.tao::ral::internal::LogMessage" = type { %"class.std::__cxx11::basic_ostringstream.base", ptr, i32, i32, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_ostringstream.base" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%class.anon.69 = type { i8 }
%class.anon.71 = type { i8 }

@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3tao3ral7Context4callERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPPv(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::function", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %class.anon, align 1
  %7 = alloca %"struct.tao::ral::internal::Voidifier", align 1
  %8 = alloca %"class.tao::ral::internal::LogMessage", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %class.anon.69, align 1
  %12 = alloca %"struct.tao::ral::internal::Voidifier", align 1
  %13 = alloca %"class.tao::ral::internal::LogMessage", align 8
  %14 = alloca %class.anon.71, align 1
  %15 = alloca %"struct.tao::ral::internal::Voidifier", align 1
  %16 = alloca %"class.tao::ral::internal::LogMessage", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #7
  %17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3tao3ral17TaoRalApiRegistry6GlobalEv()
  call void @_ZN3tao3ral17TaoRalApiRegistry4FindERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::function") align 8 %4, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %18 = call noundef zeroext i1 @_ZNKSt8functionIFvPPvEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  br i1 %18, label %52, label %19

19:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #7
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0, i64 noundef 9)
          to label %20 unwind label %30

20:                                               ; preds = %19
  %21 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str.5)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  br i1 %21, label %22, label %40

22:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #7
  %23 = invoke noundef zeroext i1 @"_ZZN3tao3ral7Context4callERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPPvENK3$_0clEiPKc"(ptr noundef nonnull align 1 dereferenceable(1) %6, i32 noundef 0, ptr noundef nonnull @.str.6)
          to label %24 unwind label %32

24:                                               ; preds = %22
  br i1 %23, label %25, label %.critedge48, !prof !5

25:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %8) #7
  invoke void @_ZN3tao3ral8internal10LogMessageC1EPKcii(ptr noundef nonnull align 8 dereferenceable(128) %8, ptr noundef nonnull @.str.6, i32 noundef 110, i32 noundef 0)
          to label %26 unwind label %34

26:                                               ; preds = %25
  %27 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN3tao3ral8internal10LogMessageEA11_cEOT_S6_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %8, ptr noundef nonnull align 1 dereferenceable(11) @.str.7)
          to label %28 unwind label %36

28:                                               ; preds = %26
  %29 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN3tao3ral8internal10LogMessageENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEOT_SB_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %27, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %.critedge unwind label %36

.critedge:                                        ; preds = %28
  call void @_ZNK3tao3ral8internal9VoidifieranINS1_10LogMessageEEEvRKT_(ptr noundef nonnull align 1 dereferenceable(1) %7, ptr noundef nonnull align 8 dereferenceable(128) %29)
  call void @_ZN3tao3ral8internal10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %8) #7
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %8) #7
  br label %.critedge48

.critedge48:                                      ; preds = %24, %.critedge
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  br label %68

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

32:                                               ; preds = %22
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %39

34:                                               ; preds = %25
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %38

36:                                               ; preds = %28, %26
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3tao3ral8internal10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %8) #7
  br label %38

38:                                               ; preds = %34, %36
  %.pn38 = phi { ptr, i32 } [ %37, %36 ], [ %35, %34 ]
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  br label %39

39:                                               ; preds = %38, %32
  %.pn38.pn = phi { ptr, i32 } [ %.pn38, %38 ], [ %33, %32 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  br label %87

40:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #7
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull @.str.8, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %41 unwind label %44

41:                                               ; preds = %40
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.9)
          to label %42 unwind label %46

42:                                               ; preds = %41
  invoke void @_ZN3tao3ral7Context11signalErrorEiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %43 unwind label %48

43:                                               ; preds = %42
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  br label %68

44:                                               ; preds = %40
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %51

46:                                               ; preds = %41
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %50

48:                                               ; preds = %42
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  br label %50

50:                                               ; preds = %48, %46
  %.pn = phi { ptr, i32 } [ %49, %48 ], [ %47, %46 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  br label %51

51:                                               ; preds = %50, %44
  %.pn.pn = phi { ptr, i32 } [ %.pn, %50 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  br label %87

52:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #7
  %53 = invoke noundef zeroext i1 @"_ZZN3tao3ral7Context4callERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPPvENK3$_1clEiPKc"(ptr noundef nonnull align 1 dereferenceable(1) %11, i32 noundef 1, ptr noundef nonnull @.str.6)
          to label %54 unwind label %69

54:                                               ; preds = %52
  br i1 %53, label %55, label %.critedge51, !prof !5

55:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %13) #7
  invoke void @_ZN3tao3ral8internal10LogMessageC1EPKcii(ptr noundef nonnull align 8 dereferenceable(128) %13, ptr noundef nonnull @.str.6, i32 noundef 116, i32 noundef 0)
          to label %56 unwind label %71

56:                                               ; preds = %55
  %57 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN3tao3ral8internal10LogMessageEA22_cEOT_S6_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %13, ptr noundef nonnull align 1 dereferenceable(22) @.str.10)
          to label %58 unwind label %73

58:                                               ; preds = %56
  %59 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN3tao3ral8internal10LogMessageENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEOT_SB_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %57, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %.critedge50 unwind label %73

.critedge50:                                      ; preds = %58
  call void @_ZNK3tao3ral8internal9VoidifieranINS1_10LogMessageEEEvRKT_(ptr noundef nonnull align 1 dereferenceable(1) %12, ptr noundef nonnull align 8 dereferenceable(128) %59)
  call void @_ZN3tao3ral8internal10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %13) #7
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %13) #7
  br label %.critedge51

.critedge51:                                      ; preds = %54, %.critedge50
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  invoke void @_ZNKSt8functionIFvPPvEEclES1_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef %2)
          to label %60 unwind label %77

60:                                               ; preds = %.critedge51
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #7
  %61 = invoke noundef zeroext i1 @"_ZZN3tao3ral7Context4callERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPPvENK3$_2clEiPKc"(ptr noundef nonnull align 1 dereferenceable(1) %14, i32 noundef 1, ptr noundef nonnull @.str.6)
          to label %62 unwind label %79

62:                                               ; preds = %60
  br i1 %61, label %63, label %.critedge54, !prof !5

63:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %16) #7
  invoke void @_ZN3tao3ral8internal10LogMessageC1EPKcii(ptr noundef nonnull align 8 dereferenceable(128) %16, ptr noundef nonnull @.str.6, i32 noundef 118, i32 noundef 0)
          to label %64 unwind label %81

64:                                               ; preds = %63
  %65 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN3tao3ral8internal10LogMessageEA21_cEOT_S6_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %16, ptr noundef nonnull align 1 dereferenceable(21) @.str.11)
          to label %66 unwind label %83

66:                                               ; preds = %64
  %67 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN3tao3ral8internal10LogMessageENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEOT_SB_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %65, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %.critedge53 unwind label %83

.critedge53:                                      ; preds = %66
  call void @_ZNK3tao3ral8internal9VoidifieranINS1_10LogMessageEEEvRKT_(ptr noundef nonnull align 1 dereferenceable(1) %15, ptr noundef nonnull align 8 dereferenceable(128) %67)
  call void @_ZN3tao3ral8internal10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %16) #7
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %16) #7
  br label %.critedge54

.critedge54:                                      ; preds = %62, %.critedge53
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #7
  br label %68

68:                                               ; preds = %.critedge54, %43, %.critedge48
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #7
  ret void

69:                                               ; preds = %52
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %76

71:                                               ; preds = %55
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %75

73:                                               ; preds = %58, %56
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3tao3ral8internal10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %13) #7
  br label %75

75:                                               ; preds = %71, %73
  %.pn41 = phi { ptr, i32 } [ %74, %73 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #7
  br label %76

76:                                               ; preds = %75, %69
  %.pn41.pn = phi { ptr, i32 } [ %.pn41, %75 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  br label %87

77:                                               ; preds = %.critedge51
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %87

79:                                               ; preds = %60
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %86

81:                                               ; preds = %63
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %85

83:                                               ; preds = %66, %64
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3tao3ral8internal10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %16) #7
  br label %85

85:                                               ; preds = %81, %83
  %.pn44 = phi { ptr, i32 } [ %84, %83 ], [ %82, %81 ]
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #7
  br label %86

86:                                               ; preds = %85, %79
  %.pn44.pn = phi { ptr, i32 } [ %.pn44, %85 ], [ %80, %79 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #7
  br label %87

87:                                               ; preds = %86, %77, %76, %51, %39, %30
  %.pn44.pn.pn = phi { ptr, i32 } [ %.pn44.pn, %86 ], [ %78, %77 ], [ %.pn41.pn, %76 ], [ %.pn38.pn, %39 ], [ %.pn.pn, %51 ], [ %31, %30 ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #7
  resume { ptr, i32 } %.pn44.pn.pn
}

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN3tao3ral17TaoRalApiRegistry6GlobalEv() local_unnamed_addr #3

declare void @_ZN3tao3ral17TaoRalApiRegistry4FindERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::function") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZN3tao3ral7Context4callERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPPvENK3$_0clEiPKc"(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, ptr noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK3tao3ral8internal9VoidifieranINS1_10LogMessageEEEvRKT_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN3tao3ral8internal10LogMessageENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEOT_SB_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN3tao3ral8internal10LogMessageEA11_cEOT_S6_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 1 dereferenceable(11)) local_unnamed_addr #5

declare void @_ZN3tao3ral8internal10LogMessageC1EPKcii(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, i32 noundef, i32 noundef) unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN3tao3ral8internal10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #6

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZN3tao3ral7Context4callERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPPvENK3$_1clEiPKc"(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, ptr noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN3tao3ral8internal10LogMessageEA22_cEOT_S6_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 1 dereferenceable(22)) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZN3tao3ral7Context4callERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPPvENK3$_2clEiPKc"(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef, ptr noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN3tao3ral8internal10LogMessageEA21_cEOT_S6_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 1 dereferenceable(21)) local_unnamed_addr #5

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

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


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