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

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

@.str = external hidden unnamed_addr constant [113 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [15 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN8nvinfer16plugin4bert37EmbLayerNormVarSeqlenPluginLegacyBase25supportsFormatCombinationEiPKNS_16PluginTensorDescEii(ptr noundef nonnull align 8 dereferenceable(272) %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, 4
  br i1 %17, label %20, label %18

18:                                               ; preds = %5
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.13, ptr noundef @.str, i32 noundef 237)
          to label %19 unwind label %152

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.18, ptr noundef @.str, i32 noundef 239)
          to label %24 unwind label %152

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::PluginTensorDesc", ptr %26, i64 %28
  store ptr %29, ptr %12, align 8, !tbaa !5
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %30, i32 0, i32 2
  %32 = load i32, ptr %31, align 4, !tbaa !11
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %35

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

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

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

41:                                               ; preds = %38, %35
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %42, i32 0, i32 1
  %44 = load i32, ptr %43, align 8, !tbaa !17
  %45 = icmp eq i32 %44, 3
  br i1 %45, label %46, label %52

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

52:                                               ; preds = %46, %41
  %53 = phi i1 [ false, %41 ], [ %51, %46 ]
  store i1 %53, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %150

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

62:                                               ; preds = %54
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %63, i32 0, i32 1
  %65 = load i32, ptr %64, align 8, !tbaa !17
  %66 = icmp eq i32 %65, 3
  br i1 %66, label %67, label %85

67:                                               ; preds = %62
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %68, i32 0, i32 0
  %70 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %69, i32 0, i32 0
  %71 = load i32, ptr %70, align 8, !tbaa !18
  %72 = icmp eq i32 %71, 1
  br i1 %72, label %73, label %85

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

85:                                               ; preds = %73, %67, %62
  %86 = phi i1 [ false, %67 ], [ false, %62 ], [ %84, %73 ]
  store i1 %86, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %149

87:                                               ; preds = %54
  %88 = load i32, ptr %8, align 4, !tbaa !9
  %89 = icmp eq i32 %88, 3
  br i1 %89, label %90, label %96

90:                                               ; preds = %87
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %91, i32 0, i32 0
  %93 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %92, i32 0, i32 0
  %94 = load i32, ptr %93, align 8, !tbaa !18
  %95 = icmp eq i32 %94, 1
  store i1 %95, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %149

96:                                               ; preds = %87
  %97 = load i32, ptr %8, align 4, !tbaa !9
  %98 = load i32, ptr %10, align 4, !tbaa !9
  %99 = icmp eq i32 %97, %98
  br i1 %99, label %100, label %142

100:                                              ; preds = %96
  %101 = load ptr, ptr %12, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %101, i32 0, i32 1
  %103 = load i32, ptr %102, align 8, !tbaa !17
  %104 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginLegacyBase", ptr %15, i32 0, i32 17
  %105 = load i32, ptr %104, align 8, !tbaa !21
  %106 = icmp eq i32 %103, %105
  br i1 %106, label %107, label %140

107:                                              ; preds = %100
  %108 = load ptr, ptr %12, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %108, i32 0, i32 0
  %110 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %109, i32 0, i32 0
  %111 = load i32, ptr %110, align 8, !tbaa !18
  %112 = icmp eq i32 %111, 4
  br i1 %112, label %113, label %140

113:                                              ; preds = %107
  %114 = load ptr, ptr %12, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %114, i32 0, i32 0
  %116 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %115, i32 0, i32 1
  %117 = getelementptr inbounds [8 x i64], ptr %116, i64 0, i64 0
  %118 = load i64, ptr %117, align 8, !tbaa !19
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %119, i64 0
  %121 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %120, i32 0, i32 0
  %122 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %121, i32 0, i32 1
  %123 = getelementptr inbounds [8 x i64], ptr %122, i64 0, i64 0
  %124 = load i64, ptr %123, align 8, !tbaa !19
  %125 = icmp eq i64 %118, %124
  br i1 %125, label %126, label %140

126:                                              ; preds = %113
  %127 = load ptr, ptr %12, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %127, i32 0, i32 0
  %129 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %128, i32 0, i32 1
  %130 = getelementptr inbounds [8 x i64], ptr %129, i64 0, i64 2
  %131 = load i64, ptr %130, align 8, !tbaa !19
  %132 = icmp eq i64 %131, 1
  br i1 %132, label %133, label %140

133:                                              ; preds = %126
  %134 = load ptr, ptr %12, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %134, i32 0, i32 0
  %136 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %135, i32 0, i32 1
  %137 = getelementptr inbounds [8 x i64], ptr %136, i64 0, i64 3
  %138 = load i64, ptr %137, align 8, !tbaa !19
  %139 = icmp eq i64 %138, 1
  br label %140

140:                                              ; preds = %133, %126, %113, %107, %100
  %141 = phi i1 [ false, %126 ], [ false, %113 ], [ false, %107 ], [ false, %100 ], [ %139, %133 ]
  store i1 %141, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %149

142:                                              ; preds = %96
  %143 = load ptr, ptr %12, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %143, i32 0, i32 1
  %145 = load i32, ptr %144, align 8, !tbaa !17
  %146 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginLegacyBase", ptr %15, i32 0, i32 18
  %147 = load i32, ptr %146, align 4, !tbaa !42
  %148 = icmp eq i32 %145, %147
  store i1 %148, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %149

149:                                              ; preds = %142, %140, %90, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %150

150:                                              ; preds = %149, %52, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  %151 = load i1, ptr %6, align 1
  ret i1 %151

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { 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 264}
!22 = !{!"_ZTSN8nvinfer16plugin4bert37EmbLayerNormVarSeqlenPluginLegacyBaseE", !23, i64 0, !26, i64 8, !26, i64 40, !28, i64 72, !28, i64 80, !34, i64 88, !34, i64 96, !34, i64 104, !20, i64 112, !20, i64 120, !20, i64 128, !20, i64 136, !40, i64 144, !40, i64 168, !40, i64 192, !40, i64 216, !40, i64 240, !14, i64 264, !14, i64 268}
!23 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !24, i64 0}
!24 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !25, i64 0}
!25 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !27, i64 0, !20, i64 8, !7, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!28 = !{!"_ZTSSt10unique_ptrIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !29, i64 0}
!29 = !{!"_ZTSSt15__uniq_ptr_dataIfN8nvinfer114pluginInternal11CudaDeleterIfEELb1ELb1EE", !30, i64 0}
!30 = !{!"_ZTSSt15__uniq_ptr_implIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !31, i64 0}
!31 = !{!"_ZTSSt5tupleIJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !32, i64 0}
!32 = !{!"_ZTSSt11_Tuple_implILm0EJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !33, i64 0}
!33 = !{!"_ZTSSt10_Head_baseILm0EPfLb0EE", !6, i64 0}
!34 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !35, i64 0}
!35 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !36, i64 0}
!36 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !37, i64 0}
!37 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !38, i64 0}
!38 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !39, i64 0}
!39 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !6, i64 0}
!40 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !41, i64 0}
!41 = !{!"_ZTSN8nvinfer17WeightsE", !14, i64 0, !6, i64 8, !20, i64 16}
!42 = !{!22, !14, i64 268}


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

@.str = external hidden unnamed_addr constant [113 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [15 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN8nvinfer16plugin4bert37EmbLayerNormVarSeqlenPluginLegacyBase25supportsFormatCombinationEiPKNS_16PluginTensorDescEii(ptr nocapture noundef nonnull readonly align 8 dereferenceable(272) %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, 4
  br i1 %6, label %8, label %7

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

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.18, ptr noundef nonnull @.str, i32 noundef 239)
          to label %11 unwind label %72

11:                                               ; preds = %10, %8
  %12 = sext i32 %1 to i64
  %13 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", 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 %71

16:                                               ; preds = %11
  %17 = and i32 %1, -3
  %or.cond = icmp eq i32 %17, 0
  br i1 %or.cond, 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 %71

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

25:                                               ; preds = %16
  switch i32 %1, label %42 [
    i32 1, label %26
    i32 3, label %39
  ]

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 %71

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

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

39:                                               ; preds = %25
  %40 = load i32, ptr %13, align 8, !tbaa !15
  %41 = icmp eq i32 %40, 1
  br label %71

42:                                               ; preds = %25
  %43 = icmp eq i32 %1, %3
  %44 = getelementptr inbounds i8, ptr %13, i64 72
  %45 = load i32, ptr %44, align 8, !tbaa !14
  br i1 %43, label %46, label %67

46:                                               ; preds = %42
  %47 = getelementptr inbounds i8, ptr %0, i64 264
  %48 = load i32, ptr %47, align 8, !tbaa !18
  %49 = icmp eq i32 %45, %48
  br i1 %49, label %50, label %71

50:                                               ; preds = %46
  %51 = load i32, ptr %13, align 8, !tbaa !15
  %52 = icmp eq i32 %51, 4
  br i1 %52, label %53, label %71

53:                                               ; preds = %50
  %54 = getelementptr inbounds i8, ptr %13, i64 8
  %55 = load i64, ptr %54, align 8, !tbaa !16
  %56 = getelementptr inbounds i8, ptr %2, i64 8
  %57 = load i64, ptr %56, align 8, !tbaa !16
  %58 = icmp eq i64 %55, %57
  br i1 %58, label %59, label %71

59:                                               ; preds = %53
  %60 = getelementptr inbounds i8, ptr %13, i64 24
  %61 = load i64, ptr %60, align 8, !tbaa !16
  %62 = icmp eq i64 %61, 1
  br i1 %62, label %63, label %71

63:                                               ; preds = %59
  %64 = getelementptr inbounds i8, ptr %13, i64 32
  %65 = load i64, ptr %64, align 8, !tbaa !16
  %66 = icmp eq i64 %65, 1
  br label %71

67:                                               ; preds = %42
  %68 = getelementptr inbounds i8, ptr %0, i64 268
  %69 = load i32, ptr %68, align 4, !tbaa !40
  %70 = icmp eq i32 %45, %69
  br label %71

71:                                               ; preds = %39, %67, %33, %30, %26, %63, %59, %53, %50, %46, %18, %22, %11
  %.1 = phi i1 [ false, %11 ], [ false, %18 ], [ %24, %22 ], [ %41, %39 ], [ %70, %67 ], [ false, %30 ], [ false, %26 ], [ %38, %33 ], [ false, %59 ], [ false, %53 ], [ false, %50 ], [ false, %46 ], [ %66, %63 ]
  ret i1 %.1

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

attributes #0 = { 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 #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 = { 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 264}
!19 = !{!"_ZTSN8nvinfer16plugin4bert37EmbLayerNormVarSeqlenPluginLegacyBaseE", !20, i64 0, !23, i64 8, !23, i64 40, !26, i64 72, !26, i64 80, !32, i64 88, !32, i64 96, !32, i64 104, !17, i64 112, !17, i64 120, !17, i64 128, !17, i64 136, !38, i64 144, !38, i64 168, !38, i64 192, !38, i64 216, !38, i64 240, !11, i64 264, !11, i64 268}
!20 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !21, i64 0}
!21 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !22, i64 0}
!22 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !24, i64 0, !17, i64 8, !9, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !25, i64 0}
!25 = !{!"any pointer", !9, i64 0}
!26 = !{!"_ZTSSt10unique_ptrIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !27, i64 0}
!27 = !{!"_ZTSSt15__uniq_ptr_dataIfN8nvinfer114pluginInternal11CudaDeleterIfEELb1ELb1EE", !28, i64 0}
!28 = !{!"_ZTSSt15__uniq_ptr_implIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !29, i64 0}
!29 = !{!"_ZTSSt5tupleIJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !30, i64 0}
!30 = !{!"_ZTSSt11_Tuple_implILm0EJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !31, i64 0}
!31 = !{!"_ZTSSt10_Head_baseILm0EPfLb0EE", !25, i64 0}
!32 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !33, i64 0}
!33 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !34, i64 0}
!34 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !35, i64 0}
!35 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !36, i64 0}
!36 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !37, i64 0}
!37 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !25, i64 0}
!38 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !39, i64 0}
!39 = !{!"_ZTSN8nvinfer17WeightsE", !11, i64 0, !25, i64 8, !17, i64 16}
!40 = !{!19, !11, i64 268}


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