; LLVM IR from NVIDIA/DALI :: dali/c_api_2/pipeline.ll (ZN4dali5c_api11ToCppParamsERK19_DALIPipelineParams)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.dali::PipelineParams" = type { %"class.std::optional.16", %"class.std::optional.16", %"class.std::optional.16", %"class.std::optional.24", %"class.std::optional.32", %"class.std::optional.40", %"class.std::optional.48", %"class.std::optional.56", %"class.std::optional.56", %"class.std::optional.62" }
%"class.std::optional.16" = type { %"struct.std::_Optional_base.17" }
%"struct.std::_Optional_base.17" = type { %"struct.std::_Optional_payload.19" }
%"struct.std::_Optional_payload.19" = type { %"struct.std::_Optional_payload_base.base.21", [3 x i8] }
%"struct.std::_Optional_payload_base.base.21" = type <{ %"union.std::_Optional_payload_base<int>::_Storage", i8 }>
%"union.std::_Optional_payload_base<int>::_Storage" = type { i32 }
%"class.std::optional.24" = type { %"struct.std::_Optional_base.25" }
%"struct.std::_Optional_base.25" = type { %"struct.std::_Optional_payload.27" }
%"struct.std::_Optional_payload.27" = type { %"struct.std::_Optional_payload_base.base.29", [7 x i8] }
%"struct.std::_Optional_payload_base.base.29" = type <{ %"union.std::_Optional_payload_base<long>::_Storage", i8 }>
%"union.std::_Optional_payload_base<long>::_Storage" = type { i64 }
%"class.std::optional.32" = type { %"struct.std::_Optional_base.33" }
%"struct.std::_Optional_base.33" = type { %"struct.std::_Optional_payload.35" }
%"struct.std::_Optional_payload.35" = type { %"struct.std::_Optional_payload_base.base.37", [3 x i8] }
%"struct.std::_Optional_payload_base.base.37" = type <{ %"union.std::_Optional_payload_base<dali::ExecutorType>::_Storage", i8 }>
%"union.std::_Optional_payload_base<dali::ExecutorType>::_Storage" = type { i32 }
%"class.std::optional.40" = type { %"struct.std::_Optional_base.41" }
%"struct.std::_Optional_base.41" = type { %"struct.std::_Optional_payload.43" }
%"struct.std::_Optional_payload.43" = type { %"struct.std::_Optional_payload_base.base.45", [3 x i8] }
%"struct.std::_Optional_payload_base.base.45" = type <{ %"union.std::_Optional_payload_base<dali::ExecutorFlags>::_Storage", i8 }>
%"union.std::_Optional_payload_base<dali::ExecutorFlags>::_Storage" = type { i32 }
%"class.std::optional.48" = type { %"struct.std::_Optional_base.49" }
%"struct.std::_Optional_base.49" = type { %"struct.std::_Optional_payload.51" }
%"struct.std::_Optional_payload.51" = type { %"struct.std::_Optional_payload_base.base.53", [3 x i8] }
%"struct.std::_Optional_payload_base.base.53" = type <{ %"union.std::_Optional_payload_base<dali::QueueSizes>::_Storage", i8 }>
%"union.std::_Optional_payload_base<dali::QueueSizes>::_Storage" = type { %"struct.dali::QueueSizes" }
%"struct.dali::QueueSizes" = type { i32, i32 }
%"class.std::optional.56" = type { %"struct.std::_Optional_base.57" }
%"struct.std::_Optional_base.57" = type { %"struct.std::_Optional_payload.59" }
%"struct.std::_Optional_payload.59" = type { %"struct.std::_Optional_payload_base.60" }
%"struct.std::_Optional_payload_base.60" = type { %"union.std::_Optional_payload_base<bool>::_Storage", i8 }
%"union.std::_Optional_payload_base<bool>::_Storage" = type { %"struct.std::_Optional_payload_base<bool>::_Empty_byte" }
%"struct.std::_Optional_payload_base<bool>::_Empty_byte" = type { i8 }
%"class.std::optional.62" = type { %"struct.std::_Optional_base.63" }
%"struct.std::_Optional_base.63" = type { %"struct.std::_Optional_payload.65" }
%"struct.std::_Optional_payload.65" = type { %"struct.std::_Optional_payload_base.base.67", [7 x i8] }
%"struct.std::_Optional_payload_base.base.67" = type <{ %"union.std::_Optional_payload_base<unsigned long>::_Storage", i8 }>
%"union.std::_Optional_payload_base<unsigned long>::_Storage" = type { i64 }
%struct._DALIPipelineParams = type { %struct.anon, i32, i32, i32, i64, i32, i32, %struct._DALIPrefetchQueueSizes, i8, i8, i64 }
%struct.anon = type { i16, [6 x i8] }
%struct._DALIPrefetchQueueSizes = type { i32, i32 }

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali5c_api11ToCppParamsERK19_DALIPipelineParams(ptr dead_on_unwind noalias writable sret(%"struct.dali::PipelineParams") align 8 %0, ptr noundef nonnull align 8 dereferenceable(64) %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca %"class.std::optional.16", align 4
  %5 = alloca %"class.std::optional.16", align 4
  %6 = alloca %"class.std::optional.16", align 4
  %7 = alloca %"class.std::optional.24", align 8
  %8 = alloca %"class.std::optional.32", align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::optional.40", align 4
  %11 = alloca i32, align 4
  %12 = alloca %"struct.dali::QueueSizes", align 4
  %13 = alloca %"class.std::optional.56", align 1
  %14 = alloca %"class.std::optional.56", align 1
  %15 = alloca %"class.std::optional.62", align 8
  store ptr %1, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds %"struct.dali::PipelineParams", ptr %0, i32 0, i32 0
  call void @_ZNSt8optionalIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %16) #4
  %17 = getelementptr inbounds %"struct.dali::PipelineParams", ptr %0, i32 0, i32 1
  call void @_ZNSt8optionalIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %17) #4
  %18 = getelementptr inbounds %"struct.dali::PipelineParams", ptr %0, i32 0, i32 2
  call void @_ZNSt8optionalIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %18) #4
  %19 = getelementptr inbounds %"struct.dali::PipelineParams", ptr %0, i32 0, i32 3
  call void @_ZNSt8optionalIlEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #4
  %20 = getelementptr inbounds %"struct.dali::PipelineParams", ptr %0, i32 0, i32 4
  call void @_ZNSt8optionalIN4dali12ExecutorTypeEEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %20) #4
  %21 = getelementptr inbounds %"struct.dali::PipelineParams", ptr %0, i32 0, i32 5
  call void @_ZNSt8optionalIN4dali13ExecutorFlagsEEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %21) #4
  %22 = getelementptr inbounds %"struct.dali::PipelineParams", ptr %0, i32 0, i32 6
  call void @_ZNSt8optionalIN4dali10QueueSizesEEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %22) #4
  %23 = getelementptr inbounds %"struct.dali::PipelineParams", ptr %0, i32 0, i32 7
  call void @_ZNSt8optionalIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(2) %23) #4
  %24 = getelementptr inbounds %"struct.dali::PipelineParams", ptr %0, i32 0, i32 8
  call void @_ZNSt8optionalIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(2) %24) #4
  %25 = getelementptr inbounds %"struct.dali::PipelineParams", ptr %0, i32 0, i32 9
  call void @_ZNSt8optionalImEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #4
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct._DALIPipelineParams, ptr %26, i32 0, i32 0
  %28 = load i16, ptr %27, align 8
  %29 = and i16 %28, 1
  %30 = zext i16 %29 to i64
  %31 = icmp ne i64 %30, 0
  br i1 %31, label %32, label %36

32:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct._DALIPipelineParams, ptr %33, i32 0, i32 1
  call void @_ZNSt8optionalIiEC2IRKiTnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS0_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_IS6_ISt10in_place_tSD_EESt16is_constructibleIiJS9_EESt14is_convertibleIS9_iEEEbE4typeELb1EEEOS9_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %34) #4
  %35 = getelementptr inbounds %"struct.dali::PipelineParams", ptr %0, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %35, ptr align 4 %4, i64 8, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  br label %36

36:                                               ; preds = %32, %2
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct._DALIPipelineParams, ptr %37, i32 0, i32 0
  %39 = load i16, ptr %38, align 8
  %40 = lshr i16 %39, 1
  %41 = and i16 %40, 1
  %42 = zext i16 %41 to i64
  %43 = icmp ne i64 %42, 0
  br i1 %43, label %44, label %48

44:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct._DALIPipelineParams, ptr %45, i32 0, i32 2
  call void @_ZNSt8optionalIiEC2IRKiTnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS0_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_IS6_ISt10in_place_tSD_EESt16is_constructibleIiJS9_EESt14is_convertibleIS9_iEEEbE4typeELb1EEEOS9_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %46) #4
  %47 = getelementptr inbounds %"struct.dali::PipelineParams", ptr %0, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %47, ptr align 4 %5, i64 8, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %48

48:                                               ; preds = %44, %36
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct._DALIPipelineParams, ptr %49, i32 0, i32 0
  %51 = load i16, ptr %50, align 8
  %52 = lshr i16 %51, 2
  %53 = and i16 %52, 1
  %54 = zext i16 %53 to i64
  %55 = icmp ne i64 %54, 0
  br i1 %55, label %56, label %60

56:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct._DALIPipelineParams, ptr %57, i32 0, i32 3
  call void @_ZNSt8optionalIiEC2IRKiTnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS0_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_IS6_ISt10in_place_tSD_EESt16is_constructibleIiJS9_EESt14is_convertibleIS9_iEEEbE4typeELb1EEEOS9_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %58) #4
  %59 = getelementptr inbounds %"struct.dali::PipelineParams", ptr %0, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %59, ptr align 4 %6, i64 8, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %60

60:                                               ; preds = %56, %48
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct._DALIPipelineParams, ptr %61, i32 0, i32 0
  %63 = load i16, ptr %62, align 8
  %64 = lshr i16 %63, 3
  %65 = and i16 %64, 1
  %66 = zext i16 %65 to i64
  %67 = icmp ne i64 %66, 0
  br i1 %67, label %68, label %72

68:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #4
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct._DALIPipelineParams, ptr %69, i32 0, i32 4
  call void @_ZNSt8optionalIlEC2IRKlTnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS0_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_IS6_ISt10in_place_tSD_EESt16is_constructibleIlJS9_EESt14is_convertibleIS9_lEEEbE4typeELb1EEEOS9_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) %70) #4
  %71 = getelementptr inbounds %"struct.dali::PipelineParams", ptr %0, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %71, ptr align 8 %7, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #4
  br label %72

72:                                               ; preds = %68, %60
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct._DALIPipelineParams, ptr %73, i32 0, i32 0
  %75 = load i16, ptr %74, align 8
  %76 = lshr i16 %75, 4
  %77 = and i16 %76, 1
  %78 = zext i16 %77 to i64
  %79 = icmp ne i64 %78, 0
  br i1 %79, label %80, label %85

80:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct._DALIPipelineParams, ptr %81, i32 0, i32 5
  %83 = load i32, ptr %82, align 8, !tbaa !9
  store i32 %83, ptr %9, align 4, !tbaa !18
  call void @_ZNSt8optionalIN4dali12ExecutorTypeEEC2IS1_TnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS2_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_IS6_ISt10in_place_tSD_EESt16is_constructibleIS1_JS9_EESt14is_convertibleIS9_S1_EEEbE4typeELb1EEEOS9_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(4) %9) #4
  %84 = getelementptr inbounds %"struct.dali::PipelineParams", ptr %0, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %84, ptr align 4 %8, i64 8, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %85

85:                                               ; preds = %80, %72
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct._DALIPipelineParams, ptr %86, i32 0, i32 0
  %88 = load i16, ptr %87, align 8
  %89 = lshr i16 %88, 5
  %90 = and i16 %89, 1
  %91 = zext i16 %90 to i64
  %92 = icmp ne i64 %91, 0
  br i1 %92, label %93, label %98

93:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct._DALIPipelineParams, ptr %94, i32 0, i32 6
  %96 = load i32, ptr %95, align 4, !tbaa !20
  store i32 %96, ptr %11, align 4, !tbaa !21
  call void @_ZNSt8optionalIN4dali13ExecutorFlagsEEC2IS1_TnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS2_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_IS6_ISt10in_place_tSD_EESt16is_constructibleIS1_JS9_EESt14is_convertibleIS9_S1_EEEbE4typeELb1EEEOS9_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %11) #4
  %97 = getelementptr inbounds %"struct.dali::PipelineParams", ptr %0, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %97, ptr align 4 %10, i64 8, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %98

98:                                               ; preds = %93, %85
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct._DALIPipelineParams, ptr %99, i32 0, i32 0
  %101 = load i16, ptr %100, align 8
  %102 = lshr i16 %101, 6
  %103 = and i16 %102, 1
  %104 = zext i16 %103 to i64
  %105 = icmp ne i64 %104, 0
  br i1 %105, label %106, label %117

106:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct._DALIPipelineParams, ptr %107, i32 0, i32 7
  %109 = getelementptr inbounds %struct._DALIPrefetchQueueSizes, ptr %108, i32 0, i32 0
  %110 = load i32, ptr %109, align 8, !tbaa !23
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct._DALIPipelineParams, ptr %111, i32 0, i32 7
  %113 = getelementptr inbounds %struct._DALIPrefetchQueueSizes, ptr %112, i32 0, i32 1
  %114 = load i32, ptr %113, align 4, !tbaa !24
  call void @_ZN4dali10QueueSizesC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef %110, i32 noundef %114)
  %115 = getelementptr inbounds %"struct.dali::PipelineParams", ptr %0, i32 0, i32 6
  %116 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt8optionalIN4dali10QueueSizesEEaSIS1_EENSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS2_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_ISt6__and_IJSt9is_scalarIS1_ES6_IS1_NSt5decayIS9_E4typeEEEEESt16is_constructibleIS1_JS9_EESt13is_assignableIRS1_S9_EEERS2_E4typeEOS9_(ptr noundef nonnull align 4 dereferenceable(12) %115, ptr noundef nonnull align 4 dereferenceable(8) %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %117

117:                                              ; preds = %106, %98
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct._DALIPipelineParams, ptr %118, i32 0, i32 0
  %120 = load i16, ptr %119, align 8
  %121 = lshr i16 %120, 7
  %122 = and i16 %121, 1
  %123 = zext i16 %122 to i64
  %124 = icmp ne i64 %123, 0
  br i1 %124, label %125, label %129

125:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 2, ptr %13) #4
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct._DALIPipelineParams, ptr %126, i32 0, i32 8
  call void @_ZNSt8optionalIbEC2IRKbTnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS0_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_IS6_ISt10in_place_tSD_EESt16is_constructibleIbJS9_EESt14is_convertibleIS9_bEEEbE4typeELb1EEEOS9_(ptr noundef nonnull align 1 dereferenceable(2) %13, ptr noundef nonnull align 1 dereferenceable(1) %127) #4
  %128 = getelementptr inbounds %"struct.dali::PipelineParams", ptr %0, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %128, ptr align 1 %13, i64 2, i1 false)
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #4
  br label %129

129:                                              ; preds = %125, %117
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct._DALIPipelineParams, ptr %130, i32 0, i32 0
  %132 = load i16, ptr %131, align 8
  %133 = lshr i16 %132, 8
  %134 = and i16 %133, 1
  %135 = zext i16 %134 to i64
  %136 = icmp ne i64 %135, 0
  br i1 %136, label %137, label %141

137:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 2, ptr %14) #4
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct._DALIPipelineParams, ptr %138, i32 0, i32 9
  call void @_ZNSt8optionalIbEC2IRKbTnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS0_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_IS6_ISt10in_place_tSD_EESt16is_constructibleIbJS9_EESt14is_convertibleIS9_bEEEbE4typeELb1EEEOS9_(ptr noundef nonnull align 1 dereferenceable(2) %14, ptr noundef nonnull align 1 dereferenceable(1) %139) #4
  %140 = getelementptr inbounds %"struct.dali::PipelineParams", ptr %0, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %140, ptr align 1 %14, i64 2, i1 false)
  call void @llvm.lifetime.end.p0(i64 2, ptr %14) #4
  br label %141

141:                                              ; preds = %137, %129
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct._DALIPipelineParams, ptr %142, i32 0, i32 0
  %144 = load i16, ptr %143, align 8
  %145 = lshr i16 %144, 9
  %146 = and i16 %145, 1
  %147 = zext i16 %146 to i64
  %148 = icmp ne i64 %147, 0
  br i1 %148, label %149, label %153

149:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct._DALIPipelineParams, ptr %150, i32 0, i32 10
  call void @_ZNSt8optionalImEC2IRKmTnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS0_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_IS6_ISt10in_place_tSD_EESt16is_constructibleImJS9_EESt14is_convertibleIS9_mEEEbE4typeELb1EEEOS9_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(8) %151) #4
  %152 = getelementptr inbounds %"struct.dali::PipelineParams", ptr %0, i32 0, i32 9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %152, ptr align 8 %15, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  br label %153

153:                                              ; preds = %149, %141
  ret void
}

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt8optionalIlEC2IRKlTnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS0_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_IS6_ISt10in_place_tSD_EESt16is_constructibleIlJS9_EESt14is_convertibleIS9_lEEEbE4typeELb1EEEOS9_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali10QueueSizesC2Eii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt8optionalImEC2IRKmTnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS0_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_IS6_ISt10in_place_tSD_EESt16is_constructibleImJS9_EESt14is_convertibleIS9_mEEEbE4typeELb1EEEOS9_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !14, i64 32}
!10 = !{!"_ZTS19_DALIPipelineParams", !11, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !12, i64 24, !14, i64 32, !15, i64 36, !16, i64 40, !17, i64 48, !17, i64 49, !12, i64 56}
!11 = !{!"_ZTSN19_DALIPipelineParamsUt_E", !12, i64 0, !12, i64 0, !12, i64 0, !12, i64 0, !12, i64 0, !12, i64 0, !12, i64 0, !12, i64 0, !12, i64 1, !12, i64 1}
!12 = !{!"long", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS13_DALIExecType", !7, i64 0}
!15 = !{!"_ZTS14_DALIExecFlags", !7, i64 0}
!16 = !{!"_ZTS23_DALIPrefetchQueueSizes", !13, i64 0, !13, i64 4}
!17 = !{!"bool", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"_ZTSN4dali12ExecutorTypeE", !7, i64 0}
!20 = !{!10, !15, i64 36}
!21 = !{!22, !22, i64 0}
!22 = !{!"_ZTSN4dali13ExecutorFlagsE", !7, i64 0}
!23 = !{!10, !13, i64 40}
!24 = !{!10, !13, i64 44}


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

%"struct.dali::PipelineParams" = type { %"class.std::optional.16", %"class.std::optional.16", %"class.std::optional.16", %"class.std::optional.24", %"class.std::optional.32", %"class.std::optional.40", %"class.std::optional.48", %"class.std::optional.56", %"class.std::optional.56", %"class.std::optional.62" }
%"class.std::optional.16" = type { %"struct.std::_Optional_base.17" }
%"struct.std::_Optional_base.17" = type { %"struct.std::_Optional_payload.19" }
%"struct.std::_Optional_payload.19" = type { %"struct.std::_Optional_payload_base.base.21", [3 x i8] }
%"struct.std::_Optional_payload_base.base.21" = type <{ %"union.std::_Optional_payload_base<int>::_Storage", i8 }>
%"union.std::_Optional_payload_base<int>::_Storage" = type { i32 }
%"class.std::optional.24" = type { %"struct.std::_Optional_base.25" }
%"struct.std::_Optional_base.25" = type { %"struct.std::_Optional_payload.27" }
%"struct.std::_Optional_payload.27" = type { %"struct.std::_Optional_payload_base.base.29", [7 x i8] }
%"struct.std::_Optional_payload_base.base.29" = type <{ %"union.std::_Optional_payload_base<long>::_Storage", i8 }>
%"union.std::_Optional_payload_base<long>::_Storage" = type { i64 }
%"class.std::optional.32" = type { %"struct.std::_Optional_base.33" }
%"struct.std::_Optional_base.33" = type { %"struct.std::_Optional_payload.35" }
%"struct.std::_Optional_payload.35" = type { %"struct.std::_Optional_payload_base.base.37", [3 x i8] }
%"struct.std::_Optional_payload_base.base.37" = type <{ %"union.std::_Optional_payload_base<dali::ExecutorType>::_Storage", i8 }>
%"union.std::_Optional_payload_base<dali::ExecutorType>::_Storage" = type { i32 }
%"class.std::optional.40" = type { %"struct.std::_Optional_base.41" }
%"struct.std::_Optional_base.41" = type { %"struct.std::_Optional_payload.43" }
%"struct.std::_Optional_payload.43" = type { %"struct.std::_Optional_payload_base.base.45", [3 x i8] }
%"struct.std::_Optional_payload_base.base.45" = type <{ %"union.std::_Optional_payload_base<dali::ExecutorFlags>::_Storage", i8 }>
%"union.std::_Optional_payload_base<dali::ExecutorFlags>::_Storage" = type { i32 }
%"class.std::optional.48" = type { %"struct.std::_Optional_base.49" }
%"struct.std::_Optional_base.49" = type { %"struct.std::_Optional_payload.51" }
%"struct.std::_Optional_payload.51" = type { %"struct.std::_Optional_payload_base.base.53", [3 x i8] }
%"struct.std::_Optional_payload_base.base.53" = type <{ %"union.std::_Optional_payload_base<dali::QueueSizes>::_Storage", i8 }>
%"union.std::_Optional_payload_base<dali::QueueSizes>::_Storage" = type { %"struct.dali::QueueSizes" }
%"struct.dali::QueueSizes" = type { i32, i32 }
%"class.std::optional.56" = type { %"struct.std::_Optional_base.57" }
%"struct.std::_Optional_base.57" = type { %"struct.std::_Optional_payload.59" }
%"struct.std::_Optional_payload.59" = type { %"struct.std::_Optional_payload_base.60" }
%"struct.std::_Optional_payload_base.60" = type { %"union.std::_Optional_payload_base<bool>::_Storage", i8 }
%"union.std::_Optional_payload_base<bool>::_Storage" = type { %"struct.std::_Optional_payload_base<bool>::_Empty_byte" }
%"struct.std::_Optional_payload_base<bool>::_Empty_byte" = type { i8 }
%"class.std::optional.62" = type { %"struct.std::_Optional_base.63" }
%"struct.std::_Optional_base.63" = type { %"struct.std::_Optional_payload.65" }
%"struct.std::_Optional_payload.65" = type { %"struct.std::_Optional_payload_base.base.67", [7 x i8] }
%"struct.std::_Optional_payload_base.base.67" = type <{ %"union.std::_Optional_payload_base<unsigned long>::_Storage", i8 }>
%"union.std::_Optional_payload_base<unsigned long>::_Storage" = type { i64 }

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4dali5c_api11ToCppParamsERK19_DALIPipelineParams(ptr dead_on_unwind noalias nonnull writable sret(%"struct.dali::PipelineParams") align 8 %0, ptr noundef nonnull align 8 dereferenceable(64) %1) local_unnamed_addr #1 {
  %3 = alloca %"class.std::optional.16", align 8
  %4 = alloca %"class.std::optional.16", align 8
  %5 = alloca %"class.std::optional.16", align 8
  %6 = alloca %"class.std::optional.24", align 8
  %7 = alloca %"class.std::optional.32", align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::optional.40", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"struct.dali::QueueSizes", align 4
  %12 = alloca %"class.std::optional.56", align 2
  %13 = alloca %"class.std::optional.56", align 2
  %14 = alloca %"class.std::optional.62", align 8
  tail call void @_ZNSt8optionalIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %0) #3
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZNSt8optionalIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %15) #3
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @_ZNSt8optionalIiEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %16) #3
  %17 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZNSt8optionalIlEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #3
  %18 = getelementptr inbounds i8, ptr %0, i64 40
  tail call void @_ZNSt8optionalIN4dali12ExecutorTypeEEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %18) #3
  %19 = getelementptr inbounds i8, ptr %0, i64 48
  tail call void @_ZNSt8optionalIN4dali13ExecutorFlagsEEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %19) #3
  %20 = getelementptr inbounds i8, ptr %0, i64 56
  tail call void @_ZNSt8optionalIN4dali10QueueSizesEEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %20) #3
  %21 = getelementptr inbounds i8, ptr %0, i64 68
  tail call void @_ZNSt8optionalIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(2) %21) #3
  %22 = getelementptr inbounds i8, ptr %0, i64 70
  tail call void @_ZNSt8optionalIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(2) %22) #3
  %23 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @_ZNSt8optionalImEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #3
  %24 = load i16, ptr %1, align 8
  %25 = and i16 %24, 1
  %.not = icmp eq i16 %25, 0
  br i1 %.not, label %29, label %26

26:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %27 = getelementptr inbounds i8, ptr %1, i64 8
  call void @_ZNSt8optionalIiEC2IRKiTnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS0_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_IS6_ISt10in_place_tSD_EESt16is_constructibleIiJS9_EESt14is_convertibleIS9_iEEEbE4typeELb1EEEOS9_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %27) #3
  %28 = load i64, ptr %3, align 8
  store i64 %28, ptr %0, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  %.pre = load i16, ptr %1, align 8
  br label %29

29:                                               ; preds = %26, %2
  %30 = phi i16 [ %.pre, %26 ], [ %24, %2 ]
  %31 = and i16 %30, 2
  %.not21 = icmp eq i16 %31, 0
  br i1 %.not21, label %35, label %32

32:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %33 = getelementptr inbounds i8, ptr %1, i64 12
  call void @_ZNSt8optionalIiEC2IRKiTnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS0_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_IS6_ISt10in_place_tSD_EESt16is_constructibleIiJS9_EESt14is_convertibleIS9_iEEEbE4typeELb1EEEOS9_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %33) #3
  %34 = load i64, ptr %4, align 8
  store i64 %34, ptr %15, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  %.pre30 = load i16, ptr %1, align 8
  br label %35

35:                                               ; preds = %32, %29
  %36 = phi i16 [ %.pre30, %32 ], [ %30, %29 ]
  %37 = and i16 %36, 4
  %.not22 = icmp eq i16 %37, 0
  br i1 %.not22, label %41, label %38

38:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %39 = getelementptr inbounds i8, ptr %1, i64 16
  call void @_ZNSt8optionalIiEC2IRKiTnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS0_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_IS6_ISt10in_place_tSD_EESt16is_constructibleIiJS9_EESt14is_convertibleIS9_iEEEbE4typeELb1EEEOS9_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %39) #3
  %40 = load i64, ptr %5, align 8
  store i64 %40, ptr %16, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  %.pre31 = load i16, ptr %1, align 8
  br label %41

41:                                               ; preds = %38, %35
  %42 = phi i16 [ %.pre31, %38 ], [ %36, %35 ]
  %43 = and i16 %42, 8
  %.not23 = icmp eq i16 %43, 0
  br i1 %.not23, label %46, label %44

44:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #3
  %45 = getelementptr inbounds i8, ptr %1, i64 24
  call void @_ZNSt8optionalIlEC2IRKlTnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS0_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_IS6_ISt10in_place_tSD_EESt16is_constructibleIlJS9_EESt14is_convertibleIS9_lEEEbE4typeELb1EEEOS9_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) %45) #3
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %6, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #3
  %.pre32 = load i16, ptr %1, align 8
  br label %46

46:                                               ; preds = %44, %41
  %47 = phi i16 [ %.pre32, %44 ], [ %42, %41 ]
  %48 = and i16 %47, 16
  %.not24 = icmp eq i16 %48, 0
  br i1 %.not24, label %53, label %49

49:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #3
  %50 = getelementptr inbounds i8, ptr %1, i64 32
  %51 = load i32, ptr %50, align 8, !tbaa !5
  store i32 %51, ptr %8, align 4, !tbaa !16
  call void @_ZNSt8optionalIN4dali12ExecutorTypeEEC2IS1_TnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS2_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_IS6_ISt10in_place_tSD_EESt16is_constructibleIS1_JS9_EESt14is_convertibleIS9_S1_EEEbE4typeELb1EEEOS9_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %8) #3
  %52 = load i64, ptr %7, align 8
  store i64 %52, ptr %18, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  %.pre33 = load i16, ptr %1, align 8
  br label %53

53:                                               ; preds = %49, %46
  %54 = phi i16 [ %.pre33, %49 ], [ %47, %46 ]
  %55 = and i16 %54, 32
  %.not25 = icmp eq i16 %55, 0
  br i1 %.not25, label %60, label %56

56:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #3
  %57 = getelementptr inbounds i8, ptr %1, i64 36
  %58 = load i32, ptr %57, align 4, !tbaa !18
  store i32 %58, ptr %10, align 4, !tbaa !19
  call void @_ZNSt8optionalIN4dali13ExecutorFlagsEEC2IS1_TnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS2_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_IS6_ISt10in_place_tSD_EESt16is_constructibleIS1_JS9_EESt14is_convertibleIS9_S1_EEEbE4typeELb1EEEOS9_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %10) #3
  %59 = load i64, ptr %9, align 8
  store i64 %59, ptr %19, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  %.pre34 = load i16, ptr %1, align 8
  br label %60

60:                                               ; preds = %56, %53
  %61 = phi i16 [ %.pre34, %56 ], [ %54, %53 ]
  %62 = and i16 %61, 64
  %.not26 = icmp eq i16 %62, 0
  br i1 %.not26, label %69, label %63

63:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #3
  %64 = getelementptr inbounds i8, ptr %1, i64 40
  %65 = load i32, ptr %64, align 8, !tbaa !21
  %66 = getelementptr inbounds i8, ptr %1, i64 44
  %67 = load i32, ptr %66, align 4, !tbaa !22
  call void @_ZN4dali10QueueSizesC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %11, i32 noundef %65, i32 noundef %67)
  %68 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt8optionalIN4dali10QueueSizesEEaSIS1_EENSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS2_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_ISt6__and_IJSt9is_scalarIS1_ES6_IS1_NSt5decayIS9_E4typeEEEEESt16is_constructibleIS1_JS9_EESt13is_assignableIRS1_S9_EEERS2_E4typeEOS9_(ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(8) %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #3
  %.pre35 = load i16, ptr %1, align 8
  br label %69

69:                                               ; preds = %63, %60
  %70 = phi i16 [ %.pre35, %63 ], [ %61, %60 ]
  %71 = and i16 %70, 128
  %.not27 = icmp eq i16 %71, 0
  br i1 %.not27, label %75, label %72

72:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %12) #3
  %73 = getelementptr inbounds i8, ptr %1, i64 48
  call void @_ZNSt8optionalIbEC2IRKbTnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS0_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_IS6_ISt10in_place_tSD_EESt16is_constructibleIbJS9_EESt14is_convertibleIS9_bEEEbE4typeELb1EEEOS9_(ptr noundef nonnull align 1 dereferenceable(2) %12, ptr noundef nonnull align 1 dereferenceable(1) %73) #3
  %74 = load i16, ptr %12, align 2
  store i16 %74, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %12) #3
  %.pre36 = load i16, ptr %1, align 8
  br label %75

75:                                               ; preds = %72, %69
  %76 = phi i16 [ %.pre36, %72 ], [ %70, %69 ]
  %77 = and i16 %76, 256
  %.not28 = icmp eq i16 %77, 0
  br i1 %.not28, label %81, label %78

78:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %13) #3
  %79 = getelementptr inbounds i8, ptr %1, i64 49
  call void @_ZNSt8optionalIbEC2IRKbTnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS0_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_IS6_ISt10in_place_tSD_EESt16is_constructibleIbJS9_EESt14is_convertibleIS9_bEEEbE4typeELb1EEEOS9_(ptr noundef nonnull align 1 dereferenceable(2) %13, ptr noundef nonnull align 1 dereferenceable(1) %79) #3
  %80 = load i16, ptr %13, align 2
  store i16 %80, ptr %22, align 2
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %13) #3
  %.pre37 = load i16, ptr %1, align 8
  br label %81

81:                                               ; preds = %78, %75
  %82 = phi i16 [ %.pre37, %78 ], [ %76, %75 ]
  %83 = and i16 %82, 512
  %.not29 = icmp eq i16 %83, 0
  br i1 %.not29, label %86, label %84

84:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #3
  %85 = getelementptr inbounds i8, ptr %1, i64 56
  call void @_ZNSt8optionalImEC2IRKmTnNSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS0_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_IS6_ISt10in_place_tSD_EESt16is_constructibleImJS9_EESt14is_convertibleIS9_mEEEbE4typeELb1EEEOS9_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(8) %85) #3
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %14, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #3
  br label %86

86:                                               ; preds = %84, %81
  ret void
}

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali10QueueSizesC2Eii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt8optionalIN4dali10QueueSizesEEaSIS1_EENSt9enable_ifIX7__and_vISt6__not_ISt7is_sameIS2_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES5_ISt6__and_IJSt9is_scalarIS1_ES6_IS1_NSt5decayIS9_E4typeEEEEESt16is_constructibleIS1_JS9_EESt13is_assignableIRS1_S9_EEERS2_E4typeEOS9_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !12, i64 32}
!6 = !{!"_ZTS19_DALIPipelineParams", !7, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !8, i64 24, !12, i64 32, !13, i64 36, !14, i64 40, !15, i64 48, !15, i64 49, !8, i64 56}
!7 = !{!"_ZTSN19_DALIPipelineParamsUt_E", !8, i64 0, !8, i64 0, !8, i64 0, !8, i64 0, !8, i64 0, !8, i64 0, !8, i64 0, !8, i64 0, !8, i64 1, !8, i64 1}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"_ZTS13_DALIExecType", !9, i64 0}
!13 = !{!"_ZTS14_DALIExecFlags", !9, i64 0}
!14 = !{!"_ZTS23_DALIPrefetchQueueSizes", !11, i64 0, !11, i64 4}
!15 = !{!"bool", !9, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"_ZTSN4dali12ExecutorTypeE", !9, i64 0}
!18 = !{!6, !13, i64 36}
!19 = !{!20, !20, i64 0}
!20 = !{!"_ZTSN4dali13ExecutorFlagsE", !9, i64 0}
!21 = !{!6, !11, i64 40}
!22 = !{!6, !11, i64 44}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,TailCallElimPass