; 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::plugin::LogStream" = type { %"class.std::basic_ostream.base", %"class.nvinfer1::plugin::LogStream<nvinfer1::ILogger::Severity::kWARNING>::Buf", %"class.std::mutex", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.nvinfer1::plugin::LogStream<nvinfer1::ILogger::Severity::kWARNING>::Buf" = type { %"class.std::__cxx11::basic_stringbuf" }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = 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::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"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 }

@_ZTVN8nvinfer16plugin9NormalizeE = external dso_local unnamed_addr constant { [27 x ptr] }, align 8
@_ZN8nvinfer16plugin11gLogWarningE = external global %"class.nvinfer1::plugin::LogStream", align 8
@.str = external hidden unnamed_addr constant [124 x i8], align 1
@.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 uwtable
define dso_local void @_ZN8nvinfer16plugin9NormalizeC2EPKNS_7WeightsEibbf(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef %1, i32 noundef %2, i1 noundef zeroext %3, i1 noundef zeroext %4, float noundef %5) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca float, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.nvinfer1::Weights", align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  %16 = zext i1 %3 to i8
  store i8 %16, ptr %10, align 1, !tbaa !11
  %17 = zext i1 %4 to i8
  store i8 %17, ptr %11, align 1, !tbaa !11
  store float %5, ptr %12, align 4, !tbaa !13
  %18 = load ptr, ptr %7, align 8
  call void @_ZN8nvinfer112IPluginV2ExtC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  store ptr getelementptr inbounds inrange(-16, 200) ({ [27 x ptr] }, ptr @_ZTVN8nvinfer16plugin9NormalizeE, i32 0, i32 0, i32 2), ptr %18, align 8, !tbaa !15
  %19 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %18, i32 0, i32 2
  call void @_ZNSt10shared_ptrIN8nvinfer114pluginInternal13CublasWrapperEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  %20 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %18, i32 0, i32 3
  %21 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %20, i32 0, i32 0
  store i32 0, ptr %21, align 8, !tbaa !17
  %22 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %20, i32 0, i32 1
  store ptr null, ptr %22, align 8, !tbaa !21
  %23 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %20, i32 0, i32 2
  store i64 0, ptr %23, align 8, !tbaa !22
  %24 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %18, i32 0, i32 4
  store i32 0, ptr %24, align 8, !tbaa !23
  %25 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %18, i32 0, i32 5
  store float 0.000000e+00, ptr %25, align 4, !tbaa !32
  %26 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %18, i32 0, i32 6
  %27 = load i8, ptr %10, align 1, !tbaa !11, !range !33, !noundef !34
  %28 = trunc i8 %27 to i1
  %29 = zext i1 %28 to i8
  store i8 %29, ptr %26, align 8, !tbaa !35
  %30 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %18, i32 0, i32 7
  %31 = load i8, ptr %11, align 1, !tbaa !11, !range !33, !noundef !34
  %32 = trunc i8 %31 to i1
  %33 = zext i1 %32 to i8
  store i8 %33, ptr %30, align 1, !tbaa !36
  %34 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %18, i32 0, i32 8
  %35 = load float, ptr %12, align 4, !tbaa !13
  store float %35, ptr %34, align 4, !tbaa !37
  %36 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %18, i32 0, i32 9
  store i32 0, ptr %36, align 8, !tbaa !38
  %37 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %18, i32 0, i32 10
  store i32 0, ptr %37, align 4, !tbaa !39
  %38 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %18, i32 0, i32 11
  store i32 0, ptr %38, align 8, !tbaa !40
  %39 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %18, i32 0, i32 12
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #6
  %40 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE2EA124_cEERNS0_9LogStreamIXT_EEES7_RKT0_(ptr noundef nonnull align 8 dereferenceable(152) @_ZN8nvinfer16plugin11gLogWarningE, ptr noundef nonnull align 1 dereferenceable(124) @.str)
          to label %41 unwind label %50

41:                                               ; preds = %6
  %42 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE2EEERNS0_9LogStreamIXT_EEES6_PFRSoS7_E(ptr noundef nonnull align 8 dereferenceable(152) %40, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %43 unwind label %50

43:                                               ; preds = %41
  %44 = load i32, ptr %9, align 4, !tbaa !9
  %45 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %18, i32 0, i32 4
  store i32 %44, ptr %45, align 8, !tbaa !23
  %46 = load i32, ptr %9, align 4, !tbaa !9
  %47 = icmp eq i32 %46, 1
  br i1 %47, label %54, label %48

48:                                               ; preds = %43
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.2, ptr noundef @__func__._ZN8nvinfer16plugin9NormalizeC2EPKNS_7WeightsEibbf, i32 noundef 46, i32 noundef 0, ptr noundef @.str.3) #7
          to label %49 unwind label %50

49:                                               ; preds = %48
  unreachable

50:                                               ; preds = %60, %48, %41, %6
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %13, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %14, align 4
  br label %84

54:                                               ; preds = %43
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %55, i64 0
  %57 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %56, i32 0, i32 2
  %58 = load i64, ptr %57, align 8, !tbaa !22
  %59 = icmp sge i64 %58, 1
  br i1 %59, label %62, label %60

60:                                               ; preds = %54
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.2, ptr noundef @__func__._ZN8nvinfer16plugin9NormalizeC2EPKNS_7WeightsEibbf, i32 noundef 47, i32 noundef 0, ptr noundef @.str.4) #7
          to label %61 unwind label %50

61:                                               ; preds = %60
  unreachable

62:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  %63 = load ptr, ptr %8, 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 1
  %66 = load ptr, ptr %65, align 8, !tbaa !21
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %67, i64 0
  %69 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %68, i32 0, i32 2
  %70 = load i64, ptr %69, align 8, !tbaa !22
  invoke void @_ZN8nvinfer16plugin9Normalize12copyToDeviceEPKvm(ptr dead_on_unwind writable sret(%"class.nvinfer1::Weights") align 8 %15, ptr noundef nonnull align 8 dereferenceable(120) %18, ptr noundef %66, i64 noundef %70)
          to label %71 unwind label %80

71:                                               ; preds = %62
  %72 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %18, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %72, ptr align 8 %15, i64 24, i1 false), !tbaa.struct !41
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %73, i64 0
  %75 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %74, i32 0, i32 1
  %76 = load ptr, ptr %75, align 8, !tbaa !21
  %77 = getelementptr inbounds float, ptr %76, i64 0
  %78 = load float, ptr %77, align 4, !tbaa !13
  %79 = getelementptr inbounds %"class.nvinfer1::plugin::Normalize", ptr %18, i32 0, i32 5
  store float %78, ptr %79, align 4, !tbaa !32
  ret void

80:                                               ; preds = %62
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %13, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  br label %84

84:                                               ; preds = %80, %50
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #6
  call void @_ZNSt12__shared_ptrIN8nvinfer114pluginInternal13CublasWrapperELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  call void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br label %85

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE2EEERNS0_9LogStreamIXT_EEES6_PFRSoS7_E(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE2EA124_cEERNS0_9LogStreamIXT_EEES7_RKT0_(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 1 dereferenceable(124)) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: noreturn
declare void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #3

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

; 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) #0 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) #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 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 #1 align 2

attributes #0 = { 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 #1 = { 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 #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"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 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !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, !14, i64 60, !12, i64 64, !12, i64 65, !14, 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, !14, i64 60}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!24, !12, i64 64}
!36 = !{!24, !12, i64 65}
!37 = !{!24, !14, 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::plugin::LogStream" = type { %"class.std::basic_ostream.base", %"class.nvinfer1::plugin::LogStream<nvinfer1::ILogger::Severity::kWARNING>::Buf", %"class.std::mutex", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.nvinfer1::plugin::LogStream<nvinfer1::ILogger::Severity::kWARNING>::Buf" = type { %"class.std::__cxx11::basic_stringbuf" }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = 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::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.nvinfer1::Weights" = type { i32, ptr, i64 }

@_ZTVN8nvinfer16plugin9NormalizeE = external dso_local unnamed_addr constant { [27 x ptr] }, align 8
@_ZN8nvinfer16plugin11gLogWarningE = external global %"class.nvinfer1::plugin::LogStream", align 8
@.str = external hidden unnamed_addr constant [124 x i8], align 1
@.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 uwtable
define dso_local void @_ZN8nvinfer16plugin9NormalizeC2EPKNS_7WeightsEibbf(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr nocapture noundef readonly %1, i32 noundef %2, i1 noundef zeroext %3, i1 noundef zeroext %4, float noundef %5) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.nvinfer1::Weights", align 8
  %8 = zext i1 %3 to i8
  %9 = zext i1 %4 to i8
  tail call void @_ZN8nvinfer112IPluginV2ExtC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  store ptr getelementptr inbounds inrange(-16, 200) (i8, ptr @_ZTVN8nvinfer16plugin9NormalizeE, i64 16), ptr %0, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @_ZNSt10shared_ptrIN8nvinfer114pluginInternal13CublasWrapperEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  %11 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 0, ptr %11, align 8, !tbaa !8
  %12 = getelementptr inbounds i8, ptr %0, i64 40
  %13 = getelementptr inbounds i8, ptr %0, i64 56
  %14 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %12, i8 0, i64 24, i1 false)
  store i8 %8, ptr %14, align 8, !tbaa !14
  %15 = getelementptr inbounds i8, ptr %0, i64 65
  store i8 %9, ptr %15, align 1, !tbaa !26
  %16 = getelementptr inbounds i8, ptr %0, i64 68
  store float %5, ptr %16, align 4, !tbaa !27
  %17 = getelementptr inbounds i8, ptr %0, i64 72
  store i32 0, ptr %17, align 8, !tbaa !28
  %18 = getelementptr inbounds i8, ptr %0, i64 76
  store i32 0, ptr %18, align 4, !tbaa !29
  %19 = getelementptr inbounds i8, ptr %0, i64 80
  store i32 0, ptr %19, align 8, !tbaa !30
  %20 = getelementptr inbounds i8, ptr %0, i64 88
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  %21 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE2EA124_cEERNS0_9LogStreamIXT_EEES7_RKT0_(ptr noundef nonnull align 8 dereferenceable(152) @_ZN8nvinfer16plugin11gLogWarningE, ptr noundef nonnull align 1 dereferenceable(124) @.str)
          to label %22 unwind label %26

22:                                               ; preds = %6
  %23 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE2EEERNS0_9LogStreamIXT_EEES6_PFRSoS7_E(ptr noundef nonnull align 8 dereferenceable(152) %21, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %24 unwind label %26

24:                                               ; preds = %22
  store i32 %2, ptr %13, align 8, !tbaa !31
  %25 = icmp eq i32 %2, 1
  br i1 %25, label %28, label %.invoke

26:                                               ; preds = %.invoke, %22, %6
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %43

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

.invoke:                                          ; preds = %24, %28
  %32 = phi i32 [ 47, %28 ], [ 46, %24 ]
  %33 = phi ptr [ @.str.4, %28 ], [ @.str.3, %24 ]
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZN8nvinfer16plugin9NormalizeC2EPKNS_7WeightsEibbf, i32 noundef %32, i32 noundef 0, ptr noundef nonnull %33) #8
          to label %.cont unwind label %26

.cont:                                            ; preds = %.invoke
  unreachable

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

37:                                               ; preds = %34
  %38 = getelementptr inbounds i8, ptr %0, i64 60
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %7, i64 24, i1 false), !tbaa.struct !34
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  %39 = load ptr, ptr %35, align 8, !tbaa !33
  %40 = load float, ptr %39, align 4, !tbaa !38
  store float %40, ptr %38, align 4, !tbaa !39
  ret void

41:                                               ; preds = %34
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  br label %43

43:                                               ; preds = %41, %26
  %.pn = phi { ptr, i32 } [ %42, %41 ], [ %27, %26 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  call void @_ZNSt12__shared_ptrIN8nvinfer114pluginInternal13CublasWrapperELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  call void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  resume { ptr, i32 } %.pn
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE2EEERNS0_9LogStreamIXT_EEES6_PFRSoS7_E(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE2EA124_cEERNS0_9LogStreamIXT_EEES7_RKT0_(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 1 dereferenceable(124)) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: noreturn
declare void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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

; 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 #0 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) #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 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 #1 align 2

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

attributes #0 = { 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 #1 = { 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 #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }
attributes #8 = { 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, !23, i64 64}
!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 65}
!27 = !{!15, !22, i64 68}
!28 = !{!15, !21, i64 72}
!29 = !{!15, !21, i64 76}
!30 = !{!15, !21, i64 80}
!31 = !{!15, !21, i64 56}
!32 = !{!9, !13, i64 16}
!33 = !{!9, !12, i64 8}
!34 = !{i64 0, i64 4, !35, i64 8, i64 8, !36, i64 16, i64 8, !37}
!35 = !{!10, !10, i64 0}
!36 = !{!12, !12, i64 0}
!37 = !{!13, !13, i64 0}
!38 = !{!22, !22, i64 0}
!39 = !{!15, !22, i64 60}


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