; LLVM IR from microsoft/winget-cli :: src/SfsClient/sfs-client/client/src (File)

; 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.SFS::Result" = type { i32, %"class.std::__cxx11::basic_string" }
%"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] }
%"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.6" }
%"struct.std::_Head_base.6" = type { ptr }

@_ZTISt9bad_alloc = external constant ptr
@_ZTIN3SFS7details12SFSExceptionE = external constant ptr
@_ZTISt9exception = external constant ptr

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN3SFS4File4MakeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_mSt13unordered_mapINS_8HashTypeES6_St4hashIS8_ESt8equal_toIS8_ESaISt4pairIKS8_S6_EEERSt10unique_ptrIS0_St14default_deleteIS0_EE(ptr dead_on_unwind noalias writable sret(%"class.SFS::Result") align 8 %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #0 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.std::unique_ptr", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  store ptr %0, ptr %7, align 8
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i64 %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  %19 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZNSt10unique_ptrIN3SFS4FileESt14default_deleteIS1_EE5resetEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef null) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %20 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 128) #9
          to label %21 unwind label %26

21:                                               ; preds = %6
  %22 = load i64, ptr %10, align 8, !tbaa !9
  invoke void @_ZN3SFS4FileC1EONSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_mOSt13unordered_mapINS_8HashTypeES6_St4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_S6_EEE(ptr noundef nonnull align 8 dereferenceable(128) %20, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %22, ptr noundef nonnull align 8 dereferenceable(56) %4)
          to label %23 unwind label %30

23:                                               ; preds = %21
  call void @_ZNSt10unique_ptrIN3SFS4FileESt14default_deleteIS1_EEC2IS3_vEEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef %20) #8
  %24 = load ptr, ptr %12, align 8, !tbaa !5
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3SFS4FileESt14default_deleteIS1_EEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  call void @_ZN3SFS6ResultC1ENS0_4CodeE(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 0) #8
  call void @_ZNSt10unique_ptrIN3SFS4FileESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %65

26:                                               ; preds = %6
  %27 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9bad_alloc
          catch ptr @_ZTIN3SFS7details12SFSExceptionE
          catch ptr @_ZTISt9exception
          catch ptr null
  %28 = extractvalue { ptr, i32 } %27, 0
  store ptr %28, ptr %14, align 8
  %29 = extractvalue { ptr, i32 } %27, 1
  store i32 %29, ptr %15, align 4
  br label %34

30:                                               ; preds = %21
  %31 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9bad_alloc
          catch ptr @_ZTIN3SFS7details12SFSExceptionE
          catch ptr @_ZTISt9exception
          catch ptr null
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %14, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %15, align 4
  call void @_ZdlPvm(ptr noundef %20, i64 noundef 128) #10
  br label %34

34:                                               ; preds = %30, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %35

35:                                               ; preds = %34
  %36 = load i32, ptr %15, align 4
  %37 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9bad_alloc) #8
  %38 = icmp eq i32 %36, %37
  br i1 %38, label %39, label %42

39:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %40 = load ptr, ptr %14, align 8
  %41 = call ptr @__cxa_begin_catch(ptr %40) #8
  store ptr %41, ptr %18, align 8
  call void @_ZN3SFS6ResultC1ENS0_4CodeE(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef -2147483644) #8
  invoke void @__cxa_end_catch()
          to label %63 unwind label %66

42:                                               ; preds = %35
  %43 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTIN3SFS7details12SFSExceptionE) #8
  %44 = icmp eq i32 %36, %43
  br i1 %44, label %45, label %51

45:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %46 = load ptr, ptr %14, align 8
  %47 = call ptr @__cxa_begin_catch(ptr %46) #8
  store ptr %47, ptr %17, align 8
  %48 = load ptr, ptr %17, align 8, !tbaa !5
  %49 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3SFS7details12SFSException9GetResultEv(ptr noundef nonnull align 8 dereferenceable(48) %48) #8
  invoke void @_ZN3SFS6ResultC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(40) %49)
          to label %50 unwind label %66

50:                                               ; preds = %45
  invoke void @__cxa_end_catch()
          to label %62 unwind label %66

51:                                               ; preds = %42
  %52 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #8
  %53 = icmp eq i32 %36, %52
  br i1 %53, label %54, label %57

54:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %55 = load ptr, ptr %14, align 8
  %56 = call ptr @__cxa_begin_catch(ptr %55) #8
  store ptr %56, ptr %16, align 8
  call void @_ZN3SFS6ResultC1ENS0_4CodeE(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef -2147483643) #8
  invoke void @__cxa_end_catch()
          to label %61 unwind label %66

57:                                               ; preds = %51
  %58 = load ptr, ptr %14, align 8
  %59 = call ptr @__cxa_begin_catch(ptr %58) #8
  call void @_ZN3SFS6ResultC1ENS0_4CodeE(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef -2147483643) #8
  invoke void @__cxa_end_catch()
          to label %60 unwind label %66

60:                                               ; preds = %57
  br label %65

61:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %65

62:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %65

63:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %65

64:                                               ; No predecessors!
  unreachable

65:                                               ; preds = %63, %62, %61, %60, %23
  ret void

66:                                               ; preds = %57, %54, %50, %45, %39
  %67 = landingpad { ptr, i32 }
          catch ptr null
  %68 = extractvalue { ptr, i32 } %67, 0
  call void @__clang_call_terminate(ptr %68) #11
  unreachable
}

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #3

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

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

; Function Attrs: nounwind
declare void @_ZN3SFS6ResultC1ENS0_4CodeE(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) unnamed_addr #4

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

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

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

declare ptr @__cxa_begin_catch(ptr)

declare void @__cxa_end_catch()

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

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3SFS7details12SFSException9GetResultEv(ptr noundef nonnull align 8 dereferenceable(48)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3SFS6ResultC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #7 align 2

declare void @_ZN3SFS4FileC1EONSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_mOSt13unordered_mapINS_8HashTypeES6_St4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_S6_EEE(ptr, ptr, ptr, i64, ptr)

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nobuiltin allocsize(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 = { nobuiltin nounwind "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 = { nounwind "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 = { nounwind memory(none) }
attributes #6 = { noinline noreturn nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin nounwind }
attributes #11 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}


; 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.SFS::Result" = type { i32, %"class.std::__cxx11::basic_string" }
%"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] }
%"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.6" }
%"struct.std::_Head_base.6" = type { ptr }

@_ZTISt9bad_alloc = external constant ptr
@_ZTIN3SFS7details12SFSExceptionE = external constant ptr
@_ZTISt9exception = external constant ptr

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN3SFS4File4MakeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_mSt13unordered_mapINS_8HashTypeES6_St4hashIS8_ESt8equal_toIS8_ESaISt4pairIKS8_S6_EEERSt10unique_ptrIS0_St14default_deleteIS0_EE(ptr dead_on_unwind noalias writable sret(%"class.SFS::Result") align 8 %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef nonnull align 8 dereferenceable(8) %5) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.std::unique_ptr", align 8
  tail call void @_ZNSt10unique_ptrIN3SFS4FileESt14default_deleteIS1_EE5resetEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef null) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %8 = invoke noalias noundef nonnull dereferenceable(128) ptr @_Znwm(i64 noundef 128) #9
          to label %9 unwind label %12

9:                                                ; preds = %6
  invoke void @_ZN3SFS4FileC1EONSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_mOSt13unordered_mapINS_8HashTypeES6_St4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_S6_EEE(ptr noundef nonnull align 8 dereferenceable(128) %8, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %3, ptr noundef nonnull align 8 dereferenceable(56) %4)
          to label %10 unwind label %14

10:                                               ; preds = %9
  call void @_ZNSt10unique_ptrIN3SFS4FileESt14default_deleteIS1_EEC2IS3_vEEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull %8) #8
  %11 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN3SFS4FileESt14default_deleteIS1_EEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @_ZN3SFS6ResultC1ENS0_4CodeE(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef 0) #8
  call void @_ZNSt10unique_ptrIN3SFS4FileESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %28

12:                                               ; preds = %6
  %13 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9bad_alloc
          catch ptr @_ZTIN3SFS7details12SFSExceptionE
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %16

14:                                               ; preds = %9
  %15 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9bad_alloc
          catch ptr @_ZTIN3SFS7details12SFSExceptionE
          catch ptr @_ZTISt9exception
          catch ptr null
  tail call void @_ZdlPvm(ptr noundef nonnull %8, i64 noundef 128) #10
  br label %16

16:                                               ; preds = %14, %12
  %.pn = phi { ptr, i32 } [ %15, %14 ], [ %13, %12 ]
  %.0 = extractvalue { ptr, i32 } %.pn, 0
  %.08 = extractvalue { ptr, i32 } %.pn, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  %17 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9bad_alloc) #8
  %18 = icmp eq i32 %.08, %17
  br i1 %18, label %.invoke.sink.split, label %19

19:                                               ; preds = %16
  %20 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTIN3SFS7details12SFSExceptionE) #8
  %21 = icmp eq i32 %.08, %20
  br i1 %21, label %22, label %25

22:                                               ; preds = %19
  %23 = tail call ptr @__cxa_begin_catch(ptr %.0) #8
  %24 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3SFS7details12SFSException9GetResultEv(ptr noundef nonnull align 8 dereferenceable(48) %23) #8
  invoke void @_ZN3SFS6ResultC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(40) %24)
          to label %.invoke unwind label %29

25:                                               ; preds = %19
  %26 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #8
  br label %.invoke.sink.split

.invoke.sink.split:                               ; preds = %16, %25
  %.sink = phi i32 [ -2147483643, %25 ], [ -2147483644, %16 ]
  %27 = tail call ptr @__cxa_begin_catch(ptr %.0) #8
  tail call void @_ZN3SFS6ResultC1ENS0_4CodeE(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %.sink) #8
  br label %.invoke

.invoke:                                          ; preds = %.invoke.sink.split, %22
  invoke void @__cxa_end_catch()
          to label %28 unwind label %29

28:                                               ; preds = %.invoke, %10
  ret void

29:                                               ; preds = %.invoke, %22
  %30 = landingpad { ptr, i32 }
          catch ptr null
  %31 = extractvalue { ptr, i32 } %30, 0
  tail call void @__clang_call_terminate(ptr %31) #11
  unreachable
}

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #3

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

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

; Function Attrs: nounwind
declare void @_ZN3SFS6ResultC1ENS0_4CodeE(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) unnamed_addr #4

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

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

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

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

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

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(40) ptr @_ZNK3SFS7details12SFSException9GetResultEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3SFS6ResultC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #7 align 2

declare void @_ZN3SFS4FileC1EONSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_mOSt13unordered_mapINS_8HashTypeES6_St4hashIS9_ESt8equal_toIS9_ESaISt4pairIKS9_S6_EEE(ptr, ptr, ptr, i64, ptr) local_unnamed_addr

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nobuiltin allocsize(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 = { nobuiltin nounwind "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 = { nounwind "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 = { nofree nosync nounwind memory(none) }
attributes #6 = { noinline noreturn nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin nounwind }
attributes #11 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}


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