; LLVM IR from huawei-noah/bolt :: inference/engine/src (bolt_cpp)

; 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, AFFINITY_TYPE>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, AFFINITY_TYPE>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, AFFINITY_TYPE>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, AFFINITY_TYPE>>, std::less<std::__cxx11::basic_string<char>>>::_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.std::initializer_list" = type { ptr, i64 }
%"struct.std::pair" = type <{ %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"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] }
%"struct.std::less" = type { i8 }
%"class.std::allocator.3" = type { i8 }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%class.Bolt = type { ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [30 x i8], align 1

declare void @DestroyModel(ptr noundef) #0

declare i32 @__gxx_personality_v0(...)

declare void @FreeResultHandle(ptr noundef) #0

declare i32 @FreeTensorDesc(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z8UNI_FREEPv(ptr noundef) #1

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

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

; Function Attrs: nounwind
declare i64 @syscall(i64 noundef, ...) #3

declare i32 @printf(ptr noundef, ...) #0

declare i32 @fflush(ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN4Bolt4loadENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef %1, ptr noundef %2) #6 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.std::map", align 8
  %9 = alloca %"class.std::initializer_list", align 8
  %10 = alloca [5 x %"struct.std::pair"], align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i1, align 1
  %20 = alloca %"struct.std::less", align 1
  %21 = alloca %"class.std::allocator.3", align 1
  %22 = alloca i32, align 4
  %23 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %24 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %27 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 200, ptr %10) #8
  store i1 true, ptr %19, align 1
  store ptr %10, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !9
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEC2IRA21_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(ptr noundef nonnull align 8 dereferenceable(36) %10, ptr noundef nonnull align 1 dereferenceable(21) @.str.8, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %28 unwind label %72

28:                                               ; preds = %3
  %29 = getelementptr inbounds %"struct.std::pair", ptr %10, i64 1
  store ptr %29, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 1, ptr %15, align 4, !tbaa !9
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEC2IRA14_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(ptr noundef nonnull align 8 dereferenceable(36) %29, ptr noundef nonnull align 1 dereferenceable(14) @.str.9, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %30 unwind label %76

30:                                               ; preds = %28
  %31 = getelementptr inbounds %"struct.std::pair", ptr %10, i64 2
  store ptr %31, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 3, ptr %16, align 4, !tbaa !9
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEC2IRA4_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(ptr noundef nonnull align 8 dereferenceable(36) %31, ptr noundef nonnull align 1 dereferenceable(4) @.str.10, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %32 unwind label %80

32:                                               ; preds = %30
  %33 = getelementptr inbounds %"struct.std::pair", ptr %10, i64 3
  store ptr %33, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 2, ptr %17, align 4, !tbaa !9
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEC2IRA4_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(ptr noundef nonnull align 8 dereferenceable(36) %33, ptr noundef nonnull align 1 dereferenceable(4) @.str.11, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %34 unwind label %84

34:                                               ; preds = %32
  %35 = getelementptr inbounds %"struct.std::pair", ptr %10, i64 4
  store ptr %35, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 4, ptr %18, align 4, !tbaa !9
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEC2IRA4_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(ptr noundef nonnull align 8 dereferenceable(36) %35, ptr noundef nonnull align 1 dereferenceable(4) @.str.12, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %36 unwind label %88

36:                                               ; preds = %34
  store i1 false, ptr %19, align 1
  %37 = getelementptr inbounds %"class.std::initializer_list", ptr %9, i32 0, i32 0
  store ptr %10, ptr %37, align 8, !tbaa !11
  %38 = getelementptr inbounds %"class.std::initializer_list", ptr %9, i32 0, i32 1
  store i64 5, ptr %38, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #8
  call void @_ZNSaISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #8
  %39 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8
  %41 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 1
  %42 = load i64, ptr %41, align 8
  invoke void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPESt4lessIS5_ESaISt4pairIKS5_S6_EEEC2ESt16initializer_listISB_ERKS8_RKSC_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr %40, i64 %42, ptr noundef nonnull align 1 dereferenceable(1) %20, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %43 unwind label %92

43:                                               ; preds = %36
  call void @_ZNSt15__new_allocatorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #8
  %44 = getelementptr inbounds [5 x %"struct.std::pair"], ptr %10, i32 0, i32 0
  %45 = getelementptr inbounds %"struct.std::pair", ptr %44, i64 5
  br label %46

46:                                               ; preds = %46, %43
  %47 = phi ptr [ %45, %43 ], [ %48, %46 ]
  %48 = getelementptr inbounds %"struct.std::pair", ptr %47, i64 -1
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %48) #8
  %49 = icmp eq ptr %48, %44
  br i1 %49, label %50, label %46

50:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 200, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %51 = invoke ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPESt4lessIS5_ESaISt4pairIKS5_S6_EEE4findERSA_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %52 unwind label %118

52:                                               ; preds = %50
  %53 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %23, i32 0, i32 0
  store ptr %51, ptr %53, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %54 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPESt4lessIS5_ESaISt4pairIKS5_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #8
  %55 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %24, i32 0, i32 0
  store ptr %54, ptr %55, align 8
  %56 = call noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEESC_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br i1 %56, label %57, label %126

57:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %58 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %59 = trunc i64 %58 to i32
  store i32 %59, ptr %25, align 4, !tbaa !15
  %60 = load i32, ptr %25, align 4, !tbaa !15
  %61 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %60)
          to label %62 unwind label %122

62:                                               ; preds = %57
  %63 = load ptr, ptr @stdout, align 8, !tbaa !5
  %64 = invoke i32 @fflush(ptr noundef %63)
          to label %65 unwind label %122

65:                                               ; preds = %62
  %66 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  %67 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.13, ptr noundef %66)
          to label %68 unwind label %122

68:                                               ; preds = %65
  %69 = load ptr, ptr @stdout, align 8, !tbaa !5
  %70 = invoke i32 @fflush(ptr noundef %69)
          to label %71 unwind label %122

71:                                               ; preds = %68
  call void @exit(i32 noundef 1) #9
  unreachable

72:                                               ; preds = %3
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %13, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %14, align 4
  br label %107

76:                                               ; preds = %28
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %13, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %14, align 4
  br label %106

80:                                               ; preds = %30
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %13, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %14, align 4
  br label %105

84:                                               ; preds = %32
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %13, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %14, align 4
  br label %104

88:                                               ; preds = %34
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %13, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %14, align 4
  br label %103

92:                                               ; preds = %36
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %13, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %14, align 4
  call void @_ZNSt15__new_allocatorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #8
  %96 = getelementptr inbounds [5 x %"struct.std::pair"], ptr %10, i32 0, i32 0
  %97 = getelementptr inbounds %"struct.std::pair", ptr %96, i64 5
  br label %98

98:                                               ; preds = %98, %92
  %99 = phi ptr [ %97, %92 ], [ %100, %98 ]
  %100 = getelementptr inbounds %"struct.std::pair", ptr %99, i64 -1
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %100) #8
  %101 = icmp eq ptr %100, %96
  br i1 %101, label %102, label %98

102:                                              ; preds = %98
  br label %103

103:                                              ; preds = %102, %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %104

104:                                              ; preds = %103, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %105

105:                                              ; preds = %104, %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %106

106:                                              ; preds = %105, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %107

107:                                              ; preds = %106, %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  %108 = load i1, ptr %19, align 1
  br i1 %108, label %109, label %117

109:                                              ; preds = %107
  %110 = load ptr, ptr %11, align 8
  %111 = icmp eq ptr %10, %110
  br i1 %111, label %116, label %112

112:                                              ; preds = %112, %109
  %113 = phi ptr [ %110, %109 ], [ %114, %112 ]
  %114 = getelementptr inbounds %"struct.std::pair", ptr %113, i64 -1
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %114) #8
  %115 = icmp eq ptr %114, %10
  br i1 %115, label %116, label %112

116:                                              ; preds = %112, %109
  br label %117

117:                                              ; preds = %116, %107
  call void @llvm.lifetime.end.p0(i64 200, ptr %10) #8
  br label %259

118:                                              ; preds = %50
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %13, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %258

122:                                              ; preds = %68, %65, %62, %57
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %13, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %258

126:                                              ; preds = %52
  %127 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPESt4lessIS5_ESaISt4pairIKS5_S6_EEEixERSA_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %128 unwind label %130

128:                                              ; preds = %126
  %129 = load i32, ptr %127, align 4, !tbaa !9
  store i32 %129, ptr %22, align 4, !tbaa !9
  br label %134

130:                                              ; preds = %247, %241, %237, %229, %213, %201, %183, %165, %150, %146, %138, %126
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %13, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %14, align 4
  br label %258

134:                                              ; preds = %128
  %135 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 0
  %136 = load ptr, ptr %135, align 8, !tbaa !17
  %137 = icmp ne ptr %136, null
  br i1 %137, label %138, label %142

138:                                              ; preds = %134
  %139 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8, !tbaa !17
  invoke void @DestroyModel(ptr noundef %140)
          to label %141 unwind label %130

141:                                              ; preds = %138
  br label %142

142:                                              ; preds = %141, %134
  %143 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 1
  %144 = load ptr, ptr %143, align 8, !tbaa !19
  %145 = icmp ne ptr %144, null
  br i1 %145, label %146, label %150

146:                                              ; preds = %142
  %147 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 1
  %148 = load ptr, ptr %147, align 8, !tbaa !19
  invoke void @FreeResultHandle(ptr noundef %148)
          to label %149 unwind label %130

149:                                              ; preds = %146
  br label %150

150:                                              ; preds = %149, %142
  %151 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  %152 = load i32, ptr %22, align 4, !tbaa !9
  %153 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 0
  %154 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 1
  %155 = invoke i32 @CreateInference(i32 noundef 0, ptr noundef %151, ptr noundef null, i32 noundef %152, ptr noundef %153, ptr noundef %154)
          to label %156 unwind label %130

156:                                              ; preds = %150
  %157 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 1
  %158 = load ptr, ptr %157, align 8, !tbaa !19
  %159 = icmp eq ptr %158, null
  br i1 %159, label %164, label %160

160:                                              ; preds = %156
  %161 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 0
  %162 = load ptr, ptr %161, align 8, !tbaa !17
  %163 = icmp eq ptr %162, null
  br i1 %163, label %164, label %165

164:                                              ; preds = %160, %156
  store i32 1, ptr %4, align 4
  store i32 1, ptr %26, align 4
  br label %256

165:                                              ; preds = %160
  %166 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 2
  %167 = load i32, ptr %166, align 8, !tbaa !20
  %168 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 3
  %169 = load ptr, ptr %168, align 8, !tbaa !21
  %170 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 4
  %171 = load ptr, ptr %170, align 8, !tbaa !22
  %172 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 5
  %173 = load ptr, ptr %172, align 8, !tbaa !23
  %174 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 6
  %175 = load ptr, ptr %174, align 8, !tbaa !24
  %176 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 7
  %177 = load ptr, ptr %176, align 8, !tbaa !25
  %178 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 8
  %179 = load ptr, ptr %178, align 8, !tbaa !26
  %180 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 9
  %181 = load ptr, ptr %180, align 8, !tbaa !27
  %182 = invoke i32 @FreeTensorDesc(i32 noundef %167, ptr noundef %169, ptr noundef %171, ptr noundef %173, ptr noundef %175, ptr noundef %177, ptr noundef %179, ptr noundef %181)
          to label %183 unwind label %130

183:                                              ; preds = %165
  %184 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 11
  %185 = load i32, ptr %184, align 8, !tbaa !28
  %186 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 12
  %187 = load ptr, ptr %186, align 8, !tbaa !29
  %188 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 13
  %189 = load ptr, ptr %188, align 8, !tbaa !30
  %190 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 14
  %191 = load ptr, ptr %190, align 8, !tbaa !31
  %192 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 15
  %193 = load ptr, ptr %192, align 8, !tbaa !32
  %194 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 16
  %195 = load ptr, ptr %194, align 8, !tbaa !33
  %196 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 17
  %197 = load ptr, ptr %196, align 8, !tbaa !34
  %198 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 18
  %199 = load ptr, ptr %198, align 8, !tbaa !35
  %200 = invoke i32 @FreeTensorDesc(i32 noundef %185, ptr noundef %187, ptr noundef %189, ptr noundef %191, ptr noundef %193, ptr noundef %195, ptr noundef %197, ptr noundef %199)
          to label %201 unwind label %130

201:                                              ; preds = %183
  %202 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 0
  %203 = load ptr, ptr %202, align 8, !tbaa !17
  %204 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 2
  %205 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 3
  %206 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 4
  %207 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 5
  %208 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 6
  %209 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 7
  %210 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 8
  %211 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 9
  %212 = invoke i32 @CreateInputTensorDesc(ptr noundef %203, ptr noundef %204, ptr noundef %205, ptr noundef %206, ptr noundef %207, ptr noundef %208, ptr noundef %209, ptr noundef %210, ptr noundef %211)
          to label %213 unwind label %130

213:                                              ; preds = %201
  %214 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 1
  %215 = load ptr, ptr %214, align 8, !tbaa !19
  %216 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 11
  %217 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 12
  %218 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 13
  %219 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 14
  %220 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 15
  %221 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 16
  %222 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 17
  %223 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 18
  %224 = invoke i32 @CreateOutputTensorDesc(ptr noundef %215, ptr noundef %216, ptr noundef %217, ptr noundef %218, ptr noundef %219, ptr noundef %220, ptr noundef %221, ptr noundef %222, ptr noundef %223)
          to label %225 unwind label %130

225:                                              ; preds = %213
  %226 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 10
  %227 = load ptr, ptr %226, align 8, !tbaa !36
  %228 = icmp ne ptr %227, null
  br i1 %228, label %229, label %233

229:                                              ; preds = %225
  %230 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 10
  %231 = load ptr, ptr %230, align 8, !tbaa !36
  invoke void @_Z8UNI_FREEPv(ptr noundef %231)
          to label %232 unwind label %130

232:                                              ; preds = %229
  br label %233

233:                                              ; preds = %232, %225
  %234 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 19
  %235 = load ptr, ptr %234, align 8, !tbaa !37
  %236 = icmp ne ptr %235, null
  br i1 %236, label %237, label %241

237:                                              ; preds = %233
  %238 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 19
  %239 = load ptr, ptr %238, align 8, !tbaa !37
  invoke void @_Z8UNI_FREEPv(ptr noundef %239)
          to label %240 unwind label %130

240:                                              ; preds = %237
  br label %241

241:                                              ; preds = %240, %233
  %242 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 2
  %243 = load i32, ptr %242, align 8, !tbaa !20
  %244 = sext i32 %243 to i64
  %245 = mul i64 8, %244
  %246 = invoke noundef ptr @_Z10UNI_MALLOCm(i64 noundef %245)
          to label %247 unwind label %130

247:                                              ; preds = %241
  %248 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 10
  store ptr %246, ptr %248, align 8, !tbaa !36
  %249 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 11
  %250 = load i32, ptr %249, align 8, !tbaa !28
  %251 = sext i32 %250 to i64
  %252 = mul i64 8, %251
  %253 = invoke noundef ptr @_Z10UNI_MALLOCm(i64 noundef %252)
          to label %254 unwind label %130

254:                                              ; preds = %247
  %255 = getelementptr inbounds %class.Bolt, ptr %27, i32 0, i32 19
  store ptr %253, ptr %255, align 8, !tbaa !37
  store i32 0, ptr %4, align 4
  store i32 1, ptr %26, align 4
  br label %256

256:                                              ; preds = %254, %164
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPESt4lessIS5_ESaISt4pairIKS5_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #8
  %257 = load i32, ptr %4, align 4
  ret i32 %257

258:                                              ; preds = %130, %122, %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPESt4lessIS5_ESaISt4pairIKS5_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #8
  br label %259

259:                                              ; preds = %258, %117
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #8
  br label %260

260:                                              ; preds = %259
  %261 = load ptr, ptr %13, align 8
  %262 = load i32, ptr %14, align 4
  %263 = insertvalue { ptr, i32 } poison, ptr %261, 0
  %264 = insertvalue { ptr, i32 } %263, i32 %262, 1
  resume { ptr, i32 } %264
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEC2IRA21_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 1 dereferenceable(21), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEC2IRA14_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 1 dereferenceable(14), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEC2IRA4_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 1 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #6 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPESt4lessIS5_ESaISt4pairIKS5_S6_EEEixERSA_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) #6 align 2

declare i32 @CreateInference(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #0

declare i32 @CreateInputTensorDesc(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @CreateOutputTensorDesc(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z10UNI_MALLOCm(i64 noundef) #7

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTS13AFFINITY_TYPE", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt16initializer_listISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEE", !6, i64 0, !13, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTS4Bolt", !6, i64 0, !6, i64 8, !16, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !16, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152}
!19 = !{!18, !6, i64 8}
!20 = !{!18, !16, i64 16}
!21 = !{!18, !6, i64 24}
!22 = !{!18, !6, i64 32}
!23 = !{!18, !6, i64 40}
!24 = !{!18, !6, i64 48}
!25 = !{!18, !6, i64 56}
!26 = !{!18, !6, i64 64}
!27 = !{!18, !6, i64 72}
!28 = !{!18, !16, i64 88}
!29 = !{!18, !6, i64 96}
!30 = !{!18, !6, i64 104}
!31 = !{!18, !6, i64 112}
!32 = !{!18, !6, i64 120}
!33 = !{!18, !6, i64 128}
!34 = !{!18, !6, i64 136}
!35 = !{!18, !6, i64 144}
!36 = !{!18, !6, i64 80}
!37 = !{!18, !6, i64 152}


; 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, AFFINITY_TYPE>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, AFFINITY_TYPE>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, AFFINITY_TYPE>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, AFFINITY_TYPE>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::pair" = type <{ %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"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] }
%"struct.std::less" = type { i8 }
%"class.std::allocator.3" = type { i8 }
%"struct.std::_Rb_tree_iterator" = type { ptr }

@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [30 x i8], align 1

declare void @DestroyModel(ptr noundef) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

declare void @FreeResultHandle(ptr noundef) local_unnamed_addr #0

declare i32 @FreeTensorDesc(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z8UNI_FREEPv(ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind
declare i64 @syscall(i64 noundef, ...) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5 align 2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZN4Bolt4loadENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #7 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::map", align 8
  %5 = alloca [5 x %"struct.std::pair"], align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.std::less", align 1
  %12 = alloca %"class.std::allocator.3", align 1
  %13 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %14 = alloca %"struct.std::_Rb_tree_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #9
  store i32 0, ptr %6, align 4, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEC2IRA21_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(ptr noundef nonnull align 8 dereferenceable(36) %5, ptr noundef nonnull align 1 dereferenceable(21) @.str.8, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %15 unwind label %.thread

15:                                               ; preds = %3
  %16 = getelementptr inbounds i8, ptr %5, i64 40
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #9
  store i32 1, ptr %7, align 4, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEC2IRA14_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(ptr noundef nonnull align 8 dereferenceable(36) %16, ptr noundef nonnull align 1 dereferenceable(14) @.str.9, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %17 unwind label %.thread49

17:                                               ; preds = %15
  %18 = getelementptr inbounds i8, ptr %5, i64 80
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #9
  store i32 3, ptr %8, align 4, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEC2IRA4_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(ptr noundef nonnull align 8 dereferenceable(36) %18, ptr noundef nonnull align 1 dereferenceable(4) @.str.10, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %19 unwind label %.thread55

19:                                               ; preds = %17
  %20 = getelementptr inbounds i8, ptr %5, i64 120
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #9
  store i32 2, ptr %9, align 4, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEC2IRA4_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(ptr noundef nonnull align 8 dereferenceable(36) %20, ptr noundef nonnull align 1 dereferenceable(4) @.str.11, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %21 unwind label %.thread59

21:                                               ; preds = %19
  %22 = getelementptr inbounds i8, ptr %5, i64 160
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #9
  store i32 4, ptr %10, align 4, !tbaa !5
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEC2IRA4_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(ptr noundef nonnull align 8 dereferenceable(36) %22, ptr noundef nonnull align 1 dereferenceable(4) @.str.12, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %23 unwind label %52

23:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #9
  call void @_ZNSaISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #9
  invoke void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPESt4lessIS5_ESaISt4pairIKS5_S6_EEEC2ESt16initializer_listISB_ERKS8_RKSC_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr nonnull %5, i64 5, ptr noundef nonnull align 1 dereferenceable(1) %11, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %24 unwind label %.thread63

24:                                               ; preds = %23
  call void @_ZNSt15__new_allocatorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #9
  %25 = getelementptr inbounds i8, ptr %5, i64 160
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %25) #9
  %26 = getelementptr inbounds i8, ptr %5, i64 120
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %26) #9
  %27 = getelementptr inbounds i8, ptr %5, i64 80
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %27) #9
  %28 = getelementptr inbounds i8, ptr %5, i64 40
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %28) #9
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  %29 = invoke ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPESt4lessIS5_ESaISt4pairIKS5_S6_EEE4findERSA_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %30 unwind label %57

30:                                               ; preds = %24
  store ptr %29, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #9
  %31 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPESt4lessIS5_ESaISt4pairIKS5_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #9
  store ptr %31, ptr %14, align 8
  %32 = call noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEESC_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  br i1 %32, label %33, label %59

33:                                               ; preds = %30
  %34 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %35 = trunc i64 %34 to i32
  %36 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %35)
  %37 = load ptr, ptr @stdout, align 8, !tbaa !9
  %38 = call i32 @fflush(ptr noundef %37)
  %39 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #9
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, ptr noundef %39)
  %41 = load ptr, ptr @stdout, align 8, !tbaa !9
  %42 = call i32 @fflush(ptr noundef %41)
  call void @exit(i32 noundef 1) #10
  unreachable

.thread:                                          ; preds = %3
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  br label %.loopexit

.thread49:                                        ; preds = %15
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  br label %.preheader.preheader

.thread55:                                        ; preds = %17
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  br label %.preheader.preheader

.thread59:                                        ; preds = %19
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  br label %.preheader.preheader

.thread63:                                        ; preds = %23
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #9
  %48 = getelementptr inbounds i8, ptr %5, i64 160
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %48) #9
  %49 = getelementptr inbounds i8, ptr %5, i64 120
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %49) #9
  %50 = getelementptr inbounds i8, ptr %5, i64 80
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %50) #9
  %51 = getelementptr inbounds i8, ptr %5, i64 40
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %51) #9
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  br label %.loopexit

52:                                               ; preds = %21
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  br label %.preheader.preheader

.preheader.preheader:                             ; preds = %52, %.thread59, %.thread55, %.thread49
  %.pn.pn.pn.pn54 = phi { ptr, i32 } [ %44, %.thread49 ], [ %53, %52 ], [ %45, %.thread55 ], [ %46, %.thread59 ]
  %.22353 = phi ptr [ %16, %.thread49 ], [ %22, %52 ], [ %18, %.thread55 ], [ %20, %.thread59 ]
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %54 = phi ptr [ %55, %.preheader ], [ %.22353, %.preheader.preheader ]
  %55 = getelementptr inbounds i8, ptr %54, i64 -40
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %55) #9
  %56 = icmp eq ptr %55, %5
  br i1 %56, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %.thread63, %.thread
  %.pn.pn.pn.pn.pn47 = phi { ptr, i32 } [ %43, %.thread ], [ %47, %.thread63 ], [ %.pn.pn.pn.pn54, %.preheader ]
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %5) #9
  br label %142

57:                                               ; preds = %24
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  br label %141

59:                                               ; preds = %30
  %60 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPESt4lessIS5_ESaISt4pairIKS5_S6_EEEixERSA_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %61 unwind label %64

61:                                               ; preds = %59
  %62 = load i32, ptr %60, align 4, !tbaa !5
  %63 = load ptr, ptr %0, align 8, !tbaa !11
  %.not = icmp eq ptr %63, null
  br i1 %.not, label %67, label %66

64:                                               ; preds = %134, %129, %118, %115, %97, %79, %71, %70, %66, %59
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %141

66:                                               ; preds = %61
  invoke void @DestroyModel(ptr noundef nonnull %63)
          to label %67 unwind label %64

67:                                               ; preds = %66, %61
  %68 = getelementptr inbounds i8, ptr %0, i64 8
  %69 = load ptr, ptr %68, align 8, !tbaa !14
  %.not35 = icmp eq ptr %69, null
  br i1 %.not35, label %71, label %70

70:                                               ; preds = %67
  invoke void @FreeResultHandle(ptr noundef nonnull %69)
          to label %71 unwind label %64

71:                                               ; preds = %70, %67
  %72 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #9
  %73 = invoke i32 @CreateInference(i32 noundef 0, ptr noundef %72, ptr noundef null, i32 noundef %62, ptr noundef nonnull %0, ptr noundef nonnull %68)
          to label %74 unwind label %64

74:                                               ; preds = %71
  %75 = load ptr, ptr %68, align 8, !tbaa !14
  %76 = icmp eq ptr %75, null
  %77 = load ptr, ptr %0, align 8
  %78 = icmp eq ptr %77, null
  %or.cond42 = select i1 %76, i1 true, i1 %78
  br i1 %or.cond42, label %140, label %79

79:                                               ; preds = %74
  %80 = getelementptr inbounds i8, ptr %0, i64 16
  %81 = load i32, ptr %80, align 8, !tbaa !15
  %82 = getelementptr inbounds i8, ptr %0, i64 24
  %83 = load ptr, ptr %82, align 8, !tbaa !16
  %84 = getelementptr inbounds i8, ptr %0, i64 32
  %85 = load ptr, ptr %84, align 8, !tbaa !17
  %86 = getelementptr inbounds i8, ptr %0, i64 40
  %87 = load ptr, ptr %86, align 8, !tbaa !18
  %88 = getelementptr inbounds i8, ptr %0, i64 48
  %89 = load ptr, ptr %88, align 8, !tbaa !19
  %90 = getelementptr inbounds i8, ptr %0, i64 56
  %91 = load ptr, ptr %90, align 8, !tbaa !20
  %92 = getelementptr inbounds i8, ptr %0, i64 64
  %93 = load ptr, ptr %92, align 8, !tbaa !21
  %94 = getelementptr inbounds i8, ptr %0, i64 72
  %95 = load ptr, ptr %94, align 8, !tbaa !22
  %96 = invoke i32 @FreeTensorDesc(i32 noundef %81, ptr noundef %83, ptr noundef %85, ptr noundef %87, ptr noundef %89, ptr noundef %91, ptr noundef %93, ptr noundef %95)
          to label %97 unwind label %64

97:                                               ; preds = %79
  %98 = getelementptr inbounds i8, ptr %0, i64 88
  %99 = load i32, ptr %98, align 8, !tbaa !23
  %100 = getelementptr inbounds i8, ptr %0, i64 96
  %101 = load ptr, ptr %100, align 8, !tbaa !24
  %102 = getelementptr inbounds i8, ptr %0, i64 104
  %103 = load ptr, ptr %102, align 8, !tbaa !25
  %104 = getelementptr inbounds i8, ptr %0, i64 112
  %105 = load ptr, ptr %104, align 8, !tbaa !26
  %106 = getelementptr inbounds i8, ptr %0, i64 120
  %107 = load ptr, ptr %106, align 8, !tbaa !27
  %108 = getelementptr inbounds i8, ptr %0, i64 128
  %109 = load ptr, ptr %108, align 8, !tbaa !28
  %110 = getelementptr inbounds i8, ptr %0, i64 136
  %111 = load ptr, ptr %110, align 8, !tbaa !29
  %112 = getelementptr inbounds i8, ptr %0, i64 144
  %113 = load ptr, ptr %112, align 8, !tbaa !30
  %114 = invoke i32 @FreeTensorDesc(i32 noundef %99, ptr noundef %101, ptr noundef %103, ptr noundef %105, ptr noundef %107, ptr noundef %109, ptr noundef %111, ptr noundef %113)
          to label %115 unwind label %64

115:                                              ; preds = %97
  %116 = load ptr, ptr %0, align 8, !tbaa !11
  %117 = invoke i32 @CreateInputTensorDesc(ptr noundef %116, ptr noundef nonnull %80, ptr noundef nonnull %82, ptr noundef nonnull %84, ptr noundef nonnull %86, ptr noundef nonnull %88, ptr noundef nonnull %90, ptr noundef nonnull %92, ptr noundef nonnull %94)
          to label %118 unwind label %64

118:                                              ; preds = %115
  %119 = load ptr, ptr %68, align 8, !tbaa !14
  %120 = invoke i32 @CreateOutputTensorDesc(ptr noundef %119, ptr noundef nonnull %98, ptr noundef nonnull %100, ptr noundef nonnull %102, ptr noundef nonnull %104, ptr noundef nonnull %106, ptr noundef nonnull %108, ptr noundef nonnull %110, ptr noundef nonnull %112)
          to label %121 unwind label %64

121:                                              ; preds = %118
  %122 = getelementptr inbounds i8, ptr %0, i64 80
  %123 = load ptr, ptr %122, align 8, !tbaa !31
  %.not36 = icmp eq ptr %123, null
  br i1 %.not36, label %125, label %124

124:                                              ; preds = %121
  call void @_Z8UNI_FREEPv(ptr noundef nonnull %123)
  br label %125

125:                                              ; preds = %124, %121
  %126 = getelementptr inbounds i8, ptr %0, i64 152
  %127 = load ptr, ptr %126, align 8, !tbaa !32
  %.not37 = icmp eq ptr %127, null
  br i1 %.not37, label %129, label %128

128:                                              ; preds = %125
  call void @_Z8UNI_FREEPv(ptr noundef nonnull %127)
  br label %129

129:                                              ; preds = %128, %125
  %130 = load i32, ptr %80, align 8, !tbaa !15
  %131 = sext i32 %130 to i64
  %132 = shl nsw i64 %131, 3
  %133 = invoke noundef ptr @_Z10UNI_MALLOCm(i64 noundef %132)
          to label %134 unwind label %64

134:                                              ; preds = %129
  store ptr %133, ptr %122, align 8, !tbaa !31
  %135 = load i32, ptr %98, align 8, !tbaa !23
  %136 = sext i32 %135 to i64
  %137 = shl nsw i64 %136, 3
  %138 = invoke noundef ptr @_Z10UNI_MALLOCm(i64 noundef %137)
          to label %139 unwind label %64

139:                                              ; preds = %134
  store ptr %138, ptr %126, align 8, !tbaa !32
  br label %140

140:                                              ; preds = %74, %139
  %.0 = phi i32 [ 0, %139 ], [ 1, %74 ]
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPESt4lessIS5_ESaISt4pairIKS5_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #9
  ret i32 %.0

141:                                              ; preds = %64, %57
  %.pn38 = phi { ptr, i32 } [ %65, %64 ], [ %58, %57 ]
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPESt4lessIS5_ESaISt4pairIKS5_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #9
  br label %142

142:                                              ; preds = %141, %.loopexit
  %.pn38.pn = phi { ptr, i32 } [ %.pn38, %141 ], [ %.pn.pn.pn.pn.pn47, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #9
  resume { ptr, i32 } %.pn38.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEC2IRA21_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 1 dereferenceable(21), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEC2IRA14_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 1 dereferenceable(14), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEC2IRA4_KcS7_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISE_SF_EEEbE4typeELb1EEEOSE_OSF_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 1 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #7 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPEEESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE13AFFINITY_TYPESt4lessIS5_ESaISt4pairIKS5_S6_EEEixERSA_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #7 align 2

declare i32 @CreateInference(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @CreateInputTensorDesc(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @CreateOutputTensorDesc(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z10UNI_MALLOCm(i64 noundef) local_unnamed_addr #8

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"_ZTS13AFFINITY_TYPE", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS4Bolt", !10, i64 0, !10, i64 8, !13, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !13, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !10, i64 8}
!15 = !{!12, !13, i64 16}
!16 = !{!12, !10, i64 24}
!17 = !{!12, !10, i64 32}
!18 = !{!12, !10, i64 40}
!19 = !{!12, !10, i64 48}
!20 = !{!12, !10, i64 56}
!21 = !{!12, !10, i64 64}
!22 = !{!12, !10, i64 72}
!23 = !{!12, !13, i64 88}
!24 = !{!12, !10, i64 96}
!25 = !{!12, !10, i64 104}
!26 = !{!12, !10, i64 112}
!27 = !{!12, !10, i64 120}
!28 = !{!12, !10, i64 128}
!29 = !{!12, !10, i64 136}
!30 = !{!12, !10, i64 144}
!31 = !{!12, !10, i64 80}
!32 = !{!12, !10, i64 152}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass