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

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

@.str = external hidden unnamed_addr constant [86 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [32 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; 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)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZNK8nvinfer16plugin6Region9serializeEPv(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef %1) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %21 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %22, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %23, ptr %6, align 8, !tbaa !5
  %24 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 5
  invoke void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %25 unwind label %313

25:                                               ; preds = %2
  %26 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 6
  invoke void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %27 unwind label %313

27:                                               ; preds = %25
  %28 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 7
  invoke void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %28)
          to label %29 unwind label %313

29:                                               ; preds = %27
  %30 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 1
  invoke void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %30)
          to label %31 unwind label %313

31:                                               ; preds = %29
  %32 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 3
  invoke void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %32)
          to label %33 unwind label %313

33:                                               ; preds = %31
  %34 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 2
  invoke void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %34)
          to label %35 unwind label %313

35:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #4
  %36 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %37 = call noundef ptr @_ZNKSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %36) #4
  %38 = icmp ne ptr %37, null
  %39 = zext i1 %38 to i8
  store i8 %39, ptr %7, align 1, !tbaa !9
  invoke void @_ZN8nvinfer16plugin5writeIbcEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %40 unwind label %313

40:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #4
  %41 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %42 = call noundef ptr @_ZNKSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %41) #4
  %43 = icmp ne ptr %42, null
  br i1 %43, label %44, label %50

44:                                               ; preds = %40
  %45 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %46 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %45) #4
  %47 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %46, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8, !tbaa !11
  %49 = icmp ne ptr %48, null
  br label %50

50:                                               ; preds = %44, %40
  %51 = phi i1 [ false, %40 ], [ %49, %44 ]
  %52 = zext i1 %51 to i8
  store i8 %52, ptr %8, align 1, !tbaa !9
  invoke void @_ZN8nvinfer16plugin5writeIbcEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %53 unwind label %313

53:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #4
  %54 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %55 = call noundef ptr @_ZNKSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %54) #4
  %56 = icmp ne ptr %55, null
  br i1 %56, label %57, label %63

57:                                               ; preds = %53
  %58 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %59 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %58) #4
  %60 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %59, i32 0, i32 2
  %61 = load ptr, ptr %60, align 8, !tbaa !14
  %62 = icmp ne ptr %61, null
  br label %63

63:                                               ; preds = %57, %53
  %64 = phi i1 [ false, %53 ], [ %62, %57 ]
  %65 = zext i1 %64 to i8
  store i8 %65, ptr %9, align 1, !tbaa !9
  invoke void @_ZN8nvinfer16plugin5writeIbcEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %66 unwind label %313

66:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  %67 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %68 = call noundef ptr @_ZNKSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %67) #4
  %69 = icmp ne ptr %68, null
  br i1 %69, label %70, label %76

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

76:                                               ; preds = %70, %66
  %77 = phi i1 [ false, %66 ], [ %75, %70 ]
  %78 = zext i1 %77 to i8
  store i8 %78, ptr %10, align 1, !tbaa !9
  invoke void @_ZN8nvinfer16plugin5writeIbcEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %79 unwind label %313

79:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #4
  %80 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %81 = call noundef ptr @_ZNKSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %80) #4
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %89

83:                                               ; preds = %79
  %84 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %85 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %84) #4
  %86 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %85, i32 0, i32 4
  %87 = load ptr, ptr %86, align 8, !tbaa !16
  %88 = icmp ne ptr %87, null
  br label %89

89:                                               ; preds = %83, %79
  %90 = phi i1 [ false, %79 ], [ %88, %83 ]
  %91 = zext i1 %90 to i8
  store i8 %91, ptr %11, align 1, !tbaa !9
  invoke void @_ZN8nvinfer16plugin5writeIbcEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %92 unwind label %313

92:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  %93 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %94 = call noundef ptr @_ZNKSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %93) #4
  %95 = icmp ne ptr %94, null
  br i1 %95, label %96, label %102

96:                                               ; preds = %92
  %97 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %98 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %97) #4
  %99 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %98, i32 0, i32 5
  %100 = load ptr, ptr %99, align 8, !tbaa !17
  %101 = icmp ne ptr %100, null
  br label %102

102:                                              ; preds = %96, %92
  %103 = phi i1 [ false, %92 ], [ %101, %96 ]
  %104 = zext i1 %103 to i8
  store i8 %104, ptr %12, align 1, !tbaa !9
  invoke void @_ZN8nvinfer16plugin5writeIbcEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %105 unwind label %313

105:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #4
  %106 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %107 = call noundef ptr @_ZNKSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %106) #4
  %108 = icmp ne ptr %107, null
  br i1 %108, label %109, label %115

109:                                              ; preds = %105
  %110 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %111 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %110) #4
  %112 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %111, i32 0, i32 7
  %113 = load ptr, ptr %112, align 8, !tbaa !18
  %114 = icmp ne ptr %113, null
  br label %115

115:                                              ; preds = %109, %105
  %116 = phi i1 [ false, %105 ], [ %114, %109 ]
  %117 = zext i1 %116 to i8
  store i8 %117, ptr %13, align 1, !tbaa !9
  invoke void @_ZN8nvinfer16plugin5writeIbcEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %118 unwind label %313

118:                                              ; preds = %115
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #4
  %119 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %120 = call noundef ptr @_ZNKSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %119) #4
  %121 = icmp ne ptr %120, null
  br i1 %121, label %122, label %128

122:                                              ; preds = %118
  %123 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %124 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %123) #4
  %125 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %124, i32 0, i32 8
  %126 = load ptr, ptr %125, align 8, !tbaa !19
  %127 = icmp ne ptr %126, null
  br label %128

128:                                              ; preds = %122, %118
  %129 = phi i1 [ false, %118 ], [ %127, %122 ]
  %130 = zext i1 %129 to i8
  store i8 %130, ptr %14, align 1, !tbaa !9
  invoke void @_ZN8nvinfer16plugin5writeIbcEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %131 unwind label %313

131:                                              ; preds = %128
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  %132 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %133 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %132) #4
  br i1 %133, label %134, label %301

134:                                              ; preds = %131
  %135 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %136 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %135) #4
  %137 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %136, i32 0, i32 1
  invoke void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %137)
          to label %138 unwind label %313

138:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !20
  br label %139

139:                                              ; preds = %208, %138
  %140 = load i32, ptr %15, align 4, !tbaa !20
  %141 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %142 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %141) #4
  %143 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %142, i32 0, i32 1
  %144 = load i32, ptr %143, align 8, !tbaa !21
  %145 = icmp slt i32 %140, %144
  br i1 %145, label %147, label %146

146:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %211

147:                                              ; preds = %139
  %148 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %149 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %148) #4
  %150 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %149, i32 0, i32 0
  %151 = load ptr, ptr %150, align 8, !tbaa !11
  %152 = icmp ne ptr %151, null
  br i1 %152, label %153, label %162

153:                                              ; preds = %147
  %154 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %155 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %154) #4
  %156 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %155, i32 0, i32 0
  %157 = load ptr, ptr %156, align 8, !tbaa !11
  %158 = load i32, ptr %15, align 4, !tbaa !20
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds i32, ptr %157, i64 %159
  invoke void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %160)
          to label %161 unwind label %313

161:                                              ; preds = %153
  br label %162

162:                                              ; preds = %161, %147
  %163 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %164 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %163) #4
  %165 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %164, i32 0, i32 2
  %166 = load ptr, ptr %165, align 8, !tbaa !14
  %167 = icmp ne ptr %166, null
  br i1 %167, label %168, label %177

168:                                              ; preds = %162
  %169 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %170 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %169) #4
  %171 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %170, i32 0, i32 2
  %172 = load ptr, ptr %171, align 8, !tbaa !14
  %173 = load i32, ptr %15, align 4, !tbaa !20
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds i32, ptr %172, i64 %174
  invoke void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %175)
          to label %176 unwind label %313

176:                                              ; preds = %168
  br label %177

177:                                              ; preds = %176, %162
  %178 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %179 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %178) #4
  %180 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %179, i32 0, i32 3
  %181 = load ptr, ptr %180, align 8, !tbaa !15
  %182 = icmp ne ptr %181, null
  br i1 %182, label %183, label %192

183:                                              ; preds = %177
  %184 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %185 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %184) #4
  %186 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %185, i32 0, i32 3
  %187 = load ptr, ptr %186, align 8, !tbaa !15
  %188 = load i32, ptr %15, align 4, !tbaa !20
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds i32, ptr %187, i64 %189
  invoke void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %190)
          to label %191 unwind label %313

191:                                              ; preds = %183
  br label %192

192:                                              ; preds = %191, %177
  %193 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %194 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %193) #4
  %195 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %194, i32 0, i32 4
  %196 = load ptr, ptr %195, align 8, !tbaa !16
  %197 = icmp ne ptr %196, null
  br i1 %197, label %198, label %207

198:                                              ; preds = %192
  %199 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %200 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %199) #4
  %201 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %200, i32 0, i32 4
  %202 = load ptr, ptr %201, align 8, !tbaa !16
  %203 = load i32, ptr %15, align 4, !tbaa !20
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds i32, ptr %202, i64 %204
  invoke void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %205)
          to label %206 unwind label %313

206:                                              ; preds = %198
  br label %207

207:                                              ; preds = %206, %192
  br label %208

208:                                              ; preds = %207
  %209 = load i32, ptr %15, align 4, !tbaa !20
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %15, align 4, !tbaa !20
  br label %139, !llvm.loop !22

211:                                              ; preds = %146
  %212 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %213 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %212) #4
  %214 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %213, i32 0, i32 5
  %215 = load ptr, ptr %214, align 8, !tbaa !17
  %216 = icmp ne ptr %215, null
  br i1 %216, label %217, label %253

217:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !20
  br label %218

218:                                              ; preds = %249, %217
  %219 = load i32, ptr %16, align 4, !tbaa !20
  %220 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %221 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %220) #4
  %222 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %221, i32 0, i32 1
  %223 = load i32, ptr %222, align 8, !tbaa !21
  %224 = icmp slt i32 %219, %223
  br i1 %224, label %226, label %225

225:                                              ; preds = %218
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %252

226:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %227 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %228 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %227) #4
  %229 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %228, i32 0, i32 5
  %230 = load ptr, ptr %229, align 8, !tbaa !17
  %231 = load i32, ptr %16, align 4, !tbaa !20
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds ptr, ptr %230, i64 %232
  %234 = load ptr, ptr %233, align 8, !tbaa !5
  store ptr %234, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 0, ptr %19, align 4, !tbaa !20
  br label %235

235:                                              ; preds = %245, %226
  %236 = load i32, ptr %19, align 4, !tbaa !20
  %237 = icmp slt i32 %236, 256
  br i1 %237, label %239, label %238

238:                                              ; preds = %235
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %248

239:                                              ; preds = %235
  %240 = load ptr, ptr %18, align 8, !tbaa !5
  %241 = load i32, ptr %19, align 4, !tbaa !20
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds i8, ptr %240, i64 %242
  invoke void @_ZN8nvinfer16plugin5writeIccEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 1 dereferenceable(1) %243)
          to label %244 unwind label %313

244:                                              ; preds = %239
  br label %245

245:                                              ; preds = %244
  %246 = load i32, ptr %19, align 4, !tbaa !20
  %247 = add nsw i32 %246, 1
  store i32 %247, ptr %19, align 4, !tbaa !20
  br label %235, !llvm.loop !24

248:                                              ; preds = %238
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %249

249:                                              ; preds = %248
  %250 = load i32, ptr %16, align 4, !tbaa !20
  %251 = add nsw i32 %250, 1
  store i32 %251, ptr %16, align 4, !tbaa !20
  br label %218, !llvm.loop !25

252:                                              ; preds = %225
  br label %253

253:                                              ; preds = %252, %211
  %254 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %255 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %254) #4
  %256 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %255, i32 0, i32 6
  invoke void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %256)
          to label %257 unwind label %313

257:                                              ; preds = %253
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !20
  br label %258

258:                                              ; preds = %297, %257
  %259 = load i32, ptr %20, align 4, !tbaa !20
  %260 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %261 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %260) #4
  %262 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %261, i32 0, i32 6
  %263 = load i32, ptr %262, align 8, !tbaa !26
  %264 = icmp slt i32 %259, %263
  br i1 %264, label %266, label %265

265:                                              ; preds = %258
  store i32 11, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %300

266:                                              ; preds = %258
  %267 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %268 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %267) #4
  %269 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %268, i32 0, i32 7
  %270 = load ptr, ptr %269, align 8, !tbaa !18
  %271 = icmp ne ptr %270, null
  br i1 %271, label %272, label %281

272:                                              ; preds = %266
  %273 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %274 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %273) #4
  %275 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %274, i32 0, i32 7
  %276 = load ptr, ptr %275, align 8, !tbaa !18
  %277 = load i32, ptr %20, align 4, !tbaa !20
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds i32, ptr %276, i64 %278
  invoke void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %279)
          to label %280 unwind label %313

280:                                              ; preds = %272
  br label %281

281:                                              ; preds = %280, %266
  %282 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %283 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %282) #4
  %284 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %283, i32 0, i32 8
  %285 = load ptr, ptr %284, align 8, !tbaa !19
  %286 = icmp ne ptr %285, null
  br i1 %286, label %287, label %296

287:                                              ; preds = %281
  %288 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %21, i32 0, i32 4
  %289 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %288) #4
  %290 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %289, i32 0, i32 8
  %291 = load ptr, ptr %290, align 8, !tbaa !19
  %292 = load i32, ptr %20, align 4, !tbaa !20
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds i32, ptr %291, i64 %293
  invoke void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %294)
          to label %295 unwind label %313

295:                                              ; preds = %287
  br label %296

296:                                              ; preds = %295, %281
  br label %297

297:                                              ; preds = %296
  %298 = load i32, ptr %20, align 4, !tbaa !20
  %299 = add nsw i32 %298, 1
  store i32 %299, ptr %20, align 4, !tbaa !20
  br label %258, !llvm.loop !27

300:                                              ; preds = %265
  br label %301

301:                                              ; preds = %300, %131
  %302 = load ptr, ptr %5, align 8, !tbaa !5
  %303 = load ptr, ptr %6, align 8, !tbaa !5
  %304 = load ptr, ptr %21, align 8, !tbaa !28
  %305 = getelementptr inbounds ptr, ptr %304, i64 11
  %306 = load ptr, ptr %305, align 8
  %307 = call noundef i64 %306(ptr noundef nonnull align 8 dereferenceable(88) %21) #4
  %308 = getelementptr inbounds i8, ptr %303, i64 %307
  %309 = icmp eq ptr %302, %308
  br i1 %309, label %312, label %310

310:                                              ; preds = %301
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.5, ptr noundef @.str, i32 noundef 367)
          to label %311 unwind label %313

311:                                              ; preds = %310
  br label %312

312:                                              ; preds = %311, %301
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret void

313:                                              ; preds = %310, %287, %272, %253, %239, %198, %183, %168, %153, %134, %128, %115, %102, %89, %76, %63, %50, %35, %33, %31, %29, %27, %25, %2
  %314 = landingpad { ptr, i32 }
          catch ptr null
  %315 = extractvalue { ptr, i32 } %314, 0
  call void @__clang_call_terminate(ptr %315) #5
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8nvinfer16plugin5writeIbcEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8nvinfer16plugin5writeIccEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !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, !6, i64 16}
!15 = !{!12, !6, i64 24}
!16 = !{!12, !6, i64 32}
!17 = !{!12, !6, i64 40}
!18 = !{!12, !6, i64 56}
!19 = !{!12, !6, i64 64}
!20 = !{!13, !13, i64 0}
!21 = !{!12, !13, i64 8}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = distinct !{!25, !23}
!26 = !{!12, !13, i64 48}
!27 = distinct !{!27, !23}
!28 = !{!29, !29, i64 0}
!29 = !{!"vtable pointer", !8, 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"

@.str = external hidden unnamed_addr constant [86 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [32 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; 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 #3 align 2

; 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 #3 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZNK8nvinfer16plugin6Region9serializeEPv(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef %1) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  store ptr %1, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 40
  call void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %13 = getelementptr inbounds i8, ptr %0, i64 44
  call void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %14 = getelementptr inbounds i8, ptr %0, i64 48
  call void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  call void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  call void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %17 = getelementptr inbounds i8, ptr %0, i64 12
  call void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %17)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #4
  %18 = getelementptr inbounds i8, ptr %0, i64 24
  %19 = call noundef ptr @_ZNKSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %18) #4
  %20 = icmp ne ptr %19, null
  %21 = zext i1 %20 to i8
  store i8 %21, ptr %4, align 1, !tbaa !9
  call void @_ZN8nvinfer16plugin5writeIbcEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 1 dereferenceable(1) %4)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #4
  %22 = call noundef ptr @_ZNKSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %18) #4
  %.not = icmp eq ptr %22, null
  br i1 %.not, label %28, label %23

23:                                               ; preds = %2
  %24 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %25 = load ptr, ptr %24, align 8, !tbaa !11
  %26 = icmp ne ptr %25, null
  %27 = zext i1 %26 to i8
  br label %28

28:                                               ; preds = %23, %2
  %29 = phi i8 [ 0, %2 ], [ %27, %23 ]
  store i8 %29, ptr %5, align 1, !tbaa !9
  call void @_ZN8nvinfer16plugin5writeIbcEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 1 dereferenceable(1) %5)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #4
  %30 = call noundef ptr @_ZNKSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %18) #4
  %.not22 = icmp eq ptr %30, null
  br i1 %.not22, label %37, label %31

31:                                               ; preds = %28
  %32 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  %34 = load ptr, ptr %33, align 8, !tbaa !14
  %35 = icmp ne ptr %34, null
  %36 = zext i1 %35 to i8
  br label %37

37:                                               ; preds = %31, %28
  %38 = phi i8 [ 0, %28 ], [ %36, %31 ]
  store i8 %38, ptr %6, align 1, !tbaa !9
  call void @_ZN8nvinfer16plugin5writeIbcEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 1 dereferenceable(1) %6)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #4
  %39 = call noundef ptr @_ZNKSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %18) #4
  %.not23 = icmp eq ptr %39, null
  br i1 %.not23, label %46, label %40

40:                                               ; preds = %37
  %41 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %42 = getelementptr inbounds i8, ptr %41, i64 24
  %43 = load ptr, ptr %42, align 8, !tbaa !15
  %44 = icmp ne ptr %43, null
  %45 = zext i1 %44 to i8
  br label %46

46:                                               ; preds = %40, %37
  %47 = phi i8 [ 0, %37 ], [ %45, %40 ]
  store i8 %47, ptr %7, align 1, !tbaa !9
  call void @_ZN8nvinfer16plugin5writeIbcEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 1 dereferenceable(1) %7)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #4
  %48 = call noundef ptr @_ZNKSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %18) #4
  %.not24 = icmp eq ptr %48, null
  br i1 %.not24, label %55, label %49

49:                                               ; preds = %46
  %50 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %51 = getelementptr inbounds i8, ptr %50, i64 32
  %52 = load ptr, ptr %51, align 8, !tbaa !16
  %53 = icmp ne ptr %52, null
  %54 = zext i1 %53 to i8
  br label %55

55:                                               ; preds = %49, %46
  %56 = phi i8 [ 0, %46 ], [ %54, %49 ]
  store i8 %56, ptr %8, align 1, !tbaa !9
  call void @_ZN8nvinfer16plugin5writeIbcEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 1 dereferenceable(1) %8)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #4
  %57 = call noundef ptr @_ZNKSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %18) #4
  %.not25 = icmp eq ptr %57, null
  br i1 %.not25, label %64, label %58

58:                                               ; preds = %55
  %59 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %60 = getelementptr inbounds i8, ptr %59, i64 40
  %61 = load ptr, ptr %60, align 8, !tbaa !17
  %62 = icmp ne ptr %61, null
  %63 = zext i1 %62 to i8
  br label %64

64:                                               ; preds = %58, %55
  %65 = phi i8 [ 0, %55 ], [ %63, %58 ]
  store i8 %65, ptr %9, align 1, !tbaa !9
  call void @_ZN8nvinfer16plugin5writeIbcEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 1 dereferenceable(1) %9)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #4
  %66 = call noundef ptr @_ZNKSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %18) #4
  %.not26 = icmp eq ptr %66, null
  br i1 %.not26, label %73, label %67

67:                                               ; preds = %64
  %68 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %69 = getelementptr inbounds i8, ptr %68, i64 56
  %70 = load ptr, ptr %69, align 8, !tbaa !18
  %71 = icmp ne ptr %70, null
  %72 = zext i1 %71 to i8
  br label %73

73:                                               ; preds = %67, %64
  %74 = phi i8 [ 0, %64 ], [ %72, %67 ]
  store i8 %74, ptr %10, align 1, !tbaa !9
  call void @_ZN8nvinfer16plugin5writeIbcEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 1 dereferenceable(1) %10)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #4
  %75 = call noundef ptr @_ZNKSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %18) #4
  %.not27 = icmp eq ptr %75, null
  br i1 %.not27, label %82, label %76

76:                                               ; preds = %73
  %77 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %78 = getelementptr inbounds i8, ptr %77, i64 64
  %79 = load ptr, ptr %78, align 8, !tbaa !19
  %80 = icmp ne ptr %79, null
  %81 = zext i1 %80 to i8
  br label %82

82:                                               ; preds = %76, %73
  %83 = phi i8 [ 0, %73 ], [ %81, %76 ]
  store i8 %83, ptr %11, align 1, !tbaa !9
  call void @_ZN8nvinfer16plugin5writeIbcEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 1 dereferenceable(1) %11)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #4
  %84 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %18) #4
  br i1 %84, label %85, label %.loopexit

85:                                               ; preds = %82
  %86 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %87 = getelementptr inbounds i8, ptr %86, i64 8
  call void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %87)
  %88 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %89 = getelementptr inbounds i8, ptr %88, i64 8
  %90 = load i32, ptr %89, align 8, !tbaa !20
  %91 = icmp sgt i32 %90, 0
  br i1 %91, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %132, %85
  %92 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %93 = getelementptr inbounds i8, ptr %92, i64 40
  %94 = load ptr, ptr %93, align 8, !tbaa !17
  %.not28 = icmp eq ptr %94, null
  br i1 %.not28, label %.loopexit35, label %.preheader

.preheader:                                       ; preds = %._crit_edge
  %95 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %96 = getelementptr inbounds i8, ptr %95, i64 8
  %97 = load i32, ptr %96, align 8, !tbaa !20
  %98 = icmp sgt i32 %97, 0
  br i1 %98, label %.lr.ph39, label %.loopexit35

.lr.ph:                                           ; preds = %85, %132
  %indvars.iv = phi i64 [ %indvars.iv.next, %132 ], [ 0, %85 ]
  %99 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %100 = load ptr, ptr %99, align 8, !tbaa !11
  %.not31 = icmp eq ptr %100, null
  br i1 %.not31, label %105, label %101

101:                                              ; preds = %.lr.ph
  %102 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %103 = load ptr, ptr %102, align 8, !tbaa !11
  %104 = getelementptr inbounds i32, ptr %103, i64 %indvars.iv
  call void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %104)
  br label %105

105:                                              ; preds = %101, %.lr.ph
  %106 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %107 = getelementptr inbounds i8, ptr %106, i64 16
  %108 = load ptr, ptr %107, align 8, !tbaa !14
  %.not32 = icmp eq ptr %108, null
  br i1 %.not32, label %114, label %109

109:                                              ; preds = %105
  %110 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %111 = getelementptr inbounds i8, ptr %110, i64 16
  %112 = load ptr, ptr %111, align 8, !tbaa !14
  %113 = getelementptr inbounds i32, ptr %112, i64 %indvars.iv
  call void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %113)
  br label %114

114:                                              ; preds = %109, %105
  %115 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %116 = getelementptr inbounds i8, ptr %115, i64 24
  %117 = load ptr, ptr %116, align 8, !tbaa !15
  %.not33 = icmp eq ptr %117, null
  br i1 %.not33, label %123, label %118

118:                                              ; preds = %114
  %119 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %120 = getelementptr inbounds i8, ptr %119, i64 24
  %121 = load ptr, ptr %120, align 8, !tbaa !15
  %122 = getelementptr inbounds i32, ptr %121, i64 %indvars.iv
  call void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %122)
  br label %123

123:                                              ; preds = %118, %114
  %124 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %125 = getelementptr inbounds i8, ptr %124, i64 32
  %126 = load ptr, ptr %125, align 8, !tbaa !16
  %.not34 = icmp eq ptr %126, null
  br i1 %.not34, label %132, label %127

127:                                              ; preds = %123
  %128 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %129 = getelementptr inbounds i8, ptr %128, i64 32
  %130 = load ptr, ptr %129, align 8, !tbaa !16
  %131 = getelementptr inbounds i32, ptr %130, i64 %indvars.iv
  call void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %131)
  br label %132

132:                                              ; preds = %123, %127
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %133 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %134 = getelementptr inbounds i8, ptr %133, i64 8
  %135 = load i32, ptr %134, align 8, !tbaa !20
  %136 = sext i32 %135 to i64
  %137 = icmp slt i64 %indvars.iv.next, %136
  br i1 %137, label %.lr.ph, label %._crit_edge, !llvm.loop !21

.lr.ph39:                                         ; preds = %.preheader, %143
  %indvars.iv47 = phi i64 [ %indvars.iv.next48, %143 ], [ 0, %.preheader ]
  %138 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %139 = getelementptr inbounds i8, ptr %138, i64 40
  %140 = load ptr, ptr %139, align 8, !tbaa !17
  %141 = getelementptr inbounds ptr, ptr %140, i64 %indvars.iv47
  %142 = load ptr, ptr %141, align 8, !tbaa !5
  br label %149

143:                                              ; preds = %149
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %144 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %145 = getelementptr inbounds i8, ptr %144, i64 8
  %146 = load i32, ptr %145, align 8, !tbaa !20
  %147 = sext i32 %146 to i64
  %148 = icmp slt i64 %indvars.iv.next48, %147
  br i1 %148, label %.lr.ph39, label %.loopexit35, !llvm.loop !23

149:                                              ; preds = %.lr.ph39, %149
  %indvars.iv44 = phi i64 [ 0, %.lr.ph39 ], [ %indvars.iv.next45, %149 ]
  %150 = getelementptr inbounds i8, ptr %142, i64 %indvars.iv44
  call void @_ZN8nvinfer16plugin5writeIccEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 1 dereferenceable(1) %150)
  %indvars.iv.next45 = add nuw nsw i64 %indvars.iv44, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next45, 256
  br i1 %exitcond.not, label %143, label %149, !llvm.loop !24

.loopexit35:                                      ; preds = %143, %.preheader, %._crit_edge
  %151 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %152 = getelementptr inbounds i8, ptr %151, i64 48
  call void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %152)
  %153 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %154 = getelementptr inbounds i8, ptr %153, i64 48
  %155 = load i32, ptr %154, align 8, !tbaa !25
  %156 = icmp sgt i32 %155, 0
  br i1 %156, label %.lr.ph42, label %.loopexit

.lr.ph42:                                         ; preds = %.loopexit35, %174
  %indvars.iv50 = phi i64 [ %indvars.iv.next51, %174 ], [ 0, %.loopexit35 ]
  %157 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %158 = getelementptr inbounds i8, ptr %157, i64 56
  %159 = load ptr, ptr %158, align 8, !tbaa !18
  %.not29 = icmp eq ptr %159, null
  br i1 %.not29, label %165, label %160

160:                                              ; preds = %.lr.ph42
  %161 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %162 = getelementptr inbounds i8, ptr %161, i64 56
  %163 = load ptr, ptr %162, align 8, !tbaa !18
  %164 = getelementptr inbounds i32, ptr %163, i64 %indvars.iv50
  call void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %164)
  br label %165

165:                                              ; preds = %160, %.lr.ph42
  %166 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %167 = getelementptr inbounds i8, ptr %166, i64 64
  %168 = load ptr, ptr %167, align 8, !tbaa !19
  %.not30 = icmp eq ptr %168, null
  br i1 %.not30, label %174, label %169

169:                                              ; preds = %165
  %170 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %171 = getelementptr inbounds i8, ptr %170, i64 64
  %172 = load ptr, ptr %171, align 8, !tbaa !19
  %173 = getelementptr inbounds i32, ptr %172, i64 %indvars.iv50
  call void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %173)
  br label %174

174:                                              ; preds = %165, %169
  %indvars.iv.next51 = add nuw nsw i64 %indvars.iv50, 1
  %175 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  %176 = getelementptr inbounds i8, ptr %175, i64 48
  %177 = load i32, ptr %176, align 8, !tbaa !25
  %178 = sext i32 %177 to i64
  %179 = icmp slt i64 %indvars.iv.next51, %178
  br i1 %179, label %.lr.ph42, label %.loopexit, !llvm.loop !26

.loopexit:                                        ; preds = %174, %.loopexit35, %82
  %180 = load ptr, ptr %3, align 8, !tbaa !5
  %181 = load ptr, ptr %0, align 8, !tbaa !27
  %182 = getelementptr inbounds i8, ptr %181, i64 88
  %183 = load ptr, ptr %182, align 8
  %184 = call noundef i64 %183(ptr noundef nonnull align 8 dereferenceable(88) %0) #4
  %185 = getelementptr inbounds i8, ptr %1, i64 %184
  %186 = icmp eq ptr %180, %185
  br i1 %186, label %188, label %187

187:                                              ; preds = %.loopexit
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str, i32 noundef 367)
          to label %188 unwind label %189

188:                                              ; preds = %187, %.loopexit
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  ret void

189:                                              ; preds = %187
  %190 = landingpad { ptr, i32 }
          catch ptr null
  %191 = extractvalue { ptr, i32 } %190, 0
  call void @__clang_call_terminate(ptr %191) #5
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8nvinfer16plugin5writeIicEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8nvinfer16plugin5writeIbcEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8nvinfer16plugin5writeIccEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !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, !6, i64 16}
!15 = !{!12, !6, i64 24}
!16 = !{!12, !6, i64 32}
!17 = !{!12, !6, i64 40}
!18 = !{!12, !6, i64 56}
!19 = !{!12, !6, i64 64}
!20 = !{!12, !13, i64 8}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}
!25 = !{!12, !13, i64 48}
!26 = distinct !{!26, !22}
!27 = !{!28, !28, i64 0}
!28 = !{!"vtable pointer", !8, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass