; LLVM IR from NVIDIA/DALI :: dali/operators/sequence/optical_flow/optical_flow_impl (optical_flow_impl)

; 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.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.dali::TensorView" = type { %"struct.dali::TensorViewBase" }
%"struct.dali::TensorViewBase" = type { ptr, %"struct.dali::TensorShape" }
%"struct.dali::TensorShape" = type { %"struct.dali::TensorShapeBase" }
%"struct.dali::TensorShapeBase" = type { %"class.dali::DeviceArray" }
%"class.dali::DeviceArray" = type { [3 x i64] }
%"struct.dali::TensorView.14" = type { %"struct.dali::TensorViewBase.15" }
%"struct.dali::TensorViewBase.15" = type { ptr, %"struct.dali::TensorShape" }
%"struct.dali::TensorView.16" = type { %"struct.dali::TensorViewBase.17" }
%"struct.dali::TensorViewBase.17" = type { ptr, %"struct.dali::TensorShape" }
%"class.std::allocator.0" = type { i8 }
%"struct.dali::optical_flow::OpticalFlowBuffer::Stride" = type { i64, i64 }
%struct._NV_OF_EXECUTE_INPUT_PARAMS = type { ptr, ptr, ptr, i32, i32, ptr, i32, i32, ptr }
%struct._NV_OF_EXECUTE_OUTPUT_PARAMS = type { ptr, ptr, ptr }
%struct._NV_OF_BUFFER_DESCRIPTOR = type { i32, i32, i32, i32 }
%"class.dali::optical_flow::OpticalFlowAdapter" = type { ptr, %"struct.dali::optical_flow::OpticalFlowParams" }
%"struct.dali::optical_flow::OpticalFlowParams" = type <{ float, i32, i32, i8, i8, [2 x i8] }>
%"class.dali::optical_flow::OpticalFlowImpl" = type <{ %"class.dali::optical_flow::OpticalFlowAdapter", %"class.std::__cxx11::basic_string", i64, i64, i64, i32, i32, i32, [4 x i8], ptr, ptr, ptr, %struct._NV_OF_CUDA_API_FUNCTION_LIST, %struct._NV_OF_INIT_PARAMS, %struct._NV_OF_INIT_PARAMS, %"class.std::unique_ptr", %"class.std::unique_ptr", %"class.std::unique_ptr", %"class.std::unique_ptr", i32, [4 x i8], %"class.std::unique_ptr.6", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", i8, [7 x i8] }>
%struct._NV_OF_CUDA_API_FUNCTION_LIST = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct._NV_OF_INIT_PARAMS = type { i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, i32 }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.5" }
%"struct.std::_Head_base.5" = type { ptr }
%"class.std::unique_ptr.6" = type { %"struct.std::__uniq_ptr_data.7" }
%"struct.std::__uniq_ptr_data.7" = type { %"class.std::__uniq_ptr_impl.8" }
%"class.std::__uniq_ptr_impl.8" = type { %"class.std::tuple.9" }
%"class.std::tuple.9" = type { %"struct.std::_Tuple_impl.10" }
%"struct.std::_Tuple_impl.10" = type { %"struct.std::_Tuple_impl.11", %"struct.std::_Head_base.13" }
%"struct.std::_Tuple_impl.11" = type { %"struct.std::_Head_base.12" }
%"struct.std::_Head_base.12" = type { %"class.std::function" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"struct.std::_Head_base.13" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZTIN4dali13DALIExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.25 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [128 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [128 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [128 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: inlinehint mustprogress uwtable
declare dso_local void @_Z9CUDA_CALLI13_NV_OF_STATUSEvT_(i32 noundef) #1

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: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

declare ptr @__cxa_allocate_exception(i64)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali11make_stringIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEES6_DpRKT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4dali13GetStacktraceB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali13DALIExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_S8_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4dali13DALIExceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #4 align 2

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_free_exception(ptr)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali12optical_flow15OpticalFlowImpl15CalcOpticalFlowENS_10TensorViewINS_10StorageGPUEKhLi3EEES5_NS2_IS3_fLi3EEENS2_IS3_KfLi3EEE(ptr noundef nonnull align 8 dereferenceable(489) %0, ptr noundef byval(%"struct.dali::TensorView") align 8 %1, ptr noundef byval(%"struct.dali::TensorView") align 8 %2, ptr noundef byval(%"struct.dali::TensorView.14") align 8 %3, ptr noundef byval(%"struct.dali::TensorView.16") align 8 %4) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator.0", align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator.0", align 1
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::allocator.0", align 1
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca i1, align 1
  %21 = alloca %"struct.dali::TensorShape", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::allocator.0", align 1
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::allocator.0", align 1
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca %"class.std::allocator.0", align 1
  %32 = alloca %"class.std::__cxx11::basic_string", align 8
  %33 = alloca i1, align 1
  %34 = alloca %"struct.dali::optical_flow::OpticalFlowBuffer::Stride", align 8
  %35 = alloca %"struct.dali::optical_flow::OpticalFlowBuffer::Stride", align 8
  %36 = alloca %"struct.dali::optical_flow::OpticalFlowBuffer::Stride", align 8
  %37 = alloca %"struct.dali::optical_flow::OpticalFlowBuffer::Stride", align 8
  %38 = alloca %"struct.dali::optical_flow::OpticalFlowBuffer::Stride", align 8
  %39 = alloca %"struct.dali::optical_flow::OpticalFlowBuffer::Stride", align 8
  %40 = alloca %"class.std::__cxx11::basic_string", align 8
  %41 = alloca %"class.std::__cxx11::basic_string", align 8
  %42 = alloca %"class.std::allocator.0", align 1
  %43 = alloca %"class.std::__cxx11::basic_string", align 8
  %44 = alloca i1, align 1
  %45 = alloca %struct._NV_OF_EXECUTE_INPUT_PARAMS, align 8
  %46 = alloca %struct._NV_OF_EXECUTE_OUTPUT_PARAMS, align 8
  %47 = alloca %"struct.dali::optical_flow::OpticalFlowBuffer::Stride", align 8
  %48 = alloca %struct._NV_OF_BUFFER_DESCRIPTOR, align 4
  %49 = alloca %struct._NV_OF_BUFFER_DESCRIPTOR, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  %50 = load ptr, ptr %6, align 8
  %51 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowAdapter", ptr %50, i32 0, i32 1
  %52 = getelementptr inbounds %"struct.dali::optical_flow::OpticalFlowParams", ptr %51, i32 0, i32 4
  %53 = load i8, ptr %52, align 1, !tbaa !9, !range !15, !noundef !16
  %54 = trunc i8 %53 to i1
  br i1 %54, label %55, label %127

55:                                               ; preds = %5
  br label %56

56:                                               ; preds = %55
  %57 = getelementptr inbounds %"struct.dali::TensorViewBase.17", ptr %4, i32 0, i32 1
  %58 = getelementptr inbounds %"struct.dali::TensorViewBase.15", ptr %3, i32 0, i32 1
  %59 = call noundef zeroext i1 @_ZN4dalieqILi3ELi3EEEbRKNS_11TensorShapeIXT_EEERKNS1_IXT0_EEE(ptr noundef nonnull align 8 dereferenceable(24) %57, ptr noundef nonnull align 8 dereferenceable(24) %58)
  br i1 %59, label %125, label %60

60:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %61 unwind label %73

61:                                               ; preds = %60
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str.25)
          to label %62 unwind label %77

62:                                               ; preds = %61
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef @.str.2)
          to label %63 unwind label %81

63:                                               ; preds = %62
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef @.str.26, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %64 unwind label %87

64:                                               ; preds = %63
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %15, ptr noundef @.str.5, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %65 unwind label %91

65:                                               ; preds = %64
  %66 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %67 unwind label %95

67:                                               ; preds = %65
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  store i1 true, ptr %20, align 1
  %68 = call ptr @__cxa_allocate_exception(i64 80) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #6
  invoke void @_ZN4dali11make_stringIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEES6_DpRKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %16, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %69 unwind label %100

69:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef @.str.27, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %70 unwind label %104

70:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #6
  invoke void @_ZN4dali13GetStacktraceB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %19)
          to label %71 unwind label %108

71:                                               ; preds = %70
  invoke void @_ZN4dali13DALIExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_S8_(ptr noundef nonnull align 8 dereferenceable(80) %68, ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef %17, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %72 unwind label %112

72:                                               ; preds = %71
  store i1 false, ptr %20, align 1
  invoke void @__cxa_throw(ptr %68, ptr @_ZTIN4dali13DALIExceptionE, ptr @_ZN4dali13DALIExceptionD2Ev) #7
          to label %428 unwind label %112

73:                                               ; preds = %60
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %11, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %12, align 4
  br label %86

77:                                               ; preds = %61
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %11, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %12, align 4
  br label %85

81:                                               ; preds = %62
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %11, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br label %85

85:                                               ; preds = %81, %77
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  br label %86

86:                                               ; preds = %85, %73
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  br label %124

87:                                               ; preds = %63
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %11, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %12, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  br label %123

91:                                               ; preds = %64
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %11, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %12, align 4
  br label %99

95:                                               ; preds = %65
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %11, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %99

99:                                               ; preds = %95, %91
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  br label %122

100:                                              ; preds = %67
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %11, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %12, align 4
  br label %118

104:                                              ; preds = %69
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %11, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %12, align 4
  br label %117

108:                                              ; preds = %70
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %11, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %12, align 4
  br label %116

112:                                              ; preds = %72, %71
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %11, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  br label %116

116:                                              ; preds = %112, %108
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  br label %117

117:                                              ; preds = %116, %104
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  br label %118

118:                                              ; preds = %117, %100
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #6
  %119 = load i1, ptr %20, align 1
  br i1 %119, label %120, label %121

120:                                              ; preds = %118
  call void @__cxa_free_exception(ptr %68) #6
  br label %121

121:                                              ; preds = %120, %118
  br label %122

122:                                              ; preds = %121, %99
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %123

123:                                              ; preds = %122, %87
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %124

124:                                              ; preds = %123, %86
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #6
  br label %423

125:                                              ; preds = %56
  br label %126

126:                                              ; preds = %125
  br label %199

127:                                              ; preds = %5
  br label %128

128:                                              ; preds = %127
  %129 = getelementptr inbounds %"struct.dali::TensorViewBase.17", ptr %4, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #6
  call void @_ZN4dali11TensorShapeILi3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21)
  %130 = call noundef zeroext i1 @_ZN4dalieqILi3ELi3EEEbRKNS_11TensorShapeIXT_EEERKNS1_IXT0_EEE(ptr noundef nonnull align 8 dereferenceable(24) %129, ptr noundef nonnull align 8 dereferenceable(24) %21)
  %131 = xor i1 %130, true
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  br i1 %131, label %132, label %197

132:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %133 unwind label %145

133:                                              ; preds = %132
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %23, ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef @.str.28)
          to label %134 unwind label %149

134:                                              ; preds = %133
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %22, ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef @.str.2)
          to label %135 unwind label %153

135:                                              ; preds = %134
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef @.str.29, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %136 unwind label %159

136:                                              ; preds = %135
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %28, ptr noundef @.str.5, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %137 unwind label %163

137:                                              ; preds = %136
  %138 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %139 unwind label %167

139:                                              ; preds = %137
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #6
  store i1 true, ptr %33, align 1
  %140 = call ptr @__cxa_allocate_exception(i64 80) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #6
  invoke void @_ZN4dali11make_stringIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEES6_DpRKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %29, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %141 unwind label %172

141:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef @.str.30, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %142 unwind label %176

142:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #6
  invoke void @_ZN4dali13GetStacktraceB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %32)
          to label %143 unwind label %180

143:                                              ; preds = %142
  invoke void @_ZN4dali13DALIExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_S8_(ptr noundef nonnull align 8 dereferenceable(80) %140, ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef %30, ptr noundef nonnull align 8 dereferenceable(32) %32)
          to label %144 unwind label %184

144:                                              ; preds = %143
  store i1 false, ptr %33, align 1
  invoke void @__cxa_throw(ptr %140, ptr @_ZTIN4dali13DALIExceptionE, ptr @_ZN4dali13DALIExceptionD2Ev) #7
          to label %428 unwind label %184

145:                                              ; preds = %132
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %11, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %12, align 4
  br label %158

149:                                              ; preds = %133
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %11, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %12, align 4
  br label %157

153:                                              ; preds = %134
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %11, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  br label %157

157:                                              ; preds = %153, %149
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  br label %158

158:                                              ; preds = %157, %145
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #6
  br label %196

159:                                              ; preds = %135
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %11, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %12, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  br label %195

163:                                              ; preds = %136
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %11, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %12, align 4
  br label %171

167:                                              ; preds = %137
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %11, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #6
  br label %171

171:                                              ; preds = %167, %163
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #6
  br label %194

172:                                              ; preds = %139
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %11, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %12, align 4
  br label %190

176:                                              ; preds = %141
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %11, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %12, align 4
  br label %189

180:                                              ; preds = %142
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %11, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %12, align 4
  br label %188

184:                                              ; preds = %144, %143
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %11, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #6
  br label %188

188:                                              ; preds = %184, %180
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #6
  br label %189

189:                                              ; preds = %188, %176
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  br label %190

190:                                              ; preds = %189, %172
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #6
  %191 = load i1, ptr %33, align 1
  br i1 %191, label %192, label %193

192:                                              ; preds = %190
  call void @__cxa_free_exception(ptr %140) #6
  br label %193

193:                                              ; preds = %192, %190
  br label %194

194:                                              ; preds = %193, %171
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  br label %195

195:                                              ; preds = %194, %159
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  br label %196

196:                                              ; preds = %195, %158
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #6
  br label %423

197:                                              ; preds = %128
  br label %198

198:                                              ; preds = %197
  br label %199

199:                                              ; preds = %198, %126
  %200 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 19
  %201 = load i32, ptr %200, align 8, !tbaa !17
  switch i32 %201, label %331 [
    i32 1, label %202
    i32 0, label %245
    i32 2, label %288
  ]

202:                                              ; preds = %199
  %203 = getelementptr inbounds %"struct.dali::TensorViewBase", ptr %2, i32 0, i32 0
  %204 = load ptr, ptr %203, align 8, !tbaa !51
  %205 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 15
  %206 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %205) #6
  %207 = call noundef i64 @_ZN4dali12optical_flow17OpticalFlowBuffer6GetPtrEv(ptr noundef nonnull align 8 dereferenceable(144) %206)
  %208 = inttoptr i64 %207 to ptr
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #6
  %209 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 15
  %210 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %209) #6
  %211 = call { i64, i64 } @_ZN4dali12optical_flow17OpticalFlowBuffer9GetStrideEv(ptr noundef nonnull align 8 dereferenceable(144) %210)
  %212 = getelementptr inbounds { i64, i64 }, ptr %34, i32 0, i32 0
  %213 = extractvalue { i64, i64 } %211, 0
  store i64 %213, ptr %212, align 8
  %214 = getelementptr inbounds { i64, i64 }, ptr %34, i32 0, i32 1
  %215 = extractvalue { i64, i64 } %211, 1
  store i64 %215, ptr %214, align 8
  %216 = getelementptr inbounds %"struct.dali::optical_flow::OpticalFlowBuffer::Stride", ptr %34, i32 0, i32 0
  %217 = load i64, ptr %216, align 8, !tbaa !56
  %218 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 2
  %219 = load i64, ptr %218, align 8, !tbaa !58
  %220 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 3
  %221 = load i64, ptr %220, align 8, !tbaa !59
  %222 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 10
  %223 = load ptr, ptr %222, align 8, !tbaa !60
  call void @_ZN4dali12optical_flow6kernel9BgrToRgbaEPKhPhmmmP11CUstream_st(ptr noundef %204, ptr noundef %208, i64 noundef %217, i64 noundef %219, i64 noundef %221, ptr noundef %223)
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #6
  %224 = getelementptr inbounds %"struct.dali::TensorViewBase", ptr %1, i32 0, i32 0
  %225 = load ptr, ptr %224, align 8, !tbaa !51
  %226 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 16
  %227 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %226) #6
  %228 = call noundef i64 @_ZN4dali12optical_flow17OpticalFlowBuffer6GetPtrEv(ptr noundef nonnull align 8 dereferenceable(144) %227)
  %229 = inttoptr i64 %228 to ptr
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #6
  %230 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 16
  %231 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %230) #6
  %232 = call { i64, i64 } @_ZN4dali12optical_flow17OpticalFlowBuffer9GetStrideEv(ptr noundef nonnull align 8 dereferenceable(144) %231)
  %233 = getelementptr inbounds { i64, i64 }, ptr %35, i32 0, i32 0
  %234 = extractvalue { i64, i64 } %232, 0
  store i64 %234, ptr %233, align 8
  %235 = getelementptr inbounds { i64, i64 }, ptr %35, i32 0, i32 1
  %236 = extractvalue { i64, i64 } %232, 1
  store i64 %236, ptr %235, align 8
  %237 = getelementptr inbounds %"struct.dali::optical_flow::OpticalFlowBuffer::Stride", ptr %35, i32 0, i32 0
  %238 = load i64, ptr %237, align 8, !tbaa !56
  %239 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 2
  %240 = load i64, ptr %239, align 8, !tbaa !58
  %241 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 3
  %242 = load i64, ptr %241, align 8, !tbaa !59
  %243 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 10
  %244 = load ptr, ptr %243, align 8, !tbaa !60
  call void @_ZN4dali12optical_flow6kernel9BgrToRgbaEPKhPhmmmP11CUstream_st(ptr noundef %225, ptr noundef %229, i64 noundef %238, i64 noundef %240, i64 noundef %242, ptr noundef %244)
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #6
  br label %359

245:                                              ; preds = %199
  %246 = getelementptr inbounds %"struct.dali::TensorViewBase", ptr %2, i32 0, i32 0
  %247 = load ptr, ptr %246, align 8, !tbaa !51
  %248 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 15
  %249 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %248) #6
  %250 = call noundef i64 @_ZN4dali12optical_flow17OpticalFlowBuffer6GetPtrEv(ptr noundef nonnull align 8 dereferenceable(144) %249)
  %251 = inttoptr i64 %250 to ptr
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #6
  %252 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 15
  %253 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %252) #6
  %254 = call { i64, i64 } @_ZN4dali12optical_flow17OpticalFlowBuffer9GetStrideEv(ptr noundef nonnull align 8 dereferenceable(144) %253)
  %255 = getelementptr inbounds { i64, i64 }, ptr %36, i32 0, i32 0
  %256 = extractvalue { i64, i64 } %254, 0
  store i64 %256, ptr %255, align 8
  %257 = getelementptr inbounds { i64, i64 }, ptr %36, i32 0, i32 1
  %258 = extractvalue { i64, i64 } %254, 1
  store i64 %258, ptr %257, align 8
  %259 = getelementptr inbounds %"struct.dali::optical_flow::OpticalFlowBuffer::Stride", ptr %36, i32 0, i32 0
  %260 = load i64, ptr %259, align 8, !tbaa !56
  %261 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 2
  %262 = load i64, ptr %261, align 8, !tbaa !58
  %263 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 3
  %264 = load i64, ptr %263, align 8, !tbaa !59
  %265 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 10
  %266 = load ptr, ptr %265, align 8, !tbaa !60
  call void @_ZN4dali12optical_flow6kernel9RgbToRgbaEPKhPhmmmP11CUstream_st(ptr noundef %247, ptr noundef %251, i64 noundef %260, i64 noundef %262, i64 noundef %264, ptr noundef %266)
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #6
  %267 = getelementptr inbounds %"struct.dali::TensorViewBase", ptr %1, i32 0, i32 0
  %268 = load ptr, ptr %267, align 8, !tbaa !51
  %269 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 16
  %270 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %269) #6
  %271 = call noundef i64 @_ZN4dali12optical_flow17OpticalFlowBuffer6GetPtrEv(ptr noundef nonnull align 8 dereferenceable(144) %270)
  %272 = inttoptr i64 %271 to ptr
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #6
  %273 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 16
  %274 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %273) #6
  %275 = call { i64, i64 } @_ZN4dali12optical_flow17OpticalFlowBuffer9GetStrideEv(ptr noundef nonnull align 8 dereferenceable(144) %274)
  %276 = getelementptr inbounds { i64, i64 }, ptr %37, i32 0, i32 0
  %277 = extractvalue { i64, i64 } %275, 0
  store i64 %277, ptr %276, align 8
  %278 = getelementptr inbounds { i64, i64 }, ptr %37, i32 0, i32 1
  %279 = extractvalue { i64, i64 } %275, 1
  store i64 %279, ptr %278, align 8
  %280 = getelementptr inbounds %"struct.dali::optical_flow::OpticalFlowBuffer::Stride", ptr %37, i32 0, i32 0
  %281 = load i64, ptr %280, align 8, !tbaa !56
  %282 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 2
  %283 = load i64, ptr %282, align 8, !tbaa !58
  %284 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 3
  %285 = load i64, ptr %284, align 8, !tbaa !59
  %286 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 10
  %287 = load ptr, ptr %286, align 8, !tbaa !60
  call void @_ZN4dali12optical_flow6kernel9RgbToRgbaEPKhPhmmmP11CUstream_st(ptr noundef %268, ptr noundef %272, i64 noundef %281, i64 noundef %283, i64 noundef %285, ptr noundef %287)
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #6
  br label %359

288:                                              ; preds = %199
  %289 = getelementptr inbounds %"struct.dali::TensorViewBase", ptr %2, i32 0, i32 0
  %290 = load ptr, ptr %289, align 8, !tbaa !51
  %291 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 15
  %292 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %291) #6
  %293 = call noundef i64 @_ZN4dali12optical_flow17OpticalFlowBuffer6GetPtrEv(ptr noundef nonnull align 8 dereferenceable(144) %292)
  %294 = inttoptr i64 %293 to ptr
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #6
  %295 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 15
  %296 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %295) #6
  %297 = call { i64, i64 } @_ZN4dali12optical_flow17OpticalFlowBuffer9GetStrideEv(ptr noundef nonnull align 8 dereferenceable(144) %296)
  %298 = getelementptr inbounds { i64, i64 }, ptr %38, i32 0, i32 0
  %299 = extractvalue { i64, i64 } %297, 0
  store i64 %299, ptr %298, align 8
  %300 = getelementptr inbounds { i64, i64 }, ptr %38, i32 0, i32 1
  %301 = extractvalue { i64, i64 } %297, 1
  store i64 %301, ptr %300, align 8
  %302 = getelementptr inbounds %"struct.dali::optical_flow::OpticalFlowBuffer::Stride", ptr %38, i32 0, i32 0
  %303 = load i64, ptr %302, align 8, !tbaa !56
  %304 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 2
  %305 = load i64, ptr %304, align 8, !tbaa !58
  %306 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 3
  %307 = load i64, ptr %306, align 8, !tbaa !59
  %308 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 10
  %309 = load ptr, ptr %308, align 8, !tbaa !60
  call void @_ZN4dali12optical_flow6kernel4GrayEPKhPhmmmP11CUstream_st(ptr noundef %290, ptr noundef %294, i64 noundef %303, i64 noundef %305, i64 noundef %307, ptr noundef %309)
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #6
  %310 = getelementptr inbounds %"struct.dali::TensorViewBase", ptr %1, i32 0, i32 0
  %311 = load ptr, ptr %310, align 8, !tbaa !51
  %312 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 16
  %313 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %312) #6
  %314 = call noundef i64 @_ZN4dali12optical_flow17OpticalFlowBuffer6GetPtrEv(ptr noundef nonnull align 8 dereferenceable(144) %313)
  %315 = inttoptr i64 %314 to ptr
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #6
  %316 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 16
  %317 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %316) #6
  %318 = call { i64, i64 } @_ZN4dali12optical_flow17OpticalFlowBuffer9GetStrideEv(ptr noundef nonnull align 8 dereferenceable(144) %317)
  %319 = getelementptr inbounds { i64, i64 }, ptr %39, i32 0, i32 0
  %320 = extractvalue { i64, i64 } %318, 0
  store i64 %320, ptr %319, align 8
  %321 = getelementptr inbounds { i64, i64 }, ptr %39, i32 0, i32 1
  %322 = extractvalue { i64, i64 } %318, 1
  store i64 %322, ptr %321, align 8
  %323 = getelementptr inbounds %"struct.dali::optical_flow::OpticalFlowBuffer::Stride", ptr %39, i32 0, i32 0
  %324 = load i64, ptr %323, align 8, !tbaa !56
  %325 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 2
  %326 = load i64, ptr %325, align 8, !tbaa !58
  %327 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 3
  %328 = load i64, ptr %327, align 8, !tbaa !59
  %329 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 10
  %330 = load ptr, ptr %329, align 8, !tbaa !60
  call void @_ZN4dali12optical_flow6kernel4GrayEPKhPhmmmP11CUstream_st(ptr noundef %311, ptr noundef %315, i64 noundef %324, i64 noundef %326, i64 noundef %328, ptr noundef %330)
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #6
  br label %359

331:                                              ; preds = %199
  store i1 true, ptr %44, align 1
  %332 = call ptr @__cxa_allocate_exception(i64 80) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %40) #6
  invoke void @_ZN4dali11make_stringIJA34_cEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpRKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %40, ptr noundef nonnull align 1 dereferenceable(34) @.str.31)
          to label %333 unwind label %337

333:                                              ; preds = %331
  call void @llvm.lifetime.start.p0(i64 1, ptr %42) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef @.str.32, ptr noundef nonnull align 1 dereferenceable(1) %42)
          to label %334 unwind label %341

334:                                              ; preds = %333
  call void @llvm.lifetime.start.p0(i64 32, ptr %43) #6
  invoke void @_ZN4dali13GetStacktraceB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %43)
          to label %335 unwind label %345

335:                                              ; preds = %334
  invoke void @_ZN4dali13DALIExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_S8_(ptr noundef nonnull align 8 dereferenceable(80) %332, ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef %41, ptr noundef nonnull align 8 dereferenceable(32) %43)
          to label %336 unwind label %349

336:                                              ; preds = %335
  store i1 false, ptr %44, align 1
  invoke void @__cxa_throw(ptr %332, ptr @_ZTIN4dali13DALIExceptionE, ptr @_ZN4dali13DALIExceptionD2Ev) #7
          to label %428 unwind label %349

337:                                              ; preds = %331
  %338 = landingpad { ptr, i32 }
          cleanup
  %339 = extractvalue { ptr, i32 } %338, 0
  store ptr %339, ptr %11, align 8
  %340 = extractvalue { ptr, i32 } %338, 1
  store i32 %340, ptr %12, align 4
  br label %355

341:                                              ; preds = %333
  %342 = landingpad { ptr, i32 }
          cleanup
  %343 = extractvalue { ptr, i32 } %342, 0
  store ptr %343, ptr %11, align 8
  %344 = extractvalue { ptr, i32 } %342, 1
  store i32 %344, ptr %12, align 4
  br label %354

345:                                              ; preds = %334
  %346 = landingpad { ptr, i32 }
          cleanup
  %347 = extractvalue { ptr, i32 } %346, 0
  store ptr %347, ptr %11, align 8
  %348 = extractvalue { ptr, i32 } %346, 1
  store i32 %348, ptr %12, align 4
  br label %353

349:                                              ; preds = %336, %335
  %350 = landingpad { ptr, i32 }
          cleanup
  %351 = extractvalue { ptr, i32 } %350, 0
  store ptr %351, ptr %11, align 8
  %352 = extractvalue { ptr, i32 } %350, 1
  store i32 %352, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #6
  br label %353

353:                                              ; preds = %349, %345
  call void @llvm.lifetime.end.p0(i64 32, ptr %43) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #6
  br label %354

354:                                              ; preds = %353, %341
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %42) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #6
  br label %355

355:                                              ; preds = %354, %337
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #6
  %356 = load i1, ptr %44, align 1
  br i1 %356, label %357, label %358

357:                                              ; preds = %355
  call void @__cxa_free_exception(ptr %332) #6
  br label %358

358:                                              ; preds = %357, %355
  br label %423

359:                                              ; preds = %288, %245, %202
  call void @llvm.lifetime.start.p0(i64 56, ptr %45) #6
  %360 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 15
  %361 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %360) #6
  %362 = call noundef ptr @_ZN4dali12optical_flow17OpticalFlowBuffer9GetHandleEv(ptr noundef nonnull align 8 dereferenceable(144) %361)
  %363 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 16
  %364 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %363) #6
  %365 = call noundef ptr @_ZN4dali12optical_flow17OpticalFlowBuffer9GetHandleEv(ptr noundef nonnull align 8 dereferenceable(144) %364)
  %366 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowAdapter", ptr %50, i32 0, i32 1
  %367 = getelementptr inbounds %"struct.dali::optical_flow::OpticalFlowParams", ptr %366, i32 0, i32 4
  %368 = load i8, ptr %367, align 1, !tbaa !9, !range !15, !noundef !16
  %369 = trunc i8 %368 to i1
  br i1 %369, label %370, label %374

370:                                              ; preds = %359
  %371 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 18
  %372 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %371) #6
  %373 = call noundef ptr @_ZN4dali12optical_flow17OpticalFlowBuffer9GetHandleEv(ptr noundef nonnull align 8 dereferenceable(144) %372)
  br label %375

374:                                              ; preds = %359
  br label %375

375:                                              ; preds = %374, %370
  %376 = phi ptr [ %373, %370 ], [ null, %374 ]
  call void @_ZN4dali12optical_flow15OpticalFlowImpl23GenerateExecuteInParamsEP22NvOFGPUBufferHandle_stS3_S3_(ptr dead_on_unwind writable sret(%struct._NV_OF_EXECUTE_INPUT_PARAMS) align 8 %45, ptr noundef nonnull align 8 dereferenceable(489) %50, ptr noundef %362, ptr noundef %365, ptr noundef %376)
  call void @llvm.lifetime.start.p0(i64 24, ptr %46) #6
  %377 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 17
  %378 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %377) #6
  %379 = call noundef ptr @_ZN4dali12optical_flow17OpticalFlowBuffer9GetHandleEv(ptr noundef nonnull align 8 dereferenceable(144) %378)
  call void @_ZN4dali12optical_flow15OpticalFlowImpl24GenerateExecuteOutParamsEP22NvOFGPUBufferHandle_st(ptr dead_on_unwind writable sret(%struct._NV_OF_EXECUTE_OUTPUT_PARAMS) align 8 %46, ptr noundef nonnull align 8 dereferenceable(489) %50, ptr noundef %379)
  %380 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 12
  %381 = getelementptr inbounds %struct._NV_OF_CUDA_API_FUNCTION_LIST, ptr %380, i32 0, i32 7
  %382 = load ptr, ptr %381, align 8, !tbaa !61
  %383 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 11
  %384 = load ptr, ptr %383, align 8, !tbaa !62
  %385 = call noundef i32 %382(ptr noundef %384, ptr noundef %45, ptr noundef %46)
  call void @_Z9CUDA_CALLI13_NV_OF_STATUSEvT_(i32 noundef %385)
  %386 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 17
  %387 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %386) #6
  %388 = call noundef i64 @_ZN4dali12optical_flow17OpticalFlowBuffer6GetPtrEv(ptr noundef nonnull align 8 dereferenceable(144) %387)
  %389 = inttoptr i64 %388 to ptr
  %390 = getelementptr inbounds %"struct.dali::TensorViewBase.15", ptr %3, i32 0, i32 0
  %391 = load ptr, ptr %390, align 8, !tbaa !63
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #6
  %392 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 17
  %393 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %392) #6
  %394 = call { i64, i64 } @_ZN4dali12optical_flow17OpticalFlowBuffer9GetStrideEv(ptr noundef nonnull align 8 dereferenceable(144) %393)
  %395 = getelementptr inbounds { i64, i64 }, ptr %47, i32 0, i32 0
  %396 = extractvalue { i64, i64 } %394, 0
  store i64 %396, ptr %395, align 8
  %397 = getelementptr inbounds { i64, i64 }, ptr %47, i32 0, i32 1
  %398 = extractvalue { i64, i64 } %394, 1
  store i64 %398, ptr %397, align 8
  %399 = getelementptr inbounds %"struct.dali::optical_flow::OpticalFlowBuffer::Stride", ptr %47, i32 0, i32 0
  %400 = load i64, ptr %399, align 8, !tbaa !56
  call void @llvm.lifetime.start.p0(i64 16, ptr %48) #6
  %401 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 17
  %402 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %401) #6
  %403 = call { i64, i64 } @_ZN4dali12optical_flow17OpticalFlowBuffer13GetDescriptorEv(ptr noundef nonnull align 8 dereferenceable(144) %402)
  %404 = getelementptr inbounds { i64, i64 }, ptr %48, i32 0, i32 0
  %405 = extractvalue { i64, i64 } %403, 0
  store i64 %405, ptr %404, align 4
  %406 = getelementptr inbounds { i64, i64 }, ptr %48, i32 0, i32 1
  %407 = extractvalue { i64, i64 } %403, 1
  store i64 %407, ptr %406, align 4
  %408 = getelementptr inbounds %struct._NV_OF_BUFFER_DESCRIPTOR, ptr %48, i32 0, i32 0
  %409 = load i32, ptr %408, align 4, !tbaa !65
  %410 = zext i32 %409 to i64
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #6
  %411 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 17
  %412 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %411) #6
  %413 = call { i64, i64 } @_ZN4dali12optical_flow17OpticalFlowBuffer13GetDescriptorEv(ptr noundef nonnull align 8 dereferenceable(144) %412)
  %414 = getelementptr inbounds { i64, i64 }, ptr %49, i32 0, i32 0
  %415 = extractvalue { i64, i64 } %413, 0
  store i64 %415, ptr %414, align 4
  %416 = getelementptr inbounds { i64, i64 }, ptr %49, i32 0, i32 1
  %417 = extractvalue { i64, i64 } %413, 1
  store i64 %417, ptr %416, align 4
  %418 = getelementptr inbounds %struct._NV_OF_BUFFER_DESCRIPTOR, ptr %49, i32 0, i32 1
  %419 = load i32, ptr %418, align 4, !tbaa !69
  %420 = zext i32 %419 to i64
  %421 = getelementptr inbounds %"class.dali::optical_flow::OpticalFlowImpl", ptr %50, i32 0, i32 10
  %422 = load ptr, ptr %421, align 8, !tbaa !60
  call void @_ZN4dali12optical_flow6kernel20DecodeFlowComponentsEPKsPfmmmP11CUstream_st(ptr noundef %389, ptr noundef %391, i64 noundef %400, i64 noundef %410, i64 noundef %420, ptr noundef %422)
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %45) #6
  ret void

423:                                              ; preds = %358, %196, %124
  %424 = load ptr, ptr %11, align 8
  %425 = load i32, ptr %12, align 4
  %426 = insertvalue { ptr, i32 } poison, ptr %424, 0
  %427 = insertvalue { ptr, i32 } %426, i32 %425, 1
  resume { ptr, i32 } %427

428:                                              ; preds = %336, %144, %72
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4dalieqILi3ELi3EEEbRKNS_11TensorShapeIXT_EEERKNS1_IXT0_EEE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali11TensorShapeILi3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

declare void @_ZN4dali12optical_flow6kernel9BgrToRgbaEPKhPhmmmP11CUstream_st(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4dali12optical_flow17OpticalFlowBuffer6GetPtrEv(ptr noundef nonnull align 8 dereferenceable(144)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i64, i64 } @_ZN4dali12optical_flow17OpticalFlowBuffer9GetStrideEv(ptr noundef nonnull align 8 dereferenceable(144)) #2 align 2

declare void @_ZN4dali12optical_flow6kernel9RgbToRgbaEPKhPhmmmP11CUstream_st(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef) #5

declare void @_ZN4dali12optical_flow6kernel4GrayEPKhPhmmmP11CUstream_st(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali11make_stringIJA34_cEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpRKT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 1 dereferenceable(34)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali12optical_flow15OpticalFlowImpl23GenerateExecuteInParamsEP22NvOFGPUBufferHandle_stS3_S3_(ptr dead_on_unwind noalias writable sret(%struct._NV_OF_EXECUTE_INPUT_PARAMS) align 8, ptr noundef nonnull align 8 dereferenceable(489), ptr noundef, ptr noundef, ptr noundef) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali12optical_flow15OpticalFlowImpl24GenerateExecuteOutParamsEP22NvOFGPUBufferHandle_st(ptr dead_on_unwind noalias writable sret(%struct._NV_OF_EXECUTE_OUTPUT_PARAMS) align 8, ptr noundef nonnull align 8 dereferenceable(489), ptr noundef) #2 align 2

declare void @_ZN4dali12optical_flow6kernel20DecodeFlowComponentsEPKsPfmmmP11CUstream_st(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i64, i64 } @_ZN4dali12optical_flow17OpticalFlowBuffer13GetDescriptorEv(ptr noundef nonnull align 8 dereferenceable(144)) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 = { inlinehint 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 = { "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 = { nounwind }
attributes #7 = { noreturn }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !14, i64 21}
!10 = !{!"_ZTSN4dali12optical_flow18OpticalFlowAdapterINS_10ComputeGPUEEE", !11, i64 8}
!11 = !{!"_ZTSN4dali12optical_flow17OpticalFlowParamsE", !12, i64 0, !13, i64 4, !13, i64 8, !14, i64 12, !14, i64 13}
!12 = !{!"float", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !36, i64 344}
!18 = !{!"_ZTSN4dali12optical_flow15OpticalFlowImplE", !10, i64 0, !19, i64 24, !21, i64 56, !21, i64 64, !21, i64 72, !13, i64 80, !13, i64 84, !13, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !22, i64 120, !23, i64 216, !23, i64 264, !30, i64 312, !30, i64 320, !30, i64 328, !30, i64 336, !36, i64 344, !37, i64 352, !47, i64 392, !47, i64 416, !47, i64 440, !47, i64 464, !14, i64 488}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !20, i64 0, !21, i64 8, !7, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = !{!"_ZTS29_NV_OF_CUDA_API_FUNCTION_LIST", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88}
!23 = !{!"_ZTS18_NV_OF_INIT_PARAMS", !13, i64 0, !13, i64 4, !24, i64 8, !25, i64 12, !26, i64 16, !27, i64 20, !28, i64 24, !28, i64 28, !6, i64 32, !29, i64 40, !28, i64 44}
!24 = !{!"_ZTS30_NV_OF_OUTPUT_VECTOR_GRID_SIZE", !7, i64 0}
!25 = !{!"_ZTS28_NV_OF_HINT_VECTOR_GRID_SIZE", !7, i64 0}
!26 = !{!"_ZTS11_NV_OF_MODE", !7, i64 0}
!27 = !{!"_ZTS17_NV_OF_PERF_LEVEL", !7, i64 0}
!28 = !{!"_ZTS11_NV_OF_BOOL", !7, i64 0}
!29 = !{!"_ZTS29_NV_OF_STEREO_DISPARITY_RANGE", !7, i64 0}
!30 = !{!"_ZTSSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EE", !31, i64 0}
!31 = !{!"_ZTSSt15__uniq_ptr_dataIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_ELb1ELb1EE", !32, i64 0}
!32 = !{!"_ZTSSt15__uniq_ptr_implIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EE", !33, i64 0}
!33 = !{!"_ZTSSt5tupleIJPN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEE", !34, i64 0}
!34 = !{!"_ZTSSt11_Tuple_implILm0EJPN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEE", !35, i64 0}
!35 = !{!"_ZTSSt10_Head_baseILm0EPN4dali12optical_flow17OpticalFlowBufferELb0EE", !6, i64 0}
!36 = !{!"_ZTSN4dali13DALIImageTypeE", !7, i64 0}
!37 = !{!"_ZTSSt10unique_ptrIvSt8functionIFvPvEEE", !38, i64 0}
!38 = !{!"_ZTSSt15__uniq_ptr_dataIvSt8functionIFvPvEELb1ELb1EE", !39, i64 0}
!39 = !{!"_ZTSSt15__uniq_ptr_implIvSt8functionIFvPvEEE", !40, i64 0}
!40 = !{!"_ZTSSt5tupleIJPvSt8functionIFvS0_EEEE", !41, i64 0}
!41 = !{!"_ZTSSt11_Tuple_implILm0EJPvSt8functionIFvS0_EEEE", !42, i64 0, !46, i64 32}
!42 = !{!"_ZTSSt11_Tuple_implILm1EJSt8functionIFvPvEEEE", !43, i64 0}
!43 = !{!"_ZTSSt10_Head_baseILm1ESt8functionIFvPvEELb0EE", !44, i64 0}
!44 = !{!"_ZTSSt8functionIFvPvEE", !45, i64 0, !6, i64 24}
!45 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!46 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !6, i64 0}
!47 = !{!"_ZTSSt6vectorIjSaIjEE", !48, i64 0}
!48 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!51 = !{!52, !6, i64 0}
!52 = !{!"_ZTSN4dali14TensorViewBaseINS_10StorageGPUEKhLi3EEE", !6, i64 0, !53, i64 8}
!53 = !{!"_ZTSN4dali11TensorShapeILi3EEE", !54, i64 0}
!54 = !{!"_ZTSN4dali15TensorShapeBaseINS_11DeviceArrayIlLm3EEELi3EEE", !55, i64 0}
!55 = !{!"_ZTSN4dali11DeviceArrayIlLm3EEE", !7, i64 0}
!56 = !{!57, !21, i64 0}
!57 = !{!"_ZTSN4dali12optical_flow17OpticalFlowBuffer6StrideE", !21, i64 0, !21, i64 8}
!58 = !{!18, !21, i64 56}
!59 = !{!18, !21, i64 64}
!60 = !{!18, !6, i64 104}
!61 = !{!18, !6, i64 176}
!62 = !{!18, !6, i64 112}
!63 = !{!64, !6, i64 0}
!64 = !{!"_ZTSN4dali14TensorViewBaseINS_10StorageGPUEfLi3EEE", !6, i64 0, !53, i64 8}
!65 = !{!66, !13, i64 0}
!66 = !{!"_ZTS24_NV_OF_BUFFER_DESCRIPTOR", !13, i64 0, !13, i64 4, !67, i64 8, !68, i64 12}
!67 = !{!"_ZTS19_NV_OF_BUFFER_USAGE", !7, i64 0}
!68 = !{!"_ZTS20_NV_OF_BUFFER_FORMAT", !7, i64 0}
!69 = !{!66, !13, i64 4}


; 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.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.dali::TensorView" = type { %"struct.dali::TensorViewBase" }
%"struct.dali::TensorViewBase" = type { ptr, %"struct.dali::TensorShape" }
%"struct.dali::TensorShape" = type { %"struct.dali::TensorShapeBase" }
%"struct.dali::TensorShapeBase" = type { %"class.dali::DeviceArray" }
%"class.dali::DeviceArray" = type { [3 x i64] }
%"struct.dali::TensorView.14" = type { %"struct.dali::TensorViewBase.15" }
%"struct.dali::TensorViewBase.15" = type { ptr, %"struct.dali::TensorShape" }
%"struct.dali::TensorView.16" = type { %"struct.dali::TensorViewBase.17" }
%"struct.dali::TensorViewBase.17" = type { ptr, %"struct.dali::TensorShape" }
%"class.std::allocator.0" = type { i8 }
%struct._NV_OF_EXECUTE_INPUT_PARAMS = type { ptr, ptr, ptr, i32, i32, ptr, i32, i32, ptr }
%struct._NV_OF_EXECUTE_OUTPUT_PARAMS = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZTIN4dali13DALIExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.25 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [128 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [128 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [128 x i8], align 1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z9CUDA_CALLI13_NV_OF_STATUSEvT_(i32 noundef) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali11make_stringIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEES6_DpRKT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4dali13GetStacktraceB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali13DALIExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_S8_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4dali13DALIExceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #4 align 2

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali12optical_flow15OpticalFlowImpl15CalcOpticalFlowENS_10TensorViewINS_10StorageGPUEKhLi3EEES5_NS2_IS3_fLi3EEENS2_IS3_KfLi3EEE(ptr noundef nonnull align 8 dereferenceable(489) %0, ptr nocapture noundef readonly byval(%"struct.dali::TensorView") align 8 %1, ptr nocapture noundef readonly byval(%"struct.dali::TensorView") align 8 %2, ptr noundef byval(%"struct.dali::TensorView.14") align 8 %3, ptr noundef byval(%"struct.dali::TensorView.16") align 8 %4) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator.0", align 1
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator.0", align 1
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::allocator.0", align 1
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"struct.dali::TensorShape", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::allocator.0", align 1
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::allocator.0", align 1
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::allocator.0", align 1
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca %"class.std::allocator.0", align 1
  %32 = alloca %"class.std::__cxx11::basic_string", align 8
  %33 = alloca %struct._NV_OF_EXECUTE_INPUT_PARAMS, align 8
  %34 = alloca %struct._NV_OF_EXECUTE_OUTPUT_PARAMS, align 8
  %35 = getelementptr inbounds i8, ptr %0, i64 21
  %36 = load i8, ptr %35, align 1, !tbaa !5, !range !13, !noundef !14
  %37 = trunc nuw i8 %36 to i1
  %38 = getelementptr inbounds i8, ptr %4, i64 8
  br i1 %37, label %39, label %83

39:                                               ; preds = %5
  %40 = getelementptr inbounds i8, ptr %3, i64 8
  %41 = call noundef zeroext i1 @_ZN4dalieqILi3ELi3EEEbRKNS_11TensorShapeIXT_EEERKNS1_IXT0_EEE(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 8 dereferenceable(24) %40)
  br i1 %41, label %126, label %42

42:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %43 unwind label %55

43:                                               ; preds = %42
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @.str.25)
          to label %44 unwind label %57

44:                                               ; preds = %43
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull @.str.2)
          to label %45 unwind label %59

45:                                               ; preds = %44
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.26, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %46 unwind label %63

46:                                               ; preds = %45
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull @.str.5, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %47 unwind label %65

47:                                               ; preds = %46
  %48 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %49 unwind label %67

49:                                               ; preds = %47
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  %50 = call ptr @__cxa_allocate_exception(i64 80) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #6
  invoke void @_ZN4dali11make_stringIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEES6_DpRKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %51 unwind label %.thread

51:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull @.str.27, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %52 unwind label %71

52:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #6
  invoke void @_ZN4dali13GetStacktraceB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %16)
          to label %53 unwind label %73

53:                                               ; preds = %52
  invoke void @_ZN4dali13DALIExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_S8_(ptr noundef nonnull align 8 dereferenceable(80) %50, ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull %14, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %54 unwind label %75

54:                                               ; preds = %53
  invoke void @__cxa_throw(ptr nonnull %50, ptr nonnull @_ZTIN4dali13DALIExceptionE, ptr nonnull @_ZN4dali13DALIExceptionD2Ev) #7
          to label %263 unwind label %75

55:                                               ; preds = %42
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %62

57:                                               ; preds = %43
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %61

59:                                               ; preds = %44
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %61

61:                                               ; preds = %59, %57
  %.pn66 = phi { ptr, i32 } [ %60, %59 ], [ %58, %57 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br label %62

62:                                               ; preds = %61, %55
  %.pn66.pn = phi { ptr, i32 } [ %.pn66, %61 ], [ %56, %55 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  br label %82

63:                                               ; preds = %45
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #6
  br label %81

65:                                               ; preds = %46
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %69

67:                                               ; preds = %47
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %69

69:                                               ; preds = %67, %65
  %.pn69 = phi { ptr, i32 } [ %68, %67 ], [ %66, %65 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  br label %80

.thread:                                          ; preds = %49
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  br label %79

71:                                               ; preds = %51
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %78

73:                                               ; preds = %52
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %77

75:                                               ; preds = %54, %53
  %.043 = phi i1 [ false, %54 ], [ true, %53 ]
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  br label %77

77:                                               ; preds = %75, %73
  %.144 = phi i1 [ %.043, %75 ], [ true, %73 ]
  %.pn71 = phi { ptr, i32 } [ %76, %75 ], [ %74, %73 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br label %78

78:                                               ; preds = %71, %77
  %.245 = phi i1 [ %.144, %77 ], [ true, %71 ]
  %.pn71.pn = phi { ptr, i32 } [ %.pn71, %77 ], [ %72, %71 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  br i1 %.245, label %79, label %80

79:                                               ; preds = %.thread, %78
  %.pn71.pn.pn85 = phi { ptr, i32 } [ %70, %.thread ], [ %.pn71.pn, %78 ]
  call void @__cxa_free_exception(ptr %50) #6
  br label %80

80:                                               ; preds = %78, %79, %69
  %.pn71.pn.pn.pn = phi { ptr, i32 } [ %.pn71.pn.pn85, %79 ], [ %.pn71.pn, %78 ], [ %.pn69, %69 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  br label %81

81:                                               ; preds = %80, %63
  %.pn71.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn71.pn.pn.pn, %80 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  br label %82

82:                                               ; preds = %81, %62
  %.pn71.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn71.pn.pn.pn.pn, %81 ], [ %.pn66.pn, %62 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br label %262

83:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #6
  call void @_ZN4dali11TensorShapeILi3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17)
  %84 = call noundef zeroext i1 @_ZN4dalieqILi3ELi3EEEbRKNS_11TensorShapeIXT_EEERKNS1_IXT0_EEE(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 8 dereferenceable(24) %17)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #6
  br i1 %84, label %126, label %85

85:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %86 unwind label %98

86:                                               ; preds = %85
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull @.str.28)
          to label %87 unwind label %100

87:                                               ; preds = %86
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %18, ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull @.str.2)
          to label %88 unwind label %102

88:                                               ; preds = %87
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %23) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull @.str.29, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %89 unwind label %106

89:                                               ; preds = %88
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %24) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %24, ptr noundef nonnull @.str.5, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %90 unwind label %108

90:                                               ; preds = %89
  %91 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %92 unwind label %110

92:                                               ; preds = %90
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #6
  %93 = call ptr @__cxa_allocate_exception(i64 80) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %25) #6
  invoke void @_ZN4dali11make_stringIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEES6_DpRKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %25, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %94 unwind label %.thread86

94:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %27) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull @.str.30, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %95 unwind label %114

95:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %28) #6
  invoke void @_ZN4dali13GetStacktraceB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %28)
          to label %96 unwind label %116

96:                                               ; preds = %95
  invoke void @_ZN4dali13DALIExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_S8_(ptr noundef nonnull align 8 dereferenceable(80) %93, ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull %26, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %97 unwind label %118

97:                                               ; preds = %96
  invoke void @__cxa_throw(ptr nonnull %93, ptr nonnull @_ZTIN4dali13DALIExceptionE, ptr nonnull @_ZN4dali13DALIExceptionD2Ev) #7
          to label %263 unwind label %118

98:                                               ; preds = %85
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %105

100:                                              ; preds = %86
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %104

102:                                              ; preds = %87
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  br label %104

104:                                              ; preds = %102, %100
  %.pn = phi { ptr, i32 } [ %103, %102 ], [ %101, %100 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  br label %105

105:                                              ; preds = %104, %98
  %.pn.pn = phi { ptr, i32 } [ %.pn, %104 ], [ %99, %98 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #6
  br label %125

106:                                              ; preds = %88
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #6
  br label %124

108:                                              ; preds = %89
  %109 = landingpad { ptr, i32 }
          cleanup
  br label %112

110:                                              ; preds = %90
  %111 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  br label %112

112:                                              ; preds = %110, %108
  %.pn57 = phi { ptr, i32 } [ %111, %110 ], [ %109, %108 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #6
  br label %123

.thread86:                                        ; preds = %92
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #6
  br label %122

114:                                              ; preds = %94
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %121

116:                                              ; preds = %95
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %120

118:                                              ; preds = %97, %96
  %.047 = phi i1 [ false, %97 ], [ true, %96 ]
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #6
  br label %120

120:                                              ; preds = %118, %116
  %.148 = phi i1 [ %.047, %118 ], [ true, %116 ]
  %.pn59 = phi { ptr, i32 } [ %119, %118 ], [ %117, %116 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  br label %121

121:                                              ; preds = %114, %120
  %.249 = phi i1 [ %.148, %120 ], [ true, %114 ]
  %.pn59.pn = phi { ptr, i32 } [ %.pn59, %120 ], [ %115, %114 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %27) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #6
  br i1 %.249, label %122, label %123

122:                                              ; preds = %.thread86, %121
  %.pn59.pn.pn89 = phi { ptr, i32 } [ %113, %.thread86 ], [ %.pn59.pn, %121 ]
  call void @__cxa_free_exception(ptr %93) #6
  br label %123

123:                                              ; preds = %121, %122, %112
  %.pn59.pn.pn.pn = phi { ptr, i32 } [ %.pn59.pn.pn89, %122 ], [ %.pn59.pn, %121 ], [ %.pn57, %112 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  br label %124

124:                                              ; preds = %123, %106
  %.pn59.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn59.pn.pn.pn, %123 ], [ %107, %106 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %125

125:                                              ; preds = %124, %105
  %.pn59.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn59.pn.pn.pn.pn, %124 ], [ %.pn.pn, %105 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #6
  br label %262

126:                                              ; preds = %83, %39
  %127 = getelementptr inbounds i8, ptr %0, i64 344
  %128 = load i32, ptr %127, align 8, !tbaa !15
  switch i32 %128, label %207 [
    i32 1, label %129
    i32 0, label %155
    i32 2, label %181
  ]

129:                                              ; preds = %126
  %130 = load ptr, ptr %2, align 8, !tbaa !50
  %131 = getelementptr inbounds i8, ptr %0, i64 312
  %132 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %131) #6
  %133 = call noundef i64 @_ZN4dali12optical_flow17OpticalFlowBuffer6GetPtrEv(ptr noundef nonnull align 8 dereferenceable(144) %132)
  %134 = inttoptr i64 %133 to ptr
  %135 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %131) #6
  %136 = call { i64, i64 } @_ZN4dali12optical_flow17OpticalFlowBuffer9GetStrideEv(ptr noundef nonnull align 8 dereferenceable(144) %135)
  %137 = extractvalue { i64, i64 } %136, 0
  %138 = getelementptr inbounds i8, ptr %0, i64 56
  %139 = load i64, ptr %138, align 8, !tbaa !55
  %140 = getelementptr inbounds i8, ptr %0, i64 64
  %141 = load i64, ptr %140, align 8, !tbaa !56
  %142 = getelementptr inbounds i8, ptr %0, i64 104
  %143 = load ptr, ptr %142, align 8, !tbaa !57
  call void @_ZN4dali12optical_flow6kernel9BgrToRgbaEPKhPhmmmP11CUstream_st(ptr noundef %130, ptr noundef %134, i64 noundef %137, i64 noundef %139, i64 noundef %141, ptr noundef %143)
  %144 = load ptr, ptr %1, align 8, !tbaa !50
  %145 = getelementptr inbounds i8, ptr %0, i64 320
  %146 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %145) #6
  %147 = call noundef i64 @_ZN4dali12optical_flow17OpticalFlowBuffer6GetPtrEv(ptr noundef nonnull align 8 dereferenceable(144) %146)
  %148 = inttoptr i64 %147 to ptr
  %149 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %145) #6
  %150 = call { i64, i64 } @_ZN4dali12optical_flow17OpticalFlowBuffer9GetStrideEv(ptr noundef nonnull align 8 dereferenceable(144) %149)
  %151 = extractvalue { i64, i64 } %150, 0
  %152 = load i64, ptr %138, align 8, !tbaa !55
  %153 = load i64, ptr %140, align 8, !tbaa !56
  %154 = load ptr, ptr %142, align 8, !tbaa !57
  call void @_ZN4dali12optical_flow6kernel9BgrToRgbaEPKhPhmmmP11CUstream_st(ptr noundef %144, ptr noundef %148, i64 noundef %151, i64 noundef %152, i64 noundef %153, ptr noundef %154)
  br label %223

155:                                              ; preds = %126
  %156 = load ptr, ptr %2, align 8, !tbaa !50
  %157 = getelementptr inbounds i8, ptr %0, i64 312
  %158 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %157) #6
  %159 = call noundef i64 @_ZN4dali12optical_flow17OpticalFlowBuffer6GetPtrEv(ptr noundef nonnull align 8 dereferenceable(144) %158)
  %160 = inttoptr i64 %159 to ptr
  %161 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %157) #6
  %162 = call { i64, i64 } @_ZN4dali12optical_flow17OpticalFlowBuffer9GetStrideEv(ptr noundef nonnull align 8 dereferenceable(144) %161)
  %163 = extractvalue { i64, i64 } %162, 0
  %164 = getelementptr inbounds i8, ptr %0, i64 56
  %165 = load i64, ptr %164, align 8, !tbaa !55
  %166 = getelementptr inbounds i8, ptr %0, i64 64
  %167 = load i64, ptr %166, align 8, !tbaa !56
  %168 = getelementptr inbounds i8, ptr %0, i64 104
  %169 = load ptr, ptr %168, align 8, !tbaa !57
  call void @_ZN4dali12optical_flow6kernel9RgbToRgbaEPKhPhmmmP11CUstream_st(ptr noundef %156, ptr noundef %160, i64 noundef %163, i64 noundef %165, i64 noundef %167, ptr noundef %169)
  %170 = load ptr, ptr %1, align 8, !tbaa !50
  %171 = getelementptr inbounds i8, ptr %0, i64 320
  %172 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %171) #6
  %173 = call noundef i64 @_ZN4dali12optical_flow17OpticalFlowBuffer6GetPtrEv(ptr noundef nonnull align 8 dereferenceable(144) %172)
  %174 = inttoptr i64 %173 to ptr
  %175 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %171) #6
  %176 = call { i64, i64 } @_ZN4dali12optical_flow17OpticalFlowBuffer9GetStrideEv(ptr noundef nonnull align 8 dereferenceable(144) %175)
  %177 = extractvalue { i64, i64 } %176, 0
  %178 = load i64, ptr %164, align 8, !tbaa !55
  %179 = load i64, ptr %166, align 8, !tbaa !56
  %180 = load ptr, ptr %168, align 8, !tbaa !57
  call void @_ZN4dali12optical_flow6kernel9RgbToRgbaEPKhPhmmmP11CUstream_st(ptr noundef %170, ptr noundef %174, i64 noundef %177, i64 noundef %178, i64 noundef %179, ptr noundef %180)
  br label %223

181:                                              ; preds = %126
  %182 = load ptr, ptr %2, align 8, !tbaa !50
  %183 = getelementptr inbounds i8, ptr %0, i64 312
  %184 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %183) #6
  %185 = call noundef i64 @_ZN4dali12optical_flow17OpticalFlowBuffer6GetPtrEv(ptr noundef nonnull align 8 dereferenceable(144) %184)
  %186 = inttoptr i64 %185 to ptr
  %187 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %183) #6
  %188 = call { i64, i64 } @_ZN4dali12optical_flow17OpticalFlowBuffer9GetStrideEv(ptr noundef nonnull align 8 dereferenceable(144) %187)
  %189 = extractvalue { i64, i64 } %188, 0
  %190 = getelementptr inbounds i8, ptr %0, i64 56
  %191 = load i64, ptr %190, align 8, !tbaa !55
  %192 = getelementptr inbounds i8, ptr %0, i64 64
  %193 = load i64, ptr %192, align 8, !tbaa !56
  %194 = getelementptr inbounds i8, ptr %0, i64 104
  %195 = load ptr, ptr %194, align 8, !tbaa !57
  call void @_ZN4dali12optical_flow6kernel4GrayEPKhPhmmmP11CUstream_st(ptr noundef %182, ptr noundef %186, i64 noundef %189, i64 noundef %191, i64 noundef %193, ptr noundef %195)
  %196 = load ptr, ptr %1, align 8, !tbaa !50
  %197 = getelementptr inbounds i8, ptr %0, i64 320
  %198 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %197) #6
  %199 = call noundef i64 @_ZN4dali12optical_flow17OpticalFlowBuffer6GetPtrEv(ptr noundef nonnull align 8 dereferenceable(144) %198)
  %200 = inttoptr i64 %199 to ptr
  %201 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %197) #6
  %202 = call { i64, i64 } @_ZN4dali12optical_flow17OpticalFlowBuffer9GetStrideEv(ptr noundef nonnull align 8 dereferenceable(144) %201)
  %203 = extractvalue { i64, i64 } %202, 0
  %204 = load i64, ptr %190, align 8, !tbaa !55
  %205 = load i64, ptr %192, align 8, !tbaa !56
  %206 = load ptr, ptr %194, align 8, !tbaa !57
  call void @_ZN4dali12optical_flow6kernel4GrayEPKhPhmmmP11CUstream_st(ptr noundef %196, ptr noundef %200, i64 noundef %203, i64 noundef %204, i64 noundef %205, ptr noundef %206)
  br label %223

207:                                              ; preds = %126
  %208 = call ptr @__cxa_allocate_exception(i64 80) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %29) #6
  invoke void @_ZN4dali11make_stringIJA34_cEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpRKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %29, ptr noundef nonnull align 1 dereferenceable(34) @.str.31)
          to label %209 unwind label %.thread90

209:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %31) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull @.str.32, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %210 unwind label %214

210:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %32) #6
  invoke void @_ZN4dali13GetStacktraceB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %32)
          to label %211 unwind label %216

211:                                              ; preds = %210
  invoke void @_ZN4dali13DALIExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_S8_(ptr noundef nonnull align 8 dereferenceable(80) %208, ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull %30, ptr noundef nonnull align 8 dereferenceable(32) %32)
          to label %212 unwind label %218

212:                                              ; preds = %211
  invoke void @__cxa_throw(ptr nonnull %208, ptr nonnull @_ZTIN4dali13DALIExceptionE, ptr nonnull @_ZN4dali13DALIExceptionD2Ev) #7
          to label %263 unwind label %218

.thread90:                                        ; preds = %207
  %213 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %29) #6
  br label %222

214:                                              ; preds = %209
  %215 = landingpad { ptr, i32 }
          cleanup
  br label %221

216:                                              ; preds = %210
  %217 = landingpad { ptr, i32 }
          cleanup
  br label %220

218:                                              ; preds = %212, %211
  %.051 = phi i1 [ false, %212 ], [ true, %211 ]
  %219 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #6
  br label %220

220:                                              ; preds = %218, %216
  %.152 = phi i1 [ %.051, %218 ], [ true, %216 ]
  %.pn78 = phi { ptr, i32 } [ %219, %218 ], [ %217, %216 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %32) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #6
  br label %221

221:                                              ; preds = %214, %220
  %.253 = phi i1 [ %.152, %220 ], [ true, %214 ]
  %.pn78.pn = phi { ptr, i32 } [ %.pn78, %220 ], [ %215, %214 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %31) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %29) #6
  br i1 %.253, label %222, label %262

222:                                              ; preds = %.thread90, %221
  %.pn78.pn.pn93 = phi { ptr, i32 } [ %213, %.thread90 ], [ %.pn78.pn, %221 ]
  call void @__cxa_free_exception(ptr %208) #6
  br label %262

223:                                              ; preds = %181, %155, %129
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %33) #6
  %224 = getelementptr inbounds i8, ptr %0, i64 312
  %225 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %224) #6
  %226 = call noundef ptr @_ZN4dali12optical_flow17OpticalFlowBuffer9GetHandleEv(ptr noundef nonnull align 8 dereferenceable(144) %225)
  %227 = getelementptr inbounds i8, ptr %0, i64 320
  %228 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %227) #6
  %229 = call noundef ptr @_ZN4dali12optical_flow17OpticalFlowBuffer9GetHandleEv(ptr noundef nonnull align 8 dereferenceable(144) %228)
  %230 = load i8, ptr %35, align 1, !tbaa !5, !range !13, !noundef !14
  %231 = trunc nuw i8 %230 to i1
  br i1 %231, label %232, label %236

232:                                              ; preds = %223
  %233 = getelementptr inbounds i8, ptr %0, i64 336
  %234 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %233) #6
  %235 = call noundef ptr @_ZN4dali12optical_flow17OpticalFlowBuffer9GetHandleEv(ptr noundef nonnull align 8 dereferenceable(144) %234)
  br label %236

236:                                              ; preds = %223, %232
  %237 = phi ptr [ %235, %232 ], [ null, %223 ]
  call void @_ZN4dali12optical_flow15OpticalFlowImpl23GenerateExecuteInParamsEP22NvOFGPUBufferHandle_stS3_S3_(ptr dead_on_unwind nonnull writable sret(%struct._NV_OF_EXECUTE_INPUT_PARAMS) align 8 %33, ptr noundef nonnull align 8 dereferenceable(489) %0, ptr noundef %226, ptr noundef %229, ptr noundef %237)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %34) #6
  %238 = getelementptr inbounds i8, ptr %0, i64 328
  %239 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %238) #6
  %240 = call noundef ptr @_ZN4dali12optical_flow17OpticalFlowBuffer9GetHandleEv(ptr noundef nonnull align 8 dereferenceable(144) %239)
  call void @_ZN4dali12optical_flow15OpticalFlowImpl24GenerateExecuteOutParamsEP22NvOFGPUBufferHandle_st(ptr dead_on_unwind nonnull writable sret(%struct._NV_OF_EXECUTE_OUTPUT_PARAMS) align 8 %34, ptr noundef nonnull align 8 dereferenceable(489) %0, ptr noundef %240)
  %241 = getelementptr inbounds i8, ptr %0, i64 176
  %242 = load ptr, ptr %241, align 8, !tbaa !58
  %243 = getelementptr inbounds i8, ptr %0, i64 112
  %244 = load ptr, ptr %243, align 8, !tbaa !59
  %245 = call noundef i32 %242(ptr noundef %244, ptr noundef nonnull %33, ptr noundef nonnull %34)
  call void @_Z9CUDA_CALLI13_NV_OF_STATUSEvT_(i32 noundef %245)
  %246 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %238) #6
  %247 = call noundef i64 @_ZN4dali12optical_flow17OpticalFlowBuffer6GetPtrEv(ptr noundef nonnull align 8 dereferenceable(144) %246)
  %248 = inttoptr i64 %247 to ptr
  %249 = load ptr, ptr %3, align 8, !tbaa !60
  %250 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %238) #6
  %251 = call { i64, i64 } @_ZN4dali12optical_flow17OpticalFlowBuffer9GetStrideEv(ptr noundef nonnull align 8 dereferenceable(144) %250)
  %252 = extractvalue { i64, i64 } %251, 0
  %253 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %238) #6
  %254 = call { i64, i64 } @_ZN4dali12optical_flow17OpticalFlowBuffer13GetDescriptorEv(ptr noundef nonnull align 8 dereferenceable(144) %253)
  %255 = extractvalue { i64, i64 } %254, 0
  %256 = and i64 %255, 4294967295
  %257 = call noundef ptr @_ZNKSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %238) #6
  %258 = call { i64, i64 } @_ZN4dali12optical_flow17OpticalFlowBuffer13GetDescriptorEv(ptr noundef nonnull align 8 dereferenceable(144) %257)
  %259 = extractvalue { i64, i64 } %258, 0
  %.sroa.0.4.extract.shift = lshr i64 %259, 32
  %260 = getelementptr inbounds i8, ptr %0, i64 104
  %261 = load ptr, ptr %260, align 8, !tbaa !57
  call void @_ZN4dali12optical_flow6kernel20DecodeFlowComponentsEPKsPfmmmP11CUstream_st(ptr noundef %248, ptr noundef %249, i64 noundef %252, i64 noundef %256, i64 noundef %.sroa.0.4.extract.shift, ptr noundef %261)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %34) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %33) #6
  ret void

262:                                              ; preds = %221, %222, %125, %82
  %.pn78.pn.pn.pn = phi { ptr, i32 } [ %.pn78.pn.pn93, %222 ], [ %.pn78.pn, %221 ], [ %.pn71.pn.pn.pn.pn.pn, %82 ], [ %.pn59.pn.pn.pn.pn.pn, %125 ]
  resume { ptr, i32 } %.pn78.pn.pn.pn

263:                                              ; preds = %212, %97, %54
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4dalieqILi3ELi3EEEbRKNS_11TensorShapeIXT_EEERKNS1_IXT0_EEE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali11TensorShapeILi3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

declare void @_ZN4dali12optical_flow6kernel9BgrToRgbaEPKhPhmmmP11CUstream_st(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4dali12optical_flow17OpticalFlowBuffer6GetPtrEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i64, i64 } @_ZN4dali12optical_flow17OpticalFlowBuffer9GetStrideEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #2 align 2

declare void @_ZN4dali12optical_flow6kernel9RgbToRgbaEPKhPhmmmP11CUstream_st(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #5

declare void @_ZN4dali12optical_flow6kernel4GrayEPKhPhmmmP11CUstream_st(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali11make_stringIJA34_cEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpRKT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 1 dereferenceable(34)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali12optical_flow15OpticalFlowImpl23GenerateExecuteInParamsEP22NvOFGPUBufferHandle_stS3_S3_(ptr dead_on_unwind noalias writable sret(%struct._NV_OF_EXECUTE_INPUT_PARAMS) align 8, ptr noundef nonnull align 8 dereferenceable(489), ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali12optical_flow15OpticalFlowImpl24GenerateExecuteOutParamsEP22NvOFGPUBufferHandle_st(ptr dead_on_unwind noalias writable sret(%struct._NV_OF_EXECUTE_OUTPUT_PARAMS) align 8, ptr noundef nonnull align 8 dereferenceable(489), ptr noundef) local_unnamed_addr #2 align 2

declare void @_ZN4dali12optical_flow6kernel20DecodeFlowComponentsEPKsPfmmmP11CUstream_st(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i64, i64 } @_ZN4dali12optical_flow17OpticalFlowBuffer13GetDescriptorEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 = { inlinehint 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 = { "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 = { nounwind }
attributes #7 = { noreturn }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !12, i64 21}
!6 = !{!"_ZTSN4dali12optical_flow18OpticalFlowAdapterINS_10ComputeGPUEEE", !7, i64 8}
!7 = !{!"_ZTSN4dali12optical_flow17OpticalFlowParamsE", !8, i64 0, !11, i64 4, !11, i64 8, !12, i64 12, !12, i64 13}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"bool", !9, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !35, i64 344}
!16 = !{!"_ZTSN4dali12optical_flow15OpticalFlowImplE", !6, i64 0, !17, i64 24, !20, i64 56, !20, i64 64, !20, i64 72, !11, i64 80, !11, i64 84, !11, i64 88, !19, i64 96, !19, i64 104, !19, i64 112, !21, i64 120, !22, i64 216, !22, i64 264, !29, i64 312, !29, i64 320, !29, i64 328, !29, i64 336, !35, i64 344, !36, i64 352, !46, i64 392, !46, i64 416, !46, i64 440, !46, i64 464, !12, i64 488}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !20, i64 8, !9, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !19, i64 0}
!19 = !{!"any pointer", !9, i64 0}
!20 = !{!"long", !9, i64 0}
!21 = !{!"_ZTS29_NV_OF_CUDA_API_FUNCTION_LIST", !19, i64 0, !19, i64 8, !19, i64 16, !19, i64 24, !19, i64 32, !19, i64 40, !19, i64 48, !19, i64 56, !19, i64 64, !19, i64 72, !19, i64 80, !19, i64 88}
!22 = !{!"_ZTS18_NV_OF_INIT_PARAMS", !11, i64 0, !11, i64 4, !23, i64 8, !24, i64 12, !25, i64 16, !26, i64 20, !27, i64 24, !27, i64 28, !19, i64 32, !28, i64 40, !27, i64 44}
!23 = !{!"_ZTS30_NV_OF_OUTPUT_VECTOR_GRID_SIZE", !9, i64 0}
!24 = !{!"_ZTS28_NV_OF_HINT_VECTOR_GRID_SIZE", !9, i64 0}
!25 = !{!"_ZTS11_NV_OF_MODE", !9, i64 0}
!26 = !{!"_ZTS17_NV_OF_PERF_LEVEL", !9, i64 0}
!27 = !{!"_ZTS11_NV_OF_BOOL", !9, i64 0}
!28 = !{!"_ZTS29_NV_OF_STEREO_DISPARITY_RANGE", !9, i64 0}
!29 = !{!"_ZTSSt10unique_ptrIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EE", !30, i64 0}
!30 = !{!"_ZTSSt15__uniq_ptr_dataIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_ELb1ELb1EE", !31, i64 0}
!31 = !{!"_ZTSSt15__uniq_ptr_implIN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EE", !32, i64 0}
!32 = !{!"_ZTSSt5tupleIJPN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEE", !33, i64 0}
!33 = !{!"_ZTSSt11_Tuple_implILm0EJPN4dali12optical_flow17OpticalFlowBufferESt14default_deleteIS2_EEE", !34, i64 0}
!34 = !{!"_ZTSSt10_Head_baseILm0EPN4dali12optical_flow17OpticalFlowBufferELb0EE", !19, i64 0}
!35 = !{!"_ZTSN4dali13DALIImageTypeE", !9, i64 0}
!36 = !{!"_ZTSSt10unique_ptrIvSt8functionIFvPvEEE", !37, i64 0}
!37 = !{!"_ZTSSt15__uniq_ptr_dataIvSt8functionIFvPvEELb1ELb1EE", !38, i64 0}
!38 = !{!"_ZTSSt15__uniq_ptr_implIvSt8functionIFvPvEEE", !39, i64 0}
!39 = !{!"_ZTSSt5tupleIJPvSt8functionIFvS0_EEEE", !40, i64 0}
!40 = !{!"_ZTSSt11_Tuple_implILm0EJPvSt8functionIFvS0_EEEE", !41, i64 0, !45, i64 32}
!41 = !{!"_ZTSSt11_Tuple_implILm1EJSt8functionIFvPvEEEE", !42, i64 0}
!42 = !{!"_ZTSSt10_Head_baseILm1ESt8functionIFvPvEELb0EE", !43, i64 0}
!43 = !{!"_ZTSSt8functionIFvPvEE", !44, i64 0, !19, i64 24}
!44 = !{!"_ZTSSt14_Function_base", !9, i64 0, !19, i64 16}
!45 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !19, i64 0}
!46 = !{!"_ZTSSt6vectorIjSaIjEE", !47, i64 0}
!47 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!50 = !{!51, !19, i64 0}
!51 = !{!"_ZTSN4dali14TensorViewBaseINS_10StorageGPUEKhLi3EEE", !19, i64 0, !52, i64 8}
!52 = !{!"_ZTSN4dali11TensorShapeILi3EEE", !53, i64 0}
!53 = !{!"_ZTSN4dali15TensorShapeBaseINS_11DeviceArrayIlLm3EEELi3EEE", !54, i64 0}
!54 = !{!"_ZTSN4dali11DeviceArrayIlLm3EEE", !9, i64 0}
!55 = !{!16, !20, i64 56}
!56 = !{!16, !20, i64 64}
!57 = !{!16, !19, i64 104}
!58 = !{!16, !19, i64 176}
!59 = !{!16, !19, i64 112}
!60 = !{!61, !19, i64 0}
!61 = !{!"_ZTSN4dali14TensorViewBaseINS_10StorageGPUEfLi3EEE", !19, i64 0, !52, i64 8}


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