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

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

%"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] }
%"class.nvinfer1::plugin::bert::EmbLayerNormPluginDynamic" = 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.5", %"class.std::unique_ptr.5", %"class.std::unique_ptr.5", i64, 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, i32, 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.4" }
%"struct.std::_Head_base.4" = type { ptr }
%"class.std::unique_ptr.5" = type { %"struct.std::__uniq_ptr_data.6" }
%"struct.std::__uniq_ptr_data.6" = type { %"class.std::__uniq_ptr_impl.7" }
%"class.std::__uniq_ptr_impl.7" = type { %"class.std::tuple.8" }
%"class.std::tuple.8" = type { %"struct.std::_Tuple_impl.9" }
%"struct.std::_Tuple_impl.9" = type { %"struct.std::_Head_base.12" }
%"struct.std::_Head_base.12" = 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 [98 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [14 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr 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: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN8nvinfer16plugin4bert25EmbLayerNormPluginDynamic25supportsFormatCombinationEiPKNS_23DynamicPluginTensorDescEii(ptr noundef nonnull align 8 dereferenceable(360) %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  %15 = load ptr, ptr %7, align 8
  %16 = load i32, ptr %10, align 4, !tbaa !9
  %17 = icmp eq i32 %16, 3
  br i1 %17, label %20, label %18

18:                                               ; preds = %5
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.20, ptr noundef @.str, i32 noundef 362)
          to label %19 unwind label %165

19:                                               ; preds = %18
  br label %20

20:                                               ; preds = %19, %5
  %21 = load i32, ptr %11, align 4, !tbaa !9
  %22 = icmp eq i32 %21, 2
  br i1 %22, label %25, label %23

23:                                               ; preds = %20
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.19, ptr noundef @.str, i32 noundef 363)
          to label %24 unwind label %165

24:                                               ; preds = %23
  br label %25

25:                                               ; preds = %24, %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  %27 = load i32, ptr %8, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %26, i64 %28
  %30 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %29, i32 0, i32 0
  store ptr %30, ptr %12, align 8, !tbaa !5
  %31 = load ptr, ptr %12, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %31, i32 0, i32 2
  %33 = load i32, ptr %32, align 4, !tbaa !11
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %25
  store i1 false, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %163

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

39:                                               ; preds = %36
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %40, i32 0, i32 1
  %42 = load i32, ptr %41, align 8, !tbaa !17
  %43 = icmp eq i32 %42, 3
  br i1 %43, label %44, label %50

44:                                               ; preds = %39
  %45 = load ptr, ptr %12, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %45, i32 0, i32 0
  %47 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %46, i32 0, i32 0
  %48 = load i32, ptr %47, align 8, !tbaa !18
  %49 = icmp eq i32 %48, 2
  br label %50

50:                                               ; preds = %44, %39
  %51 = phi i1 [ false, %39 ], [ %49, %44 ]
  store i1 %51, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %163

52:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = load i32, ptr %8, align 4, !tbaa !9
  %55 = sub nsw i32 %54, 1
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %53, i64 %56
  %58 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %57, i32 0, i32 0
  store ptr %58, ptr %14, align 8, !tbaa !5
  %59 = load i32, ptr %8, align 4, !tbaa !9
  %60 = icmp eq i32 %59, 1
  br i1 %60, label %64, label %61

61:                                               ; preds = %52
  %62 = load i32, ptr %8, align 4, !tbaa !9
  %63 = icmp eq i32 %62, 2
  br i1 %63, label %64, label %101

64:                                               ; preds = %61, %52
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %65, i32 0, i32 1
  %67 = load i32, ptr %66, align 8, !tbaa !17
  %68 = icmp eq i32 %67, 3
  br i1 %68, label %69, label %99

69:                                               ; preds = %64
  %70 = load ptr, ptr %12, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %70, i32 0, i32 0
  %72 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %71, i32 0, i32 0
  %73 = load i32, ptr %72, align 8, !tbaa !18
  %74 = icmp eq i32 %73, 2
  br i1 %74, label %75, label %99

75:                                               ; preds = %69
  %76 = load ptr, ptr %12, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %76, i32 0, i32 0
  %78 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %77, i32 0, i32 1
  %79 = getelementptr inbounds [8 x i64], ptr %78, i64 0, i64 1
  %80 = load i64, ptr %79, align 8, !tbaa !19
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %81, i32 0, i32 0
  %83 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %82, i32 0, i32 1
  %84 = getelementptr inbounds [8 x i64], ptr %83, i64 0, i64 1
  %85 = load i64, ptr %84, align 8, !tbaa !19
  %86 = icmp eq i64 %80, %85
  br i1 %86, label %87, label %99

87:                                               ; preds = %75
  %88 = load ptr, ptr %12, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %88, i32 0, i32 0
  %90 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %89, i32 0, i32 1
  %91 = getelementptr inbounds [8 x i64], ptr %90, i64 0, i64 0
  %92 = load i64, ptr %91, align 8, !tbaa !19
  %93 = load ptr, ptr %14, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %93, i32 0, i32 0
  %95 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %94, i32 0, i32 1
  %96 = getelementptr inbounds [8 x i64], ptr %95, i64 0, i64 0
  %97 = load i64, ptr %96, align 8, !tbaa !19
  %98 = icmp eq i64 %92, %97
  br label %99

99:                                               ; preds = %87, %75, %69, %64
  %100 = phi i1 [ false, %75 ], [ false, %69 ], [ false, %64 ], [ %98, %87 ]
  store i1 %100, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %162

101:                                              ; preds = %61
  %102 = load i32, ptr %8, align 4, !tbaa !9
  %103 = icmp eq i32 %102, 3
  br i1 %103, label %104, label %157

104:                                              ; preds = %101
  %105 = load ptr, ptr %12, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %105, i32 0, i32 1
  %107 = load i32, ptr %106, align 8, !tbaa !17
  %108 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormPluginDynamic", ptr %15, i32 0, i32 21
  %109 = load i32, ptr %108, align 8, !tbaa !21
  %110 = icmp eq i32 %107, %109
  br i1 %110, label %111, label %155

111:                                              ; preds = %104
  %112 = load ptr, ptr %12, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %112, i32 0, i32 0
  %114 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %113, i32 0, i32 0
  %115 = load i32, ptr %114, align 8, !tbaa !18
  %116 = icmp eq i32 %115, 5
  br i1 %116, label %117, label %155

117:                                              ; preds = %111
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %118, i32 0, i32 0
  %120 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %119, i32 0, i32 1
  %121 = getelementptr inbounds [8 x i64], ptr %120, i64 0, i64 1
  %122 = load i64, ptr %121, align 8, !tbaa !19
  %123 = load ptr, ptr %14, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %123, i32 0, i32 0
  %125 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %124, i32 0, i32 1
  %126 = getelementptr inbounds [8 x i64], ptr %125, i64 0, i64 1
  %127 = load i64, ptr %126, align 8, !tbaa !19
  %128 = icmp eq i64 %122, %127
  br i1 %128, label %129, label %155

129:                                              ; preds = %117
  %130 = load ptr, ptr %12, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %130, i32 0, i32 0
  %132 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %131, i32 0, i32 1
  %133 = getelementptr inbounds [8 x i64], ptr %132, i64 0, i64 0
  %134 = load i64, ptr %133, align 8, !tbaa !19
  %135 = load ptr, ptr %14, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %135, i32 0, i32 0
  %137 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %136, i32 0, i32 1
  %138 = getelementptr inbounds [8 x i64], ptr %137, i64 0, i64 0
  %139 = load i64, ptr %138, align 8, !tbaa !19
  %140 = icmp eq i64 %134, %139
  br i1 %140, label %141, label %155

141:                                              ; preds = %129
  %142 = load ptr, ptr %12, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %142, i32 0, i32 0
  %144 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %143, i32 0, i32 1
  %145 = getelementptr inbounds [8 x i64], ptr %144, i64 0, i64 3
  %146 = load i64, ptr %145, align 8, !tbaa !19
  %147 = icmp eq i64 %146, 1
  br i1 %147, label %148, label %155

148:                                              ; preds = %141
  %149 = load ptr, ptr %12, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %149, i32 0, i32 0
  %151 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %150, i32 0, i32 1
  %152 = getelementptr inbounds [8 x i64], ptr %151, i64 0, i64 4
  %153 = load i64, ptr %152, align 8, !tbaa !19
  %154 = icmp eq i64 %153, 1
  br label %155

155:                                              ; preds = %148, %141, %129, %117, %111, %104
  %156 = phi i1 [ false, %141 ], [ false, %129 ], [ false, %117 ], [ false, %111 ], [ false, %104 ], [ %154, %148 ]
  store i1 %156, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %162

157:                                              ; preds = %101
  %158 = load ptr, ptr %12, align 8, !tbaa !5
  %159 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %158, i32 0, i32 1
  %160 = load i32, ptr %159, align 8, !tbaa !17
  %161 = icmp eq i32 %160, 3
  store i1 %161, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %162

162:                                              ; preds = %157, %155, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %163

163:                                              ; preds = %162, %50, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  %164 = load i1, ptr %6, align 1
  ret i1 %164

165:                                              ; preds = %23, %18
  %166 = landingpad { ptr, i32 }
          catch ptr null
  %167 = extractvalue { ptr, i32 } %166, 0
  call void @__clang_call_terminate(ptr %167) #5
  unreachable
}

attributes #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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nounwind }
attributes #5 = { 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, !15, i64 76}
!12 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !13, i64 0, !14, i64 72, !15, i64 76, !16, i64 80}
!13 = !{!"_ZTSN8nvinfer16Dims64E", !10, i64 0, !7, i64 8}
!14 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!15 = !{!"_ZTSN8nvinfer112TensorFormatE", !7, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!12, !14, i64 72}
!18 = !{!12, !10, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!22, !14, i64 296}
!22 = !{!"_ZTSN8nvinfer16plugin4bert25EmbLayerNormPluginDynamicE", !23, i64 0, !25, i64 8, !27, i64 16, !28, i64 24, !29, i64 32, !29, i64 64, !31, i64 96, !31, i64 104, !37, i64 112, !37, i64 120, !37, i64 128, !20, i64 136, !20, i64 144, !20, i64 152, !20, i64 160, !20, i64 168, !43, i64 176, !43, i64 200, !43, i64 224, !43, i64 248, !43, i64 272, !14, i64 296, !10, i64 300, !10, i64 304, !14, i64 308, !10, i64 312, !45, i64 320, !49, i64 344}
!23 = !{!"_ZTSN8nvinfer15v_1_09IPluginV3E", !24, i64 0}
!24 = !{!"_ZTSN8nvinfer119IVersionedInterfaceE"}
!25 = !{!"_ZTSN8nvinfer15v_1_016IPluginV3OneCoreE", !26, i64 0}
!26 = !{!"_ZTSN8nvinfer15v_1_017IPluginCapabilityE", !24, i64 0}
!27 = !{!"_ZTSN8nvinfer15v_1_017IPluginV3OneBuildE", !26, i64 0}
!28 = !{!"_ZTSN8nvinfer15v_1_019IPluginV3OneRuntimeE", !26, i64 0}
!29 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !30, i64 0, !20, i64 8, !7, i64 16}
!30 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!31 = !{!"_ZTSSt10unique_ptrIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !32, i64 0}
!32 = !{!"_ZTSSt15__uniq_ptr_dataIfN8nvinfer114pluginInternal11CudaDeleterIfEELb1ELb1EE", !33, i64 0}
!33 = !{!"_ZTSSt15__uniq_ptr_implIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !34, i64 0}
!34 = !{!"_ZTSSt5tupleIJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !35, i64 0}
!35 = !{!"_ZTSSt11_Tuple_implILm0EJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !36, i64 0}
!36 = !{!"_ZTSSt10_Head_baseILm0EPfLb0EE", !6, i64 0}
!37 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !38, i64 0}
!38 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !39, i64 0}
!39 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !40, i64 0}
!40 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !41, i64 0}
!41 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !42, i64 0}
!42 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !6, i64 0}
!43 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !44, i64 0}
!44 = !{!"_ZTSN8nvinfer17WeightsE", !14, i64 0, !6, i64 8, !20, i64 16}
!45 = !{!"_ZTSSt6vectorIN8nvinfer111PluginFieldESaIS1_EE", !46, i64 0}
!46 = !{!"_ZTSSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE12_Vector_implE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!49 = !{!"_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"

%"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 [98 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [14 x i8], align 1

declare i32 @__gxx_personality_v0(...)

declare void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN8nvinfer16plugin4bert25EmbLayerNormPluginDynamic25supportsFormatCombinationEiPKNS_23DynamicPluginTensorDescEii(ptr nocapture noundef nonnull readonly align 8 dereferenceable(360) %0, i32 noundef %1, ptr nocapture noundef readonly %2, i32 noundef %3, i32 noundef %4) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = icmp eq i32 %3, 3
  br i1 %6, label %8, label %7

7:                                                ; preds = %5
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str, i32 noundef 362)
          to label %8 unwind label %79

8:                                                ; preds = %7, %5
  %9 = icmp eq i32 %4, 2
  br i1 %9, label %11, label %10

10:                                               ; preds = %8
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.19, ptr noundef nonnull @.str, i32 noundef 363)
          to label %11 unwind label %79

11:                                               ; preds = %10, %8
  %12 = sext i32 %1 to i64
  %13 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %2, i64 %12
  %14 = getelementptr inbounds i8, ptr %13, i64 76
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %.not = icmp eq i32 %15, 0
  br i1 %.not, label %16, label %78

16:                                               ; preds = %11
  %17 = icmp eq i32 %1, 0
  br i1 %17, label %18, label %25

18:                                               ; preds = %16
  %19 = getelementptr inbounds i8, ptr %13, i64 72
  %20 = load i32, ptr %19, align 8, !tbaa !14
  %21 = icmp eq i32 %20, 3
  br i1 %21, label %22, label %78

22:                                               ; preds = %18
  %23 = load i32, ptr %13, align 8, !tbaa !15
  %24 = icmp eq i32 %23, 2
  br label %78

25:                                               ; preds = %16
  %or.cond = icmp ult i32 %1, 3
  br i1 %or.cond, label %26, label %45

26:                                               ; preds = %25
  %27 = getelementptr inbounds i8, ptr %13, i64 72
  %28 = load i32, ptr %27, align 8, !tbaa !14
  %29 = icmp eq i32 %28, 3
  br i1 %29, label %30, label %78

30:                                               ; preds = %26
  %31 = load i32, ptr %13, align 8, !tbaa !15
  %32 = icmp eq i32 %31, 2
  br i1 %32, label %33, label %78

33:                                               ; preds = %30
  %34 = getelementptr inbounds i8, ptr %13, i64 16
  %35 = load i64, ptr %34, align 8, !tbaa !16
  %36 = getelementptr i8, ptr %13, i64 -288
  %37 = load i64, ptr %36, align 8, !tbaa !16
  %38 = icmp eq i64 %35, %37
  br i1 %38, label %39, label %78

39:                                               ; preds = %33
  %40 = getelementptr i8, ptr %13, i64 -296
  %41 = getelementptr inbounds i8, ptr %13, i64 8
  %42 = load i64, ptr %41, align 8, !tbaa !16
  %43 = load i64, ptr %40, align 8, !tbaa !16
  %44 = icmp eq i64 %42, %43
  br label %78

45:                                               ; preds = %25
  %46 = icmp eq i32 %1, 3
  %47 = getelementptr inbounds i8, ptr %13, i64 72
  %48 = load i32, ptr %47, align 8, !tbaa !14
  br i1 %46, label %49, label %76

49:                                               ; preds = %45
  %50 = getelementptr inbounds i8, ptr %0, i64 296
  %51 = load i32, ptr %50, align 8, !tbaa !18
  %52 = icmp eq i32 %48, %51
  br i1 %52, label %53, label %78

53:                                               ; preds = %49
  %54 = load i32, ptr %13, align 8, !tbaa !15
  %55 = icmp eq i32 %54, 5
  br i1 %55, label %56, label %78

56:                                               ; preds = %53
  %57 = getelementptr inbounds i8, ptr %13, i64 16
  %58 = load i64, ptr %57, align 8, !tbaa !16
  %59 = getelementptr i8, ptr %13, i64 -288
  %60 = load i64, ptr %59, align 8, !tbaa !16
  %61 = icmp eq i64 %58, %60
  br i1 %61, label %62, label %78

62:                                               ; preds = %56
  %63 = getelementptr inbounds i8, ptr %13, i64 8
  %64 = getelementptr i8, ptr %13, i64 -296
  %65 = load i64, ptr %63, align 8, !tbaa !16
  %66 = load i64, ptr %64, align 8, !tbaa !16
  %67 = icmp eq i64 %65, %66
  br i1 %67, label %68, label %78

68:                                               ; preds = %62
  %69 = getelementptr inbounds i8, ptr %13, i64 32
  %70 = load i64, ptr %69, align 8, !tbaa !16
  %71 = icmp eq i64 %70, 1
  br i1 %71, label %72, label %78

72:                                               ; preds = %68
  %73 = getelementptr inbounds i8, ptr %13, i64 40
  %74 = load i64, ptr %73, align 8, !tbaa !16
  %75 = icmp eq i64 %74, 1
  br label %78

76:                                               ; preds = %45
  %77 = icmp eq i32 %48, 3
  br label %78

78:                                               ; preds = %76, %39, %33, %30, %26, %72, %68, %62, %56, %53, %49, %18, %22, %11
  %.1 = phi i1 [ false, %11 ], [ false, %18 ], [ %24, %22 ], [ %77, %76 ], [ false, %33 ], [ false, %30 ], [ false, %26 ], [ %44, %39 ], [ false, %68 ], [ false, %62 ], [ false, %56 ], [ false, %53 ], [ false, %49 ], [ %75, %72 ]
  ret i1 %.1

79:                                               ; preds = %10, %7
  %80 = landingpad { ptr, i32 }
          catch ptr null
  %81 = extractvalue { ptr, i32 } %80, 0
  tail call void @__clang_call_terminate(ptr %81) #3
  unreachable
}

attributes #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 = { 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 #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 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, !12, i64 76}
!6 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !7, i64 0, !11, i64 72, !12, i64 76, !13, i64 80}
!7 = !{!"_ZTSN8nvinfer16Dims64E", !8, i64 0, !9, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN8nvinfer18DataTypeE", !9, i64 0}
!12 = !{!"_ZTSN8nvinfer112TensorFormatE", !9, i64 0}
!13 = !{!"float", !9, i64 0}
!14 = !{!6, !11, i64 72}
!15 = !{!6, !8, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"long", !9, i64 0}
!18 = !{!19, !11, i64 296}
!19 = !{!"_ZTSN8nvinfer16plugin4bert25EmbLayerNormPluginDynamicE", !20, i64 0, !22, i64 8, !24, i64 16, !25, i64 24, !26, i64 32, !26, i64 64, !29, i64 96, !29, i64 104, !35, i64 112, !35, i64 120, !35, i64 128, !17, i64 136, !17, i64 144, !17, i64 152, !17, i64 160, !17, i64 168, !41, i64 176, !41, i64 200, !41, i64 224, !41, i64 248, !41, i64 272, !11, i64 296, !8, i64 300, !8, i64 304, !11, i64 308, !8, i64 312, !43, i64 320, !47, i64 344}
!20 = !{!"_ZTSN8nvinfer15v_1_09IPluginV3E", !21, i64 0}
!21 = !{!"_ZTSN8nvinfer119IVersionedInterfaceE"}
!22 = !{!"_ZTSN8nvinfer15v_1_016IPluginV3OneCoreE", !23, i64 0}
!23 = !{!"_ZTSN8nvinfer15v_1_017IPluginCapabilityE", !21, i64 0}
!24 = !{!"_ZTSN8nvinfer15v_1_017IPluginV3OneBuildE", !23, i64 0}
!25 = !{!"_ZTSN8nvinfer15v_1_019IPluginV3OneRuntimeE", !23, i64 0}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !27, i64 0, !17, i64 8, !9, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !28, i64 0}
!28 = !{!"any pointer", !9, i64 0}
!29 = !{!"_ZTSSt10unique_ptrIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !30, i64 0}
!30 = !{!"_ZTSSt15__uniq_ptr_dataIfN8nvinfer114pluginInternal11CudaDeleterIfEELb1ELb1EE", !31, i64 0}
!31 = !{!"_ZTSSt15__uniq_ptr_implIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !32, i64 0}
!32 = !{!"_ZTSSt5tupleIJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !33, i64 0}
!33 = !{!"_ZTSSt11_Tuple_implILm0EJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !34, i64 0}
!34 = !{!"_ZTSSt10_Head_baseILm0EPfLb0EE", !28, i64 0}
!35 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !36, i64 0}
!36 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !37, i64 0}
!37 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !38, i64 0}
!38 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !39, i64 0}
!39 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !40, i64 0}
!40 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !28, i64 0}
!41 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !42, i64 0}
!42 = !{!"_ZTSN8nvinfer17WeightsE", !11, i64 0, !28, i64 8, !17, i64 16}
!43 = !{!"_ZTSSt6vectorIN8nvinfer111PluginFieldESaIS1_EE", !44, i64 0}
!44 = !{!"_ZTSSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE12_Vector_implE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE17_Vector_impl_dataE", !28, i64 0, !28, i64 8, !28, i64 16}
!47 = !{!"_ZTSN8nvinfer121PluginFieldCollectionE", !8, i64 0, !28, i64 8}


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