; LLVM IR from NVIDIA/TensorRT :: plugin/embLayerNormPlugin (embLayerNormVarSeqlenPlugin)

; 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::DimsExprs" = type { i32, [8 x ptr] }
%"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase" = 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", %"class.std::unique_ptr.6", %"class.std::unique_ptr.6", %"class.std::unique_ptr.6", i64, i64, i64, i64, %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", i32, i32, %"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 }
%"class.std::unique_ptr.6" = type { %"struct.std::__uniq_ptr_data.7" }
%"struct.std::__uniq_ptr_data.7" = type { %"class.std::__uniq_ptr_impl.8" }
%"class.std::__uniq_ptr_impl.8" = type { %"class.std::tuple.9" }
%"class.std::tuple.9" = type { %"struct.std::_Tuple_impl.10" }
%"struct.std::_Tuple_impl.10" = type { %"struct.std::_Head_base.13" }
%"struct.std::_Head_base.13" = 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 [107 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.35 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [15 x i8], align 1
@__func__._ZN8nvinfer16plugin4bert32EmbLayerNormVarSeqlenPluginHFace15getOutputShapesEPKNS_9DimsExprsEiS5_iPS3_iRNS_12IExprBuilderE = external hidden unnamed_addr constant [16 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [22 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

declare void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: 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) #3

declare ptr @__cxa_begin_catch(ptr)

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

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #4

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

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

24:                                               ; preds = %8
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert32EmbLayerNormVarSeqlenPluginHFace15getOutputShapesEPKNS_9DimsExprsEiS5_iPS3_iRNS_12IExprBuilderE, i32 noundef 616, i32 noundef 0, ptr noundef @.str.37) #7
          to label %25 unwind label %26

25:                                               ; preds = %24
  unreachable

26:                                               ; preds = %82, %74, %62, %54, %49, %44, %24
  %27 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %28 = extractvalue { ptr, i32 } %27, 0
  store ptr %28, ptr %18, align 8
  %29 = extractvalue { ptr, i32 } %27, 1
  store i32 %29, ptr %19, align 4
  br label %30

30:                                               ; preds = %26
  %31 = load i32, ptr %19, align 4
  %32 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #8
  %33 = icmp eq i32 %31, %32
  br i1 %33, label %34, label %154

34:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %35 = load ptr, ptr %18, align 8
  %36 = call ptr @__cxa_begin_catch(ptr %35) #8
  store ptr %36, ptr %20, align 8
  %37 = load ptr, ptr %20, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %37)
          to label %38 unwind label %151

38:                                               ; preds = %34
  invoke void @__cxa_end_catch()
          to label %39 unwind label %151

39:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %40

40:                                               ; preds = %39
  store i32 1, ptr %9, align 4
  br label %149

41:                                               ; preds = %8
  %42 = load ptr, ptr %15, align 8, !tbaa !5
  %43 = icmp ne ptr %42, null
  br i1 %43, label %46, label %44

44:                                               ; preds = %41
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert32EmbLayerNormVarSeqlenPluginHFace15getOutputShapesEPKNS_9DimsExprsEiS5_iPS3_iRNS_12IExprBuilderE, i32 noundef 617, i32 noundef 0, ptr noundef @.str.38) #7
          to label %45 unwind label %26

45:                                               ; preds = %44
  unreachable

46:                                               ; preds = %41
  %47 = load i32, ptr %12, align 4, !tbaa !9
  %48 = icmp eq i32 %47, 4
  br i1 %48, label %51, label %49

49:                                               ; preds = %46
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.35, ptr noundef @.str, i32 noundef 620)
          to label %50 unwind label %26

50:                                               ; preds = %49
  br label %51

51:                                               ; preds = %50, %46
  %52 = load i32, ptr %16, align 4, !tbaa !9
  %53 = icmp eq i32 %52, 2
  br i1 %53, label %56, label %54

54:                                               ; preds = %51
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.36, ptr noundef @.str, i32 noundef 621)
          to label %55 unwind label %26

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %55, %51
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %57, i64 0
  %59 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %58, i32 0, i32 0
  %60 = load i32, ptr %59, align 8, !tbaa !11
  %61 = icmp eq i32 %60, 1
  br i1 %61, label %64, label %62

62:                                               ; preds = %56
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.39, ptr noundef @.str, i32 noundef 623)
          to label %63 unwind label %26

63:                                               ; preds = %62
  br label %64

64:                                               ; preds = %63, %56
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  %66 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %65, i64 0
  %67 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %66, i32 0, i32 0
  %68 = load i32, ptr %67, align 8, !tbaa !11
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  %70 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %69, i64 1
  %71 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %70, i32 0, i32 0
  %72 = load i32, ptr %71, align 8, !tbaa !11
  %73 = icmp eq i32 %68, %72
  br i1 %73, label %76, label %74

74:                                               ; preds = %64
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.40, ptr noundef @.str, i32 noundef 624)
          to label %75 unwind label %26

75:                                               ; preds = %74
  br label %76

76:                                               ; preds = %75, %64
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  %78 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %77, i64 2
  %79 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %78, i32 0, i32 0
  %80 = load i32, ptr %79, align 8, !tbaa !11
  %81 = icmp eq i32 %80, 1
  br i1 %81, label %84, label %82

82:                                               ; preds = %76
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.41, ptr noundef @.str, i32 noundef 625)
          to label %83 unwind label %26

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83, %76
  %85 = load ptr, ptr %15, align 8, !tbaa !5
  %86 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %85, i64 0
  %87 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %86, i32 0, i32 0
  store i32 4, ptr %87, align 8, !tbaa !11
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %88, i64 0
  %90 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %89, i32 0, i32 1
  %91 = getelementptr inbounds [8 x ptr], ptr %90, i64 0, i64 0
  %92 = load ptr, ptr %91, align 8, !tbaa !5
  %93 = load ptr, ptr %15, align 8, !tbaa !5
  %94 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %93, i64 0
  %95 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %94, i32 0, i32 1
  %96 = getelementptr inbounds [8 x ptr], ptr %95, i64 0, i64 0
  store ptr %92, ptr %96, align 8, !tbaa !5
  %97 = load ptr, ptr %17, align 8, !tbaa !5
  %98 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %21, i32 0, i32 11
  %99 = load i64, ptr %98, align 8, !tbaa !13
  %100 = call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %97, i64 noundef %99) #8
  %101 = load ptr, ptr %15, align 8, !tbaa !5
  %102 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %101, i64 0
  %103 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %102, i32 0, i32 1
  %104 = getelementptr inbounds [8 x ptr], ptr %103, i64 0, i64 1
  store ptr %100, ptr %104, align 8, !tbaa !5
  %105 = load ptr, ptr %17, align 8, !tbaa !5
  %106 = call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %105, i64 noundef 1) #8
  %107 = load ptr, ptr %15, align 8, !tbaa !5
  %108 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %107, i64 0
  %109 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %108, i32 0, i32 1
  %110 = getelementptr inbounds [8 x ptr], ptr %109, i64 0, i64 2
  store ptr %106, ptr %110, align 8, !tbaa !5
  %111 = load ptr, ptr %17, align 8, !tbaa !5
  %112 = call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %111, i64 noundef 1) #8
  %113 = load ptr, ptr %15, align 8, !tbaa !5
  %114 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %113, i64 0
  %115 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %114, i32 0, i32 1
  %116 = getelementptr inbounds [8 x ptr], ptr %115, i64 0, i64 3
  store ptr %112, ptr %116, align 8, !tbaa !5
  %117 = load ptr, ptr %15, align 8, !tbaa !5
  %118 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %117, i64 1
  %119 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %118, i32 0, i32 0
  store i32 4, ptr %119, align 8, !tbaa !11
  %120 = load ptr, ptr %11, align 8, !tbaa !5
  %121 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %120, i64 0
  %122 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %121, i32 0, i32 1
  %123 = getelementptr inbounds [8 x ptr], ptr %122, i64 0, i64 0
  %124 = load ptr, ptr %123, align 8, !tbaa !5
  %125 = load ptr, ptr %15, align 8, !tbaa !5
  %126 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %125, i64 1
  %127 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %126, i32 0, i32 1
  %128 = getelementptr inbounds [8 x ptr], ptr %127, i64 0, i64 0
  store ptr %124, ptr %128, align 8, !tbaa !5
  %129 = load ptr, ptr %17, align 8, !tbaa !5
  %130 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %21, i32 0, i32 11
  %131 = load i64, ptr %130, align 8, !tbaa !13
  %132 = call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %129, i64 noundef %131) #8
  %133 = load ptr, ptr %15, align 8, !tbaa !5
  %134 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %133, i64 1
  %135 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %134, i32 0, i32 1
  %136 = getelementptr inbounds [8 x ptr], ptr %135, i64 0, i64 1
  store ptr %132, ptr %136, align 8, !tbaa !5
  %137 = load ptr, ptr %17, align 8, !tbaa !5
  %138 = call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %137, i64 noundef 1) #8
  %139 = load ptr, ptr %15, align 8, !tbaa !5
  %140 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %139, i64 1
  %141 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %140, i32 0, i32 1
  %142 = getelementptr inbounds [8 x ptr], ptr %141, i64 0, i64 2
  store ptr %138, ptr %142, align 8, !tbaa !5
  %143 = load ptr, ptr %17, align 8, !tbaa !5
  %144 = call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %143, i64 noundef 1) #8
  %145 = load ptr, ptr %15, align 8, !tbaa !5
  %146 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %145, i64 1
  %147 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %146, i32 0, i32 1
  %148 = getelementptr inbounds [8 x ptr], ptr %147, i64 0, i64 3
  store ptr %144, ptr %148, align 8, !tbaa !5
  store i32 0, ptr %9, align 4
  br label %149

149:                                              ; preds = %84, %40
  %150 = load i32, ptr %9, align 4
  ret i32 %150

151:                                              ; preds = %38, %34
  %152 = landingpad { ptr, i32 }
          catch ptr null
  %153 = extractvalue { ptr, i32 } %152, 0
  call void @__clang_call_terminate(ptr %153) #9
  unreachable

154:                                              ; preds = %30
  %155 = load ptr, ptr %18, align 8
  call void @__clang_call_terminate(ptr %155) #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 = { "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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !10, i64 0}
!12 = !{!"_ZTSN8nvinfer19DimsExprsE", !10, i64 0, !7, i64 8}
!13 = !{!14, !23, i64 136}
!14 = !{!"_ZTSN8nvinfer16plugin4bert31EmbLayerNormVarSeqlenPluginBaseE", !15, i64 0, !17, i64 8, !19, i64 16, !20, i64 24, !21, i64 32, !21, i64 64, !24, i64 96, !24, i64 104, !30, i64 112, !30, i64 120, !30, i64 128, !23, i64 136, !23, i64 144, !23, i64 152, !23, i64 160, !36, i64 168, !36, i64 192, !36, i64 216, !36, i64 240, !36, i64 264, !38, i64 288, !38, i64 292, !39, i64 296, !43, i64 320}
!15 = !{!"_ZTSN8nvinfer15v_1_09IPluginV3E", !16, i64 0}
!16 = !{!"_ZTSN8nvinfer119IVersionedInterfaceE"}
!17 = !{!"_ZTSN8nvinfer15v_1_016IPluginV3OneCoreE", !18, i64 0}
!18 = !{!"_ZTSN8nvinfer15v_1_017IPluginCapabilityE", !16, i64 0}
!19 = !{!"_ZTSN8nvinfer15v_1_017IPluginV3OneBuildE", !18, i64 0}
!20 = !{!"_ZTSN8nvinfer15v_1_019IPluginV3OneRuntimeE", !18, i64 0}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !23, i64 8, !7, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTSSt10unique_ptrIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !25, i64 0}
!25 = !{!"_ZTSSt15__uniq_ptr_dataIfN8nvinfer114pluginInternal11CudaDeleterIfEELb1ELb1EE", !26, i64 0}
!26 = !{!"_ZTSSt15__uniq_ptr_implIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !27, i64 0}
!27 = !{!"_ZTSSt5tupleIJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !28, i64 0}
!28 = !{!"_ZTSSt11_Tuple_implILm0EJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !29, i64 0}
!29 = !{!"_ZTSSt10_Head_baseILm0EPfLb0EE", !6, i64 0}
!30 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !31, i64 0}
!31 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !32, i64 0}
!32 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !33, i64 0}
!33 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !34, i64 0}
!34 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !35, i64 0}
!35 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !6, i64 0}
!36 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !37, i64 0}
!37 = !{!"_ZTSN8nvinfer17WeightsE", !38, i64 0, !6, i64 8, !23, i64 16}
!38 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!39 = !{!"_ZTSSt6vectorIN8nvinfer111PluginFieldESaIS1_EE", !40, i64 0}
!40 = !{!"_ZTSSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE12_Vector_implE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!43 = !{!"_ZTSN8nvinfer121PluginFieldCollectionE", !10, i64 0, !6, i64 8}


; 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 [107 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.35 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [15 x i8], align 1
@__func__._ZN8nvinfer16plugin4bert32EmbLayerNormVarSeqlenPluginHFace15getOutputShapesEPKNS_9DimsExprsEiS5_iPS3_iRNS_12IExprBuilderE = external hidden unnamed_addr constant [16 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [22 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

declare void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef, ptr noundef, 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: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZN8nvinfer16plugin4bert32EmbLayerNormVarSeqlenPluginMTron15getOutputShapesEPKNS_9DimsExprsEiS5_iPS3_iRNS_12IExprBuilderE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(336) %0, ptr noundef readonly %1, i32 noundef %2, ptr nocapture noundef readnone %3, i32 noundef %4, ptr noundef writeonly %5, i32 noundef %6, ptr noundef nonnull align 8 dereferenceable(16) %7) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %.invoke, label %18

9:                                                ; preds = %.invoke, %41, %36, %30, %26, %23
  %10 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %11 = extractvalue { ptr, i32 } %10, 0
  %12 = extractvalue { ptr, i32 } %10, 1
  %13 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #6
  %14 = icmp eq i32 %12, %13
  br i1 %14, label %15, label %68

15:                                               ; preds = %9
  %16 = tail call ptr @__cxa_begin_catch(ptr %11) #6
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %17 unwind label %65

17:                                               ; preds = %15
  invoke void @__cxa_end_catch()
          to label %64 unwind label %65

18:                                               ; preds = %8
  %.not33 = icmp eq ptr %5, null
  br i1 %.not33, label %.invoke, label %21

.invoke:                                          ; preds = %8, %18
  %19 = phi i32 [ 617, %18 ], [ 616, %8 ]
  %20 = phi ptr [ @.str.38, %18 ], [ @.str.37, %8 ]
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin4bert32EmbLayerNormVarSeqlenPluginHFace15getOutputShapesEPKNS_9DimsExprsEiS5_iPS3_iRNS_12IExprBuilderE, i32 noundef %19, i32 noundef 0, ptr noundef nonnull %20) #7
          to label %.cont unwind label %9

.cont:                                            ; preds = %.invoke
  unreachable

21:                                               ; preds = %18
  %22 = icmp eq i32 %2, 4
  br i1 %22, label %24, label %23

23:                                               ; preds = %21
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.35, ptr noundef nonnull @.str, i32 noundef 620)
          to label %24 unwind label %9

24:                                               ; preds = %23, %21
  %25 = icmp eq i32 %6, 2
  br i1 %25, label %27, label %26

26:                                               ; preds = %24
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.36, ptr noundef nonnull @.str, i32 noundef 621)
          to label %27 unwind label %9

27:                                               ; preds = %26, %24
  %28 = load i32, ptr %1, align 8, !tbaa !5
  %29 = icmp eq i32 %28, 1
  br i1 %29, label %31, label %30

30:                                               ; preds = %27
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.39, ptr noundef nonnull @.str, i32 noundef 623)
          to label %._crit_edge unwind label %9

._crit_edge:                                      ; preds = %30
  %.pre = load i32, ptr %1, align 8, !tbaa !5
  br label %31

31:                                               ; preds = %._crit_edge, %27
  %32 = phi i32 [ %.pre, %._crit_edge ], [ 1, %27 ]
  %33 = getelementptr inbounds i8, ptr %1, i64 72
  %34 = load i32, ptr %33, align 8, !tbaa !5
  %35 = icmp eq i32 %32, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %31
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.40, ptr noundef nonnull @.str, i32 noundef 624)
          to label %37 unwind label %9

37:                                               ; preds = %36, %31
  %38 = getelementptr inbounds i8, ptr %1, i64 144
  %39 = load i32, ptr %38, align 8, !tbaa !5
  %40 = icmp eq i32 %39, 1
  br i1 %40, label %42, label %41

41:                                               ; preds = %37
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.41, ptr noundef nonnull @.str, i32 noundef 625)
          to label %42 unwind label %9

42:                                               ; preds = %41, %37
  store i32 4, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %1, i64 8
  %44 = load ptr, ptr %43, align 8, !tbaa !10
  %45 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr %44, ptr %45, align 8, !tbaa !10
  %46 = getelementptr inbounds i8, ptr %0, i64 136
  %47 = load i64, ptr %46, align 8, !tbaa !12
  %48 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %47) #6
  %49 = getelementptr inbounds i8, ptr %5, i64 16
  store ptr %48, ptr %49, align 8, !tbaa !10
  %50 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef 1) #6
  %51 = getelementptr inbounds i8, ptr %5, i64 24
  store ptr %50, ptr %51, align 8, !tbaa !10
  %52 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef 1) #6
  %53 = getelementptr inbounds i8, ptr %5, i64 32
  store ptr %52, ptr %53, align 8, !tbaa !10
  %54 = getelementptr inbounds i8, ptr %5, i64 72
  store i32 4, ptr %54, align 8, !tbaa !5
  %55 = load ptr, ptr %43, align 8, !tbaa !10
  %56 = getelementptr inbounds i8, ptr %5, i64 80
  store ptr %55, ptr %56, align 8, !tbaa !10
  %57 = load i64, ptr %46, align 8, !tbaa !12
  %58 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %57) #6
  %59 = getelementptr inbounds i8, ptr %5, i64 88
  store ptr %58, ptr %59, align 8, !tbaa !10
  %60 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef 1) #6
  %61 = getelementptr inbounds i8, ptr %5, i64 96
  store ptr %60, ptr %61, align 8, !tbaa !10
  %62 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef 1) #6
  %63 = getelementptr inbounds i8, ptr %5, i64 104
  store ptr %62, ptr %63, align 8, !tbaa !10
  br label %64

64:                                               ; preds = %17, %42
  %.0 = phi i32 [ 0, %42 ], [ 1, %17 ]
  ret i32 %.0

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

68:                                               ; preds = %9
  tail call void @__clang_call_terminate(ptr %11) #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 = { "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 = { nounwind }
attributes #7 = { noreturn }
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, !7, i64 0}
!6 = !{!"_ZTSN8nvinfer19DimsExprsE", !7, i64 0, !8, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !22, i64 136}
!13 = !{!"_ZTSN8nvinfer16plugin4bert31EmbLayerNormVarSeqlenPluginBaseE", !14, i64 0, !16, i64 8, !18, i64 16, !19, i64 24, !20, i64 32, !20, i64 64, !23, i64 96, !23, i64 104, !29, i64 112, !29, i64 120, !29, i64 128, !22, i64 136, !22, i64 144, !22, i64 152, !22, i64 160, !35, i64 168, !35, i64 192, !35, i64 216, !35, i64 240, !35, i64 264, !37, i64 288, !37, i64 292, !38, i64 296, !42, i64 320}
!14 = !{!"_ZTSN8nvinfer15v_1_09IPluginV3E", !15, i64 0}
!15 = !{!"_ZTSN8nvinfer119IVersionedInterfaceE"}
!16 = !{!"_ZTSN8nvinfer15v_1_016IPluginV3OneCoreE", !17, i64 0}
!17 = !{!"_ZTSN8nvinfer15v_1_017IPluginCapabilityE", !15, i64 0}
!18 = !{!"_ZTSN8nvinfer15v_1_017IPluginV3OneBuildE", !17, i64 0}
!19 = !{!"_ZTSN8nvinfer15v_1_019IPluginV3OneRuntimeE", !17, i64 0}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !22, i64 8, !8, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !11, i64 0}
!22 = !{!"long", !8, i64 0}
!23 = !{!"_ZTSSt10unique_ptrIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !24, i64 0}
!24 = !{!"_ZTSSt15__uniq_ptr_dataIfN8nvinfer114pluginInternal11CudaDeleterIfEELb1ELb1EE", !25, i64 0}
!25 = !{!"_ZTSSt15__uniq_ptr_implIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !26, i64 0}
!26 = !{!"_ZTSSt5tupleIJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !27, i64 0}
!27 = !{!"_ZTSSt11_Tuple_implILm0EJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !28, i64 0}
!28 = !{!"_ZTSSt10_Head_baseILm0EPfLb0EE", !11, i64 0}
!29 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !30, i64 0}
!30 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !31, i64 0}
!31 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !32, i64 0}
!32 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !33, i64 0}
!33 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !34, i64 0}
!34 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !11, i64 0}
!35 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !36, i64 0}
!36 = !{!"_ZTSN8nvinfer17WeightsE", !37, i64 0, !11, i64 8, !22, i64 16}
!37 = !{!"_ZTSN8nvinfer18DataTypeE", !8, i64 0}
!38 = !{!"_ZTSSt6vectorIN8nvinfer111PluginFieldESaIS1_EE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!42 = !{!"_ZTSN8nvinfer121PluginFieldCollectionE", !7, i64 0, !11, i64 8}


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