; LLVM IR from NVIDIA/TensorRT :: plugin/normalizePlugin/normalizePlugin.ll (ZN8nvinfer16plugin9NormalizeC2EPKvm)

; 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::Weights" = type { i32, ptr, i64 }
%"class.nvinfer1::plugin::Normalize" = type { %"class.nvinfer1::IPluginV2Ext", ptr, %"class.std::shared_ptr", %"class.nvinfer1::Weights", i32, float, i8, i8, float, i32, i32, i32, %"class.std::__cxx11::basic_string" }
%"class.nvinfer1::IPluginV2Ext" = type { %"class.nvinfer1::IPluginV2" }
%"class.nvinfer1::IPluginV2" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = 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] }

@_ZTVN8nvinfer16plugin9NormalizeE = external dso_local unnamed_addr constant { [27 x ptr] }, align 8
@.str.2 = external hidden unnamed_addr constant [92 x i8], align 1
@__func__._ZN8nvinfer16plugin9NormalizeC2EPKNS_7WeightsEibbf = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noreturn
declare void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; 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
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer16plugin9NormalizeC2EPKvm(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef %1, i64 noundef %2) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.nvinfer1::Weights", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  %13 = load ptr, ptr %4, align 8
  call void @_ZN8nvinfer112IPluginV2ExtC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  store ptr getelementptr inbounds inrange(-16, 200) ({ [27 x ptr] }, ptr @_ZTVN8nvinfer16plugin9NormalizeE, i32 0, i32 0, i32 2), ptr %13, align 8, !tbaa !11
  %14 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %13, i32 0, i32 2
  call void @_ZNSt10shared_ptrIN8nvinfer114pluginInternal13CublasWrapperEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  %15 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %13, i32 0, i32 3
  %16 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %15, i32 0, i32 0
  store i32 0, ptr %16, align 8, !tbaa !13
  %17 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %15, i32 0, i32 1
  store ptr null, ptr %17, align 8, !tbaa !16
  %18 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %15, i32 0, i32 2
  store i64 0, ptr %18, align 8, !tbaa !17
  %19 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %13, i32 0, i32 4
  store i32 0, ptr %19, align 8, !tbaa !18
  %20 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %13, i32 0, i32 5
  store float 0.000000e+00, ptr %20, align 4, !tbaa !30
  %21 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %13, i32 0, i32 6
  store i8 0, ptr %21, align 8, !tbaa !31
  %22 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %13, i32 0, i32 7
  store i8 0, ptr %22, align 1, !tbaa !32
  %23 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %13, i32 0, i32 8
  store float 0.000000e+00, ptr %23, align 4, !tbaa !33
  %24 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %13, i32 0, i32 9
  store i32 0, ptr %24, align 8, !tbaa !34
  %25 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %13, i32 0, i32 10
  store i32 0, ptr %25, align 4, !tbaa !35
  %26 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %13, i32 0, i32 11
  store i32 0, ptr %26, align 8, !tbaa !36
  %27 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %13, i32 0, i32 12
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %28, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %29, ptr %8, align 8, !tbaa !5
  %30 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %31 unwind label %68

31:                                               ; preds = %3
  %32 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %13, i32 0, i32 9
  store i32 %30, ptr %32, align 8, !tbaa !34
  %33 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %34 unwind label %68

34:                                               ; preds = %31
  %35 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %13, i32 0, i32 10
  store i32 %33, ptr %35, align 4, !tbaa !35
  %36 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %37 unwind label %68

37:                                               ; preds = %34
  %38 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %13, i32 0, i32 11
  store i32 %36, ptr %38, align 8, !tbaa !36
  %39 = invoke noundef zeroext i1 @_ZN8nvinfer16plugin4readIbcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %40 unwind label %68

40:                                               ; preds = %37
  %41 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %13, i32 0, i32 6
  %42 = zext i1 %39 to i8
  store i8 %42, ptr %41, align 8, !tbaa !31
  %43 = invoke noundef zeroext i1 @_ZN8nvinfer16plugin4readIbcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %44 unwind label %68

44:                                               ; preds = %40
  %45 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %13, i32 0, i32 7
  %46 = zext i1 %43 to i8
  store i8 %46, ptr %45, align 1, !tbaa !32
  %47 = invoke noundef float @_ZN8nvinfer16plugin4readIfcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %48 unwind label %68

48:                                               ; preds = %44
  %49 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %13, i32 0, i32 8
  store float %47, ptr %49, align 4, !tbaa !33
  %50 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %51 unwind label %68

51:                                               ; preds = %48
  %52 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %13, i32 0, i32 4
  store i32 %50, ptr %52, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %53 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %54 unwind label %72

54:                                               ; preds = %51
  store i32 %53, ptr %11, align 4, !tbaa !37
  %55 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %13, i32 0, i32 5
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %55, ptr align 1 %56, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #5
  %57 = load i32, ptr %11, align 4, !tbaa !37
  %58 = sext i32 %57 to i64
  invoke void @_ZN8nvinfer16plugin9Normalize19deserializeToDeviceERPKcm(ptr dead_on_unwind writable sret(%"class.nvinfer1::Weights") align 8 %12, ptr noundef nonnull align 8 dereferenceable(120) %13, ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef %58)
          to label %59 unwind label %76

59:                                               ; preds = %54
  %60 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %13, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %60, ptr align 8 %12, i64 24, i1 false), !tbaa.struct !38
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = load i64, ptr %6, align 8, !tbaa !9
  %64 = getelementptr inbounds i8, ptr %62, i64 %63
  %65 = icmp eq ptr %61, %64
  br i1 %65, label %80, label %66

66:                                               ; preds = %59
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.2, ptr noundef @__func__._ZN8nvinfer16plugin9NormalizeC2EPKNS_7WeightsEibbf, i32 noundef 83, i32 noundef 0, ptr noundef @.str.5) #6
          to label %67 unwind label %72

67:                                               ; preds = %66
  unreachable

68:                                               ; preds = %48, %44, %40, %37, %34, %31, %3
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %9, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %10, align 4
  br label %82

72:                                               ; preds = %66, %51
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %9, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %10, align 4
  br label %81

76:                                               ; preds = %54
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %9, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  br label %81

80:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  ret void

81:                                               ; preds = %76, %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %82

82:                                               ; preds = %81, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #5
  call void @_ZNSt12__shared_ptrIN8nvinfer114pluginInternal13CublasWrapperELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  call void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  br label %83

83:                                               ; preds = %82
  %84 = load ptr, ptr %9, align 8
  %85 = load i32, ptr %10, align 4
  %86 = insertvalue { ptr, i32 } poison, ptr %84, 0
  %87 = insertvalue { ptr, i32 } %86, i32 %85, 1
  resume { ptr, i32 } %87
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8nvinfer16plugin4readIbcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN8nvinfer16plugin4readIfcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8)) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin9Normalize19deserializeToDeviceERPKcm(ptr dead_on_unwind noalias writable sret(%"class.nvinfer1::Weights") align 8, ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #4 align 2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTSN8nvinfer17WeightsE", !15, i64 0, !6, i64 8, !10, i64 16}
!15 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!16 = !{!14, !6, i64 8}
!17 = !{!14, !10, i64 16}
!18 = !{!19, !25, i64 56}
!19 = !{!"_ZTSN8nvinfer16plugin9NormalizeE", !20, i64 0, !6, i64 8, !22, i64 16, !14, i64 32, !25, i64 56, !26, i64 60, !27, i64 64, !27, i64 65, !26, i64 68, !25, i64 72, !25, i64 76, !25, i64 80, !28, i64 88}
!20 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !21, i64 0}
!21 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!22 = !{!"_ZTSSt10shared_ptrIN8nvinfer114pluginInternal13CublasWrapperEE", !23, i64 0}
!23 = !{!"_ZTSSt12__shared_ptrIN8nvinfer114pluginInternal13CublasWrapperELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !24, i64 8}
!24 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!25 = !{!"int", !7, i64 0}
!26 = !{!"float", !7, i64 0}
!27 = !{!"bool", !7, i64 0}
!28 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !29, i64 0, !10, i64 8, !7, i64 16}
!29 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!30 = !{!19, !26, i64 60}
!31 = !{!19, !27, i64 64}
!32 = !{!19, !27, i64 65}
!33 = !{!19, !26, i64 68}
!34 = !{!19, !25, i64 72}
!35 = !{!19, !25, i64 76}
!36 = !{!19, !25, i64 80}
!37 = !{!25, !25, i64 0}
!38 = !{i64 0, i64 4, !39, i64 8, i64 8, !5, i64 16, i64 8, !9}
!39 = !{!15, !15, i64 0}


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

%"class.nvinfer1::Weights" = type { i32, ptr, i64 }

@_ZTVN8nvinfer16plugin9NormalizeE = external dso_local unnamed_addr constant { [27 x ptr] }, align 8
@.str.2 = external hidden unnamed_addr constant [92 x i8], align 1
@__func__._ZN8nvinfer16plugin9NormalizeC2EPKNS_7WeightsEibbf = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1

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

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

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

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 #1

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer16plugin9NormalizeC2EPKvm(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef %1, i64 noundef %2) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca %"class.nvinfer1::Weights", align 8
  tail call void @_ZN8nvinfer112IPluginV2ExtC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  store ptr getelementptr inbounds inrange(-16, 200) (i8, ptr @_ZTVN8nvinfer16plugin9NormalizeE, i64 16), ptr %0, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @_ZNSt10shared_ptrIN8nvinfer114pluginInternal13CublasWrapperEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  %7 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 0, ptr %7, align 8, !tbaa !8
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = getelementptr inbounds i8, ptr %0, i64 56
  %10 = getelementptr inbounds i8, ptr %0, i64 60
  %11 = getelementptr inbounds i8, ptr %0, i64 64
  %12 = getelementptr inbounds i8, ptr %0, i64 65
  %13 = getelementptr inbounds i8, ptr %0, i64 68
  %14 = getelementptr inbounds i8, ptr %0, i64 72
  %15 = getelementptr inbounds i8, ptr %0, i64 76
  %16 = getelementptr inbounds i8, ptr %0, i64 80
  %17 = getelementptr inbounds i8, ptr %0, i64 88
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(26) %8, i8 0, i64 26, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %13, i8 0, i64 16, i1 false)
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  store ptr %1, ptr %4, align 8, !tbaa !14
  %18 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store i32 %18, ptr %14, align 8, !tbaa !15
  %19 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store i32 %19, ptr %15, align 4, !tbaa !27
  %20 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store i32 %20, ptr %16, align 8, !tbaa !28
  %21 = call noundef zeroext i1 @_ZN8nvinfer16plugin4readIbcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %22 = zext i1 %21 to i8
  store i8 %22, ptr %11, align 8, !tbaa !29
  %23 = call noundef zeroext i1 @_ZN8nvinfer16plugin4readIbcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %24 = zext i1 %23 to i8
  store i8 %24, ptr %12, align 1, !tbaa !30
  %25 = call noundef float @_ZN8nvinfer16plugin4readIfcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store float %25, ptr %13, align 4, !tbaa !31
  %26 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store i32 %26, ptr %9, align 8, !tbaa !32
  %27 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %28 = load ptr, ptr %4, align 8, !tbaa !14
  %29 = load i32, ptr %28, align 1
  store i32 %29, ptr %10, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  %30 = sext i32 %27 to i64
  invoke void @_ZN8nvinfer16plugin9Normalize19deserializeToDeviceERPKcm(ptr dead_on_unwind nonnull writable sret(%"class.nvinfer1::Weights") align 8 %5, ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %30)
          to label %31 unwind label %39

31:                                               ; preds = %3
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %5, i64 24, i1 false), !tbaa.struct !33
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  %32 = load ptr, ptr %4, align 8, !tbaa !14
  %33 = getelementptr inbounds i8, ptr %1, i64 %2
  %34 = icmp eq ptr %32, %33
  br i1 %34, label %41, label %35

35:                                               ; preds = %31
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZN8nvinfer16plugin9NormalizeC2EPKNS_7WeightsEibbf, i32 noundef 83, i32 noundef 0, ptr noundef nonnull @.str.5) #7
          to label %36 unwind label %37

36:                                               ; preds = %35
  unreachable

37:                                               ; preds = %35
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %42

39:                                               ; preds = %3
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  br label %42

41:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  ret void

42:                                               ; preds = %39, %37
  %.pn = phi { ptr, i32 } [ %38, %37 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @_ZNSt12__shared_ptrIN8nvinfer114pluginInternal13CublasWrapperELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8nvinfer16plugin4readIbcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN8nvinfer16plugin4readIfcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin9Normalize19deserializeToDeviceERPKcm(ptr dead_on_unwind noalias writable sret(%"class.nvinfer1::Weights") align 8, ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #4 align 2

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 0}
!9 = !{!"_ZTSN8nvinfer17WeightsE", !10, i64 0, !12, i64 8, !13, i64 16}
!10 = !{!"_ZTSN8nvinfer18DataTypeE", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = !{!"any pointer", !11, i64 0}
!13 = !{!"long", !11, i64 0}
!14 = !{!12, !12, i64 0}
!15 = !{!16, !22, i64 72}
!16 = !{!"_ZTSN8nvinfer16plugin9NormalizeE", !17, i64 0, !12, i64 8, !19, i64 16, !9, i64 32, !22, i64 56, !23, i64 60, !24, i64 64, !24, i64 65, !23, i64 68, !22, i64 72, !22, i64 76, !22, i64 80, !25, i64 88}
!17 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !18, i64 0}
!18 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!19 = !{!"_ZTSSt10shared_ptrIN8nvinfer114pluginInternal13CublasWrapperEE", !20, i64 0}
!20 = !{!"_ZTSSt12__shared_ptrIN8nvinfer114pluginInternal13CublasWrapperELN9__gnu_cxx12_Lock_policyE2EE", !12, i64 0, !21, i64 8}
!21 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !12, i64 0}
!22 = !{!"int", !11, i64 0}
!23 = !{!"float", !11, i64 0}
!24 = !{!"bool", !11, i64 0}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !26, i64 0, !13, i64 8, !11, i64 16}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!27 = !{!16, !22, i64 76}
!28 = !{!16, !22, i64 80}
!29 = !{!16, !24, i64 64}
!30 = !{!16, !24, i64 65}
!31 = !{!16, !23, i64 68}
!32 = !{!16, !22, i64 56}
!33 = !{i64 0, i64 4, !34, i64 8, i64 8, !14, i64 16, i64 8, !35}
!34 = !{!10, !10, i64 0}
!35 = !{!13, !13, i64 0}


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