; LLVM IR from NVIDIA/TensorRT :: plugin/skipLayerNormPlugin (skipLayerNormPlugin)

; 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.nvinfer1::plugin::bert::SkipLayerNormPluginV3" = type { %"class.nvinfer1::v_1_0::IPluginV3", %"class.nvinfer1::v_1_0::IPluginV3OneCore", %"class.nvinfer1::v_1_0::IPluginV3OneBuild", %"class.nvinfer1::v_1_0::IPluginV3OneRuntime", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", i32, i32, i32, i8, %"class.std::unique_ptr", %"class.std::unique_ptr", %"class.std::unique_ptr", i64, %"class.std::vector", %"struct.nvinfer1::PluginFieldCollection" }
%"class.nvinfer1::v_1_0::IPluginV3" = type { %"class.nvinfer1::IVersionedInterface" }
%"class.nvinfer1::IVersionedInterface" = type { ptr }
%"class.nvinfer1::v_1_0::IPluginV3OneCore" = type { %"class.nvinfer1::v_1_0::IPluginCapability" }
%"class.nvinfer1::v_1_0::IPluginCapability" = type { %"class.nvinfer1::IVersionedInterface" }
%"class.nvinfer1::v_1_0::IPluginV3OneBuild" = type { %"class.nvinfer1::v_1_0::IPluginCapability" }
%"class.nvinfer1::v_1_0::IPluginV3OneRuntime" = type { %"class.nvinfer1::v_1_0::IPluginCapability" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.nvinfer1::plugin::bert::WeightsWithOwnership" = type { %"class.nvinfer1::Weights" }
%"class.nvinfer1::Weights" = type { i32, ptr, i64 }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.5" }
%"struct.std::_Head_base.5" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<nvinfer1::PluginField, std::allocator<nvinfer1::PluginField>>::_Vector_impl" }
%"struct.std::_Vector_base<nvinfer1::PluginField, std::allocator<nvinfer1::PluginField>>::_Vector_impl" = type { %"struct.std::_Vector_base<nvinfer1::PluginField, std::allocator<nvinfer1::PluginField>>::_Vector_impl_data" }
%"struct.std::_Vector_base<nvinfer1::PluginField, std::allocator<nvinfer1::PluginField>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.nvinfer1::PluginFieldCollection" = type { i32, ptr }

@_ZTVN8nvinfer16plugin4bert21SkipLayerNormPluginV3E = external dso_local unnamed_addr constant { [21 x ptr], [9 x ptr], [17 x ptr], [11 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [100 x i8], align 1
@__func__._ZN8nvinfer16plugin4bert21SkipLayerNormPluginV3C2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeEiRKNS_7WeightsESC_SC_ = external hidden unnamed_addr constant [22 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [112 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer16plugin4bert21SkipLayerNormPluginV3C2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeEiRKNS_7WeightsESC_SC_(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !11
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  %17 = load ptr, ptr %8, align 8
  call void @_ZN8nvinfer15v_1_09IPluginV3C2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %18 = getelementptr inbounds i8, ptr %17, i64 8
  call void @_ZN8nvinfer15v_1_016IPluginV3OneCoreC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  %19 = getelementptr inbounds i8, ptr %17, i64 16
  call void @_ZN8nvinfer15v_1_017IPluginV3OneBuildC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  %20 = getelementptr inbounds i8, ptr %17, i64 24
  call void @_ZN8nvinfer15v_1_019IPluginV3OneRuntimeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  store ptr getelementptr inbounds inrange(-16, 152) ({ [21 x ptr], [9 x ptr], [17 x ptr], [11 x ptr] }, ptr @_ZTVN8nvinfer16plugin4bert21SkipLayerNormPluginV3E, i32 0, i32 0, i32 2), ptr %17, align 8, !tbaa !13
  %21 = getelementptr inbounds i8, ptr %17, i64 8
  store ptr getelementptr inbounds inrange(-16, 56) ({ [21 x ptr], [9 x ptr], [17 x ptr], [11 x ptr] }, ptr @_ZTVN8nvinfer16plugin4bert21SkipLayerNormPluginV3E, i32 0, i32 1, i32 2), ptr %21, align 8, !tbaa !13
  %22 = getelementptr inbounds i8, ptr %17, i64 16
  store ptr getelementptr inbounds inrange(-16, 120) ({ [21 x ptr], [9 x ptr], [17 x ptr], [11 x ptr] }, ptr @_ZTVN8nvinfer16plugin4bert21SkipLayerNormPluginV3E, i32 0, i32 2, i32 2), ptr %22, align 8, !tbaa !13
  %23 = getelementptr inbounds i8, ptr %17, i64 24
  store ptr getelementptr inbounds inrange(-16, 72) ({ [21 x ptr], [9 x ptr], [17 x ptr], [11 x ptr] }, ptr @_ZTVN8nvinfer16plugin4bert21SkipLayerNormPluginV3E, i32 0, i32 3, i32 2), ptr %23, align 8, !tbaa !13
  %24 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %25 unwind label %57

25:                                               ; preds = %7
  %26 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #5
  %27 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 6
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %28 unwind label %61

28:                                               ; preds = %25
  %29 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 7
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29)
          to label %30 unwind label %65

30:                                               ; preds = %28
  %31 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 8
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31)
          to label %32 unwind label %69

32:                                               ; preds = %30
  %33 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 9
  %34 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %34, ptr %33, align 8, !tbaa !15
  %35 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 11
  %36 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %36, ptr %35, align 8, !tbaa !40
  %37 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 12
  store i8 0, ptr %37, align 4, !tbaa !41
  %38 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 13
  call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr null) #5
  %39 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 14
  call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr null) #5
  %40 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 15
  call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr null) #5
  %41 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 16
  store i64 0, ptr %41, align 8, !tbaa !42
  %42 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 17
  call void @_ZNSt6vectorIN8nvinfer111PluginFieldESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %42) #5
  %43 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 18
  call void @_ZN8nvinfer121PluginFieldCollectionC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %43) #5
  %44 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 9
  %45 = load i32, ptr %44, align 8, !tbaa !15
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %77, label %47

47:                                               ; preds = %32
  %48 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 9
  %49 = load i32, ptr %48, align 8, !tbaa !15
  %50 = icmp eq i32 %49, 1
  br i1 %50, label %77, label %51

51:                                               ; preds = %47
  %52 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 9
  %53 = load i32, ptr %52, align 8, !tbaa !15
  %54 = icmp eq i32 %53, 2
  br i1 %54, label %77, label %55

55:                                               ; preds = %51
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert21SkipLayerNormPluginV3C2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeEiRKNS_7WeightsESC_SC_, i32 noundef 60, i32 noundef 0, ptr noundef @.str.5) #6
          to label %56 unwind label %73

56:                                               ; preds = %55
  unreachable

57:                                               ; preds = %7
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %15, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %16, align 4
  br label %151

61:                                               ; preds = %25
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %15, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %16, align 4
  br label %150

65:                                               ; preds = %28
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %15, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %16, align 4
  br label %149

69:                                               ; preds = %30
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %15, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %16, align 4
  br label %148

73:                                               ; preds = %144, %138, %132, %126, %124, %118, %112, %97, %85, %55
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %15, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %16, align 4
  call void @_ZNSt6vectorIN8nvinfer111PluginFieldESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %42) #5
  call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %40) #5
  call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %39) #5
  call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %38) #5
  call void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #5
  br label %148

77:                                               ; preds = %51, %47, %32
  %78 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 9
  %79 = load i32, ptr %78, align 8, !tbaa !15
  %80 = icmp eq i32 %79, 2
  br i1 %80, label %81, label %82

81:                                               ; preds = %77
  br label %85

82:                                               ; preds = %77
  %83 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 9
  %84 = load i32, ptr %83, align 8, !tbaa !15
  br label %85

85:                                               ; preds = %82, %81
  %86 = phi i32 [ 1, %81 ], [ %84, %82 ]
  %87 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 10
  store i32 %86, ptr %87, align 4, !tbaa !43
  %88 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 10
  %89 = load i32, ptr %88, align 4, !tbaa !43
  %90 = call noundef i32 @_ZN8nvinfer16plugin4bert14getElementSizeENS_8DataTypeE(i32 noundef %89) #5
  %91 = zext i32 %90 to i64
  %92 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 16
  store i64 %91, ptr %92, align 8, !tbaa !42
  %93 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 7
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  %95 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 10
  %96 = load i32, ptr %95, align 4, !tbaa !43
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnership14convertAndCopyERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %93, ptr noundef nonnull align 8 dereferenceable(24) %94, i32 noundef %96)
          to label %97 unwind label %73

97:                                               ; preds = %85
  %98 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 6
  %99 = load ptr, ptr %13, align 8, !tbaa !5
  %100 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 10
  %101 = load i32, ptr %100, align 4, !tbaa !43
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnership14convertAndCopyERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %98, ptr noundef nonnull align 8 dereferenceable(24) %99, i32 noundef %101)
          to label %102 unwind label %73

102:                                              ; preds = %97
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %103, i32 0, i32 1
  %105 = load ptr, ptr %104, align 8, !tbaa !44
  %106 = icmp ne ptr %105, null
  %107 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 12
  %108 = zext i1 %106 to i8
  store i8 %108, ptr %107, align 4, !tbaa !41
  %109 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 12
  %110 = load i8, ptr %109, align 4, !tbaa !41, !range !45, !noundef !46
  %111 = trunc i8 %110 to i1
  br i1 %111, label %112, label %118

112:                                              ; preds = %102
  %113 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 8
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  %115 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 10
  %116 = load i32, ptr %115, align 4, !tbaa !43
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnership14convertAndCopyERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %113, ptr noundef nonnull align 8 dereferenceable(24) %114, i32 noundef %116)
          to label %117 unwind label %73

117:                                              ; preds = %112
  br label %118

118:                                              ; preds = %117, %102
  %119 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 6
  %120 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 6
  %121 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 10
  %122 = load i32, ptr %121, align 4, !tbaa !43
  %123 = invoke noundef i64 @_ZN8nvinfer16plugin4bert14getWeightsSizeERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %120, i32 noundef %122)
          to label %124 unwind label %73

124:                                              ; preds = %118
  %125 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 13
  invoke void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24) %119, i64 noundef %123, ptr noundef nonnull align 8 dereferenceable(8) %125)
          to label %126 unwind label %73

126:                                              ; preds = %124
  %127 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 7
  %128 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 7
  %129 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 10
  %130 = load i32, ptr %129, align 4, !tbaa !43
  %131 = invoke noundef i64 @_ZN8nvinfer16plugin4bert14getWeightsSizeERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %128, i32 noundef %130)
          to label %132 unwind label %73

132:                                              ; preds = %126
  %133 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 14
  invoke void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24) %127, i64 noundef %131, ptr noundef nonnull align 8 dereferenceable(8) %133)
          to label %134 unwind label %73

134:                                              ; preds = %132
  %135 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 12
  %136 = load i8, ptr %135, align 4, !tbaa !41, !range !45, !noundef !46
  %137 = trunc i8 %136 to i1
  br i1 %137, label %138, label %147

138:                                              ; preds = %134
  %139 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 8
  %140 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 8
  %141 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 10
  %142 = load i32, ptr %141, align 4, !tbaa !43
  %143 = invoke noundef i64 @_ZN8nvinfer16plugin4bert14getWeightsSizeERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %140, i32 noundef %142)
          to label %144 unwind label %73

144:                                              ; preds = %138
  %145 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %17, i32 0, i32 15
  invoke void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24) %139, i64 noundef %143, ptr noundef nonnull align 8 dereferenceable(8) %145)
          to label %146 unwind label %73

146:                                              ; preds = %144
  br label %147

147:                                              ; preds = %146, %134
  ret void

148:                                              ; preds = %73, %69
  call void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #5
  br label %149

149:                                              ; preds = %148, %65
  call void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #5
  br label %150

150:                                              ; preds = %149, %61
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #5
  br label %151

151:                                              ; preds = %150, %57
  %152 = getelementptr inbounds i8, ptr %17, i64 24
  call void @_ZN8nvinfer119IVersionedInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %152) #5
  %153 = getelementptr inbounds i8, ptr %17, i64 16
  call void @_ZN8nvinfer119IVersionedInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %153) #5
  %154 = getelementptr inbounds i8, ptr %17, i64 8
  call void @_ZN8nvinfer119IVersionedInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %154) #5
  call void @_ZN8nvinfer119IVersionedInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  br label %155

155:                                              ; preds = %151
  %156 = load ptr, ptr %15, align 8
  %157 = load i32, ptr %16, align 4
  %158 = insertvalue { ptr, i32 } poison, ptr %156, 0
  %159 = insertvalue { ptr, i32 } %158, i32 %157, 1
  resume { ptr, i32 } %159
}

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: noreturn
declare void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8nvinfer16plugin4bert14getElementSizeENS_8DataTypeE(i32 noundef) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 = { 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 #3 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { nounwind }
attributes #6 = { noreturn }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !10, i64 168}
!16 = !{!"_ZTSN8nvinfer16plugin4bert21SkipLayerNormPluginV3E", !17, i64 0, !19, i64 8, !21, i64 16, !22, i64 24, !23, i64 32, !23, i64 64, !26, i64 96, !26, i64 120, !26, i64 144, !10, i64 168, !10, i64 172, !12, i64 176, !28, i64 180, !29, i64 184, !29, i64 192, !29, i64 200, !25, i64 208, !35, i64 216, !39, i64 240}
!17 = !{!"_ZTSN8nvinfer15v_1_09IPluginV3E", !18, i64 0}
!18 = !{!"_ZTSN8nvinfer119IVersionedInterfaceE"}
!19 = !{!"_ZTSN8nvinfer15v_1_016IPluginV3OneCoreE", !20, i64 0}
!20 = !{!"_ZTSN8nvinfer15v_1_017IPluginCapabilityE", !18, i64 0}
!21 = !{!"_ZTSN8nvinfer15v_1_017IPluginV3OneBuildE", !20, i64 0}
!22 = !{!"_ZTSN8nvinfer15v_1_019IPluginV3OneRuntimeE", !20, i64 0}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !24, i64 0, !25, i64 8, !7, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!25 = !{!"long", !7, i64 0}
!26 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !27, i64 0}
!27 = !{!"_ZTSN8nvinfer17WeightsE", !10, i64 0, !6, i64 8, !25, i64 16}
!28 = !{!"bool", !7, i64 0}
!29 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !30, i64 0}
!30 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !31, i64 0}
!31 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !32, i64 0}
!32 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !33, i64 0}
!33 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !34, i64 0}
!34 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !6, i64 0}
!35 = !{!"_ZTSSt6vectorIN8nvinfer111PluginFieldESaIS1_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!39 = !{!"_ZTSN8nvinfer121PluginFieldCollectionE", !12, i64 0, !6, i64 8}
!40 = !{!16, !12, i64 176}
!41 = !{!16, !28, i64 180}
!42 = !{!16, !25, i64 208}
!43 = !{!16, !10, i64 172}
!44 = !{!27, !6, i64 8}
!45 = !{i8 0, i8 2}
!46 = !{}


; 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"

@_ZTVN8nvinfer16plugin4bert21SkipLayerNormPluginV3E = external dso_local unnamed_addr constant { [21 x ptr], [9 x ptr], [17 x ptr], [11 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [100 x i8], align 1
@__func__._ZN8nvinfer16plugin4bert21SkipLayerNormPluginV3C2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeEiRKNS_7WeightsESC_SC_ = external hidden unnamed_addr constant [22 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [112 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer16plugin4bert21SkipLayerNormPluginV3C2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeEiRKNS_7WeightsESC_SC_(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN8nvinfer15v_1_09IPluginV3C2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZN8nvinfer15v_1_016IPluginV3OneCoreC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @_ZN8nvinfer15v_1_017IPluginV3OneBuildC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZN8nvinfer15v_1_019IPluginV3OneRuntimeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  store ptr getelementptr inbounds inrange(-16, 152) (i8, ptr @_ZTVN8nvinfer16plugin4bert21SkipLayerNormPluginV3E, i64 16), ptr %0, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 56) (i8, ptr @_ZTVN8nvinfer16plugin4bert21SkipLayerNormPluginV3E, i64 184), ptr %8, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 120) (i8, ptr @_ZTVN8nvinfer16plugin4bert21SkipLayerNormPluginV3E, i64 256), ptr %9, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 72) (i8, ptr @_ZTVN8nvinfer16plugin4bert21SkipLayerNormPluginV3E, i64 392), ptr %10, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 32
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %12 unwind label %29

12:                                               ; preds = %7
  %13 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  %14 = getelementptr inbounds i8, ptr %0, i64 96
  tail call void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14)
  %15 = getelementptr inbounds i8, ptr %0, i64 120
  tail call void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15)
  %16 = getelementptr inbounds i8, ptr %0, i64 144
  tail call void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16)
  %17 = getelementptr inbounds i8, ptr %0, i64 168
  store i32 %2, ptr %17, align 8, !tbaa !8
  %18 = getelementptr inbounds i8, ptr %0, i64 176
  store i32 %3, ptr %18, align 8, !tbaa !37
  %19 = getelementptr inbounds i8, ptr %0, i64 180
  store i8 0, ptr %19, align 4, !tbaa !38
  %20 = getelementptr inbounds i8, ptr %0, i64 184
  tail call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr null) #5
  %21 = getelementptr inbounds i8, ptr %0, i64 192
  tail call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr null) #5
  %22 = getelementptr inbounds i8, ptr %0, i64 200
  tail call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr null) #5
  %23 = getelementptr inbounds i8, ptr %0, i64 208
  store i64 0, ptr %23, align 8, !tbaa !39
  %24 = getelementptr inbounds i8, ptr %0, i64 216
  tail call void @_ZNSt6vectorIN8nvinfer111PluginFieldESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  %25 = getelementptr inbounds i8, ptr %0, i64 240
  tail call void @_ZN8nvinfer121PluginFieldCollectionC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #5
  %26 = load i32, ptr %17, align 8, !tbaa !8
  %switch = icmp ult i32 %26, 3
  br i1 %switch, label %33, label %27

27:                                               ; preds = %12
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin4bert21SkipLayerNormPluginV3C2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeEiRKNS_7WeightsESC_SC_, i32 noundef 60, i32 noundef 0, ptr noundef nonnull @.str.5) #6
          to label %28 unwind label %31

28:                                               ; preds = %27
  unreachable

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

31:                                               ; preds = %57, %51, %48, %46, %39, %33, %27
  %32 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZNSt6vectorIN8nvinfer111PluginFieldESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  tail call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #5
  tail call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  tail call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  tail call void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  tail call void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  tail call void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  br label %61

33:                                               ; preds = %12
  %34 = icmp eq i32 %26, 2
  %spec.select = select i1 %34, i32 1, i32 %26
  %35 = getelementptr inbounds i8, ptr %0, i64 172
  store i32 %spec.select, ptr %35, align 4, !tbaa !40
  %36 = tail call noundef i32 @_ZN8nvinfer16plugin4bert14getElementSizeENS_8DataTypeE(i32 noundef %spec.select) #5
  %37 = zext i32 %36 to i64
  store i64 %37, ptr %23, align 8, !tbaa !39
  %38 = load i32, ptr %35, align 4, !tbaa !40
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnership14convertAndCopyERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %38)
          to label %39 unwind label %31

39:                                               ; preds = %33
  %40 = load i32, ptr %35, align 4, !tbaa !40
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnership14convertAndCopyERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef %40)
          to label %41 unwind label %31

41:                                               ; preds = %39
  %42 = getelementptr inbounds i8, ptr %6, i64 8
  %43 = load ptr, ptr %42, align 8, !tbaa !41
  %44 = icmp ne ptr %43, null
  %45 = zext i1 %44 to i8
  store i8 %45, ptr %19, align 4, !tbaa !38
  br i1 %44, label %46, label %48

46:                                               ; preds = %41
  %47 = load i32, ptr %35, align 4, !tbaa !40
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnership14convertAndCopyERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef %47)
          to label %48 unwind label %31

48:                                               ; preds = %46, %41
  %49 = load i32, ptr %35, align 4, !tbaa !40
  %50 = tail call noundef i64 @_ZN8nvinfer16plugin4bert14getWeightsSizeERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef %49)
  invoke void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %50, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %51 unwind label %31

51:                                               ; preds = %48
  %52 = load i32, ptr %35, align 4, !tbaa !40
  %53 = tail call noundef i64 @_ZN8nvinfer16plugin4bert14getWeightsSizeERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef %52)
  invoke void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %53, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %54 unwind label %31

54:                                               ; preds = %51
  %55 = load i8, ptr %19, align 4, !tbaa !38, !range !42, !noundef !43
  %56 = trunc nuw i8 %55 to i1
  br i1 %56, label %57, label %60

57:                                               ; preds = %54
  %58 = load i32, ptr %35, align 4, !tbaa !40
  %59 = tail call noundef i64 @_ZN8nvinfer16plugin4bert14getWeightsSizeERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %16, i32 noundef %58)
  invoke void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %59, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %60 unwind label %31

60:                                               ; preds = %57, %54
  ret void

61:                                               ; preds = %31, %29
  %.pn = phi { ptr, i32 } [ %32, %31 ], [ %30, %29 ]
  tail call void @_ZN8nvinfer119IVersionedInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  tail call void @_ZN8nvinfer119IVersionedInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  tail call void @_ZN8nvinfer119IVersionedInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  tail call void @_ZN8nvinfer119IVersionedInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  resume { ptr, i32 } %.pn
}

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: noreturn
declare void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8nvinfer16plugin4bert14getElementSizeENS_8DataTypeE(i32 noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 = { 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 #3 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { nounwind }
attributes #6 = { noreturn }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !23, i64 168}
!9 = !{!"_ZTSN8nvinfer16plugin4bert21SkipLayerNormPluginV3E", !10, i64 0, !12, i64 8, !14, i64 16, !15, i64 24, !16, i64 32, !16, i64 64, !21, i64 96, !21, i64 120, !21, i64 144, !23, i64 168, !23, i64 172, !24, i64 176, !25, i64 180, !26, i64 184, !26, i64 192, !26, i64 200, !20, i64 208, !32, i64 216, !36, i64 240}
!10 = !{!"_ZTSN8nvinfer15v_1_09IPluginV3E", !11, i64 0}
!11 = !{!"_ZTSN8nvinfer119IVersionedInterfaceE"}
!12 = !{!"_ZTSN8nvinfer15v_1_016IPluginV3OneCoreE", !13, i64 0}
!13 = !{!"_ZTSN8nvinfer15v_1_017IPluginCapabilityE", !11, i64 0}
!14 = !{!"_ZTSN8nvinfer15v_1_017IPluginV3OneBuildE", !13, i64 0}
!15 = !{!"_ZTSN8nvinfer15v_1_019IPluginV3OneRuntimeE", !13, i64 0}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !20, i64 8, !19, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !18, i64 0}
!18 = !{!"any pointer", !19, i64 0}
!19 = !{!"omnipotent char", !7, i64 0}
!20 = !{!"long", !19, i64 0}
!21 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !22, i64 0}
!22 = !{!"_ZTSN8nvinfer17WeightsE", !23, i64 0, !18, i64 8, !20, i64 16}
!23 = !{!"_ZTSN8nvinfer18DataTypeE", !19, i64 0}
!24 = !{!"int", !19, i64 0}
!25 = !{!"bool", !19, i64 0}
!26 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !27, i64 0}
!27 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !28, i64 0}
!28 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !29, i64 0}
!29 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !30, i64 0}
!30 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !31, i64 0}
!31 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !18, i64 0}
!32 = !{!"_ZTSSt6vectorIN8nvinfer111PluginFieldESaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!36 = !{!"_ZTSN8nvinfer121PluginFieldCollectionE", !24, i64 0, !18, i64 8}
!37 = !{!9, !24, i64 176}
!38 = !{!9, !25, i64 180}
!39 = !{!9, !20, i64 208}
!40 = !{!9, !23, i64 172}
!41 = !{!22, !18, i64 8}
!42 = !{i8 0, i8 2}
!43 = !{}


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