; 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 }
%"struct.nvinfer1::DynamicPluginTensorDesc" = type { %"struct.nvinfer1::PluginTensorDesc", %"class.nvinfer1::Dims64", %"class.nvinfer1::Dims64", %"class.nvinfer1::Dims64" }
%"struct.nvinfer1::PluginTensorDesc" = type { %"class.nvinfer1::Dims64", i32, i32, float }
%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }

@.str = external hidden unnamed_addr constant [106 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [15 x i8], align 1
@__func__._ZN8nvinfer16plugin4bert26SkipLayerNormPluginDynamic15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i = external hidden unnamed_addr constant [16 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [61 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

declare ptr @__cxa_begin_catch(ptr)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8)) #5

declare void @__cxa_end_catch()

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSt5equalIPKlS1_EbT_S2_T0_(ptr noundef, ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8nvinfer16plugin4bert28SkipLayerNormVarSeqlenPlugin15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  %17 = load ptr, ptr %6, align 8
  %18 = load ptr, ptr %7, align 8, !tbaa !5
  %19 = icmp ne ptr %18, null
  br i1 %19, label %26, label %20

20:                                               ; preds = %5
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert26SkipLayerNormPluginDynamic15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i, i32 noundef 736, i32 noundef 0, ptr noundef @.str.9) #7
          to label %21 unwind label %22

21:                                               ; preds = %20
  unreachable

22:                                               ; preds = %106, %88, %69, %58, %39, %34, %29, %20
  %23 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %24 = extractvalue { ptr, i32 } %23, 0
  store ptr %24, ptr %11, align 8
  %25 = extractvalue { ptr, i32 } %23, 1
  store i32 %25, ptr %12, align 4
  br label %131

26:                                               ; preds = %5
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = icmp ne ptr %27, null
  br i1 %28, label %31, label %29

29:                                               ; preds = %26
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert26SkipLayerNormPluginDynamic15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i, i32 noundef 737, i32 noundef 0, ptr noundef @.str.19) #7
          to label %30 unwind label %22

30:                                               ; preds = %29
  unreachable

31:                                               ; preds = %26
  %32 = load i32, ptr %10, align 4, !tbaa !9
  %33 = icmp eq i32 %32, 1
  br i1 %33, label %36, label %34

34:                                               ; preds = %31
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert26SkipLayerNormPluginDynamic15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i, i32 noundef 738, i32 noundef 0, ptr noundef @.str.14) #7
          to label %35 unwind label %22

35:                                               ; preds = %34
  unreachable

36:                                               ; preds = %31
  %37 = load i32, ptr %8, align 4, !tbaa !9
  %38 = icmp eq i32 %37, 2
  br i1 %38, label %41, label %39

39:                                               ; preds = %36
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert26SkipLayerNormPluginDynamic15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i, i32 noundef 739, i32 noundef 0, ptr noundef @.str.10) #7
          to label %40 unwind label %22

40:                                               ; preds = %39
  unreachable

41:                                               ; preds = %36
  %42 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %17, i32 0, i32 8
  %43 = load i32, ptr %42, align 8, !tbaa !11
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %49, label %45

45:                                               ; preds = %41
  %46 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %17, i32 0, i32 8
  %47 = load i32, ptr %46, align 8, !tbaa !11
  %48 = icmp eq i32 %47, 1
  br i1 %48, label %49, label %72

49:                                               ; preds = %45, %41
  %50 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %17, i32 0, i32 8
  %51 = load i32, ptr %50, align 8, !tbaa !11
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %52, i64 0
  %54 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %53, i32 0, i32 0
  %55 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %54, i32 0, i32 1
  %56 = load i32, ptr %55, align 8, !tbaa !29
  %57 = icmp eq i32 %51, %56
  br i1 %57, label %60, label %58

58:                                               ; preds = %49
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert26SkipLayerNormPluginDynamic15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i, i32 noundef 743, i32 noundef 0, ptr noundef @.str.20) #7
          to label %59 unwind label %22

59:                                               ; preds = %58
  unreachable

60:                                               ; preds = %49
  %61 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %17, i32 0, i32 8
  %62 = load i32, ptr %61, align 8, !tbaa !11
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %63, i64 1
  %65 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %64, i32 0, i32 0
  %66 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %65, i32 0, i32 1
  %67 = load i32, ptr %66, align 8, !tbaa !29
  %68 = icmp eq i32 %62, %67
  br i1 %68, label %71, label %69

69:                                               ; preds = %60
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert26SkipLayerNormPluginDynamic15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i, i32 noundef 744, i32 noundef 0, ptr noundef @.str.21) #7
          to label %70 unwind label %22

70:                                               ; preds = %69
  unreachable

71:                                               ; preds = %60
  br label %109

72:                                               ; preds = %45
  %73 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %17, i32 0, i32 8
  %74 = load i32, ptr %73, align 8, !tbaa !11
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %75, i64 0
  %77 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %76, i32 0, i32 0
  %78 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %77, i32 0, i32 1
  %79 = load i32, ptr %78, align 8, !tbaa !29
  %80 = icmp eq i32 %74, %79
  br i1 %80, label %90, label %81

81:                                               ; preds = %72
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %82, i64 0
  %84 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %83, i32 0, i32 0
  %85 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %84, i32 0, i32 1
  %86 = load i32, ptr %85, align 8, !tbaa !29
  %87 = icmp eq i32 0, %86
  br i1 %87, label %90, label %88

88:                                               ; preds = %81
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert26SkipLayerNormPluginDynamic15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i, i32 noundef 748, i32 noundef 0, ptr noundef @.str.22) #7
          to label %89 unwind label %22

89:                                               ; preds = %88
  unreachable

90:                                               ; preds = %81, %72
  %91 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %17, i32 0, i32 8
  %92 = load i32, ptr %91, align 8, !tbaa !11
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %93, i64 1
  %95 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %94, i32 0, i32 0
  %96 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %95, i32 0, i32 1
  %97 = load i32, ptr %96, align 8, !tbaa !29
  %98 = icmp eq i32 %92, %97
  br i1 %98, label %108, label %99

99:                                               ; preds = %90
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %100, i64 1
  %102 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %101, i32 0, i32 0
  %103 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %102, i32 0, i32 1
  %104 = load i32, ptr %103, align 8, !tbaa !29
  %105 = icmp eq i32 0, %104
  br i1 %105, label %108, label %106

106:                                              ; preds = %99
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert26SkipLayerNormPluginDynamic15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i, i32 noundef 749, i32 noundef 0, ptr noundef @.str.23) #7
          to label %107 unwind label %22

107:                                              ; preds = %106
  unreachable

108:                                              ; preds = %99, %90
  br label %109

109:                                              ; preds = %108, %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %110, i64 0
  %112 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %111, i32 0, i32 0
  %113 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %112, i32 0, i32 0
  store ptr %113, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %114, i64 1
  %116 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %115, i32 0, i32 0
  %117 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %116, i32 0, i32 0
  store ptr %117, ptr %14, align 8, !tbaa !5
  %118 = load ptr, ptr %13, align 8, !tbaa !5
  %119 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %118, i32 0, i32 0
  %120 = load i32, ptr %119, align 8, !tbaa !35
  %121 = load ptr, ptr %14, align 8, !tbaa !5
  %122 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %121, i32 0, i32 0
  %123 = load i32, ptr %122, align 8, !tbaa !35
  %124 = icmp eq i32 %120, %123
  br i1 %124, label %142, label %125

125:                                              ; preds = %109
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert26SkipLayerNormPluginDynamic15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i, i32 noundef 753, i32 noundef 0, ptr noundef @.str.24) #7
          to label %126 unwind label %127

126:                                              ; preds = %125
  unreachable

127:                                              ; preds = %159, %142, %125
  %128 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %11, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %131

131:                                              ; preds = %127, %22
  %132 = load i32, ptr %12, align 4
  %133 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #8
  %134 = icmp eq i32 %132, %133
  br i1 %134, label %135, label %194

135:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %136 = load ptr, ptr %11, align 8
  %137 = call ptr @__cxa_begin_catch(ptr %136) #8
  store ptr %137, ptr %16, align 8
  %138 = load ptr, ptr %16, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %138)
          to label %139 unwind label %191

139:                                              ; preds = %135
  invoke void @__cxa_end_catch()
          to label %140 unwind label %191

140:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %141

141:                                              ; preds = %185, %140
  ret void

142:                                              ; preds = %109
  %143 = load ptr, ptr %13, align 8, !tbaa !5
  %144 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %143, i32 0, i32 1
  %145 = getelementptr inbounds [8 x i64], ptr %144, i64 0, i64 0
  %146 = load ptr, ptr %13, align 8, !tbaa !5
  %147 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %146, i32 0, i32 1
  %148 = getelementptr inbounds [8 x i64], ptr %147, i64 0, i64 0
  %149 = load ptr, ptr %13, align 8, !tbaa !5
  %150 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %149, i32 0, i32 0
  %151 = load i32, ptr %150, align 8, !tbaa !35
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds i64, ptr %148, i64 %152
  %154 = load ptr, ptr %14, align 8, !tbaa !5
  %155 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %154, i32 0, i32 1
  %156 = getelementptr inbounds [8 x i64], ptr %155, i64 0, i64 0
  %157 = invoke noundef zeroext i1 @_ZSt5equalIPKlS1_EbT_S2_T0_(ptr noundef %145, ptr noundef %153, ptr noundef %156)
          to label %158 unwind label %127

158:                                              ; preds = %142
  br i1 %157, label %161, label %159

159:                                              ; preds = %158
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert26SkipLayerNormPluginDynamic15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i, i32 noundef 755, i32 noundef 0, ptr noundef @.str.25) #7
          to label %160 unwind label %127

160:                                              ; preds = %159
  unreachable

161:                                              ; preds = %158
  %162 = load ptr, ptr %7, align 8, !tbaa !5
  %163 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %162, i64 0
  %164 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %163, i32 0, i32 0
  %165 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %164, i32 0, i32 1
  %166 = load i32, ptr %165, align 8, !tbaa !29
  %167 = icmp eq i32 %166, 2
  br i1 %167, label %168, label %169

168:                                              ; preds = %161
  br label %175

169:                                              ; preds = %161
  %170 = load ptr, ptr %7, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %170, i64 0
  %172 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %171, i32 0, i32 0
  %173 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %172, i32 0, i32 1
  %174 = load i32, ptr %173, align 8, !tbaa !29
  br label %175

175:                                              ; preds = %169, %168
  %176 = phi i32 [ 1, %168 ], [ %174, %169 ]
  %177 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %17, i32 0, i32 9
  store i32 %176, ptr %177, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %178 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %17, i32 0, i32 9
  %179 = load i32, ptr %178, align 4, !tbaa !36
  %180 = icmp eq i32 %179, 2
  br i1 %180, label %181, label %182

181:                                              ; preds = %175
  br label %185

182:                                              ; preds = %175
  %183 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %17, i32 0, i32 9
  %184 = load i32, ptr %183, align 4, !tbaa !36
  br label %185

185:                                              ; preds = %182, %181
  %186 = phi i32 [ 1, %181 ], [ %184, %182 ]
  store i32 %186, ptr %15, align 4, !tbaa !37
  %187 = load i32, ptr %15, align 4, !tbaa !37
  %188 = call noundef i32 @_ZN8nvinfer16plugin4bert14getElementSizeENS_8DataTypeE(i32 noundef %187) #8
  %189 = zext i32 %188 to i64
  %190 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPlugin", ptr %17, i32 0, i32 13
  store i64 %189, ptr %190, align 8, !tbaa !38
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %141

191:                                              ; preds = %139, %135
  %192 = landingpad { ptr, i32 }
          catch ptr null
  %193 = extractvalue { ptr, i32 } %192, 0
  call void @__clang_call_terminate(ptr %193) #9
  unreachable

194:                                              ; preds = %131
  %195 = load ptr, ptr %11, align 8
  call void @__clang_call_terminate(ptr %195) #9
  unreachable
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !27, i64 144}
!12 = !{!"_ZTSN8nvinfer16plugin4bert28SkipLayerNormVarSeqlenPluginE", !13, i64 0, !16, i64 8, !16, i64 40, !19, i64 72, !19, i64 80, !18, i64 88, !25, i64 96, !25, i64 120, !27, i64 144, !27, i64 148, !28, i64 152, !19, i64 160, !25, i64 168, !18, i64 192}
!13 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !14, i64 0}
!14 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !15, i64 0}
!15 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !18, i64 8, !7, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !20, i64 0}
!20 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !21, i64 0}
!21 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !22, i64 0}
!22 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !23, i64 0}
!23 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !24, i64 0}
!24 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !6, i64 0}
!25 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !26, i64 0}
!26 = !{!"_ZTSN8nvinfer17WeightsE", !27, i64 0, !6, i64 8, !18, i64 16}
!27 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!28 = !{!"bool", !7, i64 0}
!29 = !{!30, !27, i64 72}
!30 = !{!"_ZTSN8nvinfer123DynamicPluginTensorDescE", !31, i64 0, !32, i64 88, !32, i64 160, !32, i64 232}
!31 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !32, i64 0, !27, i64 72, !33, i64 76, !34, i64 80}
!32 = !{!"_ZTSN8nvinfer16Dims64E", !10, i64 0, !7, i64 8}
!33 = !{!"_ZTSN8nvinfer112TensorFormatE", !7, i64 0}
!34 = !{!"float", !7, i64 0}
!35 = !{!32, !10, i64 0}
!36 = !{!12, !27, i64 148}
!37 = !{!27, !27, i64 0}
!38 = !{!12, !18, i64 192}


; 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
@_ZTISt9exception = external constant ptr
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [15 x i8], align 1
@__func__._ZN8nvinfer16plugin4bert26SkipLayerNormPluginDynamic15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i = external hidden unnamed_addr constant [16 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [61 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

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

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSt5equalIPKlS1_EbT_S2_T0_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8nvinfer16plugin4bert28SkipLayerNormVarSeqlenPlugin15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i(ptr nocapture noundef nonnull align 8 dereferenceable(200) %0, ptr noundef %1, i32 noundef %2, ptr noundef readnone %3, i32 noundef %4) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %.invoke, label %8

6:                                                ; preds = %.invoke
  %7 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %40

8:                                                ; preds = %5
  %.not34 = icmp eq ptr %3, null
  br i1 %.not34, label %.invoke, label %9

9:                                                ; preds = %8
  %10 = icmp eq i32 %4, 1
  br i1 %10, label %11, label %.invoke

11:                                               ; preds = %9
  %12 = icmp eq i32 %2, 2
  br i1 %12, label %13, label %.invoke

13:                                               ; preds = %11
  %14 = getelementptr inbounds i8, ptr %0, i64 144
  %15 = load i32, ptr %14, align 8, !tbaa !5
  %switch = icmp ult i32 %15, 2
  %16 = getelementptr inbounds i8, ptr %1, i64 72
  %17 = load i32, ptr %16, align 8, !tbaa !26
  %18 = icmp eq i32 %15, %17
  br i1 %switch, label %19, label %24

19:                                               ; preds = %13
  br i1 %18, label %20, label %.invoke

20:                                               ; preds = %19
  %21 = getelementptr inbounds i8, ptr %1, i64 376
  %22 = load i32, ptr %21, align 8, !tbaa !26
  %23 = icmp eq i32 %15, %22
  br i1 %23, label %33, label %.invoke

24:                                               ; preds = %13
  %25 = icmp eq i32 %17, 0
  %or.cond = or i1 %18, %25
  br i1 %or.cond, label %26, label %.invoke

26:                                               ; preds = %24
  %27 = getelementptr inbounds i8, ptr %1, i64 376
  %28 = load i32, ptr %27, align 8, !tbaa !26
  %29 = icmp eq i32 %15, %28
  %30 = icmp eq i32 %28, 0
  %or.cond36 = or i1 %29, %30
  br i1 %or.cond36, label %33, label %.invoke

.invoke:                                          ; preds = %5, %26, %24, %20, %19, %11, %9, %8
  %31 = phi i32 [ 737, %8 ], [ 738, %9 ], [ 739, %11 ], [ 743, %19 ], [ 744, %20 ], [ 748, %24 ], [ 749, %26 ], [ 736, %5 ]
  %32 = phi ptr [ @.str.19, %8 ], [ @.str.14, %9 ], [ @.str.10, %11 ], [ @.str.20, %19 ], [ @.str.21, %20 ], [ @.str.22, %24 ], [ @.str.23, %26 ], [ @.str.9, %5 ]
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin4bert26SkipLayerNormPluginDynamic15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i, i32 noundef %31, i32 noundef 0, ptr noundef nonnull %32) #6
          to label %.cont unwind label %6

.cont:                                            ; preds = %.invoke
  unreachable

33:                                               ; preds = %26, %20
  %34 = getelementptr inbounds i8, ptr %1, i64 304
  %35 = load i32, ptr %1, align 8, !tbaa !33
  %36 = load i32, ptr %34, align 8, !tbaa !33
  %37 = icmp eq i32 %35, %36
  br i1 %37, label %47, label %.invoke37

38:                                               ; preds = %.invoke37, %47
  %39 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %40

40:                                               ; preds = %38, %6
  %.pn = phi { ptr, i32 } [ %39, %38 ], [ %7, %6 ]
  %.0 = extractvalue { ptr, i32 } %.pn, 0
  %.025 = extractvalue { ptr, i32 } %.pn, 1
  %41 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #7
  %42 = icmp eq i32 %.025, %41
  br i1 %42, label %43, label %67

43:                                               ; preds = %40
  %44 = tail call ptr @__cxa_begin_catch(ptr %.0) #7
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %44)
          to label %45 unwind label %64

45:                                               ; preds = %43
  invoke void @__cxa_end_catch()
          to label %46 unwind label %64

46:                                               ; preds = %45, %56
  ret void

47:                                               ; preds = %33
  %48 = getelementptr inbounds i8, ptr %1, i64 8
  %49 = sext i32 %35 to i64
  %50 = getelementptr inbounds i64, ptr %48, i64 %49
  %51 = getelementptr inbounds i8, ptr %1, i64 312
  %52 = invoke noundef zeroext i1 @_ZSt5equalIPKlS1_EbT_S2_T0_(ptr noundef nonnull %48, ptr noundef nonnull %50, ptr noundef nonnull %51)
          to label %53 unwind label %38

53:                                               ; preds = %47
  br i1 %52, label %56, label %.invoke37

.invoke37:                                        ; preds = %33, %53
  %54 = phi i32 [ 755, %53 ], [ 753, %33 ]
  %55 = phi ptr [ @.str.25, %53 ], [ @.str.24, %33 ]
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin4bert26SkipLayerNormPluginDynamic15configurePluginEPKNS_23DynamicPluginTensorDescEiS5_i, i32 noundef %54, i32 noundef 0, ptr noundef nonnull %55) #6
          to label %.cont38 unwind label %38

.cont38:                                          ; preds = %.invoke37
  unreachable

56:                                               ; preds = %53
  %57 = getelementptr inbounds i8, ptr %1, i64 72
  %58 = load i32, ptr %57, align 8, !tbaa !26
  %59 = icmp eq i32 %58, 2
  %spec.select = select i1 %59, i32 1, i32 %58
  %60 = getelementptr inbounds i8, ptr %0, i64 148
  store i32 %spec.select, ptr %60, align 4, !tbaa !34
  %61 = tail call noundef i32 @_ZN8nvinfer16plugin4bert14getElementSizeENS_8DataTypeE(i32 noundef %spec.select) #7
  %62 = zext i32 %61 to i64
  %63 = getelementptr inbounds i8, ptr %0, i64 192
  store i64 %62, ptr %63, align 8, !tbaa !35
  br label %46

64:                                               ; preds = %45, %43
  %65 = landingpad { ptr, i32 }
          catch ptr null
  %66 = extractvalue { ptr, i32 } %65, 0
  tail call void @__clang_call_terminate(ptr %66) #8
  unreachable

67:                                               ; preds = %40
  tail call void @__clang_call_terminate(ptr %.0) #8
  unreachable
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !24, i64 144}
!6 = !{!"_ZTSN8nvinfer16plugin4bert28SkipLayerNormVarSeqlenPluginE", !7, i64 0, !10, i64 8, !10, i64 40, !16, i64 72, !16, i64 80, !15, i64 88, !22, i64 96, !22, i64 120, !24, i64 144, !24, i64 148, !25, i64 152, !16, i64 160, !22, i64 168, !15, i64 192}
!7 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !8, i64 0}
!8 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !9, i64 0}
!9 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!10 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !11, i64 0, !15, i64 8, !13, i64 16}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!12 = !{!"any pointer", !13, i64 0}
!13 = !{!"omnipotent char", !14, i64 0}
!14 = !{!"Simple C++ TBAA"}
!15 = !{!"long", !13, i64 0}
!16 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !17, i64 0}
!17 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !18, i64 0}
!18 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !19, i64 0}
!19 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !20, i64 0}
!20 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !21, i64 0}
!21 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !12, i64 0}
!22 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !23, i64 0}
!23 = !{!"_ZTSN8nvinfer17WeightsE", !24, i64 0, !12, i64 8, !15, i64 16}
!24 = !{!"_ZTSN8nvinfer18DataTypeE", !13, i64 0}
!25 = !{!"bool", !13, i64 0}
!26 = !{!27, !24, i64 72}
!27 = !{!"_ZTSN8nvinfer123DynamicPluginTensorDescE", !28, i64 0, !29, i64 88, !29, i64 160, !29, i64 232}
!28 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !29, i64 0, !24, i64 72, !31, i64 76, !32, i64 80}
!29 = !{!"_ZTSN8nvinfer16Dims64E", !30, i64 0, !13, i64 8}
!30 = !{!"int", !13, i64 0}
!31 = !{!"_ZTSN8nvinfer112TensorFormatE", !13, i64 0}
!32 = !{!"float", !13, i64 0}
!33 = !{!29, !30, i64 0}
!34 = !{!6, !24, i64 148}
!35 = !{!6, !15, i64 192}


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