; LLVM IR from NVIDIA/DALI :: dali/operators/decoder/jpeg (jpeg_mem)

; 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::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.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.dali::jpeg::(anonymous namespace)::FewerArgsForCompiler" = type { i32, %"struct.dali::jpeg::UncompressFlags", i32, i32, i32 }
%"struct.dali::jpeg::UncompressFlags" = type { i32, i32, i8, i8, float, i32, i32, i32, i8, i32, i32, i32, i32 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali4jpeg10UncompressEPKviRKNS0_15UncompressFlagsE(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8 %0, ptr noundef %1, i32 noundef %2, ptr noundef nonnull align 4 dereferenceable(48) %3) #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %"class.dali::jpeg::(anonymous namespace)::FewerArgsForCompiler", align 4
  %10 = alloca %"class.std::unique_ptr", align 8
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #5
  %19 = load i32, ptr %7, align 4, !tbaa !9
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN4dali4jpeg12_GLOBAL__N_120FewerArgsForCompilerC2EiRKNS0_15UncompressFlagsE(ptr noundef nonnull align 4 dereferenceable(64) %9, i32 noundef %19, ptr noundef nonnull align 4 dereferenceable(48) %20)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4dali4jpeg12_GLOBAL__N_113UncompressLowEPKvPNS1_20FewerArgsForCompilerE(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %10, ptr noundef %21, ptr noundef %9)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %22 = getelementptr inbounds %"class.dali::jpeg::(anonymous namespace)::FewerArgsForCompiler", ptr %9, i32 0, i32 3
  %23 = load i32, ptr %22, align 4, !tbaa !11
  %24 = icmp eq i32 %23, 0
  br i1 %24, label %25, label %26

25:                                               ; preds = %4
  br label %35

26:                                               ; preds = %4
  %27 = getelementptr inbounds %"class.dali::jpeg::(anonymous namespace)::FewerArgsForCompiler", ptr %9, i32 0, i32 2
  %28 = load i32, ptr %27, align 4, !tbaa !18
  %29 = sitofp i32 %28 to float
  %30 = getelementptr inbounds %"class.dali::jpeg::(anonymous namespace)::FewerArgsForCompiler", ptr %9, i32 0, i32 3
  %31 = load i32, ptr %30, align 4, !tbaa !11
  %32 = sitofp i32 %31 to float
  %33 = fdiv float %29, %32
  %34 = fpext float %33 to double
  br label %35

35:                                               ; preds = %26, %25
  %36 = phi double [ 1.000000e+00, %25 ], [ %34, %26 ]
  %37 = fptrunc double %36 to float
  store float %37, ptr %11, align 4, !tbaa !19
  %38 = call noundef zeroext i1 @_ZSteqIA_hSt14default_deleteIS0_EEbRKSt10unique_ptrIT_T0_EDn(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr null) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  br i1 %38, label %47, label %39

39:                                               ; preds = %35
  %40 = load float, ptr %11, align 4, !tbaa !19
  store float 1.000000e+00, ptr %12, align 4, !tbaa !19
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.dali::jpeg::UncompressFlags", ptr %41, i32 0, i32 4
  %43 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %42)
          to label %44 unwind label %50

44:                                               ; preds = %39
  %45 = load float, ptr %43, align 4, !tbaa !19
  %46 = fcmp olt float %40, %45
  br label %47

47:                                               ; preds = %44, %35
  %48 = phi i1 [ true, %35 ], [ %46, %44 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br i1 %48, label %49, label %54

49:                                               ; preds = %47
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EEC2IS2_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr null) #5
  store i32 1, ptr %15, align 4
  br label %81

50:                                               ; preds = %39
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %13, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #5
  br label %82

54:                                               ; preds = %47
  %55 = getelementptr inbounds %"class.dali::jpeg::(anonymous namespace)::FewerArgsForCompiler", ptr %9, i32 0, i32 2
  %56 = load i32, ptr %55, align 4, !tbaa !18
  %57 = getelementptr inbounds %"class.dali::jpeg::(anonymous namespace)::FewerArgsForCompiler", ptr %9, i32 0, i32 3
  %58 = load i32, ptr %57, align 4, !tbaa !11
  %59 = icmp ne i32 %56, %58
  br i1 %59, label %60, label %80

60:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %61 = getelementptr inbounds %"class.dali::jpeg::(anonymous namespace)::FewerArgsForCompiler", ptr %9, i32 0, i32 2
  %62 = load i32, ptr %61, align 4, !tbaa !18
  store i32 %62, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %63 = call noundef ptr @_ZNKSt10unique_ptrIA_hSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  %64 = load i32, ptr %16, align 4, !tbaa !9
  %65 = getelementptr inbounds %"class.dali::jpeg::(anonymous namespace)::FewerArgsForCompiler", ptr %9, i32 0, i32 4
  %66 = load i32, ptr %65, align 4, !tbaa !20
  %67 = mul nsw i32 %64, %66
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds i8, ptr %63, i64 %68
  store ptr %69, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %70 = getelementptr inbounds %"class.dali::jpeg::(anonymous namespace)::FewerArgsForCompiler", ptr %9, i32 0, i32 3
  %71 = load i32, ptr %70, align 4, !tbaa !11
  %72 = load i32, ptr %16, align 4, !tbaa !9
  %73 = sub nsw i32 %71, %72
  %74 = getelementptr inbounds %"class.dali::jpeg::(anonymous namespace)::FewerArgsForCompiler", ptr %9, i32 0, i32 4
  %75 = load i32, ptr %74, align 4, !tbaa !20
  %76 = mul nsw i32 %73, %75
  store i32 %76, ptr %18, align 4, !tbaa !9
  %77 = load ptr, ptr %17, align 8, !tbaa !5
  %78 = load i32, ptr %18, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %77, i8 0, i64 %79, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %80

80:                                               ; preds = %60, %54
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EEC2EOS3_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  store i32 1, ptr %15, align 4
  br label %81

81:                                               ; preds = %80, %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #5
  ret void

82:                                               ; preds = %50
  %83 = load ptr, ptr %13, align 8
  %84 = load i32, ptr %14, align 4
  %85 = insertvalue { ptr, i32 } poison, ptr %83, 0
  %86 = insertvalue { ptr, i32 } %85, i32 %84, 1
  resume { ptr, i32 } %86
}

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN4dali4jpeg12_GLOBAL__N_120FewerArgsForCompilerC2EiRKNS0_15UncompressFlagsE(ptr noundef nonnull align 4 dereferenceable(64), i32 noundef, ptr noundef nonnull align 4 dereferenceable(48)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4dali4jpeg12_GLOBAL__N_113UncompressLowEPKvPNS1_20FewerArgsForCompilerE(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8, ptr noundef, ptr noundef) #0

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

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

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) #1

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 56}
!12 = !{!"_ZTSN4dali4jpeg12_GLOBAL__N_120FewerArgsForCompilerE", !10, i64 0, !13, i64 4, !10, i64 52, !10, i64 56, !10, i64 60}
!13 = !{!"_ZTSN4dali4jpeg15UncompressFlagsE", !10, i64 0, !10, i64 4, !14, i64 8, !14, i64 9, !15, i64 12, !10, i64 16, !16, i64 20, !17, i64 24, !14, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!"_ZTS12J_DCT_METHOD", !7, i64 0}
!17 = !{!"_ZTSN4dali13DALIImageTypeE", !7, i64 0}
!18 = !{!12, !10, i64 52}
!19 = !{!15, !15, i64 0}
!20 = !{!12, !10, i64 60}


; 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::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.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.dali::jpeg::(anonymous namespace)::FewerArgsForCompiler" = type { i32, %"struct.dali::jpeg::UncompressFlags", i32, i32, i32 }
%"struct.dali::jpeg::UncompressFlags" = type { i32, i32, i8, i8, float, i32, i32, i32, i8, i32, i32, i32, i32 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali4jpeg10UncompressEPKviRKNS0_15UncompressFlagsE(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8 %0, ptr noundef %1, i32 noundef %2, ptr noundef nonnull align 4 dereferenceable(48) %3) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.dali::jpeg::(anonymous namespace)::FewerArgsForCompiler", align 4
  %6 = alloca %"class.std::unique_ptr", align 8
  %7 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #5
  call void @_ZN4dali4jpeg12_GLOBAL__N_120FewerArgsForCompilerC2EiRKNS0_15UncompressFlagsE(ptr noundef nonnull align 4 dereferenceable(64) %5, i32 noundef %2, ptr noundef nonnull align 4 dereferenceable(48) %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @_ZN4dali4jpeg12_GLOBAL__N_113UncompressLowEPKvPNS1_20FewerArgsForCompilerE(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %6, ptr noundef %1, ptr noundef nonnull %5)
  %8 = getelementptr inbounds i8, ptr %5, i64 56
  %9 = getelementptr inbounds i8, ptr %5, i64 52
  %10 = load <2 x i32>, ptr %9, align 4
  %11 = call noundef zeroext i1 @_ZSteqIA_hSt14default_deleteIS0_EEbRKSt10unique_ptrIT_T0_EDn(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr null) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  br i1 %11, label %.critedge, label %12

12:                                               ; preds = %4
  %13 = extractelement <2 x i32> %10, i64 1
  %14 = icmp eq i32 %13, 0
  %15 = sitofp <2 x i32> %10 to <2 x float>
  %16 = extractelement <2 x float> %15, i64 0
  %17 = extractelement <2 x float> %15, i64 1
  %18 = fdiv float %16, %17
  %19 = select i1 %14, float 1.000000e+00, float %18
  store float 1.000000e+00, ptr %7, align 4, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %3, i64 12
  %21 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %22 = load float, ptr %21, align 4, !tbaa !5
  %23 = fcmp olt float %19, %22
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  br i1 %23, label %24, label %25

.critedge:                                        ; preds = %4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  br label %24

24:                                               ; preds = %.critedge, %12
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EEC2IS2_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr null) #5
  br label %40

25:                                               ; preds = %12
  %26 = load i32, ptr %9, align 4, !tbaa !9
  %27 = load i32, ptr %8, align 4, !tbaa !16
  %.not = icmp eq i32 %26, %27
  br i1 %.not, label %39, label %28

28:                                               ; preds = %25
  %29 = call noundef ptr @_ZNKSt10unique_ptrIA_hSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %30 = getelementptr inbounds i8, ptr %5, i64 60
  %31 = load i32, ptr %30, align 4, !tbaa !17
  %32 = mul nsw i32 %31, %26
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds i8, ptr %29, i64 %33
  %35 = load i32, ptr %8, align 4, !tbaa !16
  %36 = sub nsw i32 %35, %26
  %37 = mul nsw i32 %36, %31
  %38 = sext i32 %37 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %34, i8 0, i64 %38, i1 false)
  br label %39

39:                                               ; preds = %28, %25
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EEC2EOS3_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br label %40

40:                                               ; preds = %39, %24
  call void @_ZNSt10unique_ptrIA_hSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #5
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN4dali4jpeg12_GLOBAL__N_120FewerArgsForCompilerC2EiRKNS0_15UncompressFlagsE(ptr noundef nonnull align 4 dereferenceable(64), i32 noundef, ptr noundef nonnull align 4 dereferenceable(48)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4dali4jpeg12_GLOBAL__N_113UncompressLowEPKvPNS1_20FewerArgsForCompilerE(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8, ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

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) #1

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

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

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 52}
!10 = !{!"_ZTSN4dali4jpeg12_GLOBAL__N_120FewerArgsForCompilerE", !11, i64 0, !12, i64 4, !11, i64 52, !11, i64 56, !11, i64 60}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSN4dali4jpeg15UncompressFlagsE", !11, i64 0, !11, i64 4, !13, i64 8, !13, i64 9, !6, i64 12, !11, i64 16, !14, i64 20, !15, i64 24, !13, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTS12J_DCT_METHOD", !7, i64 0}
!15 = !{!"_ZTSN4dali13DALIImageTypeE", !7, i64 0}
!16 = !{!10, !11, i64 56}
!17 = !{!10, !11, i64 60}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass