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

; 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.3 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [22 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: mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin9Normalize12copyToDeviceEPKvm(ptr dead_on_unwind noalias writable sret(%"class.nvinfer1::Weights") align 8, ptr noundef nonnull align 8 dereferenceable(120), ptr noundef, i64 noundef) #3 align 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) #4

; 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 @_ZN8nvinfer16plugin9NormalizeC2EPKNS_7WeightsEifbbfiii(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef %1, i32 noundef %2, float noundef %3, i1 noundef zeroext %4, i1 noundef zeroext %5, float noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca float, align 4
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca float, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca %"class.nvinfer1::Weights", align 8
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store i32 %2, ptr %13, align 4, !tbaa !9
  store float %3, ptr %14, align 4, !tbaa !11
  %24 = zext i1 %4 to i8
  store i8 %24, ptr %15, align 1, !tbaa !13
  %25 = zext i1 %5 to i8
  store i8 %25, ptr %16, align 1, !tbaa !13
  store float %6, ptr %17, align 4, !tbaa !11
  store i32 %7, ptr %18, align 4, !tbaa !9
  store i32 %8, ptr %19, align 4, !tbaa !9
  store i32 %9, ptr %20, align 4, !tbaa !9
  %26 = load ptr, ptr %11, align 8
  call void @_ZN8nvinfer112IPluginV2ExtC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #5
  store ptr getelementptr inbounds inrange(-16, 200) ({ [27 x ptr] }, ptr @_ZTVN8nvinfer16plugin9NormalizeE, i32 0, i32 0, i32 2), ptr %26, align 8, !tbaa !15
  %27 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %26, i32 0, i32 2
  call void @_ZNSt10shared_ptrIN8nvinfer114pluginInternal13CublasWrapperEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #5
  %28 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %26, i32 0, i32 3
  %29 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %28, i32 0, i32 0
  store i32 0, ptr %29, align 8, !tbaa !17
  %30 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %28, i32 0, i32 1
  store ptr null, ptr %30, align 8, !tbaa !21
  %31 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %28, i32 0, i32 2
  store i64 0, ptr %31, align 8, !tbaa !22
  %32 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %26, i32 0, i32 4
  store i32 0, ptr %32, align 8, !tbaa !23
  %33 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %26, i32 0, i32 5
  %34 = load float, ptr %14, align 4, !tbaa !11
  store float %34, ptr %33, align 4, !tbaa !32
  %35 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %26, i32 0, i32 6
  %36 = load i8, ptr %15, align 1, !tbaa !13, !range !33, !noundef !34
  %37 = trunc i8 %36 to i1
  %38 = zext i1 %37 to i8
  store i8 %38, ptr %35, align 8, !tbaa !35
  %39 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %26, i32 0, i32 7
  %40 = load i8, ptr %16, align 1, !tbaa !13, !range !33, !noundef !34
  %41 = trunc i8 %40 to i1
  %42 = zext i1 %41 to i8
  store i8 %42, ptr %39, align 1, !tbaa !36
  %43 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %26, i32 0, i32 8
  %44 = load float, ptr %17, align 4, !tbaa !11
  store float %44, ptr %43, align 4, !tbaa !37
  %45 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %26, i32 0, i32 9
  %46 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %46, ptr %45, align 8, !tbaa !38
  %47 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %26, i32 0, i32 10
  %48 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %48, ptr %47, align 4, !tbaa !39
  %49 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %26, i32 0, i32 11
  %50 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %50, ptr %49, align 8, !tbaa !40
  %51 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %26, i32 0, i32 12
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %51) #5
  %52 = load i32, ptr %13, align 4, !tbaa !9
  %53 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %26, i32 0, i32 4
  store i32 %52, ptr %53, align 8, !tbaa !23
  %54 = load i32, ptr %13, align 4, !tbaa !9
  %55 = icmp eq i32 %54, 1
  br i1 %55, label %62, label %56

56:                                               ; preds = %10
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.2, ptr noundef @__func__._ZN8nvinfer16plugin9NormalizeC2EPKNS_7WeightsEibbf, i32 noundef 63, i32 noundef 0, ptr noundef @.str.3) #6
          to label %57 unwind label %58

57:                                               ; preds = %56
  unreachable

58:                                               ; preds = %68, %56
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %21, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %22, align 4
  br label %85

62:                                               ; preds = %10
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %63, i64 0
  %65 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %64, i32 0, i32 2
  %66 = load i64, ptr %65, align 8, !tbaa !22
  %67 = icmp sge i64 %66, 1
  br i1 %67, label %70, label %68

68:                                               ; preds = %62
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.2, ptr noundef @__func__._ZN8nvinfer16plugin9NormalizeC2EPKNS_7WeightsEibbf, i32 noundef 64, i32 noundef 0, ptr noundef @.str.4) #6
          to label %69 unwind label %58

69:                                               ; preds = %68
  unreachable

70:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #5
  %71 = load ptr, ptr %12, align 8, !tbaa !5
  %72 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %71, i64 0
  %73 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %72, i32 0, i32 1
  %74 = load ptr, ptr %73, align 8, !tbaa !21
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  %76 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %75, i64 0
  %77 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %76, i32 0, i32 2
  %78 = load i64, ptr %77, align 8, !tbaa !22
  invoke void @_ZN8nvinfer16plugin9Normalize12copyToDeviceEPKvm(ptr dead_on_unwind writable sret(%"class.nvinfer1::Weights") align 8 %23, ptr noundef nonnull align 8 dereferenceable(120) %26, ptr noundef %74, i64 noundef %78)
          to label %79 unwind label %81

79:                                               ; preds = %70
  %80 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %26, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %80, ptr align 8 %23, i64 24, i1 false), !tbaa.struct !41
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #5
  ret void

81:                                               ; preds = %70
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %21, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #5
  br label %85

85:                                               ; preds = %81, %58
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %51) #5
  call void @_ZNSt12__shared_ptrIN8nvinfer114pluginInternal13CublasWrapperELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #5
  call void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #5
  br label %86

86:                                               ; preds = %85
  %87 = load ptr, ptr %21, align 8
  %88 = load i32, ptr %22, align 4
  %89 = insertvalue { ptr, i32 } poison, ptr %87, 0
  %90 = insertvalue { ptr, i32 } %89, i32 %88, 1
  resume { ptr, i32 } %90
}

; 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 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = !{!18, !19, i64 0}
!18 = !{!"_ZTSN8nvinfer17WeightsE", !19, i64 0, !6, i64 8, !20, i64 16}
!19 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!18, !6, i64 8}
!22 = !{!18, !20, i64 16}
!23 = !{!24, !10, i64 56}
!24 = !{!"_ZTSN8nvinfer16plugin9NormalizeE", !25, i64 0, !6, i64 8, !27, i64 16, !18, i64 32, !10, i64 56, !12, i64 60, !14, i64 64, !14, i64 65, !12, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !30, i64 88}
!25 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !26, i64 0}
!26 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!27 = !{!"_ZTSSt10shared_ptrIN8nvinfer114pluginInternal13CublasWrapperEE", !28, i64 0}
!28 = !{!"_ZTSSt12__shared_ptrIN8nvinfer114pluginInternal13CublasWrapperELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !29, i64 8}
!29 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!30 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !31, i64 0, !20, i64 8, !7, i64 16}
!31 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!32 = !{!24, !12, i64 60}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!24, !14, i64 64}
!36 = !{!24, !14, i64 65}
!37 = !{!24, !12, i64 68}
!38 = !{!24, !10, i64 72}
!39 = !{!24, !10, i64 76}
!40 = !{!24, !10, i64 80}
!41 = !{i64 0, i64 4, !42, i64 8, i64 8, !5, i64 16, i64 8, !43}
!42 = !{!19, !19, i64 0}
!43 = !{!20, !20, 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.3 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [22 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 uwtable
declare dso_local void @_ZN8nvinfer16plugin9Normalize12copyToDeviceEPKvm(ptr dead_on_unwind noalias writable sret(%"class.nvinfer1::Weights") align 8, ptr noundef nonnull align 8 dereferenceable(120), ptr noundef, i64 noundef) local_unnamed_addr #3 align 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) #4

; 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 @_ZN8nvinfer16plugin9NormalizeC2EPKNS_7WeightsEifbbfiii(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr nocapture noundef readonly %1, i32 noundef %2, float noundef %3, i1 noundef zeroext %4, i1 noundef zeroext %5, float noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %11 = alloca %"class.nvinfer1::Weights", align 8
  %12 = zext i1 %4 to i8
  %13 = zext i1 %5 to i8
  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
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @_ZNSt10shared_ptrIN8nvinfer114pluginInternal13CublasWrapperEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  %15 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 0, ptr %15, align 8, !tbaa !8
  %16 = getelementptr inbounds i8, ptr %0, i64 40
  %17 = getelementptr inbounds i8, ptr %0, i64 56
  %18 = getelementptr inbounds i8, ptr %0, i64 60
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %16, i8 0, i64 20, i1 false)
  store float %3, ptr %18, align 4, !tbaa !14
  %19 = getelementptr inbounds i8, ptr %0, i64 64
  store i8 %12, ptr %19, align 8, !tbaa !26
  %20 = getelementptr inbounds i8, ptr %0, i64 65
  store i8 %13, ptr %20, align 1, !tbaa !27
  %21 = getelementptr inbounds i8, ptr %0, i64 68
  store float %6, ptr %21, align 4, !tbaa !28
  %22 = getelementptr inbounds i8, ptr %0, i64 72
  store i32 %7, ptr %22, align 8, !tbaa !29
  %23 = getelementptr inbounds i8, ptr %0, i64 76
  store i32 %8, ptr %23, align 4, !tbaa !30
  %24 = getelementptr inbounds i8, ptr %0, i64 80
  store i32 %9, ptr %24, align 8, !tbaa !31
  %25 = getelementptr inbounds i8, ptr %0, i64 88
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  store i32 %2, ptr %17, align 8, !tbaa !32
  %26 = icmp eq i32 %2, 1
  br i1 %26, label %29, label %.invoke

27:                                               ; preds = %.invoke
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %41

29:                                               ; preds = %10
  %30 = getelementptr inbounds i8, ptr %1, i64 16
  %31 = load i64, ptr %30, align 8, !tbaa !33
  %32 = icmp sgt i64 %31, 0
  br i1 %32, label %35, label %.invoke

.invoke:                                          ; preds = %10, %29
  %33 = phi i32 [ 64, %29 ], [ 63, %10 ]
  %34 = phi ptr [ @.str.4, %29 ], [ @.str.3, %10 ]
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZN8nvinfer16plugin9NormalizeC2EPKNS_7WeightsEibbf, i32 noundef %33, i32 noundef 0, ptr noundef nonnull %34) #7
          to label %.cont unwind label %27

.cont:                                            ; preds = %.invoke
  unreachable

35:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #6
  %36 = getelementptr inbounds i8, ptr %1, i64 8
  %37 = load ptr, ptr %36, align 8, !tbaa !34
  invoke void @_ZN8nvinfer16plugin9Normalize12copyToDeviceEPKvm(ptr dead_on_unwind nonnull writable sret(%"class.nvinfer1::Weights") align 8 %11, ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef %37, i64 noundef %31)
          to label %38 unwind label %39

38:                                               ; preds = %35
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %11, i64 24, i1 false), !tbaa.struct !35
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  ret void

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

41:                                               ; preds = %39, %27
  %.pn = phi { ptr, i32 } [ %40, %39 ], [ %28, %27 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  call void @_ZNSt12__shared_ptrIN8nvinfer114pluginInternal13CublasWrapperELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #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 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 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!15, !22, i64 60}
!15 = !{!"_ZTSN8nvinfer16plugin9NormalizeE", !16, i64 0, !12, i64 8, !18, i64 16, !9, i64 32, !21, i64 56, !22, i64 60, !23, i64 64, !23, i64 65, !22, i64 68, !21, i64 72, !21, i64 76, !21, i64 80, !24, i64 88}
!16 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !17, i64 0}
!17 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!18 = !{!"_ZTSSt10shared_ptrIN8nvinfer114pluginInternal13CublasWrapperEE", !19, i64 0}
!19 = !{!"_ZTSSt12__shared_ptrIN8nvinfer114pluginInternal13CublasWrapperELN9__gnu_cxx12_Lock_policyE2EE", !12, i64 0, !20, i64 8}
!20 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !12, i64 0}
!21 = !{!"int", !11, i64 0}
!22 = !{!"float", !11, i64 0}
!23 = !{!"bool", !11, i64 0}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !25, i64 0, !13, i64 8, !11, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!26 = !{!15, !23, i64 64}
!27 = !{!15, !23, i64 65}
!28 = !{!15, !22, i64 68}
!29 = !{!15, !21, i64 72}
!30 = !{!15, !21, i64 76}
!31 = !{!15, !21, i64 80}
!32 = !{!15, !21, i64 56}
!33 = !{!9, !13, i64 16}
!34 = !{!9, !12, i64 8}
!35 = !{i64 0, i64 4, !36, i64 8, i64 8, !37, i64 16, i64 8, !38}
!36 = !{!10, !10, i64 0}
!37 = !{!12, !12, i64 0}
!38 = !{!13, !13, i64 0}


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