; LLVM IR from plaidml/plaidml :: networks/oplib (run)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"struct.std::experimental::fundamentals_v2::source_location" = type { ptr, ptr, i32, i32 }
%"class.plaidml::Program" = type { %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { 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" = type { i8 }
%"class.plaidml::exec::Executable" = type { %"class.std::shared_ptr.0" }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<plaidml::Buffer, std::allocator<plaidml::Buffer>>::_Vector_impl" }
%"struct.std::_Vector_base<plaidml::Buffer, std::allocator<plaidml::Buffer>>::_Vector_impl" = type { %"struct.std::_Vector_base<plaidml::Buffer, std::allocator<plaidml::Buffer>>::_Vector_impl_data" }
%"struct.std::_Vector_base<plaidml::Buffer, std::allocator<plaidml::Buffer>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<plaidml::TensorShape, std::allocator<plaidml::TensorShape>>::_Vector_impl" }
%"struct.std::_Vector_base<plaidml::TensorShape, std::allocator<plaidml::TensorShape>>::_Vector_impl" = type { %"struct.std::_Vector_base<plaidml::TensorShape, std::allocator<plaidml::TensorShape>>::_Vector_impl_data" }
%"struct.std::_Vector_base<plaidml::TensorShape, std::allocator<plaidml::TensorShape>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZTISt9exception = external constant ptr
@.str = external hidden unnamed_addr constant [71 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.4 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"struct.std::experimental::fundamentals_v2::source_location", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.plaidml::Program", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"struct.std::experimental::fundamentals_v2::source_location", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator", align 1
  %14 = alloca %"struct.std::experimental::fundamentals_v2::source_location", align 8
  %15 = alloca %"class.plaidml::exec::Executable", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::allocator", align 1
  %18 = alloca %"class.std::vector", align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.std::vector.6", align 8
  %21 = alloca %"struct.std::experimental::fundamentals_v2::source_location", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"class.std::vector", align 8
  %26 = alloca ptr, align 8
  %27 = alloca %"class.std::vector.6", align 8
  %28 = alloca %"struct.std::experimental::fundamentals_v2::source_location", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @_ZNSt12experimental15fundamentals_v215source_location7currentEPKcS3_ii(ptr dead_on_unwind writable sret(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %6, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 12, i32 noundef 0) #9
  invoke void @_ZN7plaidml4initENSt12experimental15fundamentals_v215source_locationE(ptr noundef byval(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %6)
          to label %33 unwind label %61

33:                                               ; preds = %2
  invoke void @_ZN7plaidml4edsl4initEv()
          to label %34 unwind label %61

34:                                               ; preds = %33
  invoke void @_ZN7plaidml2op4initEv()
          to label %35 unwind label %61

35:                                               ; preds = %34
  invoke void @_ZN7plaidml4exec4initEv()
          to label %36 unwind label %61

36:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #9
  invoke void @_ZN8networks5oplib13buildResnet50El(ptr dead_on_unwind writable sret(%"class.plaidml::Program") align 8 %9, i64 noundef 1)
          to label %37 unwind label %65

37:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #9
  call void @_ZNSt12experimental15fundamentals_v215source_location7currentEPKcS3_ii(ptr dead_on_unwind writable sret(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %11, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 17, i32 noundef 0) #9
  invoke void @_ZNK7plaidml7Program3strB5cxx11ENSt12experimental15fundamentals_v215source_locationE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef byval(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %11)
          to label %38 unwind label %69

38:                                               ; preds = %37
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %40 unwind label %73

40:                                               ; preds = %38
  %41 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %42 unwind label %73

42:                                               ; preds = %40
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %43 unwind label %78

43:                                               ; preds = %42
  call void @_ZNSt12experimental15fundamentals_v215source_location7currentEPKcS3_ii(ptr dead_on_unwind writable sret(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %14, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 18, i32 noundef 0) #9
  invoke void @_ZN7plaidml7Program7compileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbNSt12experimental15fundamentals_v215source_locationE(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(32) %12, i1 noundef zeroext false, ptr noundef byval(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %14)
          to label %44 unwind label %82

44:                                               ; preds = %43
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %45 unwind label %87

45:                                               ; preds = %44
  invoke void @_ZN7plaidml4exec10ExecutableC2ERKNS_7ProgramERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %46 unwind label %91

46:                                               ; preds = %45
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #9
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
          to label %48 unwind label %96

48:                                               ; preds = %46
  %49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %50 unwind label %96

50:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #9
  call void @_ZNSt6vectorIN7plaidml6BufferESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #9
  call void @_ZNSt12experimental15fundamentals_v215source_location7currentEPKcS3_ii(ptr dead_on_unwind writable sret(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %21, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 22, i32 noundef 0) #9
  invoke void @_ZNK7plaidml7Program6inputsENSt12experimental15fundamentals_v215source_locationE(ptr dead_on_unwind writable sret(%"class.std::vector.6") align 8 %20, ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef byval(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %21)
          to label %51 unwind label %100

51:                                               ; preds = %50
  store ptr %20, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %52 = load ptr, ptr %19, align 8, !tbaa !9
  %53 = call ptr @_ZNSt6vectorIN7plaidml11TensorShapeESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #9
  %54 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %53, ptr %54, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %55 = load ptr, ptr %19, align 8, !tbaa !9
  %56 = call ptr @_ZNSt6vectorIN7plaidml11TensorShapeESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #9
  %57 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %56, ptr %57, align 8
  br label %58

58:                                               ; preds = %109, %51
  %59 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7plaidml11TensorShapeESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #9
  br i1 %59, label %104, label %60

60:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @_ZNSt6vectorIN7plaidml11TensorShapeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  br label %116

61:                                               ; preds = %35, %34, %33, %2
  %62 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %7, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %8, align 4
  br label %156

65:                                               ; preds = %36
  %66 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %7, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %8, align 4
  br label %155

69:                                               ; preds = %37
  %70 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %7, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %8, align 4
  br label %77

73:                                               ; preds = %40, %38
  %74 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %7, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #9
  br label %77

77:                                               ; preds = %73, %69
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #9
  br label %154

78:                                               ; preds = %42
  %79 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %7, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %8, align 4
  br label %86

82:                                               ; preds = %43
  %83 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %7, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  br label %86

86:                                               ; preds = %82, %78
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #9
  br label %154

87:                                               ; preds = %44
  %88 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %7, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %8, align 4
  br label %95

91:                                               ; preds = %45
  %92 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %7, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #9
  br label %95

95:                                               ; preds = %91, %87
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #9
  br label %153

96:                                               ; preds = %48, %46
  %97 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %7, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %8, align 4
  br label %152

100:                                              ; preds = %50
  %101 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %7, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %8, align 4
  br label %115

104:                                              ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %105 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7plaidml11TensorShapeESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  store ptr %105, ptr %24, align 8, !tbaa !9
  %106 = load ptr, ptr %24, align 8, !tbaa !9
  %107 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7plaidml6BufferESaIS1_EE12emplace_backIJRKNS0_11TensorShapeEEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(16) %106)
          to label %108 unwind label %111

108:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  br label %109

109:                                              ; preds = %108
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7plaidml11TensorShapeESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  br label %58

111:                                              ; preds = %104
  %112 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %7, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @_ZNSt6vectorIN7plaidml11TensorShapeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #9
  br label %115

115:                                              ; preds = %111, %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  br label %151

116:                                              ; preds = %60
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #9
  call void @_ZNSt6vectorIN7plaidml6BufferESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #9
  call void @_ZNSt12experimental15fundamentals_v215source_location7currentEPKcS3_ii(ptr dead_on_unwind writable sret(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %28, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 26, i32 noundef 0) #9
  invoke void @_ZNK7plaidml7Program7outputsENSt12experimental15fundamentals_v215source_locationE(ptr dead_on_unwind writable sret(%"class.std::vector.6") align 8 %27, ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef byval(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %28)
          to label %117 unwind label %127

117:                                              ; preds = %116
  store ptr %27, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  %118 = load ptr, ptr %26, align 8, !tbaa !9
  %119 = call ptr @_ZNSt6vectorIN7plaidml11TensorShapeESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %118) #9
  %120 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  store ptr %119, ptr %120, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %121 = load ptr, ptr %26, align 8, !tbaa !9
  %122 = call ptr @_ZNSt6vectorIN7plaidml11TensorShapeESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %121) #9
  %123 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  store ptr %122, ptr %123, align 8
  br label %124

124:                                              ; preds = %136, %117
  %125 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7plaidml11TensorShapeESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #9
  br i1 %125, label %131, label %126

126:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @_ZNSt6vectorIN7plaidml11TensorShapeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  br label %143

127:                                              ; preds = %116
  %128 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %7, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %8, align 4
  br label %142

131:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  %132 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7plaidml11TensorShapeESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #9
  store ptr %132, ptr %31, align 8, !tbaa !9
  %133 = load ptr, ptr %31, align 8, !tbaa !9
  %134 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7plaidml6BufferESaIS1_EE12emplace_backIJRKNS0_11TensorShapeEEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(16) %133)
          to label %135 unwind label %138

135:                                              ; preds = %131
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  br label %136

136:                                              ; preds = %135
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7plaidml11TensorShapeESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #9
  br label %124

138:                                              ; preds = %131
  %139 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %7, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @_ZNSt6vectorIN7plaidml11TensorShapeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #9
  br label %142

142:                                              ; preds = %138, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  br label %150

143:                                              ; preds = %126
  %144 = invoke noundef double @_ZN7plaidml4exec10Executable3runERKSt6vectorINS_6BufferESaIS3_EES7_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %145 unwind label %146

145:                                              ; preds = %143
  store i32 0, ptr %3, align 4
  call void @_ZNSt6vectorIN7plaidml6BufferESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #9
  call void @_ZNSt6vectorIN7plaidml6BufferESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #9
  call void @_ZN7plaidml4exec10ExecutableD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  call void @_ZN7plaidml7ProgramD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #9
  br label %191

146:                                              ; preds = %143
  %147 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %7, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %8, align 4
  br label %150

150:                                              ; preds = %146, %142
  call void @_ZNSt6vectorIN7plaidml6BufferESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #9
  br label %151

151:                                              ; preds = %150, %115
  call void @_ZNSt6vectorIN7plaidml6BufferESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #9
  br label %152

152:                                              ; preds = %151, %96
  call void @_ZN7plaidml4exec10ExecutableD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #9
  br label %153

153:                                              ; preds = %152, %95
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  br label %154

154:                                              ; preds = %153, %86, %77
  call void @_ZN7plaidml7ProgramD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #9
  br label %155

155:                                              ; preds = %154, %65
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #9
  br label %156

156:                                              ; preds = %155, %61
  %157 = load i32, ptr %8, align 4
  %158 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #9
  %159 = icmp eq i32 %157, %158
  br i1 %159, label %160, label %174

160:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #9
  %161 = load ptr, ptr %7, align 8
  %162 = call ptr @__cxa_begin_catch(ptr %161) #9
  store ptr %162, ptr %32, align 8
  %163 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.5)
          to label %164 unwind label %186

164:                                              ; preds = %160
  %165 = load ptr, ptr %32, align 8, !tbaa !9
  %166 = load ptr, ptr %165, align 8, !tbaa !11
  %167 = getelementptr inbounds ptr, ptr %166, i64 2
  %168 = load ptr, ptr %167, align 8
  %169 = call noundef ptr %168(ptr noundef nonnull align 8 dereferenceable(8) %165) #9
  %170 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %163, ptr noundef %169)
          to label %171 unwind label %186

171:                                              ; preds = %164
  %172 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %170, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %173 unwind label %186

173:                                              ; preds = %171
  store i32 1, ptr %3, align 4
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  br label %191

174:                                              ; preds = %156
  %175 = load ptr, ptr %7, align 8
  %176 = call ptr @__cxa_begin_catch(ptr %175) #9
  %177 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.4)
          to label %178 unwind label %181

178:                                              ; preds = %174
  %179 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %177, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %180 unwind label %181

180:                                              ; preds = %178
  store i32 1, ptr %3, align 4
  call void @__cxa_end_catch()
  br label %191

181:                                              ; preds = %178, %174
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %7, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %8, align 4
  invoke void @__cxa_end_catch()
          to label %185 unwind label %198

185:                                              ; preds = %181
  br label %193

186:                                              ; preds = %171, %164, %160
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %7, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %8, align 4
  invoke void @__cxa_end_catch()
          to label %190 unwind label %198

190:                                              ; preds = %186
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  br label %193

191:                                              ; preds = %180, %173, %145
  %192 = load i32, ptr %3, align 4
  ret i32 %192

193:                                              ; preds = %190, %185
  %194 = load ptr, ptr %7, align 8
  %195 = load i32, ptr %8, align 4
  %196 = insertvalue { ptr, i32 } poison, ptr %194, 0
  %197 = insertvalue { ptr, i32 } %196, i32 %195, 1
  resume { ptr, i32 } %197

198:                                              ; preds = %186, %181
  %199 = landingpad { ptr, i32 }
          catch ptr null
  %200 = extractvalue { ptr, i32 } %199, 0
  call void @__clang_call_terminate(ptr %200) #10
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7plaidml4initENSt12experimental15fundamentals_v215source_locationE(ptr noundef byval(%"struct.std::experimental::fundamentals_v2::source_location") align 8) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12experimental15fundamentals_v215source_location7currentEPKcS3_ii(ptr dead_on_unwind noalias writable sret(%"struct.std::experimental::fundamentals_v2::source_location") align 8, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7plaidml4edsl4initEv() #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7plaidml2op4initEv() #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7plaidml4exec4initEv() #1

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

declare void @_ZN8networks5oplib13buildResnet50El(ptr dead_on_unwind writable sret(%"class.plaidml::Program") align 8, i64 noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7plaidml7Program3strB5cxx11ENSt12experimental15fundamentals_v215source_locationE(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef byval(%"struct.std::experimental::fundamentals_v2::source_location") align 8) #5 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7plaidml7Program7compileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbNSt12experimental15fundamentals_v215source_locationE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext, ptr noundef byval(%"struct.std::experimental::fundamentals_v2::source_location") align 8) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 #5 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7plaidml7Program6inputsENSt12experimental15fundamentals_v215source_locationE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.6") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef byval(%"struct.std::experimental::fundamentals_v2::source_location") align 8) #5 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7plaidml7Program7outputsENSt12experimental15fundamentals_v215source_locationE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.6") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef byval(%"struct.std::experimental::fundamentals_v2::source_location") align 8) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN7plaidml4exec10Executable3runERKSt6vectorINS_6BufferESaIS3_EES7_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7plaidml4exec10ExecutableD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7plaidml7ProgramD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6 align 2

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #7

declare ptr @__cxa_begin_catch(ptr)

declare void @__cxa_end_catch()

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #8

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


; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"struct.std::experimental::fundamentals_v2::source_location" = type { ptr, ptr, i32, i32 }
%"class.plaidml::Program" = type { %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { 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" = type { i8 }
%"class.plaidml::exec::Executable" = type { %"class.std::shared_ptr.0" }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<plaidml::Buffer, std::allocator<plaidml::Buffer>>::_Vector_impl" }
%"struct.std::_Vector_base<plaidml::Buffer, std::allocator<plaidml::Buffer>>::_Vector_impl" = type { %"struct.std::_Vector_base<plaidml::Buffer, std::allocator<plaidml::Buffer>>::_Vector_impl_data" }
%"struct.std::_Vector_base<plaidml::Buffer, std::allocator<plaidml::Buffer>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<plaidml::TensorShape, std::allocator<plaidml::TensorShape>>::_Vector_impl" }
%"struct.std::_Vector_base<plaidml::TensorShape, std::allocator<plaidml::TensorShape>>::_Vector_impl" = type { %"struct.std::_Vector_base<plaidml::TensorShape, std::allocator<plaidml::TensorShape>>::_Vector_impl_data" }
%"struct.std::_Vector_base<plaidml::TensorShape, std::allocator<plaidml::TensorShape>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZTISt9exception = external constant ptr
@.str = external hidden unnamed_addr constant [71 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.4 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.std::experimental::fundamentals_v2::source_location", align 8
  %4 = alloca %"class.plaidml::Program", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"struct.std::experimental::fundamentals_v2::source_location", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca %"struct.std::experimental::fundamentals_v2::source_location", align 8
  %10 = alloca %"class.plaidml::exec::Executable", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca %"class.std::vector.6", align 8
  %15 = alloca %"struct.std::experimental::fundamentals_v2::source_location", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.std::vector", align 8
  %19 = alloca %"class.std::vector.6", align 8
  %20 = alloca %"struct.std::experimental::fundamentals_v2::source_location", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  call void @_ZNSt12experimental15fundamentals_v215source_location7currentEPKcS3_ii(ptr dead_on_unwind nonnull writable sret(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %3, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 12, i32 noundef 0) #9
  invoke void @_ZN7plaidml4initENSt12experimental15fundamentals_v215source_locationE(ptr noundef nonnull byval(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %3)
          to label %23 unwind label %45

23:                                               ; preds = %2
  invoke void @_ZN7plaidml4edsl4initEv()
          to label %24 unwind label %45

24:                                               ; preds = %23
  invoke void @_ZN7plaidml2op4initEv()
          to label %25 unwind label %45

25:                                               ; preds = %24
  invoke void @_ZN7plaidml4exec4initEv()
          to label %26 unwind label %45

26:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #9
  invoke void @_ZN8networks5oplib13buildResnet50El(ptr dead_on_unwind nonnull writable sret(%"class.plaidml::Program") align 8 %4, i64 noundef 1)
          to label %27 unwind label %47

27:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #9
  call void @_ZNSt12experimental15fundamentals_v215source_location7currentEPKcS3_ii(ptr dead_on_unwind nonnull writable sret(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %6, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 17, i32 noundef 0) #9
  invoke void @_ZNK7plaidml7Program3strB5cxx11ENSt12experimental15fundamentals_v215source_locationE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull byval(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %6)
          to label %28 unwind label %49

28:                                               ; preds = %27
  %29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %30 unwind label %51

30:                                               ; preds = %28
  %31 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %32 unwind label %51

32:                                               ; preds = %30
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %33 unwind label %54

33:                                               ; preds = %32
  call void @_ZNSt12experimental15fundamentals_v215source_location7currentEPKcS3_ii(ptr dead_on_unwind nonnull writable sret(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %9, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 18, i32 noundef 0) #9
  invoke void @_ZN7plaidml7Program7compileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbNSt12experimental15fundamentals_v215source_locationE(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(32) %7, i1 noundef zeroext false, ptr noundef nonnull byval(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %9)
          to label %34 unwind label %56

34:                                               ; preds = %33
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %35 unwind label %59

35:                                               ; preds = %34
  invoke void @_ZN7plaidml4exec10ExecutableC2ERKNS_7ProgramERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %36 unwind label %61

36:                                               ; preds = %35
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(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 32, ptr nonnull %11) #9
  %37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
          to label %38 unwind label %64

38:                                               ; preds = %36
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %40 unwind label %64

40:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #9
  call void @_ZNSt6vectorIN7plaidml6BufferESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #9
  call void @_ZNSt12experimental15fundamentals_v215source_location7currentEPKcS3_ii(ptr dead_on_unwind nonnull writable sret(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %15, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 22, i32 noundef 0) #9
  invoke void @_ZNK7plaidml7Program6inputsENSt12experimental15fundamentals_v215source_locationE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.6") align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull byval(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %15)
          to label %41 unwind label %66

41:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #9
  %42 = call ptr @_ZNSt6vectorIN7plaidml11TensorShapeESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  store ptr %42, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #9
  %43 = call ptr @_ZNSt6vectorIN7plaidml11TensorShapeESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  store ptr %43, ptr %17, align 8
  %44 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7plaidml11TensorShapeESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  br i1 %44, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %70, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  call void @_ZNSt6vectorIN7plaidml11TensorShapeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #9
  call void @_ZNSt6vectorIN7plaidml6BufferESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #9
  call void @_ZNSt12experimental15fundamentals_v215source_location7currentEPKcS3_ii(ptr dead_on_unwind nonnull writable sret(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %20, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 26, i32 noundef 0) #9
  invoke void @_ZNK7plaidml7Program7outputsENSt12experimental15fundamentals_v215source_locationE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.6") align 8 %19, ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull byval(%"struct.std::experimental::fundamentals_v2::source_location") align 8 %20)
          to label %75 unwind label %80

45:                                               ; preds = %25, %24, %23, %2
  %46 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %98

47:                                               ; preds = %26
  %48 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %97

49:                                               ; preds = %27
  %50 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %53

51:                                               ; preds = %30, %28
  %52 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #9
  br label %53

53:                                               ; preds = %51, %49
  %.pn = phi { ptr, i32 } [ %52, %51 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  br label %96

54:                                               ; preds = %32
  %55 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %58

56:                                               ; preds = %33
  %57 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  br label %58

58:                                               ; preds = %56, %54
  %.pn27 = phi { ptr, i32 } [ %57, %56 ], [ %55, %54 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #9
  br label %96

59:                                               ; preds = %34
  %60 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %63

61:                                               ; preds = %35
  %62 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #9
  br label %63

63:                                               ; preds = %61, %59
  %.pn29 = phi { ptr, i32 } [ %62, %61 ], [ %60, %59 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(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 32, ptr nonnull %11) #9
  br label %95

64:                                               ; preds = %38, %36
  %65 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %94

66:                                               ; preds = %40
  %67 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %93

.lr.ph:                                           ; preds = %41, %70
  %68 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7plaidml11TensorShapeESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  %69 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7plaidml6BufferESaIS1_EE12emplace_backIJRKNS0_11TensorShapeEEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(16) %68)
          to label %70 unwind label %73

70:                                               ; preds = %.lr.ph
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7plaidml11TensorShapeESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  %72 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7plaidml11TensorShapeESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  br i1 %72, label %.lr.ph, label %._crit_edge

73:                                               ; preds = %.lr.ph
  %74 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  call void @_ZNSt6vectorIN7plaidml11TensorShapeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #9
  br label %93

75:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #9
  %76 = call ptr @_ZNSt6vectorIN7plaidml11TensorShapeESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #9
  store ptr %76, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #9
  %77 = call ptr @_ZNSt6vectorIN7plaidml11TensorShapeESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #9
  store ptr %77, ptr %22, align 8
  %78 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7plaidml11TensorShapeESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  br i1 %78, label %.lr.ph45, label %._crit_edge46

._crit_edge46:                                    ; preds = %84, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #9
  call void @_ZNSt6vectorIN7plaidml11TensorShapeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #9
  %79 = invoke noundef double @_ZN7plaidml4exec10Executable3runERKSt6vectorINS_6BufferESaIS3_EES7_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %89 unwind label %90

80:                                               ; preds = %._crit_edge
  %81 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %92

.lr.ph45:                                         ; preds = %75, %84
  %82 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7plaidml11TensorShapeESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #9
  %83 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7plaidml6BufferESaIS1_EE12emplace_backIJRKNS0_11TensorShapeEEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(16) %82)
          to label %84 unwind label %87

84:                                               ; preds = %.lr.ph45
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7plaidml11TensorShapeESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #9
  %86 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7plaidml11TensorShapeESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  br i1 %86, label %.lr.ph45, label %._crit_edge46

87:                                               ; preds = %.lr.ph45
  %88 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #9
  call void @_ZNSt6vectorIN7plaidml11TensorShapeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #9
  br label %92

89:                                               ; preds = %._crit_edge46
  call void @_ZNSt6vectorIN7plaidml6BufferESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #9
  call void @_ZNSt6vectorIN7plaidml6BufferESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #9
  call void @_ZN7plaidml4exec10ExecutableD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  call void @_ZN7plaidml7ProgramD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  br label %122

90:                                               ; preds = %._crit_edge46
  %91 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %92

92:                                               ; preds = %80, %87, %90
  %.pn31.pn = phi { ptr, i32 } [ %91, %90 ], [ %88, %87 ], [ %81, %80 ]
  call void @_ZNSt6vectorIN7plaidml6BufferESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #9
  br label %93

93:                                               ; preds = %66, %73, %92
  %.pn34.pn = phi { ptr, i32 } [ %.pn31.pn, %92 ], [ %74, %73 ], [ %67, %66 ]
  call void @_ZNSt6vectorIN7plaidml6BufferESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #9
  br label %94

94:                                               ; preds = %93, %64
  %.pn34.pn.pn = phi { ptr, i32 } [ %.pn34.pn, %93 ], [ %65, %64 ]
  call void @_ZN7plaidml4exec10ExecutableD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #9
  br label %95

95:                                               ; preds = %94, %63
  %.pn34.pn.pn.pn = phi { ptr, i32 } [ %.pn34.pn.pn, %94 ], [ %.pn29, %63 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  br label %96

96:                                               ; preds = %95, %58, %53
  %.pn34.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn34.pn.pn.pn, %95 ], [ %.pn27, %58 ], [ %.pn, %53 ]
  call void @_ZN7plaidml7ProgramD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #9
  br label %97

97:                                               ; preds = %96, %47
  %.pn34.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn34.pn.pn.pn.pn, %96 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  br label %98

98:                                               ; preds = %97, %45
  %.pn34.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn34.pn.pn.pn.pn.pn, %97 ], [ %46, %45 ]
  %.11 = extractvalue { ptr, i32 } %.pn34.pn.pn.pn.pn.pn.pn, 0
  %.1124 = extractvalue { ptr, i32 } %.pn34.pn.pn.pn.pn.pn.pn, 1
  %99 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #9
  %100 = icmp eq i32 %.1124, %99
  %101 = call ptr @__cxa_begin_catch(ptr %.11) #9
  br i1 %100, label %102, label %113

102:                                              ; preds = %98
  %103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.5)
          to label %104 unwind label %120

104:                                              ; preds = %102
  %105 = load ptr, ptr %101, align 8, !tbaa !5
  %106 = getelementptr inbounds i8, ptr %105, i64 16
  %107 = load ptr, ptr %106, align 8
  %108 = call noundef ptr %107(ptr noundef nonnull align 8 dereferenceable(8) %101) #9
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %103, ptr noundef %108)
          to label %110 unwind label %120

110:                                              ; preds = %104
  %111 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %112 unwind label %120

112:                                              ; preds = %110
  call void @__cxa_end_catch()
  br label %122

113:                                              ; preds = %98
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.4)
          to label %115 unwind label %118

115:                                              ; preds = %113
  %116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %114, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %117 unwind label %118

117:                                              ; preds = %115
  call void @__cxa_end_catch()
  br label %122

118:                                              ; preds = %115, %113
  %119 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %123 unwind label %124

120:                                              ; preds = %110, %104, %102
  %121 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %123 unwind label %124

122:                                              ; preds = %117, %112, %89
  %.0 = phi i32 [ 1, %112 ], [ 1, %117 ], [ 0, %89 ]
  ret i32 %.0

123:                                              ; preds = %120, %118
  %.pn42 = phi { ptr, i32 } [ %119, %118 ], [ %121, %120 ]
  resume { ptr, i32 } %.pn42

124:                                              ; preds = %120, %118
  %125 = landingpad { ptr, i32 }
          catch ptr null
  %126 = extractvalue { ptr, i32 } %125, 0
  call void @__clang_call_terminate(ptr %126) #10
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7plaidml4initENSt12experimental15fundamentals_v215source_locationE(ptr noundef byval(%"struct.std::experimental::fundamentals_v2::source_location") align 8) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12experimental15fundamentals_v215source_location7currentEPKcS3_ii(ptr dead_on_unwind noalias writable sret(%"struct.std::experimental::fundamentals_v2::source_location") align 8, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7plaidml4edsl4initEv() local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7plaidml2op4initEv() local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7plaidml4exec4initEv() 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) #3

declare void @_ZN8networks5oplib13buildResnet50El(ptr dead_on_unwind writable sret(%"class.plaidml::Program") align 8, i64 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7plaidml7Program3strB5cxx11ENSt12experimental15fundamentals_v215source_locationE(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef byval(%"struct.std::experimental::fundamentals_v2::source_location") align 8) local_unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7plaidml7Program7compileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbNSt12experimental15fundamentals_v215source_locationE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext, ptr noundef byval(%"struct.std::experimental::fundamentals_v2::source_location") align 8) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 #5 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7plaidml7Program6inputsENSt12experimental15fundamentals_v215source_locationE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.6") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef byval(%"struct.std::experimental::fundamentals_v2::source_location") align 8) local_unnamed_addr #5 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7plaidml7Program7outputsENSt12experimental15fundamentals_v215source_locationE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.6") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef byval(%"struct.std::experimental::fundamentals_v2::source_location") align 8) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN7plaidml4exec10Executable3runERKSt6vectorINS_6BufferESaIS3_EES7_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7plaidml4exec10ExecutableD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7plaidml7ProgramD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6 align 2

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #7

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #8

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


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