; 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::SkipLayerNormVarSeqlenPluginV3" = 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", %"class.std::unique_ptr", %"class.std::unique_ptr", i32, %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", i32, i32, i8, %"class.std::unique_ptr", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", 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] }
%"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 }
%"struct.nvinfer1::plugin::bert::WeightsWithOwnership" = type { %"class.nvinfer1::Weights" }
%"class.nvinfer1::Weights" = type { i32, ptr, i64 }
%"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 }

@.str = external hidden unnamed_addr constant [100 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [112 x i8], align 1
@_ZTVN8nvinfer16plugin4bert30SkipLayerNormVarSeqlenPluginV3E = external dso_local unnamed_addr constant { [21 x ptr], [9 x ptr], [17 x ptr], [11 x ptr] }, align 8
@__func__._ZN8nvinfer16plugin4bert30SkipLayerNormVarSeqlenPluginV3C2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeERKNS_7WeightsESC_SC_ = external hidden unnamed_addr constant [31 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [26 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8nvinfer15v_1_09IPluginV3C2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

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

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

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

; 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) #2 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) #1

; 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 uwtable
define dso_local void @_ZN8nvinfer16plugin4bert30SkipLayerNormVarSeqlenPluginV3C2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeERKNS_7WeightsESC_SC_(ptr noundef nonnull align 8 dereferenceable(264) %0, ptr noundef %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  %15 = load ptr, ptr %7, align 8
  call void @_ZN8nvinfer15v_1_09IPluginV3C2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  %16 = getelementptr inbounds i8, ptr %15, i64 8
  call void @_ZN8nvinfer15v_1_016IPluginV3OneCoreC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  %17 = getelementptr inbounds i8, ptr %15, i64 16
  call void @_ZN8nvinfer15v_1_017IPluginV3OneBuildC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %18 = getelementptr inbounds i8, ptr %15, i64 24
  call void @_ZN8nvinfer15v_1_019IPluginV3OneRuntimeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  store ptr getelementptr inbounds inrange(-16, 152) ({ [21 x ptr], [9 x ptr], [17 x ptr], [11 x ptr] }, ptr @_ZTVN8nvinfer16plugin4bert30SkipLayerNormVarSeqlenPluginV3E, i32 0, i32 0, i32 2), ptr %15, align 8, !tbaa !11
  %19 = getelementptr inbounds i8, ptr %15, i64 8
  store ptr getelementptr inbounds inrange(-16, 56) ({ [21 x ptr], [9 x ptr], [17 x ptr], [11 x ptr] }, ptr @_ZTVN8nvinfer16plugin4bert30SkipLayerNormVarSeqlenPluginV3E, i32 0, i32 1, i32 2), ptr %19, align 8, !tbaa !11
  %20 = getelementptr inbounds i8, ptr %15, i64 16
  store ptr getelementptr inbounds inrange(-16, 120) ({ [21 x ptr], [9 x ptr], [17 x ptr], [11 x ptr] }, ptr @_ZTVN8nvinfer16plugin4bert30SkipLayerNormVarSeqlenPluginV3E, i32 0, i32 2, i32 2), ptr %20, align 8, !tbaa !11
  %21 = getelementptr inbounds i8, ptr %15, i64 24
  store ptr getelementptr inbounds inrange(-16, 72) ({ [21 x ptr], [9 x ptr], [17 x ptr], [11 x ptr] }, ptr @_ZTVN8nvinfer16plugin4bert30SkipLayerNormVarSeqlenPluginV3E, i32 0, i32 3, i32 2), ptr %21, align 8, !tbaa !11
  %22 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %23 unwind label %50

23:                                               ; preds = %6
  %24 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #5
  %25 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 6
  call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr null) #5
  %26 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 7
  call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr null) #5
  %27 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 8
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %28, i32 0, i32 2
  %30 = load i64, ptr %29, align 8, !tbaa !13
  %31 = trunc i64 %30 to i32
  store i32 %31, ptr %27, align 8, !tbaa !16
  %32 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 9
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32)
          to label %33 unwind label %54

33:                                               ; preds = %23
  %34 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 10
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34)
          to label %35 unwind label %58

35:                                               ; preds = %33
  %36 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 11
  %37 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %37, ptr %36, align 8, !tbaa !40
  %38 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 13
  store i8 0, ptr %38, align 8, !tbaa !41
  %39 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, 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::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 15
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %40)
          to label %41 unwind label %62

41:                                               ; preds = %35
  %42 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 16
  store i64 0, ptr %42, align 8, !tbaa !42
  %43 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 17
  call void @_ZNSt6vectorIN8nvinfer111PluginFieldESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #5
  %44 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 18
  call void @_ZN8nvinfer121PluginFieldCollectionC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %44) #5
  %45 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 8
  %46 = load i32, ptr %45, align 8, !tbaa !16
  %47 = icmp sgt i32 %46, 0
  br i1 %47, label %70, label %48

48:                                               ; preds = %41
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert30SkipLayerNormVarSeqlenPluginV3C2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeERKNS_7WeightsESC_SC_, i32 noundef 569, i32 noundef 0, ptr noundef @.str.59) #6
          to label %49 unwind label %66

49:                                               ; preds = %48
  unreachable

50:                                               ; preds = %6
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %13, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %14, align 4
  br label %168

54:                                               ; preds = %23
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %13, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %14, align 4
  br label %167

58:                                               ; preds = %33
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %13, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %14, align 4
  br label %166

62:                                               ; preds = %35
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %13, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %14, align 4
  br label %165

66:                                               ; preds = %161, %155, %149, %143, %141, %135, %129, %114, %102, %92, %78, %48
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %13, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %14, align 4
  call void @_ZNSt6vectorIN8nvinfer111PluginFieldESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #5
  call void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %40) #5
  br label %165

70:                                               ; preds = %41
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %71, i32 0, i32 2
  %73 = load i64, ptr %72, align 8, !tbaa !13
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %74, i32 0, i32 2
  %76 = load i64, ptr %75, align 8, !tbaa !13
  %77 = icmp eq i64 %73, %76
  br i1 %77, label %80, label %78

78:                                               ; preds = %70
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert30SkipLayerNormVarSeqlenPluginV3C2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeERKNS_7WeightsESC_SC_, i32 noundef 570, i32 noundef 0, ptr noundef @.str.60) #6
          to label %79 unwind label %66

79:                                               ; preds = %78
  unreachable

80:                                               ; preds = %70
  %81 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 11
  %82 = load i32, ptr %81, align 8, !tbaa !40
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %94, label %84

84:                                               ; preds = %80
  %85 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 11
  %86 = load i32, ptr %85, align 8, !tbaa !40
  %87 = icmp eq i32 %86, 1
  br i1 %87, label %94, label %88

88:                                               ; preds = %84
  %89 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 11
  %90 = load i32, ptr %89, align 8, !tbaa !40
  %91 = icmp eq i32 %90, 2
  br i1 %91, label %94, label %92

92:                                               ; preds = %88
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert30SkipLayerNormVarSeqlenPluginV3C2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeERKNS_7WeightsESC_SC_, i32 noundef 572, i32 noundef 0, ptr noundef @.str.5) #6
          to label %93 unwind label %66

93:                                               ; preds = %92
  unreachable

94:                                               ; preds = %88, %84, %80
  %95 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 11
  %96 = load i32, ptr %95, align 8, !tbaa !40
  %97 = icmp eq i32 %96, 2
  br i1 %97, label %98, label %99

98:                                               ; preds = %94
  br label %102

99:                                               ; preds = %94
  %100 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 11
  %101 = load i32, ptr %100, align 8, !tbaa !40
  br label %102

102:                                              ; preds = %99, %98
  %103 = phi i32 [ 1, %98 ], [ %101, %99 ]
  %104 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 12
  store i32 %103, ptr %104, align 4, !tbaa !43
  %105 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 12
  %106 = load i32, ptr %105, align 4, !tbaa !43
  %107 = call noundef i32 @_ZN8nvinfer16plugin4bert14getElementSizeENS_8DataTypeE(i32 noundef %106) #5
  %108 = zext i32 %107 to i64
  %109 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 16
  store i64 %108, ptr %109, align 8, !tbaa !42
  %110 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 10
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  %112 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 12
  %113 = load i32, ptr %112, align 4, !tbaa !43
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnership14convertAndCopyERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %110, ptr noundef nonnull align 8 dereferenceable(24) %111, i32 noundef %113)
          to label %114 unwind label %66

114:                                              ; preds = %102
  %115 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 9
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  %117 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 12
  %118 = load i32, ptr %117, align 4, !tbaa !43
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnership14convertAndCopyERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %115, ptr noundef nonnull align 8 dereferenceable(24) %116, i32 noundef %118)
          to label %119 unwind label %66

119:                                              ; preds = %114
  %120 = load ptr, ptr %12, align 8, !tbaa !5
  %121 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %120, i32 0, i32 1
  %122 = load ptr, ptr %121, align 8, !tbaa !44
  %123 = icmp ne ptr %122, null
  %124 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 13
  %125 = zext i1 %123 to i8
  store i8 %125, ptr %124, align 8, !tbaa !41
  %126 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 13
  %127 = load i8, ptr %126, align 8, !tbaa !41, !range !45, !noundef !46
  %128 = trunc i8 %127 to i1
  br i1 %128, label %129, label %135

129:                                              ; preds = %119
  %130 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 15
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 12
  %133 = load i32, ptr %132, align 4, !tbaa !43
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnership14convertAndCopyERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %130, ptr noundef nonnull align 8 dereferenceable(24) %131, i32 noundef %133)
          to label %134 unwind label %66

134:                                              ; preds = %129
  br label %135

135:                                              ; preds = %134, %119
  %136 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 9
  %137 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 9
  %138 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 12
  %139 = load i32, ptr %138, align 4, !tbaa !43
  %140 = invoke noundef i64 @_ZN8nvinfer16plugin4bert14getWeightsSizeERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %137, i32 noundef %139)
          to label %141 unwind label %66

141:                                              ; preds = %135
  %142 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 6
  invoke void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24) %136, i64 noundef %140, ptr noundef nonnull align 8 dereferenceable(8) %142)
          to label %143 unwind label %66

143:                                              ; preds = %141
  %144 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 10
  %145 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 10
  %146 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 12
  %147 = load i32, ptr %146, align 4, !tbaa !43
  %148 = invoke noundef i64 @_ZN8nvinfer16plugin4bert14getWeightsSizeERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %145, i32 noundef %147)
          to label %149 unwind label %66

149:                                              ; preds = %143
  %150 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 7
  invoke void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24) %144, i64 noundef %148, ptr noundef nonnull align 8 dereferenceable(8) %150)
          to label %151 unwind label %66

151:                                              ; preds = %149
  %152 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 13
  %153 = load i8, ptr %152, align 8, !tbaa !41, !range !45, !noundef !46
  %154 = trunc i8 %153 to i1
  br i1 %154, label %155, label %164

155:                                              ; preds = %151
  %156 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 15
  %157 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 15
  %158 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 12
  %159 = load i32, ptr %158, align 4, !tbaa !43
  %160 = invoke noundef i64 @_ZN8nvinfer16plugin4bert14getWeightsSizeERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %157, i32 noundef %159)
          to label %161 unwind label %66

161:                                              ; preds = %155
  %162 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %15, i32 0, i32 14
  invoke void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24) %156, i64 noundef %160, ptr noundef nonnull align 8 dereferenceable(8) %162)
          to label %163 unwind label %66

163:                                              ; preds = %161
  br label %164

164:                                              ; preds = %163, %151
  ret void

165:                                              ; preds = %66, %62
  call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %39) #5
  call void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #5
  br label %166

166:                                              ; preds = %165, %58
  call void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #5
  br label %167

167:                                              ; preds = %166, %54
  call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #5
  call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  br label %168

168:                                              ; preds = %167, %50
  %169 = getelementptr inbounds i8, ptr %15, i64 24
  call void @_ZN8nvinfer119IVersionedInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %169) #5
  %170 = getelementptr inbounds i8, ptr %15, i64 16
  call void @_ZN8nvinfer119IVersionedInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %170) #5
  %171 = getelementptr inbounds i8, ptr %15, i64 8
  call void @_ZN8nvinfer119IVersionedInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %171) #5
  call void @_ZN8nvinfer119IVersionedInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  br label %172

172:                                              ; preds = %168
  %173 = load ptr, ptr %13, align 8
  %174 = load i32, ptr %14, align 4
  %175 = insertvalue { ptr, i32 } poison, ptr %173, 0
  %176 = insertvalue { ptr, i32 } %175, i32 %174, 1
  resume { ptr, i32 } %176
}

; 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !15, i64 16}
!14 = !{!"_ZTSN8nvinfer17WeightsE", !10, i64 0, !6, i64 8, !15, i64 16}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !32, i64 112}
!17 = !{!"_ZTSN8nvinfer16plugin4bert30SkipLayerNormVarSeqlenPluginV3E", !18, i64 0, !20, i64 8, !22, i64 16, !23, i64 24, !24, i64 32, !24, i64 64, !26, i64 96, !26, i64 104, !32, i64 112, !33, i64 120, !33, i64 144, !10, i64 168, !10, i64 172, !34, i64 176, !26, i64 184, !33, i64 192, !15, i64 216, !35, i64 224, !39, i64 248}
!18 = !{!"_ZTSN8nvinfer15v_1_09IPluginV3E", !19, i64 0}
!19 = !{!"_ZTSN8nvinfer119IVersionedInterfaceE"}
!20 = !{!"_ZTSN8nvinfer15v_1_016IPluginV3OneCoreE", !21, i64 0}
!21 = !{!"_ZTSN8nvinfer15v_1_017IPluginCapabilityE", !19, i64 0}
!22 = !{!"_ZTSN8nvinfer15v_1_017IPluginV3OneBuildE", !21, i64 0}
!23 = !{!"_ZTSN8nvinfer15v_1_019IPluginV3OneRuntimeE", !21, i64 0}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !25, i64 0, !15, i64 8, !7, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, 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", !6, i64 0}
!32 = !{!"int", !7, i64 0}
!33 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !14, i64 0}
!34 = !{!"bool", !7, 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", !32, i64 0, !6, i64 8}
!40 = !{!17, !10, i64 168}
!41 = !{!17, !34, i64 176}
!42 = !{!17, !15, i64 216}
!43 = !{!17, !10, i64 172}
!44 = !{!14, !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"

@.str = external hidden unnamed_addr constant [100 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [112 x i8], align 1
@_ZTVN8nvinfer16plugin4bert30SkipLayerNormVarSeqlenPluginV3E = external dso_local unnamed_addr constant { [21 x ptr], [9 x ptr], [17 x ptr], [11 x ptr] }, align 8
@__func__._ZN8nvinfer16plugin4bert30SkipLayerNormVarSeqlenPluginV3C2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeERKNS_7WeightsESC_SC_ = external hidden unnamed_addr constant [31 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [26 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8nvinfer15v_1_09IPluginV3C2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

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

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

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

; 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 #2 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 #1

; 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 uwtable
define dso_local void @_ZN8nvinfer16plugin4bert30SkipLayerNormVarSeqlenPluginV3C2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeERKNS_7WeightsESC_SC_(ptr noundef nonnull align 8 dereferenceable(264) %0, ptr noundef %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN8nvinfer15v_1_09IPluginV3C2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZN8nvinfer15v_1_016IPluginV3OneCoreC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %8 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @_ZN8nvinfer15v_1_017IPluginV3OneBuildC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %9 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZN8nvinfer15v_1_019IPluginV3OneRuntimeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  store ptr getelementptr inbounds inrange(-16, 152) (i8, ptr @_ZTVN8nvinfer16plugin4bert30SkipLayerNormVarSeqlenPluginV3E, i64 16), ptr %0, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 56) (i8, ptr @_ZTVN8nvinfer16plugin4bert30SkipLayerNormVarSeqlenPluginV3E, i64 184), ptr %7, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 120) (i8, ptr @_ZTVN8nvinfer16plugin4bert30SkipLayerNormVarSeqlenPluginV3E, i64 256), ptr %8, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 72) (i8, ptr @_ZTVN8nvinfer16plugin4bert30SkipLayerNormVarSeqlenPluginV3E, i64 392), ptr %9, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 32
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %11 unwind label %30

11:                                               ; preds = %6
  %12 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  %13 = getelementptr inbounds i8, ptr %0, i64 96
  tail call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr null) #5
  %14 = getelementptr inbounds i8, ptr %0, i64 104
  tail call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr null) #5
  %15 = getelementptr inbounds i8, ptr %0, i64 112
  %16 = getelementptr inbounds i8, ptr %3, i64 16
  %17 = load i64, ptr %16, align 8, !tbaa !8
  %18 = trunc i64 %17 to i32
  store i32 %18, ptr %15, align 8, !tbaa !14
  %19 = getelementptr inbounds i8, ptr %0, i64 120
  tail call void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19)
  %20 = getelementptr inbounds i8, ptr %0, i64 144
  tail call void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20)
  %21 = getelementptr inbounds i8, ptr %0, i64 168
  store i32 %2, ptr %21, align 8, !tbaa !38
  %22 = getelementptr inbounds i8, ptr %0, i64 176
  store i8 0, ptr %22, align 8, !tbaa !39
  %23 = getelementptr inbounds i8, ptr %0, i64 184
  tail call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr null) #5
  %24 = getelementptr inbounds i8, ptr %0, i64 192
  tail call void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24)
  %25 = getelementptr inbounds i8, ptr %0, i64 216
  store i64 0, ptr %25, align 8, !tbaa !40
  %26 = getelementptr inbounds i8, ptr %0, i64 224
  tail call void @_ZNSt6vectorIN8nvinfer111PluginFieldESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #5
  %27 = getelementptr inbounds i8, ptr %0, i64 248
  tail call void @_ZN8nvinfer121PluginFieldCollectionC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #5
  %28 = load i32, ptr %15, align 8, !tbaa !14
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %34, label %.invoke

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

32:                                               ; preds = %.invoke, %67, %61, %58, %56, %49, %43
  %33 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZNSt6vectorIN8nvinfer111PluginFieldESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #5
  tail call void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  tail call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #5
  tail call void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  tail call void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  tail call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  tail call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  br label %71

34:                                               ; preds = %11
  %35 = load i64, ptr %16, align 8, !tbaa !8
  %36 = getelementptr inbounds i8, ptr %4, i64 16
  %37 = load i64, ptr %36, align 8, !tbaa !8
  %38 = icmp eq i64 %35, %37
  br i1 %38, label %39, label %.invoke

39:                                               ; preds = %34
  %40 = load i32, ptr %21, align 8, !tbaa !38
  %switch = icmp ult i32 %40, 3
  br i1 %switch, label %43, label %.invoke

.invoke:                                          ; preds = %11, %39, %34
  %41 = phi i32 [ 570, %34 ], [ 572, %39 ], [ 569, %11 ]
  %42 = phi ptr [ @.str.60, %34 ], [ @.str.5, %39 ], [ @.str.59, %11 ]
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin4bert30SkipLayerNormVarSeqlenPluginV3C2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeERKNS_7WeightsESC_SC_, i32 noundef %41, i32 noundef 0, ptr noundef nonnull %42) #6
          to label %.cont unwind label %32

.cont:                                            ; preds = %.invoke
  unreachable

43:                                               ; preds = %39
  %44 = icmp eq i32 %40, 2
  %spec.select = select i1 %44, i32 1, i32 %40
  %45 = getelementptr inbounds i8, ptr %0, i64 172
  store i32 %spec.select, ptr %45, align 4, !tbaa !41
  %46 = tail call noundef i32 @_ZN8nvinfer16plugin4bert14getElementSizeENS_8DataTypeE(i32 noundef %spec.select) #5
  %47 = zext i32 %46 to i64
  store i64 %47, ptr %25, align 8, !tbaa !40
  %48 = load i32, ptr %45, align 4, !tbaa !41
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnership14convertAndCopyERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef %48)
          to label %49 unwind label %32

49:                                               ; preds = %43
  %50 = load i32, ptr %45, align 4, !tbaa !41
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnership14convertAndCopyERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %50)
          to label %51 unwind label %32

51:                                               ; preds = %49
  %52 = getelementptr inbounds i8, ptr %5, i64 8
  %53 = load ptr, ptr %52, align 8, !tbaa !42
  %54 = icmp ne ptr %53, null
  %55 = zext i1 %54 to i8
  store i8 %55, ptr %22, align 8, !tbaa !39
  br i1 %54, label %56, label %58

56:                                               ; preds = %51
  %57 = load i32, ptr %45, align 4, !tbaa !41
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnership14convertAndCopyERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef %57)
          to label %58 unwind label %32

58:                                               ; preds = %56, %51
  %59 = load i32, ptr %45, align 4, !tbaa !41
  %60 = tail call noundef i64 @_ZN8nvinfer16plugin4bert14getWeightsSizeERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %19, i32 noundef %59)
  invoke void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %60, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %61 unwind label %32

61:                                               ; preds = %58
  %62 = load i32, ptr %45, align 4, !tbaa !41
  %63 = tail call noundef i64 @_ZN8nvinfer16plugin4bert14getWeightsSizeERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %20, i32 noundef %62)
  invoke void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %63, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %64 unwind label %32

64:                                               ; preds = %61
  %65 = load i8, ptr %22, align 8, !tbaa !39, !range !43, !noundef !44
  %66 = trunc nuw i8 %65 to i1
  br i1 %66, label %67, label %70

67:                                               ; preds = %64
  %68 = load i32, ptr %45, align 4, !tbaa !41
  %69 = tail call noundef i64 @_ZN8nvinfer16plugin4bert14getWeightsSizeERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %24, i32 noundef %68)
  invoke void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %69, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %70 unwind label %32

70:                                               ; preds = %67, %64
  ret void

71:                                               ; preds = %32, %30
  %.pn = phi { ptr, i32 } [ %33, %32 ], [ %31, %30 ]
  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) %7) #5
  tail call void @_ZN8nvinfer119IVersionedInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  resume { ptr, i32 } %.pn
}

; 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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, !13, i64 16}
!9 = !{!"_ZTSN8nvinfer17WeightsE", !10, i64 0, !12, i64 8, !13, i64 16}
!10 = !{!"_ZTSN8nvinfer18DataTypeE", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = !{!"any pointer", !11, i64 0}
!13 = !{!"long", !11, i64 0}
!14 = !{!15, !30, i64 112}
!15 = !{!"_ZTSN8nvinfer16plugin4bert30SkipLayerNormVarSeqlenPluginV3E", !16, i64 0, !18, i64 8, !20, i64 16, !21, i64 24, !22, i64 32, !22, i64 64, !24, i64 96, !24, i64 104, !30, i64 112, !31, i64 120, !31, i64 144, !10, i64 168, !10, i64 172, !32, i64 176, !24, i64 184, !31, i64 192, !13, i64 216, !33, i64 224, !37, i64 248}
!16 = !{!"_ZTSN8nvinfer15v_1_09IPluginV3E", !17, i64 0}
!17 = !{!"_ZTSN8nvinfer119IVersionedInterfaceE"}
!18 = !{!"_ZTSN8nvinfer15v_1_016IPluginV3OneCoreE", !19, i64 0}
!19 = !{!"_ZTSN8nvinfer15v_1_017IPluginCapabilityE", !17, i64 0}
!20 = !{!"_ZTSN8nvinfer15v_1_017IPluginV3OneBuildE", !19, i64 0}
!21 = !{!"_ZTSN8nvinfer15v_1_019IPluginV3OneRuntimeE", !19, i64 0}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !23, i64 0, !13, i64 8, !11, i64 16}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!24 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !25, i64 0}
!25 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !26, i64 0}
!26 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !27, i64 0}
!27 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !28, i64 0}
!28 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !29, i64 0}
!29 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !12, i64 0}
!30 = !{!"int", !11, i64 0}
!31 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !9, i64 0}
!32 = !{!"bool", !11, i64 0}
!33 = !{!"_ZTSSt6vectorIN8nvinfer111PluginFieldESaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!37 = !{!"_ZTSN8nvinfer121PluginFieldCollectionE", !30, i64 0, !12, i64 8}
!38 = !{!15, !10, i64 168}
!39 = !{!15, !32, i64 176}
!40 = !{!15, !13, i64 216}
!41 = !{!15, !10, i64 172}
!42 = !{!9, !12, i64 8}
!43 = !{i8 0, i8 2}
!44 = !{}


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