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

; 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>, TensorDesc>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, TensorDesc>>, 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>, TensorDesc>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, TensorDesc>>, 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::__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.std::allocator.3" = type { i8 }
%"class.std::map.6" = type { %"class.std::_Rb_tree.7" }
%"class.std::_Rb_tree.7" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<Tensor>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<Tensor>>>, 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>, std::shared_ptr<Tensor>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<Tensor>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_iterator.67" = type { ptr }
%"struct.std::pair.68" = type { %"class.std::__cxx11::basic_string", %"class.std::shared_ptr.70" }
%"class.std::shared_ptr.70" = type { %"class.std::__shared_ptr.71" }
%"class.std::__shared_ptr.71" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.bolt::IOTensor" = type { %"class.std::__cxx11::basic_string", i32, i32, %"class.std::vector.62", %"struct.std::pair" }
%"class.std::vector.62" = type { %"struct.std::_Vector_base.63" }
%"struct.std::_Vector_base.63" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { ptr, i64 }
%struct.TensorDesc = type { i32, i32, i32, [20 x i32] }
%struct.DLLiteInfo = type { ptr, i8 }
%struct.ModelHandleInfo = type { ptr, ptr, i32, ptr, i8 }

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z18TypeMapBolt2DLLite8DataType(i32 noundef) #0

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

; 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
declare dso_local noundef i32 @_Z20LayoutMapBolt2DLLite10DataFormat(i32 noundef) #0

declare void @_ZN3CNN14get_input_descB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::map") align 8, ptr noundef nonnull align 8 dereferenceable(5265)) #2

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN4bolt12GetIOFormatsEPvRSt6vectorINS_8IOTensorESaIS2_EES5_(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #0 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 ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"class.std::map", align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::map", align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::allocator.3", align 1
  %20 = alloca %"class.std::map.6", align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"struct.std::_Rb_tree_iterator.67", align 8
  %23 = alloca %"struct.std::_Rb_tree_iterator.67", align 8
  %24 = alloca %"struct.std::pair.68", align 8
  %25 = alloca %"struct.bolt::IOTensor", align 8
  %26 = alloca %struct.TensorDesc, align 4
  %27 = alloca i32, align 4
  %28 = alloca i64, align 8
  %29 = alloca %"class.std::map.6", align 8
  %30 = alloca ptr, align 8
  %31 = alloca %"struct.std::_Rb_tree_iterator.67", align 8
  %32 = alloca %"struct.std::_Rb_tree_iterator.67", align 8
  %33 = alloca %"struct.std::pair.68", align 8
  %34 = alloca %"struct.bolt::IOTensor", align 8
  %35 = alloca %struct.TensorDesc, align 4
  %36 = alloca i32, align 4
  %37 = alloca i64, align 8
  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
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %38, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.DLLiteInfo, ptr %39, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !9
  store ptr %41, ptr %9, align 8, !tbaa !5
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = icmp eq ptr null, %42
  br i1 %43, label %44, label %45

44:                                               ; preds = %3
  store i32 -2, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %291

45:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.ModelHandleInfo, ptr %46, i32 0, i32 1
  %48 = load ptr, ptr %47, align 8, !tbaa !12
  store ptr %48, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %12) #6
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN3CNN14get_input_descB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::map") align 8 %12, ptr noundef nonnull align 8 dereferenceable(5265) %49)
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.ModelHandleInfo, ptr %50, i32 0, i32 3
  %52 = load ptr, ptr %51, align 8, !tbaa !15
  %53 = icmp ne ptr %52, null
  br i1 %53, label %54, label %65

54:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.ModelHandleInfo, ptr %55, i32 0, i32 3
  %57 = load ptr, ptr %56, align 8, !tbaa !15
  store ptr %57, ptr %13, align 8, !tbaa !5
  %58 = load ptr, ptr %11, align 8, !tbaa !5
  %59 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZN5Model16loadAlgorithmMapEPKcb(ptr noundef nonnull align 8 dereferenceable(4720) %58, ptr noundef %59, i1 noundef zeroext false)
          to label %60 unwind label %61

60:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %65

61:                                               ; preds = %54
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %14, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %290

65:                                               ; preds = %60, %45
  %66 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10TensorDescSt4lessIS5_ESaISt4pairIKS5_S6_EEEC2ERKSD_(ptr noundef nonnull align 8 dereferenceable(48) %16, ptr noundef nonnull align 8 dereferenceable(48) %12)
          to label %67 unwind label %87

67:                                               ; preds = %65
  %68 = load ptr, ptr %66, align 8, !tbaa !16
  %69 = getelementptr inbounds ptr, ptr %68, i64 2
  %70 = load ptr, ptr %69, align 8
  invoke void %70(ptr noundef nonnull align 8 dereferenceable(5265) %66, ptr noundef %16)
          to label %71 unwind label %91

71:                                               ; preds = %67
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10TensorDescSt4lessIS5_ESaISt4pairIKS5_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %16) #6
  %72 = load ptr, ptr %11, align 8, !tbaa !5
  %73 = invoke noundef i32 @_ZN3CNN17mark_input_outputEv(ptr noundef nonnull align 8 dereferenceable(5265) %72)
          to label %74 unwind label %87

74:                                               ; preds = %71
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.ModelHandleInfo, ptr %75, i32 0, i32 3
  %77 = load ptr, ptr %76, align 8, !tbaa !15
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %104

79:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.ModelHandleInfo, ptr %80, i32 0, i32 3
  %82 = load ptr, ptr %81, align 8, !tbaa !15
  store ptr %82, ptr %17, align 8, !tbaa !5
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef %84, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %85 unwind label %95

85:                                               ; preds = %79
  invoke void @_ZN5Model22saveAlgorithmMapToFileENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(4720) %83, ptr noundef %18)
          to label %86 unwind label %99

86:                                               ; preds = %85
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %104

87:                                               ; preds = %71, %65
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %14, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %15, align 4
  br label %290

91:                                               ; preds = %67
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %14, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %15, align 4
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10TensorDescSt4lessIS5_ESaISt4pairIKS5_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %16) #6
  br label %290

95:                                               ; preds = %79
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %14, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %15, align 4
  br label %103

99:                                               ; preds = %85
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %14, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %103

103:                                              ; preds = %99, %95
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %290

104:                                              ; preds = %86, %74
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.DLLiteInfo, ptr %105, i32 0, i32 1
  store i8 1, ptr %106, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 48, ptr %20) #6
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZN3CNN9get_inputB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::map.6") align 8 %20, ptr noundef nonnull align 8 dereferenceable(5265) %107)
          to label %108 unwind label %119

108:                                              ; preds = %104
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNSt6vectorIN4bolt8IOTensorESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %109) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  store ptr %20, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %110 = load ptr, ptr %21, align 8, !tbaa !5
  %111 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorESt4lessIS5_ESaISt4pairIKS5_S8_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %110) #6
  %112 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.67", ptr %22, i32 0, i32 0
  store ptr %111, ptr %112, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %113 = load ptr, ptr %21, align 8, !tbaa !5
  %114 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorESt4lessIS5_ESaISt4pairIKS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %113) #6
  %115 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.67", ptr %23, i32 0, i32 0
  store ptr %114, ptr %115, align 8
  br label %116

116:                                              ; preds = %190, %108
  %117 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  br i1 %117, label %123, label %118

118:                                              ; preds = %116
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %196

119:                                              ; preds = %104
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %14, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %15, align 4
  br label %289

123:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 48, ptr %24) #6
  %124 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(48) %24, ptr noundef nonnull align 8 dereferenceable(48) %124)
          to label %125 unwind label %146

125:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 80, ptr %25) #6
  invoke void @_ZN4bolt8IOTensorC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %25)
          to label %126 unwind label %150

126:                                              ; preds = %125
  %127 = getelementptr inbounds %"struct.std::pair.68", ptr %24, i32 0, i32 0
  %128 = getelementptr inbounds %"struct.bolt::IOTensor", ptr %25, i32 0, i32 0
  %129 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %128, ptr noundef nonnull align 8 dereferenceable(32) %127)
          to label %130 unwind label %154

130:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 92, ptr %26) #6
  %131 = getelementptr inbounds %"struct.std::pair.68", ptr %24, i32 0, i32 1
  %132 = call noundef ptr @_ZNKSt19__shared_ptr_accessI6TensorLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %131) #6
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %26, ptr noundef nonnull align 8 dereferenceable(32) %132)
          to label %133 unwind label %158

133:                                              ; preds = %130
  %134 = getelementptr inbounds %struct.TensorDesc, ptr %26, i32 0, i32 0
  %135 = load i32, ptr %134, align 4, !tbaa !19
  %136 = invoke noundef i32 @_Z18TypeMapBolt2DLLite8DataType(i32 noundef %135)
          to label %137 unwind label %158

137:                                              ; preds = %133
  %138 = getelementptr inbounds %"struct.bolt::IOTensor", ptr %25, i32 0, i32 1
  store i32 %136, ptr %138, align 8, !tbaa !24
  %139 = getelementptr inbounds %"struct.bolt::IOTensor", ptr %25, i32 0, i32 3
  call void @_ZNSt6vectorImSaImEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %139) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  store i32 0, ptr %27, align 4, !tbaa !36
  br label %140

140:                                              ; preds = %175, %137
  %141 = load i32, ptr %27, align 4, !tbaa !36
  %142 = getelementptr inbounds %struct.TensorDesc, ptr %26, i32 0, i32 2
  %143 = load i32, ptr %142, align 4, !tbaa !37
  %144 = icmp ult i32 %141, %143
  br i1 %144, label %162, label %145

145:                                              ; preds = %140
  store i32 4, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %182

146:                                              ; preds = %123
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %14, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %15, align 4
  br label %195

150:                                              ; preds = %125
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %14, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %15, align 4
  br label %194

154:                                              ; preds = %126
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %14, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %15, align 4
  br label %193

158:                                              ; preds = %186, %182, %133, %130
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %14, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %15, align 4
  br label %192

162:                                              ; preds = %140
  %163 = getelementptr inbounds %"struct.bolt::IOTensor", ptr %25, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %164 = getelementptr inbounds %struct.TensorDesc, ptr %26, i32 0, i32 3
  %165 = getelementptr inbounds %struct.TensorDesc, ptr %26, i32 0, i32 2
  %166 = load i32, ptr %165, align 4, !tbaa !37
  %167 = sub i32 %166, 1
  %168 = load i32, ptr %27, align 4, !tbaa !36
  %169 = sub i32 %167, %168
  %170 = zext i32 %169 to i64
  %171 = getelementptr inbounds [20 x i32], ptr %164, i64 0, i64 %170
  %172 = load i32, ptr %171, align 4, !tbaa !36
  %173 = zext i32 %172 to i64
  store i64 %173, ptr %28, align 8, !tbaa !38
  invoke void @_ZNSt6vectorImSaImEE9push_backEOm(ptr noundef nonnull align 8 dereferenceable(24) %163, ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %174 unwind label %178

174:                                              ; preds = %162
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %175

175:                                              ; preds = %174
  %176 = load i32, ptr %27, align 4, !tbaa !36
  %177 = add i32 %176, 1
  store i32 %177, ptr %27, align 4, !tbaa !36
  br label %140, !llvm.loop !39

178:                                              ; preds = %162
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %14, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %192

182:                                              ; preds = %145
  %183 = getelementptr inbounds %struct.TensorDesc, ptr %26, i32 0, i32 1
  %184 = load i32, ptr %183, align 4, !tbaa !41
  %185 = invoke noundef i32 @_Z20LayoutMapBolt2DLLite10DataFormat(i32 noundef %184)
          to label %186 unwind label %158

186:                                              ; preds = %182
  %187 = getelementptr inbounds %"struct.bolt::IOTensor", ptr %25, i32 0, i32 2
  store i32 %185, ptr %187, align 4, !tbaa !42
  %188 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIN4bolt8IOTensorESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %188, ptr noundef nonnull align 8 dereferenceable(80) %25)
          to label %189 unwind label %158

189:                                              ; preds = %186
  call void @llvm.lifetime.end.p0(i64 92, ptr %26) #6
  call void @_ZN4bolt8IOTensorD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %25) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %25) #6
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %24) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %24) #6
  br label %190

190:                                              ; preds = %189
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  br label %116

192:                                              ; preds = %178, %158
  call void @llvm.lifetime.end.p0(i64 92, ptr %26) #6
  br label %193

193:                                              ; preds = %192, %154
  call void @_ZN4bolt8IOTensorD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %25) #6
  br label %194

194:                                              ; preds = %193, %150
  call void @llvm.lifetime.end.p0(i64 80, ptr %25) #6
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %24) #6
  br label %195

195:                                              ; preds = %194, %146
  call void @llvm.lifetime.end.p0(i64 48, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %288

196:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 48, ptr %29) #6
  %197 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZN3CNN10get_outputB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::map.6") align 8 %29, ptr noundef nonnull align 8 dereferenceable(5265) %197)
          to label %198 unwind label %209

198:                                              ; preds = %196
  %199 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNSt6vectorIN4bolt8IOTensorESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %199) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  store ptr %29, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %200 = load ptr, ptr %30, align 8, !tbaa !5
  %201 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorESt4lessIS5_ESaISt4pairIKS5_S8_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %200) #6
  %202 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.67", ptr %31, i32 0, i32 0
  store ptr %201, ptr %202, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %203 = load ptr, ptr %30, align 8, !tbaa !5
  %204 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorESt4lessIS5_ESaISt4pairIKS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %203) #6
  %205 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.67", ptr %32, i32 0, i32 0
  store ptr %204, ptr %205, align 8
  br label %206

206:                                              ; preds = %280, %198
  %207 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %32) #6
  br i1 %207, label %213, label %208

208:                                              ; preds = %206
  store i32 7, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %286

209:                                              ; preds = %196
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %14, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %15, align 4
  br label %287

213:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 48, ptr %33) #6
  %214 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #6
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(48) %33, ptr noundef nonnull align 8 dereferenceable(48) %214)
          to label %215 unwind label %236

215:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 80, ptr %34) #6
  invoke void @_ZN4bolt8IOTensorC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %34)
          to label %216 unwind label %240

216:                                              ; preds = %215
  %217 = getelementptr inbounds %"struct.std::pair.68", ptr %33, i32 0, i32 0
  %218 = getelementptr inbounds %"struct.bolt::IOTensor", ptr %34, i32 0, i32 0
  %219 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %218, ptr noundef nonnull align 8 dereferenceable(32) %217)
          to label %220 unwind label %244

220:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 92, ptr %35) #6
  %221 = getelementptr inbounds %"struct.std::pair.68", ptr %33, i32 0, i32 1
  %222 = call noundef ptr @_ZNKSt19__shared_ptr_accessI6TensorLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %221) #6
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %35, ptr noundef nonnull align 8 dereferenceable(32) %222)
          to label %223 unwind label %248

223:                                              ; preds = %220
  %224 = getelementptr inbounds %struct.TensorDesc, ptr %35, i32 0, i32 0
  %225 = load i32, ptr %224, align 4, !tbaa !19
  %226 = invoke noundef i32 @_Z18TypeMapBolt2DLLite8DataType(i32 noundef %225)
          to label %227 unwind label %248

227:                                              ; preds = %223
  %228 = getelementptr inbounds %"struct.bolt::IOTensor", ptr %34, i32 0, i32 1
  store i32 %226, ptr %228, align 8, !tbaa !24
  %229 = getelementptr inbounds %"struct.bolt::IOTensor", ptr %34, i32 0, i32 3
  call void @_ZNSt6vectorImSaImEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %229) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  store i32 0, ptr %36, align 4, !tbaa !36
  br label %230

230:                                              ; preds = %265, %227
  %231 = load i32, ptr %36, align 4, !tbaa !36
  %232 = getelementptr inbounds %struct.TensorDesc, ptr %35, i32 0, i32 2
  %233 = load i32, ptr %232, align 4, !tbaa !37
  %234 = icmp ult i32 %231, %233
  br i1 %234, label %252, label %235

235:                                              ; preds = %230
  store i32 9, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  br label %272

236:                                              ; preds = %213
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %14, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %15, align 4
  br label %285

240:                                              ; preds = %215
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %14, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %15, align 4
  br label %284

244:                                              ; preds = %216
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %14, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %15, align 4
  br label %283

248:                                              ; preds = %276, %272, %223, %220
  %249 = landingpad { ptr, i32 }
          cleanup
  %250 = extractvalue { ptr, i32 } %249, 0
  store ptr %250, ptr %14, align 8
  %251 = extractvalue { ptr, i32 } %249, 1
  store i32 %251, ptr %15, align 4
  br label %282

252:                                              ; preds = %230
  %253 = getelementptr inbounds %"struct.bolt::IOTensor", ptr %34, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  %254 = getelementptr inbounds %struct.TensorDesc, ptr %35, i32 0, i32 3
  %255 = getelementptr inbounds %struct.TensorDesc, ptr %35, i32 0, i32 2
  %256 = load i32, ptr %255, align 4, !tbaa !37
  %257 = sub i32 %256, 1
  %258 = load i32, ptr %36, align 4, !tbaa !36
  %259 = sub i32 %257, %258
  %260 = zext i32 %259 to i64
  %261 = getelementptr inbounds [20 x i32], ptr %254, i64 0, i64 %260
  %262 = load i32, ptr %261, align 4, !tbaa !36
  %263 = zext i32 %262 to i64
  store i64 %263, ptr %37, align 8, !tbaa !38
  invoke void @_ZNSt6vectorImSaImEE9push_backEOm(ptr noundef nonnull align 8 dereferenceable(24) %253, ptr noundef nonnull align 8 dereferenceable(8) %37)
          to label %264 unwind label %268

264:                                              ; preds = %252
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  br label %265

265:                                              ; preds = %264
  %266 = load i32, ptr %36, align 4, !tbaa !36
  %267 = add i32 %266, 1
  store i32 %267, ptr %36, align 4, !tbaa !36
  br label %230, !llvm.loop !43

268:                                              ; preds = %252
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %14, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  br label %282

272:                                              ; preds = %235
  %273 = getelementptr inbounds %struct.TensorDesc, ptr %35, i32 0, i32 1
  %274 = load i32, ptr %273, align 4, !tbaa !41
  %275 = invoke noundef i32 @_Z20LayoutMapBolt2DLLite10DataFormat(i32 noundef %274)
          to label %276 unwind label %248

276:                                              ; preds = %272
  %277 = getelementptr inbounds %"struct.bolt::IOTensor", ptr %34, i32 0, i32 2
  store i32 %275, ptr %277, align 4, !tbaa !42
  %278 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIN4bolt8IOTensorESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %278, ptr noundef nonnull align 8 dereferenceable(80) %34)
          to label %279 unwind label %248

279:                                              ; preds = %276
  call void @llvm.lifetime.end.p0(i64 92, ptr %35) #6
  call void @_ZN4bolt8IOTensorD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %34) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %34) #6
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %33) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %33) #6
  br label %280

280:                                              ; preds = %279
  %281 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #6
  br label %206

282:                                              ; preds = %268, %248
  call void @llvm.lifetime.end.p0(i64 92, ptr %35) #6
  br label %283

283:                                              ; preds = %282, %244
  call void @_ZN4bolt8IOTensorD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %34) #6
  br label %284

284:                                              ; preds = %283, %240
  call void @llvm.lifetime.end.p0(i64 80, ptr %34) #6
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %33) #6
  br label %285

285:                                              ; preds = %284, %236
  call void @llvm.lifetime.end.p0(i64 48, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorESt4lessIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %29) #6
  br label %287

286:                                              ; preds = %208
  store i32 0, ptr %4, align 4
  store i32 1, ptr %10, align 4
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorESt4lessIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %29) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %29) #6
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorESt4lessIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %20) #6
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10TensorDescSt4lessIS5_ESaISt4pairIKS5_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %12) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %291

287:                                              ; preds = %285, %209
  call void @llvm.lifetime.end.p0(i64 48, ptr %29) #6
  br label %288

288:                                              ; preds = %287, %195
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorESt4lessIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #6
  br label %289

289:                                              ; preds = %288, %119
  call void @llvm.lifetime.end.p0(i64 48, ptr %20) #6
  br label %290

290:                                              ; preds = %289, %103, %91, %87, %61
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10TensorDescSt4lessIS5_ESaISt4pairIKS5_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %12) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %293

291:                                              ; preds = %286, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  %292 = load i32, ptr %4, align 4
  ret i32 %292

293:                                              ; preds = %290
  %294 = load ptr, ptr %14, align 8
  %295 = load i32, ptr %15, align 4
  %296 = insertvalue { ptr, i32 } poison, ptr %294, 0
  %297 = insertvalue { ptr, i32 } %296, i32 %295, 1
  resume { ptr, i32 } %297
}

declare void @_ZN5Model16loadAlgorithmMapEPKcb(ptr noundef nonnull align 8 dereferenceable(4720), ptr noundef, i1 noundef zeroext) #2

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

declare noundef i32 @_ZN3CNN17mark_input_outputEv(ptr noundef nonnull align 8 dereferenceable(5265)) #2

declare void @_ZN5Model22saveAlgorithmMapToFileENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(4720), ptr noundef) #2

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

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

declare void @_ZN3CNN9get_inputB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::map.6") align 8, ptr noundef nonnull align 8 dereferenceable(5265)) #2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Tensor8get_descEv(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

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

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

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

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

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

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

declare void @_ZN3CNN10get_outputB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::map.6") align 8, ptr noundef nonnull align 8 dereferenceable(5265)) #2

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress 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 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 = { 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, !6, i64 0}
!10 = !{!"_ZTS10DLLiteInfo", !6, i64 0, !11, i64 8}
!11 = !{!"bool", !7, i64 0}
!12 = !{!13, !6, i64 8}
!13 = !{!"_ZTS15ModelHandleInfo", !6, i64 0, !6, i64 8, !14, i64 16, !6, i64 24, !11, i64 32}
!14 = !{!"_ZTS13HARDWARE_TYPE", !7, i64 0}
!15 = !{!13, !6, i64 24}
!16 = !{!17, !17, i64 0}
!17 = !{!"vtable pointer", !8, i64 0}
!18 = !{!10, !11, i64 8}
!19 = !{!20, !21, i64 0}
!20 = !{!"_ZTS10TensorDesc", !21, i64 0, !22, i64 4, !23, i64 8, !7, i64 12}
!21 = !{!"_ZTS8DataType", !7, i64 0}
!22 = !{!"_ZTS10DataFormat", !7, i64 0}
!23 = !{!"int", !7, i64 0}
!24 = !{!25, !29, i64 32}
!25 = !{!"_ZTSN4bolt8IOTensorE", !26, i64 0, !29, i64 32, !30, i64 36, !31, i64 40, !35, i64 64}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !27, i64 0, !28, i64 8, !7, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!28 = !{!"long", !7, i64 0}
!29 = !{!"_ZTSN4bolt10TensorTypeE", !7, i64 0}
!30 = !{!"_ZTSN4bolt12TensorLayoutE", !7, i64 0}
!31 = !{!"_ZTSSt6vectorImSaImEE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseImSaImEE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!35 = !{!"_ZTSSt4pairIPvmE", !6, i64 0, !28, i64 8}
!36 = !{!23, !23, i64 0}
!37 = !{!20, !23, i64 8}
!38 = !{!28, !28, i64 0}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = !{!20, !22, i64 4}
!42 = !{!25, !30, i64 36}
!43 = distinct !{!43, !40}


; 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>, TensorDesc>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, TensorDesc>>, 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>, TensorDesc>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, TensorDesc>>, 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::__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.std::allocator.3" = type { i8 }
%"class.std::map.6" = type { %"class.std::_Rb_tree.7" }
%"class.std::_Rb_tree.7" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<Tensor>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<Tensor>>>, 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>, std::shared_ptr<Tensor>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<Tensor>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_iterator.67" = type { ptr }
%"struct.std::pair.68" = type { %"class.std::__cxx11::basic_string", %"class.std::shared_ptr.70" }
%"class.std::shared_ptr.70" = type { %"class.std::__shared_ptr.71" }
%"class.std::__shared_ptr.71" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.bolt::IOTensor" = type { %"class.std::__cxx11::basic_string", i32, i32, %"class.std::vector.62", %"struct.std::pair" }
%"class.std::vector.62" = type { %"struct.std::_Vector_base.63" }
%"struct.std::_Vector_base.63" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { ptr, i64 }
%struct.TensorDesc = type { i32, i32, i32, [20 x i32] }

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z18TypeMapBolt2DLLite8DataType(i32 noundef) local_unnamed_addr #0

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

; 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
declare dso_local noundef i32 @_Z20LayoutMapBolt2DLLite10DataFormat(i32 noundef) local_unnamed_addr #0

declare void @_ZN3CNN14get_input_descB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::map") align 8, ptr noundef nonnull align 8 dereferenceable(5265)) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 -2, 1) i32 @_ZN4bolt12GetIOFormatsEPvRSt6vectorINS_8IOTensorESaIS2_EES5_(ptr nocapture noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::map", align 8
  %5 = alloca %"class.std::map", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator.3", align 1
  %8 = alloca %"class.std::map.6", align 8
  %9 = alloca %"struct.std::_Rb_tree_iterator.67", align 8
  %10 = alloca %"struct.std::_Rb_tree_iterator.67", align 8
  %11 = alloca %"struct.std::pair.68", align 8
  %12 = alloca %"struct.bolt::IOTensor", align 8
  %13 = alloca %struct.TensorDesc, align 4
  %14 = alloca i64, align 8
  %15 = alloca %"class.std::map.6", align 8
  %16 = alloca %"struct.std::_Rb_tree_iterator.67", align 8
  %17 = alloca %"struct.std::_Rb_tree_iterator.67", align 8
  %18 = alloca %"struct.std::pair.68", align 8
  %19 = alloca %"struct.bolt::IOTensor", align 8
  %20 = alloca %struct.TensorDesc, align 4
  %21 = alloca i64, align 8
  %22 = load ptr, ptr %0, align 8, !tbaa !5
  %23 = icmp eq ptr %22, null
  br i1 %23, label %171, label %24

24:                                               ; preds = %3
  %25 = getelementptr inbounds i8, ptr %22, i64 8
  %26 = load ptr, ptr %25, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #6
  call void @_ZN3CNN14get_input_descB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::map") align 8 %4, ptr noundef nonnull align 8 dereferenceable(5265) %26)
  %27 = getelementptr inbounds i8, ptr %22, i64 24
  %28 = load ptr, ptr %27, align 8, !tbaa !14
  %.not = icmp eq ptr %28, null
  br i1 %.not, label %32, label %29

29:                                               ; preds = %24
  invoke void @_ZN5Model16loadAlgorithmMapEPKcb(ptr noundef nonnull align 8 dereferenceable(4720) %26, ptr noundef nonnull %28, i1 noundef zeroext false)
          to label %32 unwind label %30

30:                                               ; preds = %29
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %170

32:                                               ; preds = %29, %24
  invoke void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10TensorDescSt4lessIS5_ESaISt4pairIKS5_S6_EEEC2ERKSD_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(48) %4)
          to label %33 unwind label %44

33:                                               ; preds = %32
  %34 = load ptr, ptr %26, align 8, !tbaa !15
  %35 = getelementptr inbounds i8, ptr %34, i64 16
  %36 = load ptr, ptr %35, align 8
  invoke void %36(ptr noundef nonnull align 8 dereferenceable(5265) %26, ptr noundef nonnull %5)
          to label %37 unwind label %46

37:                                               ; preds = %33
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10TensorDescSt4lessIS5_ESaISt4pairIKS5_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
  %38 = invoke noundef i32 @_ZN3CNN17mark_input_outputEv(ptr noundef nonnull align 8 dereferenceable(5265) %26)
          to label %39 unwind label %44

39:                                               ; preds = %37
  %40 = load ptr, ptr %27, align 8, !tbaa !14
  %.not53 = icmp eq ptr %40, null
  br i1 %.not53, label %53, label %41

41:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull %40, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %42 unwind label %48

42:                                               ; preds = %41
  invoke void @_ZN5Model22saveAlgorithmMapToFileENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(4720) %26, ptr noundef nonnull %6)
          to label %43 unwind label %50

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

44:                                               ; preds = %37, %32
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %170

46:                                               ; preds = %33
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10TensorDescSt4lessIS5_ESaISt4pairIKS5_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
  br label %170

48:                                               ; preds = %41
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %52

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

52:                                               ; preds = %50, %48
  %.pn = phi { ptr, i32 } [ %51, %50 ], [ %49, %48 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  br label %170

53:                                               ; preds = %43, %39
  %54 = getelementptr inbounds i8, ptr %0, i64 8
  store i8 1, ptr %54, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #6
  invoke void @_ZN3CNN9get_inputB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::map.6") align 8 %8, ptr noundef nonnull align 8 dereferenceable(5265) %26)
          to label %55 unwind label %66

55:                                               ; preds = %53
  call void @_ZNSt6vectorIN4bolt8IOTensorESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %56 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorESt4lessIS5_ESaISt4pairIKS5_S8_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  store ptr %56, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %57 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorESt4lessIS5_ESaISt4pairIKS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  store ptr %57, ptr %10, align 8
  %58 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %58, label %.lr.ph71, label %._crit_edge72

.lr.ph71:                                         ; preds = %55
  %59 = getelementptr inbounds i8, ptr %11, i64 32
  %60 = getelementptr inbounds i8, ptr %12, i64 32
  %61 = getelementptr inbounds i8, ptr %12, i64 40
  %62 = getelementptr inbounds i8, ptr %13, i64 8
  %63 = getelementptr inbounds i8, ptr %13, i64 12
  %64 = getelementptr inbounds i8, ptr %13, i64 4
  %65 = getelementptr inbounds i8, ptr %12, i64 36
  br label %68

._crit_edge72:                                    ; preds = %104, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %15) #6
  invoke void @_ZN3CNN10get_outputB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::map.6") align 8 %15, ptr noundef nonnull align 8 dereferenceable(5265) %26)
          to label %111 unwind label %122

66:                                               ; preds = %53
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %169

68:                                               ; preds = %.lr.ph71, %104
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %11) #6
  %69 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 8 dereferenceable(48) %69)
          to label %70 unwind label %82

70:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #6
  invoke void @_ZN4bolt8IOTensorC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %12)
          to label %71 unwind label %84

71:                                               ; preds = %70
  %72 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %73 unwind label %86

73:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %13) #6
  %74 = call noundef ptr @_ZNKSt19__shared_ptr_accessI6TensorLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %59) #6
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %13, ptr noundef nonnull align 8 dereferenceable(32) %74)
          to label %75 unwind label %88

75:                                               ; preds = %73
  %76 = load i32, ptr %13, align 4, !tbaa !18
  %77 = invoke noundef i32 @_Z18TypeMapBolt2DLLite8DataType(i32 noundef %76)
          to label %78 unwind label %88

78:                                               ; preds = %75
  store i32 %77, ptr %60, align 8, !tbaa !23
  call void @_ZNSt6vectorImSaImEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #6
  %79 = load i32, ptr %62, align 4, !tbaa !35
  %.not80 = icmp eq i32 %79, 0
  br i1 %.not80, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %97, %78
  %80 = load i32, ptr %64, align 4, !tbaa !36
  %81 = invoke noundef i32 @_Z20LayoutMapBolt2DLLite10DataFormat(i32 noundef %80)
          to label %103 unwind label %88

82:                                               ; preds = %68
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %110

84:                                               ; preds = %70
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %109

86:                                               ; preds = %71
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %108

88:                                               ; preds = %103, %._crit_edge, %75, %73
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %107

.lr.ph:                                           ; preds = %78, %97
  %90 = phi i32 [ %99, %97 ], [ %79, %78 ]
  %.03569 = phi i32 [ %98, %97 ], [ 0, %78 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %91 = xor i32 %.03569, -1
  %92 = add i32 %90, %91
  %93 = zext i32 %92 to i64
  %94 = getelementptr inbounds [20 x i32], ptr %63, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !37
  %96 = zext i32 %95 to i64
  store i64 %96, ptr %14, align 8, !tbaa !38
  invoke void @_ZNSt6vectorImSaImEE9push_backEOm(ptr noundef nonnull align 8 dereferenceable(24) %61, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %97 unwind label %101

97:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  %98 = add nuw i32 %.03569, 1
  %99 = load i32, ptr %62, align 4, !tbaa !35
  %100 = icmp ult i32 %98, %99
  br i1 %100, label %.lr.ph, label %._crit_edge, !llvm.loop !39

101:                                              ; preds = %.lr.ph
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %107

103:                                              ; preds = %._crit_edge
  store i32 %81, ptr %65, align 4, !tbaa !41
  invoke void @_ZNSt6vectorIN4bolt8IOTensorESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(80) %12)
          to label %104 unwind label %88

104:                                              ; preds = %103
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %13) #6
  call void @_ZN4bolt8IOTensorD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %12) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #6
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #6
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %106 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %106, label %68, label %._crit_edge72

107:                                              ; preds = %101, %88
  %.pn61 = phi { ptr, i32 } [ %102, %101 ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %13) #6
  br label %108

108:                                              ; preds = %107, %86
  %.pn61.pn = phi { ptr, i32 } [ %.pn61, %107 ], [ %87, %86 ]
  call void @_ZN4bolt8IOTensorD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %12) #6
  br label %109

109:                                              ; preds = %108, %84
  %.pn61.pn.pn = phi { ptr, i32 } [ %.pn61.pn, %108 ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #6
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #6
  br label %110

110:                                              ; preds = %109, %82
  %.pn61.pn.pn.pn = phi { ptr, i32 } [ %.pn61.pn.pn, %109 ], [ %83, %82 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %168

111:                                              ; preds = %._crit_edge72
  call void @_ZNSt6vectorIN4bolt8IOTensorESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  %112 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorESt4lessIS5_ESaISt4pairIKS5_S8_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %15) #6
  store ptr %112, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  %113 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorESt4lessIS5_ESaISt4pairIKS5_S8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %15) #6
  store ptr %113, ptr %17, align 8
  %114 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br i1 %114, label %.lr.ph78, label %._crit_edge79

.lr.ph78:                                         ; preds = %111
  %115 = getelementptr inbounds i8, ptr %18, i64 32
  %116 = getelementptr inbounds i8, ptr %19, i64 32
  %117 = getelementptr inbounds i8, ptr %19, i64 40
  %118 = getelementptr inbounds i8, ptr %20, i64 8
  %119 = getelementptr inbounds i8, ptr %20, i64 12
  %120 = getelementptr inbounds i8, ptr %20, i64 4
  %121 = getelementptr inbounds i8, ptr %19, i64 36
  br label %124

._crit_edge79:                                    ; preds = %160, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorESt4lessIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %15) #6
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorESt4lessIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #6
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10TensorDescSt4lessIS5_ESaISt4pairIKS5_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #6
  br label %171

122:                                              ; preds = %._crit_edge72
  %123 = landingpad { ptr, i32 }
          cleanup
  br label %167

124:                                              ; preds = %.lr.ph78, %160
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %18) #6
  %125 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef nonnull align 8 dereferenceable(48) %125)
          to label %126 unwind label %138

126:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %19) #6
  invoke void @_ZN4bolt8IOTensorC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %19)
          to label %127 unwind label %140

127:                                              ; preds = %126
  %128 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %129 unwind label %142

129:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %20) #6
  %130 = call noundef ptr @_ZNKSt19__shared_ptr_accessI6TensorLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %115) #6
  invoke void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %20, ptr noundef nonnull align 8 dereferenceable(32) %130)
          to label %131 unwind label %144

131:                                              ; preds = %129
  %132 = load i32, ptr %20, align 4, !tbaa !18
  %133 = invoke noundef i32 @_Z18TypeMapBolt2DLLite8DataType(i32 noundef %132)
          to label %134 unwind label %144

134:                                              ; preds = %131
  store i32 %133, ptr %116, align 8, !tbaa !23
  call void @_ZNSt6vectorImSaImEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %117) #6
  %135 = load i32, ptr %118, align 4, !tbaa !35
  %.not81 = icmp eq i32 %135, 0
  br i1 %.not81, label %._crit_edge76, label %.lr.ph75

._crit_edge76:                                    ; preds = %153, %134
  %136 = load i32, ptr %120, align 4, !tbaa !36
  %137 = invoke noundef i32 @_Z20LayoutMapBolt2DLLite10DataFormat(i32 noundef %136)
          to label %159 unwind label %144

138:                                              ; preds = %124
  %139 = landingpad { ptr, i32 }
          cleanup
  br label %166

140:                                              ; preds = %126
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %165

142:                                              ; preds = %127
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %164

144:                                              ; preds = %159, %._crit_edge76, %131, %129
  %145 = landingpad { ptr, i32 }
          cleanup
  br label %163

.lr.ph75:                                         ; preds = %134, %153
  %146 = phi i32 [ %155, %153 ], [ %135, %134 ]
  %.073 = phi i32 [ %154, %153 ], [ 0, %134 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #6
  %147 = xor i32 %.073, -1
  %148 = add i32 %146, %147
  %149 = zext i32 %148 to i64
  %150 = getelementptr inbounds [20 x i32], ptr %119, i64 0, i64 %149
  %151 = load i32, ptr %150, align 4, !tbaa !37
  %152 = zext i32 %151 to i64
  store i64 %152, ptr %21, align 8, !tbaa !38
  invoke void @_ZNSt6vectorImSaImEE9push_backEOm(ptr noundef nonnull align 8 dereferenceable(24) %117, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %153 unwind label %157

153:                                              ; preds = %.lr.ph75
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  %154 = add nuw i32 %.073, 1
  %155 = load i32, ptr %118, align 4, !tbaa !35
  %156 = icmp ult i32 %154, %155
  br i1 %156, label %.lr.ph75, label %._crit_edge76, !llvm.loop !42

157:                                              ; preds = %.lr.ph75
  %158 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  br label %163

159:                                              ; preds = %._crit_edge76
  store i32 %137, ptr %121, align 4, !tbaa !41
  invoke void @_ZNSt6vectorIN4bolt8IOTensorESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(80) %19)
          to label %160 unwind label %144

160:                                              ; preds = %159
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %20) #6
  call void @_ZN4bolt8IOTensorD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %19) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %19) #6
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %18) #6
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  %162 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br i1 %162, label %124, label %._crit_edge79

163:                                              ; preds = %157, %144
  %.pn55 = phi { ptr, i32 } [ %158, %157 ], [ %145, %144 ]
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %20) #6
  br label %164

164:                                              ; preds = %163, %142
  %.pn55.pn = phi { ptr, i32 } [ %.pn55, %163 ], [ %143, %142 ]
  call void @_ZN4bolt8IOTensorD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %19) #6
  br label %165

165:                                              ; preds = %164, %140
  %.pn55.pn.pn = phi { ptr, i32 } [ %.pn55.pn, %164 ], [ %141, %140 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %19) #6
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #6
  br label %166

166:                                              ; preds = %165, %138
  %.pn55.pn.pn.pn = phi { ptr, i32 } [ %.pn55.pn.pn, %165 ], [ %139, %138 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorESt4lessIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #6
  br label %167

167:                                              ; preds = %166, %122
  %.pn55.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn55.pn.pn.pn, %166 ], [ %123, %122 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %15) #6
  br label %168

168:                                              ; preds = %167, %110
  %.pn61.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn61.pn.pn.pn, %110 ], [ %.pn55.pn.pn.pn.pn, %167 ]
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI6TensorESt4lessIS5_ESaISt4pairIKS5_S8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  br label %169

169:                                              ; preds = %168, %66
  %.pn61.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn61.pn.pn.pn.pn, %168 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #6
  br label %170

170:                                              ; preds = %169, %52, %46, %44, %30
  %.pn61.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn61.pn.pn.pn.pn.pn, %169 ], [ %.pn, %52 ], [ %45, %44 ], [ %47, %46 ], [ %31, %30 ]
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE10TensorDescSt4lessIS5_ESaISt4pairIKS5_S6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn61.pn.pn.pn.pn.pn.pn

171:                                              ; preds = %3, %._crit_edge79
  %.034 = phi i32 [ 0, %._crit_edge79 ], [ -2, %3 ]
  ret i32 %.034
}

declare void @_ZN5Model16loadAlgorithmMapEPKcb(ptr noundef nonnull align 8 dereferenceable(4720), ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

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

declare noundef i32 @_ZN3CNN17mark_input_outputEv(ptr noundef nonnull align 8 dereferenceable(5265)) local_unnamed_addr #2

declare void @_ZN5Model22saveAlgorithmMapToFileENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(4720), ptr noundef) local_unnamed_addr #2

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

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

declare void @_ZN3CNN9get_inputB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::map.6") align 8, ptr noundef nonnull align 8 dereferenceable(5265)) local_unnamed_addr #2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Tensor8get_descEv(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

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

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

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

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

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

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

declare void @_ZN3CNN10get_outputB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::map.6") align 8, ptr noundef nonnull align 8 dereferenceable(5265)) local_unnamed_addr #2

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress 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 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 = { 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, !7, i64 0}
!6 = !{!"_ZTS10DLLiteInfo", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!12, !7, i64 8}
!12 = !{!"_ZTS15ModelHandleInfo", !7, i64 0, !7, i64 8, !13, i64 16, !7, i64 24, !10, i64 32}
!13 = !{!"_ZTS13HARDWARE_TYPE", !8, i64 0}
!14 = !{!12, !7, i64 24}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !9, i64 0}
!17 = !{!6, !10, i64 8}
!18 = !{!19, !20, i64 0}
!19 = !{!"_ZTS10TensorDesc", !20, i64 0, !21, i64 4, !22, i64 8, !8, i64 12}
!20 = !{!"_ZTS8DataType", !8, i64 0}
!21 = !{!"_ZTS10DataFormat", !8, i64 0}
!22 = !{!"int", !8, i64 0}
!23 = !{!24, !28, i64 32}
!24 = !{!"_ZTSN4bolt8IOTensorE", !25, i64 0, !28, i64 32, !29, i64 36, !30, i64 40, !34, i64 64}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !26, i64 0, !27, i64 8, !8, i64 16}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !7, i64 0}
!27 = !{!"long", !8, i64 0}
!28 = !{!"_ZTSN4bolt10TensorTypeE", !8, i64 0}
!29 = !{!"_ZTSN4bolt12TensorLayoutE", !8, i64 0}
!30 = !{!"_ZTSSt6vectorImSaImEE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseImSaImEE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!34 = !{!"_ZTSSt4pairIPvmE", !7, i64 0, !27, i64 8}
!35 = !{!19, !22, i64 8}
!36 = !{!19, !21, i64 4}
!37 = !{!22, !22, i64 0}
!38 = !{!27, !27, i64 0}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = !{!24, !29, i64 36}
!42 = distinct !{!42, !40}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass