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

; 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::SkipLayerNormVarSeqlenPlugin" = type { %"class.nvinfer1::IPluginV2DynamicExt", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::unique_ptr", %"class.std::unique_ptr", i64, %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", i32, i32, i8, %"class.std::unique_ptr", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", i64 }
%"class.nvinfer1::IPluginV2DynamicExt" = type { %"class.nvinfer1::IPluginV2Ext" }
%"class.nvinfer1::IPluginV2Ext" = type { %"class.nvinfer1::IPluginV2" }
%"class.nvinfer1::IPluginV2" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::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 }

@.str = external hidden unnamed_addr constant [106 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [112 x i8], align 1
@_ZTVN8nvinfer16plugin4bert28SkipLayerNormVarSeqlenPluginE = external dso_local unnamed_addr constant { [32 x ptr] }, align 8
@__func__._ZN8nvinfer16plugin4bert28SkipLayerNormVarSeqlenPluginC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeERKNS_7WeightsESC_SC_ = external hidden unnamed_addr constant [29 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [26 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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) #0

; 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) #0

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer16plugin4bert28SkipLayerNormVarSeqlenPluginC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeERKNS_7WeightsESC_SC_(ptr noundef nonnull align 8 dereferenceable(200) %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 #1 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 @_ZN8nvinfer119IPluginV2DynamicExtC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  store ptr getelementptr inbounds inrange(-16, 240) ({ [32 x ptr] }, ptr @_ZTVN8nvinfer16plugin4bert28SkipLayerNormVarSeqlenPluginE, i32 0, i32 0, i32 2), ptr %15, align 8, !tbaa !11
  %16 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %17 unwind label %41

17:                                               ; preds = %6
  %18 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 2
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #5
  %19 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 3
  call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr null) #5
  %20 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 4
  call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr null) #5
  %21 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 5
  %22 = load ptr, ptr %10, align 8, !tbaa !5
  %23 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %22, i32 0, i32 2
  %24 = load i64, ptr %23, align 8, !tbaa !13
  store i64 %24, ptr %21, align 8, !tbaa !16
  %25 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 6
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %26 unwind label %45

26:                                               ; preds = %17
  %27 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 7
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %28 unwind label %49

28:                                               ; preds = %26
  %29 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 8
  %30 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %30, ptr %29, align 8, !tbaa !31
  %31 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 10
  store i8 0, ptr %31, align 8, !tbaa !32
  %32 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 11
  call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr null) #5
  %33 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 12
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33)
          to label %34 unwind label %53

34:                                               ; preds = %28
  %35 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 13
  store i64 0, ptr %35, align 8, !tbaa !33
  %36 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 5
  %37 = load i64, ptr %36, align 8, !tbaa !16
  %38 = icmp ugt i64 %37, 0
  br i1 %38, label %61, label %39

39:                                               ; preds = %34
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert28SkipLayerNormVarSeqlenPluginC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeERKNS_7WeightsESC_SC_, i32 noundef 588, i32 noundef 0, ptr noundef @.str.56) #6
          to label %40 unwind label %57

40:                                               ; preds = %39
  unreachable

41:                                               ; preds = %6
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %13, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %14, align 4
  br label %159

45:                                               ; preds = %17
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %13, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %14, align 4
  br label %158

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

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

57:                                               ; preds = %152, %146, %140, %134, %132, %126, %120, %105, %93, %83, %69, %39
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %13, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %14, align 4
  call void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #5
  br label %156

61:                                               ; preds = %34
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %62, i32 0, i32 2
  %64 = load i64, ptr %63, align 8, !tbaa !13
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  %66 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %65, i32 0, i32 2
  %67 = load i64, ptr %66, align 8, !tbaa !13
  %68 = icmp eq i64 %64, %67
  br i1 %68, label %71, label %69

69:                                               ; preds = %61
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert28SkipLayerNormVarSeqlenPluginC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeERKNS_7WeightsESC_SC_, i32 noundef 589, i32 noundef 0, ptr noundef @.str.57) #6
          to label %70 unwind label %57

70:                                               ; preds = %69
  unreachable

71:                                               ; preds = %61
  %72 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 8
  %73 = load i32, ptr %72, align 8, !tbaa !31
  %74 = icmp eq i32 %73, 0
  br i1 %74, label %85, label %75

75:                                               ; preds = %71
  %76 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 8
  %77 = load i32, ptr %76, align 8, !tbaa !31
  %78 = icmp eq i32 %77, 1
  br i1 %78, label %85, label %79

79:                                               ; preds = %75
  %80 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 8
  %81 = load i32, ptr %80, align 8, !tbaa !31
  %82 = icmp eq i32 %81, 2
  br i1 %82, label %85, label %83

83:                                               ; preds = %79
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert28SkipLayerNormVarSeqlenPluginC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeERKNS_7WeightsESC_SC_, i32 noundef 591, i32 noundef 0, ptr noundef @.str.5) #6
          to label %84 unwind label %57

84:                                               ; preds = %83
  unreachable

85:                                               ; preds = %79, %75, %71
  %86 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 8
  %87 = load i32, ptr %86, align 8, !tbaa !31
  %88 = icmp eq i32 %87, 2
  br i1 %88, label %89, label %90

89:                                               ; preds = %85
  br label %93

90:                                               ; preds = %85
  %91 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 8
  %92 = load i32, ptr %91, align 8, !tbaa !31
  br label %93

93:                                               ; preds = %90, %89
  %94 = phi i32 [ 1, %89 ], [ %92, %90 ]
  %95 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 9
  store i32 %94, ptr %95, align 4, !tbaa !34
  %96 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 9
  %97 = load i32, ptr %96, align 4, !tbaa !34
  %98 = call noundef i32 @_ZN8nvinfer16plugin4bert14getElementSizeENS_8DataTypeE(i32 noundef %97) #5
  %99 = zext i32 %98 to i64
  %100 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 13
  store i64 %99, ptr %100, align 8, !tbaa !33
  %101 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 7
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  %103 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 9
  %104 = load i32, ptr %103, align 4, !tbaa !34
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnership14convertAndCopyERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %101, ptr noundef nonnull align 8 dereferenceable(24) %102, i32 noundef %104)
          to label %105 unwind label %57

105:                                              ; preds = %93
  %106 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 6
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  %108 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 9
  %109 = load i32, ptr %108, align 4, !tbaa !34
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnership14convertAndCopyERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %106, ptr noundef nonnull align 8 dereferenceable(24) %107, i32 noundef %109)
          to label %110 unwind label %57

110:                                              ; preds = %105
  %111 = load ptr, ptr %12, align 8, !tbaa !5
  %112 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %111, i32 0, i32 1
  %113 = load ptr, ptr %112, align 8, !tbaa !35
  %114 = icmp ne ptr %113, null
  %115 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 10
  %116 = zext i1 %114 to i8
  store i8 %116, ptr %115, align 8, !tbaa !32
  %117 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 10
  %118 = load i8, ptr %117, align 8, !tbaa !32, !range !36, !noundef !37
  %119 = trunc i8 %118 to i1
  br i1 %119, label %120, label %126

120:                                              ; preds = %110
  %121 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 12
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  %123 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 9
  %124 = load i32, ptr %123, align 4, !tbaa !34
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnership14convertAndCopyERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %121, ptr noundef nonnull align 8 dereferenceable(24) %122, i32 noundef %124)
          to label %125 unwind label %57

125:                                              ; preds = %120
  br label %126

126:                                              ; preds = %125, %110
  %127 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 6
  %128 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 6
  %129 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 9
  %130 = load i32, ptr %129, align 4, !tbaa !34
  %131 = invoke noundef i64 @_ZN8nvinfer16plugin4bert14getWeightsSizeERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %128, i32 noundef %130)
          to label %132 unwind label %57

132:                                              ; preds = %126
  %133 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 3
  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 %57

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

140:                                              ; preds = %134
  %141 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 4
  invoke void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24) %135, i64 noundef %139, ptr noundef nonnull align 8 dereferenceable(8) %141)
          to label %142 unwind label %57

142:                                              ; preds = %140
  %143 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 10
  %144 = load i8, ptr %143, align 8, !tbaa !32, !range !36, !noundef !37
  %145 = trunc i8 %144 to i1
  br i1 %145, label %146, label %155

146:                                              ; preds = %142
  %147 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 12
  %148 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 12
  %149 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 9
  %150 = load i32, ptr %149, align 4, !tbaa !34
  %151 = invoke noundef i64 @_ZN8nvinfer16plugin4bert14getWeightsSizeERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %148, i32 noundef %150)
          to label %152 unwind label %57

152:                                              ; preds = %146
  %153 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %15, i32 0, i32 11
  invoke void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24) %147, i64 noundef %151, ptr noundef nonnull align 8 dereferenceable(8) %153)
          to label %154 unwind label %57

154:                                              ; preds = %152
  br label %155

155:                                              ; preds = %154, %142
  ret void

156:                                              ; preds = %57, %53
  call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #5
  call void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #5
  br label %157

157:                                              ; preds = %156, %49
  call void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  br label %158

158:                                              ; preds = %157, %45
  call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  br label %159

159:                                              ; preds = %158, %41
  call void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  br label %160

160:                                              ; preds = %159
  %161 = load ptr, ptr %13, align 8
  %162 = load i32, ptr %14, align 4
  %163 = insertvalue { ptr, i32 } poison, ptr %161, 0
  %164 = insertvalue { ptr, i32 } %163, i32 %162, 1
  resume { ptr, i32 } %164
}

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

attributes #0 = { 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 #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 = { 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 = !{!"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, !15, i64 88}
!17 = !{!"_ZTSN8nvinfer16plugin4bert28SkipLayerNormVarSeqlenPluginE", !18, i64 0, !21, i64 8, !21, i64 40, !23, i64 72, !23, i64 80, !15, i64 88, !29, i64 96, !29, i64 120, !10, i64 144, !10, i64 148, !30, i64 152, !23, i64 160, !29, i64 168, !15, i64 192}
!18 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !19, i64 0}
!19 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !20, i64 0}
!20 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !15, i64 8, !7, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!23 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !24, i64 0}
!24 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !25, i64 0}
!25 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !26, i64 0}
!26 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !27, i64 0}
!27 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !28, i64 0}
!28 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !6, i64 0}
!29 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !14, i64 0}
!30 = !{!"bool", !7, i64 0}
!31 = !{!17, !10, i64 144}
!32 = !{!17, !30, i64 152}
!33 = !{!17, !15, i64 192}
!34 = !{!17, !10, i64 148}
!35 = !{!14, !6, i64 8}
!36 = !{i8 0, i8 2}
!37 = !{}


; 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 [106 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [112 x i8], align 1
@_ZTVN8nvinfer16plugin4bert28SkipLayerNormVarSeqlenPluginE = external dso_local unnamed_addr constant { [32 x ptr] }, align 8
@__func__._ZN8nvinfer16plugin4bert28SkipLayerNormVarSeqlenPluginC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeERKNS_7WeightsESC_SC_ = external hidden unnamed_addr constant [29 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [26 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 #0

; 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 #0

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer16plugin4bert28SkipLayerNormVarSeqlenPluginC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeERKNS_7WeightsESC_SC_(ptr noundef nonnull align 8 dereferenceable(200) %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 #1 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN8nvinfer119IPluginV2DynamicExtC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  store ptr getelementptr inbounds inrange(-16, 240) (i8, ptr @_ZTVN8nvinfer16plugin4bert28SkipLayerNormVarSeqlenPluginE, i64 16), ptr %0, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %8 unwind label %23

8:                                                ; preds = %6
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  %10 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr null) #5
  %11 = getelementptr inbounds i8, ptr %0, i64 80
  tail call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr null) #5
  %12 = getelementptr inbounds i8, ptr %0, i64 88
  %13 = getelementptr inbounds i8, ptr %3, i64 16
  %14 = load i64, ptr %13, align 8, !tbaa !8
  store i64 %14, ptr %12, align 8, !tbaa !14
  %15 = getelementptr inbounds i8, ptr %0, i64 96
  tail call void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15)
  %16 = getelementptr inbounds i8, ptr %0, i64 120
  tail call void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16)
  %17 = getelementptr inbounds i8, ptr %0, i64 144
  store i32 %2, ptr %17, align 8, !tbaa !29
  %18 = getelementptr inbounds i8, ptr %0, i64 152
  store i8 0, ptr %18, align 8, !tbaa !30
  %19 = getelementptr inbounds i8, ptr %0, i64 160
  tail call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr null) #5
  %20 = getelementptr inbounds i8, ptr %0, i64 168
  tail call void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20)
  %21 = getelementptr inbounds i8, ptr %0, i64 192
  store i64 0, ptr %21, align 8, !tbaa !31
  %22 = load i64, ptr %12, align 8, !tbaa !14
  %.not = icmp eq i64 %22, 0
  br i1 %.not, label %.invoke, label %27

23:                                               ; preds = %6
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %64

25:                                               ; preds = %.invoke, %60, %54, %51, %49, %42, %36
  %26 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN8nvinfer16plugin4bert20WeightsWithOwnershipD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  tail call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #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 @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  tail call void @_ZNSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  br label %64

27:                                               ; preds = %8
  %28 = load i64, ptr %13, align 8, !tbaa !8
  %29 = getelementptr inbounds i8, ptr %4, i64 16
  %30 = load i64, ptr %29, align 8, !tbaa !8
  %31 = icmp eq i64 %28, %30
  br i1 %31, label %32, label %.invoke

32:                                               ; preds = %27
  %33 = load i32, ptr %17, align 8, !tbaa !29
  %switch = icmp ult i32 %33, 3
  br i1 %switch, label %36, label %.invoke

.invoke:                                          ; preds = %8, %32, %27
  %34 = phi i32 [ 589, %27 ], [ 591, %32 ], [ 588, %8 ]
  %35 = phi ptr [ @.str.57, %27 ], [ @.str.5, %32 ], [ @.str.56, %8 ]
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin4bert28SkipLayerNormVarSeqlenPluginC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeERKNS_7WeightsESC_SC_, i32 noundef %34, i32 noundef 0, ptr noundef nonnull %35) #6
          to label %.cont unwind label %25

.cont:                                            ; preds = %.invoke
  unreachable

36:                                               ; preds = %32
  %37 = icmp eq i32 %33, 2
  %spec.select = select i1 %37, i32 1, i32 %33
  %38 = getelementptr inbounds i8, ptr %0, i64 148
  store i32 %spec.select, ptr %38, align 4, !tbaa !32
  %39 = tail call noundef i32 @_ZN8nvinfer16plugin4bert14getElementSizeENS_8DataTypeE(i32 noundef %spec.select) #5
  %40 = zext i32 %39 to i64
  store i64 %40, ptr %21, align 8, !tbaa !31
  %41 = load i32, ptr %38, align 4, !tbaa !32
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnership14convertAndCopyERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef %41)
          to label %42 unwind label %25

42:                                               ; preds = %36
  %43 = load i32, ptr %38, align 4, !tbaa !32
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnership14convertAndCopyERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %43)
          to label %44 unwind label %25

44:                                               ; preds = %42
  %45 = getelementptr inbounds i8, ptr %5, i64 8
  %46 = load ptr, ptr %45, align 8, !tbaa !33
  %47 = icmp ne ptr %46, null
  %48 = zext i1 %47 to i8
  store i8 %48, ptr %18, align 8, !tbaa !30
  br i1 %47, label %49, label %51

49:                                               ; preds = %44
  %50 = load i32, ptr %38, align 4, !tbaa !32
  invoke void @_ZN8nvinfer16plugin4bert20WeightsWithOwnership14convertAndCopyERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef %50)
          to label %51 unwind label %25

51:                                               ; preds = %49, %44
  %52 = load i32, ptr %38, align 4, !tbaa !32
  %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) %10)
          to label %54 unwind label %25

54:                                               ; preds = %51
  %55 = load i32, ptr %38, align 4, !tbaa !32
  %56 = tail call noundef i64 @_ZN8nvinfer16plugin4bert14getWeightsSizeERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %16, i32 noundef %55)
  invoke void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %56, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %57 unwind label %25

57:                                               ; preds = %54
  %58 = load i8, ptr %18, align 8, !tbaa !30, !range !34, !noundef !35
  %59 = trunc nuw i8 %58 to i1
  br i1 %59, label %60, label %63

60:                                               ; preds = %57
  %61 = load i32, ptr %38, align 4, !tbaa !32
  %62 = tail call noundef i64 @_ZN8nvinfer16plugin4bert14getWeightsSizeERKNS_7WeightsENS_8DataTypeE(ptr noundef nonnull align 8 dereferenceable(24) %20, i32 noundef %61)
  invoke void @_ZN8nvinfer16plugin4bert12copyToDeviceIvEEvRNS1_20WeightsWithOwnershipEmRSt10unique_ptrIT_NS_14pluginInternal11CudaDeleterIS6_EEE(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %62, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %63 unwind label %25

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

64:                                               ; preds = %25, %23
  %.pn = phi { ptr, i32 } [ %26, %25 ], [ %24, %23 ]
  tail call void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  resume { ptr, i32 } %.pn
}

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

attributes #0 = { 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 #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 = { 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, !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, !13, i64 88}
!15 = !{!"_ZTSN8nvinfer16plugin4bert28SkipLayerNormVarSeqlenPluginE", !16, i64 0, !19, i64 8, !19, i64 40, !21, i64 72, !21, i64 80, !13, i64 88, !27, i64 96, !27, i64 120, !10, i64 144, !10, i64 148, !28, i64 152, !21, i64 160, !27, i64 168, !13, i64 192}
!16 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !17, i64 0}
!17 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !18, i64 0}
!18 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !20, i64 0, !13, i64 8, !11, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!21 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !22, i64 0}
!22 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !23, i64 0}
!23 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !24, i64 0}
!24 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !25, i64 0}
!25 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !26, i64 0}
!26 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !12, i64 0}
!27 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !9, i64 0}
!28 = !{!"bool", !11, i64 0}
!29 = !{!15, !10, i64 144}
!30 = !{!15, !28, i64 152}
!31 = !{!15, !13, i64 192}
!32 = !{!15, !10, i64 148}
!33 = !{!9, !12, i64 8}
!34 = !{i8 0, i8 2}
!35 = !{}


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