; LLVM IR from NVIDIA/TensorRT :: plugin/regionPlugin/regionPlugin.ll (ZNK8nvinfer16plugin6Region20getSerializationSizeEv)

; 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::Region" = type { %"class.nvinfer1::IPluginV2Ext", i32, i32, i32, %"class.std::shared_ptr", i32, i32, i32, i8, %"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] }
%"struct.nvinfer1::plugin::softmaxTree" = type { ptr, i32, ptr, ptr, ptr, ptr, i32, ptr, ptr }

; 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: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i64 @_ZNK8nvinfer16plugin6Region20getSerializationSizeEv(ptr noundef nonnull align 8 dereferenceable(88) %0) unnamed_addr #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %4 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #2
  store i64 32, ptr %3, align 8, !tbaa !9
  %5 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %4, i32 0, i32 4
  %6 = call noundef ptr @_ZNKSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %5) #2
  %7 = icmp ne ptr %6, null
  br i1 %7, label %8, label %117

8:                                                ; preds = %1
  %9 = load i64, ptr %3, align 8, !tbaa !9
  %10 = add i64 %9, 8
  store i64 %10, ptr %3, align 8, !tbaa !9
  %11 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %4, i32 0, i32 4
  %12 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %11) #2
  %13 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %12, i32 0, i32 0
  %14 = load ptr, ptr %13, align 8, !tbaa !11
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %25

16:                                               ; preds = %8
  %17 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %4, i32 0, i32 4
  %18 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %17) #2
  %19 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %18, i32 0, i32 1
  %20 = load i32, ptr %19, align 8, !tbaa !14
  %21 = sext i32 %20 to i64
  %22 = mul i64 %21, 4
  %23 = load i64, ptr %3, align 8, !tbaa !9
  %24 = add i64 %23, %22
  store i64 %24, ptr %3, align 8, !tbaa !9
  br label %25

25:                                               ; preds = %16, %8
  %26 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %4, i32 0, i32 4
  %27 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %26) #2
  %28 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %27, i32 0, i32 2
  %29 = load ptr, ptr %28, align 8, !tbaa !15
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %40

31:                                               ; preds = %25
  %32 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %4, i32 0, i32 4
  %33 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %32) #2
  %34 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %33, i32 0, i32 1
  %35 = load i32, ptr %34, align 8, !tbaa !14
  %36 = sext i32 %35 to i64
  %37 = mul i64 %36, 4
  %38 = load i64, ptr %3, align 8, !tbaa !9
  %39 = add i64 %38, %37
  store i64 %39, ptr %3, align 8, !tbaa !9
  br label %40

40:                                               ; preds = %31, %25
  %41 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %4, i32 0, i32 4
  %42 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %41) #2
  %43 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %42, i32 0, i32 3
  %44 = load ptr, ptr %43, align 8, !tbaa !16
  %45 = icmp ne ptr %44, null
  br i1 %45, label %46, label %55

46:                                               ; preds = %40
  %47 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %4, i32 0, i32 4
  %48 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %47) #2
  %49 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %48, i32 0, i32 1
  %50 = load i32, ptr %49, align 8, !tbaa !14
  %51 = sext i32 %50 to i64
  %52 = mul i64 %51, 4
  %53 = load i64, ptr %3, align 8, !tbaa !9
  %54 = add i64 %53, %52
  store i64 %54, ptr %3, align 8, !tbaa !9
  br label %55

55:                                               ; preds = %46, %40
  %56 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %4, i32 0, i32 4
  %57 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %56) #2
  %58 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %57, i32 0, i32 4
  %59 = load ptr, ptr %58, align 8, !tbaa !17
  %60 = icmp ne ptr %59, null
  br i1 %60, label %61, label %70

61:                                               ; preds = %55
  %62 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %4, i32 0, i32 4
  %63 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %62) #2
  %64 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %63, i32 0, i32 1
  %65 = load i32, ptr %64, align 8, !tbaa !14
  %66 = sext i32 %65 to i64
  %67 = mul i64 %66, 4
  %68 = load i64, ptr %3, align 8, !tbaa !9
  %69 = add i64 %68, %67
  store i64 %69, ptr %3, align 8, !tbaa !9
  br label %70

70:                                               ; preds = %61, %55
  %71 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %4, i32 0, i32 4
  %72 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %71) #2
  %73 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %72, i32 0, i32 5
  %74 = load ptr, ptr %73, align 8, !tbaa !18
  %75 = icmp ne ptr %74, null
  br i1 %75, label %76, label %86

76:                                               ; preds = %70
  %77 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %4, i32 0, i32 4
  %78 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %77) #2
  %79 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %78, i32 0, i32 1
  %80 = load i32, ptr %79, align 8, !tbaa !14
  %81 = mul nsw i32 %80, 256
  %82 = sext i32 %81 to i64
  %83 = mul i64 %82, 1
  %84 = load i64, ptr %3, align 8, !tbaa !9
  %85 = add i64 %84, %83
  store i64 %85, ptr %3, align 8, !tbaa !9
  br label %86

86:                                               ; preds = %76, %70
  %87 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %4, i32 0, i32 4
  %88 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %87) #2
  %89 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %88, i32 0, i32 7
  %90 = load ptr, ptr %89, align 8, !tbaa !19
  %91 = icmp ne ptr %90, null
  br i1 %91, label %92, label %101

92:                                               ; preds = %86
  %93 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %4, i32 0, i32 4
  %94 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %93) #2
  %95 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %94, i32 0, i32 6
  %96 = load i32, ptr %95, align 8, !tbaa !20
  %97 = sext i32 %96 to i64
  %98 = mul i64 %97, 4
  %99 = load i64, ptr %3, align 8, !tbaa !9
  %100 = add i64 %99, %98
  store i64 %100, ptr %3, align 8, !tbaa !9
  br label %101

101:                                              ; preds = %92, %86
  %102 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %4, i32 0, i32 4
  %103 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %102) #2
  %104 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %103, i32 0, i32 8
  %105 = load ptr, ptr %104, align 8, !tbaa !21
  %106 = icmp ne ptr %105, null
  br i1 %106, label %107, label %116

107:                                              ; preds = %101
  %108 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %4, i32 0, i32 4
  %109 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %108) #2
  %110 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %109, i32 0, i32 6
  %111 = load i32, ptr %110, align 8, !tbaa !20
  %112 = sext i32 %111 to i64
  %113 = mul i64 %112, 4
  %114 = load i64, ptr %3, align 8, !tbaa !9
  %115 = add i64 %114, %113
  store i64 %115, ptr %3, align 8, !tbaa !9
  br label %116

116:                                              ; preds = %107, %101
  br label %117

117:                                              ; preds = %116, %1
  %118 = load i64, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #2
  ret i64 %118
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSN8nvinfer16plugin11softmaxTreeE", !6, i64 0, !13, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !13, i64 48, !6, i64 56, !6, i64 64}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{!12, !6, i64 16}
!16 = !{!12, !6, i64 24}
!17 = !{!12, !6, i64 32}
!18 = !{!12, !6, i64 40}
!19 = !{!12, !6, i64 56}
!20 = !{!12, !13, i64 48}
!21 = !{!12, !6, i64 64}


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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i64 @_ZNK8nvinfer16plugin6Region20getSerializationSizeEv(ptr noundef nonnull align 8 dereferenceable(88) %0) unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 24
  %3 = tail call noundef ptr @_ZNKSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %2) #1
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %80, label %4

4:                                                ; preds = %1
  %5 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #1
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %.not9 = icmp eq ptr %6, null
  br i1 %.not9, label %14, label %7

7:                                                ; preds = %4
  %8 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #1
  %9 = getelementptr inbounds i8, ptr %8, i64 8
  %10 = load i32, ptr %9, align 8, !tbaa !11
  %11 = sext i32 %10 to i64
  %12 = shl nsw i64 %11, 2
  %13 = add nsw i64 %12, 40
  br label %14

14:                                               ; preds = %7, %4
  %.0 = phi i64 [ %13, %7 ], [ 40, %4 ]
  %15 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #1
  %16 = getelementptr inbounds i8, ptr %15, i64 16
  %17 = load ptr, ptr %16, align 8, !tbaa !12
  %.not10 = icmp eq ptr %17, null
  br i1 %.not10, label %25, label %18

18:                                               ; preds = %14
  %19 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #1
  %20 = getelementptr inbounds i8, ptr %19, i64 8
  %21 = load i32, ptr %20, align 8, !tbaa !11
  %22 = sext i32 %21 to i64
  %23 = shl nsw i64 %22, 2
  %24 = add nsw i64 %23, %.0
  br label %25

25:                                               ; preds = %18, %14
  %.1 = phi i64 [ %24, %18 ], [ %.0, %14 ]
  %26 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #1
  %27 = getelementptr inbounds i8, ptr %26, i64 24
  %28 = load ptr, ptr %27, align 8, !tbaa !13
  %.not11 = icmp eq ptr %28, null
  br i1 %.not11, label %36, label %29

29:                                               ; preds = %25
  %30 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #1
  %31 = getelementptr inbounds i8, ptr %30, i64 8
  %32 = load i32, ptr %31, align 8, !tbaa !11
  %33 = sext i32 %32 to i64
  %34 = shl nsw i64 %33, 2
  %35 = add nsw i64 %34, %.1
  br label %36

36:                                               ; preds = %29, %25
  %.2 = phi i64 [ %35, %29 ], [ %.1, %25 ]
  %37 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #1
  %38 = getelementptr inbounds i8, ptr %37, i64 32
  %39 = load ptr, ptr %38, align 8, !tbaa !14
  %.not12 = icmp eq ptr %39, null
  br i1 %.not12, label %47, label %40

40:                                               ; preds = %36
  %41 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #1
  %42 = getelementptr inbounds i8, ptr %41, i64 8
  %43 = load i32, ptr %42, align 8, !tbaa !11
  %44 = sext i32 %43 to i64
  %45 = shl nsw i64 %44, 2
  %46 = add i64 %45, %.2
  br label %47

47:                                               ; preds = %40, %36
  %.3 = phi i64 [ %46, %40 ], [ %.2, %36 ]
  %48 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #1
  %49 = getelementptr inbounds i8, ptr %48, i64 40
  %50 = load ptr, ptr %49, align 8, !tbaa !15
  %.not13 = icmp eq ptr %50, null
  br i1 %.not13, label %58, label %51

51:                                               ; preds = %47
  %52 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #1
  %53 = getelementptr inbounds i8, ptr %52, i64 8
  %54 = load i32, ptr %53, align 8, !tbaa !11
  %55 = shl nsw i32 %54, 8
  %56 = sext i32 %55 to i64
  %57 = add i64 %.3, %56
  br label %58

58:                                               ; preds = %51, %47
  %.4 = phi i64 [ %57, %51 ], [ %.3, %47 ]
  %59 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #1
  %60 = getelementptr inbounds i8, ptr %59, i64 56
  %61 = load ptr, ptr %60, align 8, !tbaa !16
  %.not14 = icmp eq ptr %61, null
  br i1 %.not14, label %69, label %62

62:                                               ; preds = %58
  %63 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #1
  %64 = getelementptr inbounds i8, ptr %63, i64 48
  %65 = load i32, ptr %64, align 8, !tbaa !17
  %66 = sext i32 %65 to i64
  %67 = shl nsw i64 %66, 2
  %68 = add i64 %67, %.4
  br label %69

69:                                               ; preds = %62, %58
  %.5 = phi i64 [ %68, %62 ], [ %.4, %58 ]
  %70 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #1
  %71 = getelementptr inbounds i8, ptr %70, i64 64
  %72 = load ptr, ptr %71, align 8, !tbaa !18
  %.not15 = icmp eq ptr %72, null
  br i1 %.not15, label %80, label %73

73:                                               ; preds = %69
  %74 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #1
  %75 = getelementptr inbounds i8, ptr %74, i64 48
  %76 = load i32, ptr %75, align 8, !tbaa !17
  %77 = sext i32 %76 to i64
  %78 = shl nsw i64 %77, 2
  %79 = add i64 %78, %.5
  br label %80

80:                                               ; preds = %69, %73, %1
  %.6 = phi i64 [ %79, %73 ], [ %.5, %69 ], [ 32, %1 ]
  ret i64 %.6
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_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 = { 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, !7, i64 0}
!6 = !{!"_ZTSN8nvinfer16plugin11softmaxTreeE", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !7, i64 56, !7, i64 64}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!6, !7, i64 16}
!13 = !{!6, !7, i64 24}
!14 = !{!6, !7, i64 32}
!15 = !{!6, !7, i64 40}
!16 = !{!6, !7, i64 56}
!17 = !{!6, !10, i64 48}
!18 = !{!6, !7, i64 64}


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