; LLVM IR from NVIDIA/TensorRT :: plugin/voxelGeneratorPlugin (voxelGenerator)

; 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::DimsExprs" = type { i32, [8 x ptr] }
%"class.nvinfer1::plugin::VoxelGeneratorPlugin" = type { %"class.nvinfer1::IPluginV2DynamicExt", %"class.std::__cxx11::basic_string", i32, i32, i32, float, float, float, float, float, float, float, float, float, i32, i32, i32, i32 }
%"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] }

@.str.2 = external hidden unnamed_addr constant [96 x i8], align 1
@_ZTISt9exception = external constant ptr
@__func__._ZN8nvinfer16plugin20VoxelGeneratorPlugin19getOutputDimensionsEiPKNS_9DimsExprsEiRNS_12IExprBuilderE = external hidden unnamed_addr constant [20 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [55 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

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

declare i32 @__gxx_personality_v0(...)

; 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()

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8nvinfer16plugin20VoxelGeneratorPlugin19getOutputDimensionsEiPKNS_9DimsExprsEiRNS_12IExprBuilderE(ptr dead_on_unwind noalias writable sret(%"class.nvinfer1::DimsExprs") align 8 %0, ptr noundef nonnull align 8 dereferenceable(104) %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef nonnull align 8 dereferenceable(16) %5) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  store ptr %5, ptr %11, align 8, !tbaa !5
  %17 = load ptr, ptr %7, align 8
  %18 = load i32, ptr %8, align 4, !tbaa !9
  %19 = icmp sge i32 %18, 0
  br i1 %19, label %20, label %27

20:                                               ; preds = %6
  %21 = load i32, ptr %8, align 4, !tbaa !9
  %22 = load ptr, ptr %17, align 8, !tbaa !11
  %23 = getelementptr inbounds ptr, ptr %22, i64 3
  %24 = load ptr, ptr %23, align 8
  %25 = call noundef i32 %24(ptr noundef nonnull align 8 dereferenceable(104) %17) #7
  %26 = icmp slt i32 %21, %25
  br i1 %26, label %46, label %27

27:                                               ; preds = %20, %6
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.2, ptr noundef @__func__._ZN8nvinfer16plugin20VoxelGeneratorPlugin19getOutputDimensionsEiPKNS_9DimsExprsEiRNS_12IExprBuilderE, i32 noundef 141, i32 noundef 0, ptr noundef @.str.4) #8
          to label %28 unwind label %29

28:                                               ; preds = %27
  unreachable

29:                                               ; preds = %27
  %30 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %12, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %13, align 4
  br label %33

33:                                               ; preds = %29
  %34 = load i32, ptr %13, align 4
  %35 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #7
  %36 = icmp eq i32 %34, %35
  br i1 %36, label %37, label %109

37:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %38 = load ptr, ptr %12, align 8
  %39 = call ptr @__cxa_begin_catch(ptr %38) #7
  store ptr %39, ptr %16, align 8
  %40 = load ptr, ptr %16, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %40)
          to label %41 unwind label %106

41:                                               ; preds = %37
  invoke void @__cxa_end_catch()
          to label %42 unwind label %106

42:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %43

43:                                               ; preds = %42
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 72, i1 false)
  %44 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 0
  %45 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  br label %105

46:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %47, i64 0
  %49 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %48, i32 0, i32 1
  %50 = getelementptr inbounds [8 x ptr], ptr %49, i64 0, i64 0
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  store ptr %51, ptr %14, align 8, !tbaa !5
  %52 = load i32, ptr %8, align 4, !tbaa !9
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %54, label %80

54:                                               ; preds = %46
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 72, i1 false)
  %55 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 0
  store i32 4, ptr %55, align 8, !tbaa !13
  %56 = load ptr, ptr %14, align 8, !tbaa !5
  %57 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %58 = getelementptr inbounds [8 x ptr], ptr %57, i64 0, i64 0
  store ptr %56, ptr %58, align 8, !tbaa !5
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = getelementptr inbounds %"class.nvinfer1::plugin::VoxelGeneratorPlugin", ptr %17, i32 0, i32 2
  %61 = load i32, ptr %60, align 8, !tbaa !15
  %62 = sext i32 %61 to i64
  %63 = call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %59, i64 noundef %62) #7
  %64 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %65 = getelementptr inbounds [8 x ptr], ptr %64, i64 0, i64 1
  store ptr %63, ptr %65, align 8, !tbaa !5
  %66 = load ptr, ptr %11, align 8, !tbaa !5
  %67 = getelementptr inbounds %"class.nvinfer1::plugin::VoxelGeneratorPlugin", ptr %17, i32 0, i32 3
  %68 = load i32, ptr %67, align 4, !tbaa !24
  %69 = sext i32 %68 to i64
  %70 = call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %66, i64 noundef %69) #7
  %71 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %72 = getelementptr inbounds [8 x ptr], ptr %71, i64 0, i64 2
  store ptr %70, ptr %72, align 8, !tbaa !5
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = getelementptr inbounds %"class.nvinfer1::plugin::VoxelGeneratorPlugin", ptr %17, i32 0, i32 4
  %75 = load i32, ptr %74, align 8, !tbaa !25
  %76 = sext i32 %75 to i64
  %77 = call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %73, i64 noundef %76) #7
  %78 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %79 = getelementptr inbounds [8 x ptr], ptr %78, i64 0, i64 3
  store ptr %77, ptr %79, align 8, !tbaa !5
  store i32 1, ptr %15, align 4
  br label %104

80:                                               ; preds = %46
  %81 = load i32, ptr %8, align 4, !tbaa !9
  %82 = icmp eq i32 %81, 1
  br i1 %82, label %83, label %99

83:                                               ; preds = %80
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 72, i1 false)
  %84 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 0
  store i32 3, ptr %84, align 8, !tbaa !13
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  %86 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %87 = getelementptr inbounds [8 x ptr], ptr %86, i64 0, i64 0
  store ptr %85, ptr %87, align 8, !tbaa !5
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = getelementptr inbounds %"class.nvinfer1::plugin::VoxelGeneratorPlugin", ptr %17, i32 0, i32 2
  %90 = load i32, ptr %89, align 8, !tbaa !15
  %91 = sext i32 %90 to i64
  %92 = call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %88, i64 noundef %91) #7
  %93 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %94 = getelementptr inbounds [8 x ptr], ptr %93, i64 0, i64 1
  store ptr %92, ptr %94, align 8, !tbaa !5
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %95, i64 noundef 4) #7
  %97 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %98 = getelementptr inbounds [8 x ptr], ptr %97, i64 0, i64 2
  store ptr %96, ptr %98, align 8, !tbaa !5
  store i32 1, ptr %15, align 4
  br label %104

99:                                               ; preds = %80
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 72, i1 false)
  %100 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 0
  store i32 1, ptr %100, align 8, !tbaa !13
  %101 = load ptr, ptr %14, align 8, !tbaa !5
  %102 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %103 = getelementptr inbounds [8 x ptr], ptr %102, i64 0, i64 0
  store ptr %101, ptr %103, align 8, !tbaa !5
  store i32 1, ptr %15, align 4
  br label %104

104:                                              ; preds = %99, %83, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %105

105:                                              ; preds = %104, %43
  ret void

106:                                              ; preds = %41, %37
  %107 = landingpad { ptr, i32 }
          catch ptr null
  %108 = extractvalue { ptr, i32 } %107, 0
  call void @__clang_call_terminate(ptr %108) #9
  unreachable

109:                                              ; preds = %33
  %110 = load ptr, ptr %12, align 8
  call void @__clang_call_terminate(ptr %110) #9
  unreachable
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #4 align 2

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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }
attributes #8 = { noreturn }
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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN8nvinfer19DimsExprsE", !10, i64 0, !7, i64 8}
!15 = !{!16, !10, i64 40}
!16 = !{!"_ZTSN8nvinfer16plugin20VoxelGeneratorPluginE", !17, i64 0, !20, i64 8, !10, i64 40, !10, i64 44, !10, i64 48, !23, i64 52, !23, i64 56, !23, i64 60, !23, i64 64, !23, i64 68, !23, i64 72, !23, i64 76, !23, i64 80, !23, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100}
!17 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !18, i64 0}
!18 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !19, i64 0}
!19 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !22, i64 8, !7, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!22 = !{!"long", !7, i64 0}
!23 = !{!"float", !7, i64 0}
!24 = !{!16, !10, i64 44}
!25 = !{!16, !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"

%"class.nvinfer1::DimsExprs" = type { i32, [8 x ptr] }

@.str.2 = external hidden unnamed_addr constant [96 x i8], align 1
@_ZTISt9exception = external constant ptr
@__func__._ZN8nvinfer16plugin20VoxelGeneratorPlugin19getOutputDimensionsEiPKNS_9DimsExprsEiRNS_12IExprBuilderE = external hidden unnamed_addr constant [20 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [55 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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8nvinfer16plugin20VoxelGeneratorPlugin19getOutputDimensionsEiPKNS_9DimsExprsEiRNS_12IExprBuilderE(ptr dead_on_unwind noalias nocapture writable writeonly sret(%"class.nvinfer1::DimsExprs") align 8 %0, ptr noundef nonnull align 8 dereferenceable(104) %1, i32 noundef %2, ptr nocapture noundef readonly %3, i32 noundef %4, ptr noundef nonnull align 8 dereferenceable(16) %5) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %7 = icmp sgt i32 %2, -1
  br i1 %7, label %8, label %14

8:                                                ; preds = %6
  %9 = load ptr, ptr %1, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %9, i64 24
  %11 = load ptr, ptr %10, align 8
  %12 = tail call noundef i32 %11(ptr noundef nonnull align 8 dereferenceable(104) %1) #6
  %13 = icmp sgt i32 %12, %2
  br i1 %13, label %26, label %14

14:                                               ; preds = %8, %6
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZN8nvinfer16plugin20VoxelGeneratorPlugin19getOutputDimensionsEiPKNS_9DimsExprsEiRNS_12IExprBuilderE, i32 noundef 141, i32 noundef 0, ptr noundef nonnull @.str.4) #7
          to label %15 unwind label %16

15:                                               ; preds = %14
  unreachable

16:                                               ; preds = %14
  %17 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %18 = extractvalue { ptr, i32 } %17, 0
  %19 = extractvalue { ptr, i32 } %17, 1
  %20 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #6
  %21 = icmp eq i32 %19, %20
  br i1 %21, label %22, label %59

22:                                               ; preds = %16
  %23 = tail call ptr @__cxa_begin_catch(ptr %18) #6
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %24 unwind label %56

24:                                               ; preds = %22
  invoke void @__cxa_end_catch()
          to label %25 unwind label %56

25:                                               ; preds = %24
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %0, i8 0, i64 72, i1 false)
  br label %55

26:                                               ; preds = %8
  %27 = getelementptr inbounds i8, ptr %3, i64 8
  %28 = load ptr, ptr %27, align 8, !tbaa !8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %0, i8 0, i64 72, i1 false)
  %29 = getelementptr inbounds i8, ptr %0, i64 8
  switch i32 %2, label %54 [
    i32 0, label %30
    i32 1, label %46
  ]

30:                                               ; preds = %26
  store i32 4, ptr %0, align 8, !tbaa !11
  store ptr %28, ptr %29, align 8, !tbaa !8
  %31 = getelementptr inbounds i8, ptr %1, i64 40
  %32 = load i32, ptr %31, align 8, !tbaa !14
  %33 = sext i32 %32 to i64
  %34 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %33) #6
  %35 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %34, ptr %35, align 8, !tbaa !8
  %36 = getelementptr inbounds i8, ptr %1, i64 44
  %37 = load i32, ptr %36, align 4, !tbaa !23
  %38 = sext i32 %37 to i64
  %39 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %38) #6
  %40 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %39, ptr %40, align 8, !tbaa !8
  %41 = getelementptr inbounds i8, ptr %1, i64 48
  %42 = load i32, ptr %41, align 8, !tbaa !24
  %43 = sext i32 %42 to i64
  %44 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %43) #6
  %45 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %44, ptr %45, align 8, !tbaa !8
  br label %55

46:                                               ; preds = %26
  store i32 3, ptr %0, align 8, !tbaa !11
  store ptr %28, ptr %29, align 8, !tbaa !8
  %47 = getelementptr inbounds i8, ptr %1, i64 40
  %48 = load i32, ptr %47, align 8, !tbaa !14
  %49 = sext i32 %48 to i64
  %50 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %49) #6
  %51 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %50, ptr %51, align 8, !tbaa !8
  %52 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef 4) #6
  %53 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %52, ptr %53, align 8, !tbaa !8
  br label %55

54:                                               ; preds = %26
  store i32 1, ptr %0, align 8, !tbaa !11
  store ptr %28, ptr %29, align 8, !tbaa !8
  br label %55

55:                                               ; preds = %30, %46, %54, %25
  ret void

56:                                               ; preds = %24, %22
  %57 = landingpad { ptr, i32 }
          catch ptr null
  %58 = extractvalue { ptr, i32 } %57, 0
  tail call void @__clang_call_terminate(ptr %58) #8
  unreachable

59:                                               ; preds = %16
  tail call void @__clang_call_terminate(ptr %18) #8
  unreachable
}

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

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

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

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 = { 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 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }
attributes #7 = { noreturn }
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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN8nvinfer19DimsExprsE", !13, i64 0, !10, i64 8}
!13 = !{!"int", !10, i64 0}
!14 = !{!15, !13, i64 40}
!15 = !{!"_ZTSN8nvinfer16plugin20VoxelGeneratorPluginE", !16, i64 0, !19, i64 8, !13, i64 40, !13, i64 44, !13, i64 48, !22, i64 52, !22, i64 56, !22, i64 60, !22, i64 64, !22, i64 68, !22, i64 72, !22, i64 76, !22, i64 80, !22, i64 84, !13, i64 88, !13, i64 92, !13, i64 96, !13, i64 100}
!16 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !17, i64 0}
!17 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !18, i64 0}
!18 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !20, i64 0, !21, i64 8, !10, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!21 = !{!"long", !10, i64 0}
!22 = !{!"float", !10, i64 0}
!23 = !{!15, !13, i64 44}
!24 = !{!15, !13, i64 48}


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