; LLVM IR from NVIDIA/TensorRT :: plugin/pillarScatterPlugin (pillarScatter)

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

%"struct.nvinfer1::PluginTensorDesc" = type { %"class.nvinfer1::Dims64", i32, i32, float }
%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }
%"class.nvinfer1::plugin::PillarScatterPlugin" = type { %"class.nvinfer1::IPluginV2DynamicExt", %"class.std::__cxx11::basic_string", i64, i64 }
%"class.nvinfer1::IPluginV2DynamicExt" = type { %"class.nvinfer1::IPluginV2Ext" }
%"class.nvinfer1::IPluginV2Ext" = type { %"class.nvinfer1::IPluginV2" }
%"class.nvinfer1::IPluginV2" = 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] }

@_ZTISt9exception = external constant ptr
@.str.2 = external hidden unnamed_addr constant [94 x i8], align 1
@__func__._ZN8nvinfer16plugin19PillarScatterPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #1

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

declare ptr @__cxa_begin_catch(ptr)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8)) #3

declare void @__cxa_end_catch()

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN8nvinfer16plugin19PillarScatterPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  %32 = load ptr, ptr %9, align 8
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = icmp ne ptr %33, null
  br i1 %34, label %35, label %41

35:                                               ; preds = %7
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %41

38:                                               ; preds = %35
  %39 = load ptr, ptr %13, align 8, !tbaa !5
  %40 = icmp ne ptr %39, null
  br i1 %40, label %47, label %41

41:                                               ; preds = %38, %35, %7
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.2, ptr noundef @__func__._ZN8nvinfer16plugin19PillarScatterPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st, i32 noundef 119, i32 noundef 0, ptr noundef @.str.5) #7
          to label %42 unwind label %43

42:                                               ; preds = %41
  unreachable

43:                                               ; preds = %41
  %44 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %16, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %17, align 4
  br label %175

47:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %48, i64 0
  %50 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %49, i32 0, i32 0
  %51 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %50, i32 0, i32 1
  %52 = getelementptr inbounds [8 x i64], ptr %51, i64 0, i64 0
  %53 = load i64, ptr %52, align 8, !tbaa !9
  %54 = trunc i64 %53 to i32
  store i32 %54, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %55, i64 0
  %57 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %56, i32 0, i32 0
  %58 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %57, i32 0, i32 1
  %59 = getelementptr inbounds [8 x i64], ptr %58, i64 0, i64 1
  %60 = load i64, ptr %59, align 8, !tbaa !9
  %61 = trunc i64 %60 to i32
  store i32 %61, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %62, i64 0
  %64 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %63, i32 0, i32 0
  %65 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %64, i32 0, i32 1
  %66 = getelementptr inbounds [8 x i64], ptr %65, i64 0, i64 2
  %67 = load i64, ptr %66, align 8, !tbaa !9
  %68 = trunc i64 %67 to i32
  store i32 %68, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %69, i64 0
  %71 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %70, i32 0, i32 1
  %72 = load i32, ptr %71, align 8, !tbaa !13
  store i32 %72, ptr %21, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %73 = load ptr, ptr %12, align 8, !tbaa !5
  %74 = getelementptr inbounds ptr, ptr %73, i64 1
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  store ptr %75, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %76 = load ptr, ptr %12, align 8, !tbaa !5
  %77 = getelementptr inbounds ptr, ptr %76, i64 2
  %78 = load ptr, ptr %77, align 8, !tbaa !5
  store ptr %78, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %79 = getelementptr inbounds %"class.nvinfer1::plugin::PillarScatterPlugin", ptr %32, i32 0, i32 2
  %80 = load i64, ptr %79, align 8, !tbaa !20
  %81 = trunc i64 %80 to i32
  store i32 %81, ptr %24, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %82 = getelementptr inbounds %"class.nvinfer1::plugin::PillarScatterPlugin", ptr %32, i32 0, i32 3
  %83 = load i64, ptr %82, align 8, !tbaa !27
  %84 = trunc i64 %83 to i32
  store i32 %84, ptr %25, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 -1, ptr %26, align 4, !tbaa !11
  %85 = load i32, ptr %21, align 4, !tbaa !19
  %86 = icmp eq i32 %85, 1
  br i1 %86, label %87, label %123

87:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %88 = load ptr, ptr %12, align 8, !tbaa !5
  %89 = getelementptr inbounds ptr, ptr %88, i64 0
  %90 = load ptr, ptr %89, align 8, !tbaa !5
  store ptr %90, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  %92 = getelementptr inbounds ptr, ptr %91, i64 0
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  store ptr %93, ptr %28, align 8, !tbaa !5
  %94 = load ptr, ptr %28, align 8, !tbaa !5
  %95 = load i32, ptr %18, align 4, !tbaa !11
  %96 = load i32, ptr %20, align 4, !tbaa !11
  %97 = mul nsw i32 %95, %96
  %98 = load i32, ptr %24, align 4, !tbaa !11
  %99 = mul i32 %97, %98
  %100 = load i32, ptr %25, align 4, !tbaa !11
  %101 = mul i32 %99, %100
  %102 = zext i32 %101 to i64
  %103 = mul i64 %102, 2
  %104 = load ptr, ptr %15, align 8, !tbaa !5
  %105 = invoke i32 @cudaMemsetAsync(ptr noundef %94, i32 noundef 0, i64 noundef %103, ptr noundef %104)
          to label %106 unwind label %119

106:                                              ; preds = %87
  %107 = load i32, ptr %18, align 4, !tbaa !11
  %108 = load i32, ptr %19, align 4, !tbaa !11
  %109 = load i32, ptr %20, align 4, !tbaa !11
  %110 = load ptr, ptr %27, align 8, !tbaa !5
  %111 = load ptr, ptr %22, align 8, !tbaa !5
  %112 = load ptr, ptr %23, align 8, !tbaa !5
  %113 = load i32, ptr %25, align 4, !tbaa !11
  %114 = load i32, ptr %24, align 4, !tbaa !11
  %115 = load ptr, ptr %28, align 8, !tbaa !5
  %116 = load ptr, ptr %15, align 8, !tbaa !5
  %117 = invoke noundef i32 @_ZN8nvinfer16plugin25pillarScatterKernelLaunchI6__halfEEiiiiPKT_PKjS7_jjPS3_P11CUstream_st(i32 noundef %107, i32 noundef %108, i32 noundef %109, ptr noundef %110, ptr noundef %111, ptr noundef %112, i32 noundef %113, i32 noundef %114, ptr noundef %115, ptr noundef %116)
          to label %118 unwind label %119

118:                                              ; preds = %106
  store i32 %117, ptr %26, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %163

119:                                              ; preds = %106, %87
  %120 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %16, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %174

123:                                              ; preds = %47
  %124 = load i32, ptr %21, align 4, !tbaa !19
  %125 = icmp eq i32 %124, 0
  br i1 %125, label %126, label %162

126:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %127 = load ptr, ptr %12, align 8, !tbaa !5
  %128 = getelementptr inbounds ptr, ptr %127, i64 0
  %129 = load ptr, ptr %128, align 8, !tbaa !5
  store ptr %129, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %130 = load ptr, ptr %13, align 8, !tbaa !5
  %131 = getelementptr inbounds ptr, ptr %130, i64 0
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  store ptr %132, ptr %30, align 8, !tbaa !5
  %133 = load ptr, ptr %30, align 8, !tbaa !5
  %134 = load i32, ptr %18, align 4, !tbaa !11
  %135 = load i32, ptr %20, align 4, !tbaa !11
  %136 = mul nsw i32 %134, %135
  %137 = load i32, ptr %24, align 4, !tbaa !11
  %138 = mul i32 %136, %137
  %139 = load i32, ptr %25, align 4, !tbaa !11
  %140 = mul i32 %138, %139
  %141 = zext i32 %140 to i64
  %142 = mul i64 %141, 4
  %143 = load ptr, ptr %15, align 8, !tbaa !5
  %144 = invoke i32 @cudaMemsetAsync(ptr noundef %133, i32 noundef 0, i64 noundef %142, ptr noundef %143)
          to label %145 unwind label %158

145:                                              ; preds = %126
  %146 = load i32, ptr %18, align 4, !tbaa !11
  %147 = load i32, ptr %19, align 4, !tbaa !11
  %148 = load i32, ptr %20, align 4, !tbaa !11
  %149 = load ptr, ptr %29, align 8, !tbaa !5
  %150 = load ptr, ptr %22, align 8, !tbaa !5
  %151 = load ptr, ptr %23, align 8, !tbaa !5
  %152 = load i32, ptr %25, align 4, !tbaa !11
  %153 = load i32, ptr %24, align 4, !tbaa !11
  %154 = load ptr, ptr %30, align 8, !tbaa !5
  %155 = load ptr, ptr %15, align 8, !tbaa !5
  %156 = invoke noundef i32 @_ZN8nvinfer16plugin25pillarScatterKernelLaunchIfEEiiiiPKT_PKjS6_jjPS2_P11CUstream_st(i32 noundef %146, i32 noundef %147, i32 noundef %148, ptr noundef %149, ptr noundef %150, ptr noundef %151, i32 noundef %152, i32 noundef %153, ptr noundef %154, ptr noundef %155)
          to label %157 unwind label %158

157:                                              ; preds = %145
  store i32 %156, ptr %26, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %162

158:                                              ; preds = %145, %126
  %159 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %16, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %174

162:                                              ; preds = %157, %123
  br label %163

163:                                              ; preds = %162, %118
  %164 = load i32, ptr %26, align 4, !tbaa !11
  %165 = icmp eq i32 %164, 0
  br i1 %165, label %172, label %166

166:                                              ; preds = %163
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.6, ptr noundef @.str.2, i32 noundef 153)
          to label %167 unwind label %168

167:                                              ; preds = %166
  br label %172

168:                                              ; preds = %166
  %169 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %16, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %17, align 4
  br label %174

172:                                              ; preds = %167, %163
  %173 = load i32, ptr %26, align 4, !tbaa !11
  store i32 %173, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %186

174:                                              ; preds = %168, %158, %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %175

175:                                              ; preds = %174, %43
  %176 = load i32, ptr %17, align 4
  %177 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #8
  %178 = icmp eq i32 %176, %177
  br i1 %178, label %179, label %191

179:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %180 = load ptr, ptr %16, align 8
  %181 = call ptr @__cxa_begin_catch(ptr %180) #8
  store ptr %181, ptr %31, align 8
  %182 = load ptr, ptr %31, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %182)
          to label %183 unwind label %188

183:                                              ; preds = %179
  invoke void @__cxa_end_catch()
          to label %184 unwind label %188

184:                                              ; preds = %183
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %185

185:                                              ; preds = %184
  store i32 -1, ptr %8, align 4
  br label %186

186:                                              ; preds = %185, %172
  %187 = load i32, ptr %8, align 4
  ret i32 %187

188:                                              ; preds = %183, %179
  %189 = landingpad { ptr, i32 }
          catch ptr null
  %190 = extractvalue { ptr, i32 } %189, 0
  call void @__clang_call_terminate(ptr %190) #9
  unreachable

191:                                              ; preds = %175
  %192 = load ptr, ptr %16, align 8
  call void @__clang_call_terminate(ptr %192) #9
  unreachable
}

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

declare i32 @cudaMemsetAsync(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #4

declare noundef i32 @_ZN8nvinfer16plugin25pillarScatterKernelLaunchI6__halfEEiiiiPKT_PKjS7_jjPS3_P11CUstream_st(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #4

declare noundef i32 @_ZN8nvinfer16plugin25pillarScatterKernelLaunchIfEEiiiiPKT_PKjS6_jjPS2_P11CUstream_st(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind memory(none) }
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 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { 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 #7 = { noreturn }
attributes #8 = { nounwind }
attributes #9 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !16, i64 72}
!14 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !15, i64 0, !16, i64 72, !17, i64 76, !18, i64 80}
!15 = !{!"_ZTSN8nvinfer16Dims64E", !12, i64 0, !7, i64 8}
!16 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!17 = !{!"_ZTSN8nvinfer112TensorFormatE", !7, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = !{!16, !16, i64 0}
!20 = !{!21, !10, i64 40}
!21 = !{!"_ZTSN8nvinfer16plugin19PillarScatterPluginE", !22, i64 0, !25, i64 8, !10, i64 40, !10, i64 48}
!22 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !23, i64 0}
!23 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !24, i64 0}
!24 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !26, i64 0, !10, i64 8, !7, i64 16}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!27 = !{!21, !10, i64 48}


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

@_ZTISt9exception = external constant ptr
@.str.2 = external hidden unnamed_addr constant [94 x i8], align 1
@__func__._ZN8nvinfer16plugin19PillarScatterPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #0

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

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

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

declare void @__cxa_end_catch() local_unnamed_addr

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN8nvinfer16plugin19PillarScatterPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st(ptr nocapture noundef nonnull readonly align 8 dereferenceable(56) %0, ptr noundef readonly %1, ptr nocapture noundef readnone %2, ptr noundef readonly %3, ptr noundef readonly %4, ptr nocapture noundef readnone %5, ptr noundef %6) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %8 = icmp ne ptr %1, null
  %9 = icmp ne ptr %3, null
  %or.cond = and i1 %8, %9
  %10 = icmp ne ptr %4, null
  %or.cond3 = and i1 %or.cond, %10
  br i1 %or.cond3, label %15, label %11

11:                                               ; preds = %7
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZN8nvinfer16plugin19PillarScatterPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st, i32 noundef 119, i32 noundef 0, ptr noundef nonnull @.str.5) #6
          to label %12 unwind label %13

12:                                               ; preds = %11
  unreachable

13:                                               ; preds = %11
  %14 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %67

15:                                               ; preds = %7
  %16 = getelementptr inbounds i8, ptr %1, i64 8
  %17 = load i64, ptr %16, align 8, !tbaa !5
  %18 = trunc i64 %17 to i32
  %19 = getelementptr inbounds i8, ptr %1, i64 16
  %20 = load i64, ptr %19, align 8, !tbaa !5
  %21 = trunc i64 %20 to i32
  %22 = getelementptr inbounds i8, ptr %1, i64 24
  %23 = load i64, ptr %22, align 8, !tbaa !5
  %24 = trunc i64 %23 to i32
  %25 = getelementptr inbounds i8, ptr %1, i64 72
  %26 = load i32, ptr %25, align 8, !tbaa !9
  %27 = getelementptr inbounds i8, ptr %3, i64 8
  %28 = load ptr, ptr %27, align 8, !tbaa !16
  %29 = getelementptr inbounds i8, ptr %3, i64 16
  %30 = load ptr, ptr %29, align 8, !tbaa !16
  %31 = getelementptr inbounds i8, ptr %0, i64 40
  %32 = load i64, ptr %31, align 8, !tbaa !18
  %33 = trunc i64 %32 to i32
  %34 = getelementptr inbounds i8, ptr %0, i64 48
  %35 = load i64, ptr %34, align 8, !tbaa !25
  %36 = trunc i64 %35 to i32
  switch i32 %26, label %.thread [
    i32 1, label %37
    i32 0, label %50
  ]

37:                                               ; preds = %15
  %38 = load ptr, ptr %3, align 8, !tbaa !16
  %39 = load ptr, ptr %4, align 8, !tbaa !16
  %40 = mul i64 %23, %17
  %41 = shl i64 %40, 1
  %42 = mul i64 %41, %32
  %43 = mul i64 %42, %35
  %44 = and i64 %43, 8589934590
  %45 = invoke i32 @cudaMemsetAsync(ptr noundef %39, i32 noundef 0, i64 noundef %44, ptr noundef %6)
          to label %46 unwind label %48

46:                                               ; preds = %37
  %47 = invoke noundef i32 @_ZN8nvinfer16plugin25pillarScatterKernelLaunchI6__halfEEiiiiPKT_PKjS7_jjPS3_P11CUstream_st(i32 noundef %18, i32 noundef %21, i32 noundef %24, ptr noundef %38, ptr noundef %28, ptr noundef %30, i32 noundef %36, i32 noundef %33, ptr noundef %39, ptr noundef %6)
          to label %63 unwind label %48

48:                                               ; preds = %46, %37
  %49 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %67

50:                                               ; preds = %15
  %51 = load ptr, ptr %3, align 8, !tbaa !16
  %52 = load ptr, ptr %4, align 8, !tbaa !16
  %53 = mul i64 %23, %17
  %54 = shl i64 %53, 2
  %55 = mul i64 %54, %32
  %56 = mul i64 %55, %35
  %57 = and i64 %56, 17179869180
  %58 = invoke i32 @cudaMemsetAsync(ptr noundef %52, i32 noundef 0, i64 noundef %57, ptr noundef %6)
          to label %59 unwind label %61

59:                                               ; preds = %50
  %60 = invoke noundef i32 @_ZN8nvinfer16plugin25pillarScatterKernelLaunchIfEEiiiiPKT_PKjS6_jjPS2_P11CUstream_st(i32 noundef %18, i32 noundef %21, i32 noundef %24, ptr noundef %51, ptr noundef %28, ptr noundef %30, i32 noundef %36, i32 noundef %33, ptr noundef %52, ptr noundef %6)
          to label %63 unwind label %61

61:                                               ; preds = %59, %50
  %62 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %67

63:                                               ; preds = %59, %46
  %.060 = phi i32 [ %47, %46 ], [ %60, %59 ]
  %64 = icmp eq i32 %.060, 0
  br i1 %64, label %73, label %.thread

.thread:                                          ; preds = %15, %63
  %.06068 = phi i32 [ %.060, %63 ], [ -1, %15 ]
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.2, i32 noundef 153)
          to label %73 unwind label %65

65:                                               ; preds = %.thread
  %66 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %67

67:                                               ; preds = %48, %61, %65, %13
  %.pn.pn = phi { ptr, i32 } [ %14, %13 ], [ %66, %65 ], [ %49, %48 ], [ %62, %61 ]
  %.1 = extractvalue { ptr, i32 } %.pn.pn, 0
  %.159 = extractvalue { ptr, i32 } %.pn.pn, 1
  %68 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #7
  %69 = icmp eq i32 %.159, %68
  br i1 %69, label %70, label %77

70:                                               ; preds = %67
  %71 = tail call ptr @__cxa_begin_catch(ptr %.1) #7
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %71)
          to label %72 unwind label %74

72:                                               ; preds = %70
  invoke void @__cxa_end_catch()
          to label %73 unwind label %74

73:                                               ; preds = %72, %63, %.thread
  %.0 = phi i32 [ %.06068, %.thread ], [ 0, %63 ], [ -1, %72 ]
  ret i32 %.0

74:                                               ; preds = %72, %70
  %75 = landingpad { ptr, i32 }
          catch ptr null
  %76 = extractvalue { ptr, i32 } %75, 0
  tail call void @__clang_call_terminate(ptr %76) #8
  unreachable

77:                                               ; preds = %67
  tail call void @__clang_call_terminate(ptr %.1) #8
  unreachable
}

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

declare i32 @cudaMemsetAsync(ptr noundef, i32 noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

declare noundef i32 @_ZN8nvinfer16plugin25pillarScatterKernelLaunchI6__halfEEiiiiPKT_PKjS7_jjPS3_P11CUstream_st(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare noundef i32 @_ZN8nvinfer16plugin25pillarScatterKernelLaunchIfEEiiiiPKT_PKjS6_jjPS2_P11CUstream_st(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { nofree nosync nounwind memory(none) }
attributes #1 = { 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 #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 = { "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 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 #5 = { 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 #6 = { noreturn }
attributes #7 = { nounwind }
attributes #8 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !13, i64 72}
!10 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !11, i64 0, !13, i64 72, !14, i64 76, !15, i64 80}
!11 = !{!"_ZTSN8nvinfer16Dims64E", !12, i64 0, !7, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!14 = !{!"_ZTSN8nvinfer112TensorFormatE", !7, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"any pointer", !7, i64 0}
!18 = !{!19, !6, i64 40}
!19 = !{!"_ZTSN8nvinfer16plugin19PillarScatterPluginE", !20, i64 0, !23, i64 8, !6, i64 40, !6, i64 48}
!20 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !21, i64 0}
!21 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !22, i64 0}
!22 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !24, i64 0, !6, i64 8, !7, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !17, i64 0}
!25 = !{!19, !6, i64 48}


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