; LLVM IR from alibaba/euler :: euler/common/hdfs_file_io.ll (ZN5euler10HdfsFileIO4OpenENS_5SliceEb)

; 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.52" }
%"struct.std::_Head_base.52" = type { ptr }
%"class.euler::Slice" = type { ptr, i64 }
%"class.std::unique_ptr.53" = type { %"struct.std::__uniq_ptr_data.54" }
%"struct.std::__uniq_ptr_data.54" = type { %"class.std::__uniq_ptr_impl.55" }
%"class.std::__uniq_ptr_impl.55" = type { %"class.std::tuple.56" }
%"class.std::tuple.56" = type { %"struct.std::_Tuple_impl.57" }
%"struct.std::_Tuple_impl.57" = type { %"struct.std::_Head_base.60" }
%"struct.std::_Head_base.60" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.euler::LogMessage" = type { %"class.std::__cxx11::basic_ostringstream.base", ptr, i32, i32, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_ostringstream.base" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.euler::HdfsFileIO" = type { %"class.euler::FileIO", i8, i8, ptr, i64, i64, ptr, ptr, ptr, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%"class.euler::FileIO" = type { ptr, i8, i64, i64 }
%"class.euler::LibHDFS" = type { %"class.std::function", %"class.std::function.8", %"class.std::function.10", %"class.std::function.13", %"class.std::function.16", %"class.std::function.19", %"class.std::function.22", %"class.std::function.24", %"class.std::function.26", %"class.std::function.19", %"class.std::function.19", %"class.std::function.28", %"class.std::function.31", %"class.std::function.33", %"class.std::function.36", %"class.std::function.38", %"class.std::function.41", %"class.std::function.33", %"class.std::function.43", %"class.std::function.46", %"class.euler::Status", ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::function.8" = type { %"class.std::_Function_base", ptr }
%"class.std::function.10" = type { %"class.std::_Function_base", ptr }
%"class.std::function.13" = type { %"class.std::_Function_base", ptr }
%"class.std::function.16" = type { %"class.std::_Function_base", ptr }
%"class.std::function.22" = type { %"class.std::_Function_base", ptr }
%"class.std::function.24" = type { %"class.std::_Function_base", ptr }
%"class.std::function.26" = type { %"class.std::_Function_base", ptr }
%"class.std::function.19" = type { %"class.std::_Function_base", ptr }
%"class.std::function.28" = type { %"class.std::_Function_base", ptr }
%"class.std::function.31" = type { %"class.std::_Function_base", ptr }
%"class.std::function.36" = type { %"class.std::_Function_base", ptr }
%"class.std::function.38" = type { %"class.std::_Function_base", ptr }
%"class.std::function.41" = type { %"class.std::_Function_base", ptr }
%"class.std::function.33" = type { %"class.std::_Function_base", ptr }
%"class.std::function.43" = type { %"class.std::_Function_base", ptr }
%"class.std::function.46" = type { %"class.std::_Function_base", ptr }
%"class.euler::Status" = type { i32, %"class.std::__cxx11::basic_string" }

@.str.23 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [2 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

declare void @_ZN5euler10LogMessageC1EPKcii(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, i32 noundef, i32 noundef) unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageEA9_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 1 dereferenceable(9)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEOT_S9_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(32)) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNKSt8functionIFP17hdfsFile_internalP13hdfs_internalPKciisiEEclES3_S5_iisi(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef, i32 noundef, i32 noundef, i16 noundef signext, i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageEA2_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 1 dereferenceable(2)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageEA24_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 1 dereferenceable(24)) #5

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #6

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5euler10HdfsFileIO4OpenENS_5SliceEb(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(184) %1, ptr %2, i64 %3, i1 noundef zeroext %4) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca %"class.euler::Slice", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca %"class.std::unique_ptr.53", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.euler::LogMessage", align 8
  %16 = alloca i32, align 4
  store ptr %0, ptr %6, align 8
  %17 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 0
  store ptr %2, ptr %17, align 8
  %18 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 1
  store i64 %3, ptr %18, align 8
  store ptr %1, ptr %8, align 8, !tbaa !5
  %19 = zext i1 %4 to i8
  store i8 %19, ptr %9, align 1, !tbaa !9
  %20 = load ptr, ptr %8, align 8
  %21 = getelementptr inbounds %"class.euler::HdfsFileIO", ptr %20, i32 0, i32 2
  %22 = load i8, ptr %21, align 1, !tbaa !11, !range !17, !noundef !18
  %23 = trunc i8 %22 to i1
  br i1 %23, label %25, label %24

24:                                               ; preds = %5
  call void @_ZNSt10unique_ptrIN5euler6FileIOESt14default_deleteIS1_EEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr null) #9
  br label %135

25:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %26 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 184) #10
  invoke void @_ZN5euler10HdfsFileIOC1Ev(ptr noundef nonnull align 8 dereferenceable(184) %26)
          to label %27 unwind label %65

27:                                               ; preds = %25
  call void @_ZNSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEC2IS3_vEEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef %26) #9
  %28 = load i8, ptr %9, align 1, !tbaa !9, !range !17, !noundef !18
  %29 = trunc i8 %28 to i1
  %30 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  %31 = getelementptr inbounds %"class.euler::HdfsFileIO", ptr %30, i32 0, i32 1
  %32 = zext i1 %29 to i8
  store i8 %32, ptr %31, align 8, !tbaa !19
  %33 = call noalias ptr @malloc(i64 noundef 4096) #11
  %34 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  %35 = getelementptr inbounds %"class.euler::HdfsFileIO", ptr %34, i32 0, i32 3
  store ptr %33, ptr %35, align 8, !tbaa !20
  %36 = getelementptr inbounds %"class.euler::HdfsFileIO", ptr %20, i32 0, i32 7
  %37 = load ptr, ptr %36, align 8, !tbaa !21
  %38 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  %39 = getelementptr inbounds %"class.euler::HdfsFileIO", ptr %38, i32 0, i32 7
  store ptr %37, ptr %39, align 8, !tbaa !21
  %40 = getelementptr inbounds %"class.euler::HdfsFileIO", ptr %20, i32 0, i32 9
  %41 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  %42 = getelementptr inbounds %"class.euler::HdfsFileIO", ptr %41, i32 0, i32 9
  %43 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %42, ptr noundef nonnull align 8 dereferenceable(32) %40)
          to label %44 unwind label %69

44:                                               ; preds = %27
  %45 = getelementptr inbounds %"class.euler::HdfsFileIO", ptr %20, i32 0, i32 10
  %46 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  %47 = getelementptr inbounds %"class.euler::HdfsFileIO", ptr %46, i32 0, i32 10
  %48 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef nonnull align 8 dereferenceable(32) %45)
          to label %49 unwind label %69

49:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #9
  %50 = getelementptr inbounds %"class.euler::HdfsFileIO", ptr %20, i32 0, i32 11
  invoke void @_ZN5euler8JoinPathIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_5SliceEEEES6_DpRKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %50, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %51 unwind label %73

51:                                               ; preds = %49
  %52 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  %53 = getelementptr inbounds %"class.euler::HdfsFileIO", ptr %52, i32 0, i32 11
  %54 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %53, ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #9
  %55 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  invoke void @_ZN5euler10HdfsFileIO13CheckFileAttrEv(ptr noundef nonnull align 8 dereferenceable(184) %55)
          to label %56 unwind label %69

56:                                               ; preds = %51
  %57 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  %58 = getelementptr inbounds %"class.euler::HdfsFileIO", ptr %57, i32 0, i32 2
  %59 = load i8, ptr %58, align 1, !tbaa !11, !range !17, !noundef !18
  %60 = trunc i8 %59 to i1
  br i1 %60, label %129, label %61

61:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  store i32 0, ptr %14, align 4, !tbaa !22
  %62 = load i8, ptr %9, align 1, !tbaa !9, !range !17, !noundef !18
  %63 = trunc i8 %62 to i1
  br i1 %63, label %77, label %64

64:                                               ; preds = %61
  store i32 65, ptr %14, align 4, !tbaa !22
  br label %77

65:                                               ; preds = %25
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %11, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %12, align 4
  call void @_ZdlPvm(ptr noundef %26, i64 noundef 184) #12
  br label %134

69:                                               ; preds = %51, %44, %27
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %11, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %12, align 4
  br label %133

73:                                               ; preds = %49
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %11, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #9
  br label %133

77:                                               ; preds = %64, %61
  %78 = getelementptr inbounds %"class.euler::HdfsFileIO", ptr %20, i32 0, i32 6
  %79 = load ptr, ptr %78, align 8, !tbaa !24
  %80 = getelementptr inbounds %"class.euler::LibHDFS", ptr %79, i32 0, i32 12
  %81 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  %82 = getelementptr inbounds %"class.euler::HdfsFileIO", ptr %81, i32 0, i32 7
  %83 = load ptr, ptr %82, align 8, !tbaa !21
  %84 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  %85 = getelementptr inbounds %"class.euler::HdfsFileIO", ptr %84, i32 0, i32 11
  %86 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %85) #9
  %87 = load i32, ptr %14, align 4, !tbaa !22
  %88 = invoke noundef ptr @_ZNKSt8functionIFP17hdfsFile_internalP13hdfs_internalPKciisiEEclES3_S5_iisi(ptr noundef nonnull align 8 dereferenceable(32) %80, ptr noundef %83, ptr noundef %86, i32 noundef %87, i32 noundef 0, i16 noundef signext 0, i32 noundef 0)
          to label %89 unwind label %111

89:                                               ; preds = %77
  %90 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  %91 = getelementptr inbounds %"class.euler::HdfsFileIO", ptr %90, i32 0, i32 8
  store ptr %88, ptr %91, align 8, !tbaa !25
  %92 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  %93 = getelementptr inbounds %"class.euler::HdfsFileIO", ptr %92, i32 0, i32 8
  %94 = load ptr, ptr %93, align 8, !tbaa !25
  %95 = icmp ne ptr %94, null
  br i1 %95, label %124, label %96

96:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 392, ptr %15) #9
  invoke void @_ZN5euler10LogMessageC1EPKcii(ptr noundef nonnull align 8 dereferenceable(128) %15, ptr noundef @.str.23, i32 noundef 372, i32 noundef 3)
          to label %97 unwind label %115

97:                                               ; preds = %96
  %98 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageEA24_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %15, ptr noundef nonnull align 1 dereferenceable(24) @.str.38)
          to label %99 unwind label %119

99:                                               ; preds = %97
  %100 = getelementptr inbounds %"class.euler::HdfsFileIO", ptr %20, i32 0, i32 10
  %101 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEOT_S9_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %98, ptr noundef nonnull align 8 dereferenceable(32) %100)
          to label %102 unwind label %119

102:                                              ; preds = %99
  %103 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageEA2_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %101, ptr noundef nonnull align 1 dereferenceable(2) @.str.39)
          to label %104 unwind label %119

104:                                              ; preds = %102
  %105 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  %106 = getelementptr inbounds %"class.euler::HdfsFileIO", ptr %105, i32 0, i32 11
  %107 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEOT_S9_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %103, ptr noundef nonnull align 8 dereferenceable(32) %106)
          to label %108 unwind label %119

108:                                              ; preds = %104
  %109 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageEA9_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %107, ptr noundef nonnull align 1 dereferenceable(9) @.str.37)
          to label %110 unwind label %119

110:                                              ; preds = %108
  call void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %15) #9
  call void @llvm.lifetime.end.p0(i64 392, ptr %15) #9
  call void @_ZNSt10unique_ptrIN5euler6FileIOESt14default_deleteIS1_EEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr null) #9
  store i32 1, ptr %16, align 4
  br label %125

111:                                              ; preds = %77
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %11, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %12, align 4
  br label %128

115:                                              ; preds = %96
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %11, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %12, align 4
  br label %123

119:                                              ; preds = %108, %104, %102, %99, %97
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %11, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %12, align 4
  call void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %15) #9
  br label %123

123:                                              ; preds = %119, %115
  call void @llvm.lifetime.end.p0(i64 392, ptr %15) #9
  br label %128

124:                                              ; preds = %89
  store i32 0, ptr %16, align 4
  br label %125

125:                                              ; preds = %124, %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  %126 = load i32, ptr %16, align 4
  switch i32 %126, label %132 [
    i32 0, label %127
  ]

127:                                              ; preds = %125
  br label %129

128:                                              ; preds = %123, %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  br label %133

129:                                              ; preds = %127, %56
  %130 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  %131 = getelementptr inbounds %"class.euler::FileIO", ptr %130, i32 0, i32 1
  store i8 1, ptr %131, align 8, !tbaa !26
  call void @_ZNSt10unique_ptrIN5euler6FileIOESt14default_deleteIS1_EEC2INS0_10HdfsFileIOES2_IS6_EvEEOS_IT_T0_E(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  store i32 1, ptr %16, align 4
  br label %132

132:                                              ; preds = %129, %125
  call void @_ZNSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  br label %135

133:                                              ; preds = %128, %73, %69
  call void @_ZNSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  br label %134

134:                                              ; preds = %133, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  br label %136

135:                                              ; preds = %132, %24
  ret void

136:                                              ; preds = %134
  %137 = load ptr, ptr %11, align 8
  %138 = load i32, ptr %12, align 4
  %139 = insertvalue { ptr, i32 } poison, ptr %137, 0
  %140 = insertvalue { ptr, i32 } %139, i32 %138, 1
  resume { ptr, i32 } %140
}

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

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

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

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

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

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

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

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

declare void @_ZN5euler10HdfsFileIOC1Ev(ptr)

attributes #0 = { 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 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 = { "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 = { 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 #6 = { nounwind 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 #7 = { 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { nounwind allocsize(0) }
attributes #12 = { builtin 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !10, i64 33}
!12 = !{!"_ZTSN5euler10HdfsFileIOE", !13, i64 0, !10, i64 32, !10, i64 33, !6, i64 40, !14, i64 48, !14, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !15, i64 88, !15, i64 120, !15, i64 152}
!13 = !{!"_ZTSN5euler6FileIOE", !10, i64 8, !14, i64 16, !14, i64 24}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !14, i64 8, !7, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!12, !10, i64 32}
!20 = !{!12, !6, i64 40}
!21 = !{!12, !6, i64 72}
!22 = !{!23, !23, i64 0}
!23 = !{!"int", !7, i64 0}
!24 = !{!12, !6, i64 64}
!25 = !{!12, !6, i64 80}
!26 = !{!13, !10, i64 8}


; 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.52" }
%"struct.std::_Head_base.52" = type { ptr }
%"class.euler::Slice" = type { ptr, i64 }
%"class.std::unique_ptr.53" = type { %"struct.std::__uniq_ptr_data.54" }
%"struct.std::__uniq_ptr_data.54" = type { %"class.std::__uniq_ptr_impl.55" }
%"class.std::__uniq_ptr_impl.55" = type { %"class.std::tuple.56" }
%"class.std::tuple.56" = type { %"struct.std::_Tuple_impl.57" }
%"struct.std::_Tuple_impl.57" = type { %"struct.std::_Head_base.60" }
%"struct.std::_Head_base.60" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.euler::LogMessage" = type { %"class.std::__cxx11::basic_ostringstream.base", ptr, i32, i32, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_ostringstream.base" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }

@.str.23 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [2 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

declare void @_ZN5euler10LogMessageC1EPKcii(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, i32 noundef, i32 noundef) unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageEA9_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 1 dereferenceable(9)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEOT_S9_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNKSt8functionIFP17hdfsFile_internalP13hdfs_internalPKciisiEEclES3_S5_iisi(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef, i32 noundef, i32 noundef, i16 noundef signext, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageEA2_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 1 dereferenceable(2)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageEA24_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 1 dereferenceable(24)) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5euler10HdfsFileIO4OpenENS_5SliceEb(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(184) %1, ptr %2, i64 %3, i1 noundef zeroext %4) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.euler::Slice", align 8
  %7 = alloca %"class.std::unique_ptr.53", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.euler::LogMessage", align 8
  store ptr %2, ptr %6, align 8
  %10 = getelementptr inbounds i8, ptr %6, i64 8
  store i64 %3, ptr %10, align 8
  %11 = zext i1 %4 to i8
  %12 = getelementptr inbounds i8, ptr %1, i64 33
  %13 = load i8, ptr %12, align 1, !tbaa !5, !range !15, !noundef !16
  %14 = trunc nuw i8 %13 to i1
  br i1 %14, label %16, label %15

15:                                               ; preds = %5
  tail call void @_ZNSt10unique_ptrIN5euler6FileIOESt14default_deleteIS1_EEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr null) #9
  br label %98

16:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %17 = tail call noalias noundef nonnull dereferenceable(184) ptr @_Znwm(i64 noundef 184) #10
  invoke void @_ZN5euler10HdfsFileIOC1Ev(ptr noundef nonnull align 8 dereferenceable(184) %17)
          to label %18 unwind label %60

18:                                               ; preds = %16
  call void @_ZNSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEC2IS3_vEEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull %17) #9
  %19 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %20 = getelementptr inbounds i8, ptr %19, i64 32
  store i8 %11, ptr %20, align 8, !tbaa !17
  %21 = call noalias dereferenceable_or_null(4096) ptr @malloc(i64 noundef 4096) #11
  %22 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %23 = getelementptr inbounds i8, ptr %22, i64 40
  store ptr %21, ptr %23, align 8, !tbaa !18
  %24 = getelementptr inbounds i8, ptr %1, i64 72
  %25 = load ptr, ptr %24, align 8, !tbaa !19
  %26 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %27 = getelementptr inbounds i8, ptr %26, i64 72
  store ptr %25, ptr %27, align 8, !tbaa !19
  %28 = getelementptr inbounds i8, ptr %1, i64 88
  %29 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %30 = getelementptr inbounds i8, ptr %29, i64 88
  %31 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %32 unwind label %62

32:                                               ; preds = %18
  %33 = getelementptr inbounds i8, ptr %1, i64 120
  %34 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %35 = getelementptr inbounds i8, ptr %34, i64 120
  %36 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %33)
          to label %37 unwind label %62

37:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #9
  %38 = getelementptr inbounds i8, ptr %1, i64 152
  invoke void @_ZN5euler8JoinPathIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_5SliceEEEES6_DpRKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %39 unwind label %64

39:                                               ; preds = %37
  %40 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %41 = getelementptr inbounds i8, ptr %40, i64 152
  %42 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  %43 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  invoke void @_ZN5euler10HdfsFileIO13CheckFileAttrEv(ptr noundef nonnull align 8 dereferenceable(184) %43)
          to label %44 unwind label %62

44:                                               ; preds = %39
  %45 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %46 = getelementptr inbounds i8, ptr %45, i64 33
  %47 = load i8, ptr %46, align 1, !tbaa !5, !range !15, !noundef !16
  %48 = trunc nuw i8 %47 to i1
  br i1 %48, label %.critedge, label %49

49:                                               ; preds = %44
  %spec.store.select = select i1 %4, i32 0, i32 65
  %50 = getelementptr inbounds i8, ptr %1, i64 64
  %51 = load ptr, ptr %50, align 8, !tbaa !20
  %52 = getelementptr inbounds i8, ptr %51, i64 384
  %53 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %54 = getelementptr inbounds i8, ptr %53, i64 72
  %55 = load ptr, ptr %54, align 8, !tbaa !19
  %56 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %57 = getelementptr inbounds i8, ptr %56, i64 152
  %58 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %57) #9
  %59 = invoke noundef ptr @_ZNKSt8functionIFP17hdfsFile_internalP13hdfs_internalPKciisiEEclES3_S5_iisi(ptr noundef nonnull align 8 dereferenceable(32) %52, ptr noundef %55, ptr noundef %58, i32 noundef %spec.store.select, i32 noundef 0, i16 noundef signext 0, i32 noundef 0)
          to label %66 unwind label %86

60:                                               ; preds = %16
  %61 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %17, i64 noundef 184) #12
  br label %97

62:                                               ; preds = %39, %32, %18
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %96

64:                                               ; preds = %37
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  br label %96

66:                                               ; preds = %49
  %67 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %68 = getelementptr inbounds i8, ptr %67, i64 80
  store ptr %59, ptr %68, align 8, !tbaa !21
  %69 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %70 = getelementptr inbounds i8, ptr %69, i64 80
  %71 = load ptr, ptr %70, align 8, !tbaa !21
  %.not.not = icmp eq ptr %71, null
  br i1 %.not.not, label %72, label %.critedge

72:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %9) #9
  invoke void @_ZN5euler10LogMessageC1EPKcii(ptr noundef nonnull align 8 dereferenceable(128) %9, ptr noundef nonnull @.str.23, i32 noundef 372, i32 noundef 3)
          to label %73 unwind label %88

73:                                               ; preds = %72
  %74 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageEA24_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %9, ptr noundef nonnull align 1 dereferenceable(24) @.str.38)
          to label %75 unwind label %90

75:                                               ; preds = %73
  %76 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEOT_S9_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %74, ptr noundef nonnull align 8 dereferenceable(32) %33)
          to label %77 unwind label %90

77:                                               ; preds = %75
  %78 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageEA2_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %76, ptr noundef nonnull align 1 dereferenceable(2) @.str.39)
          to label %79 unwind label %90

79:                                               ; preds = %77
  %80 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %81 = getelementptr inbounds i8, ptr %80, i64 152
  %82 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEOT_S9_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %78, ptr noundef nonnull align 8 dereferenceable(32) %81)
          to label %83 unwind label %90

83:                                               ; preds = %79
  %84 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN5euler10LogMessageEA9_cEOT_S4_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %82, ptr noundef nonnull align 1 dereferenceable(9) @.str.37)
          to label %85 unwind label %90

85:                                               ; preds = %83
  call void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %9) #9
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %9) #9
  call void @_ZNSt10unique_ptrIN5euler6FileIOESt14default_deleteIS1_EEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr null) #9
  br label %95

86:                                               ; preds = %49
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %96

88:                                               ; preds = %72
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %92

90:                                               ; preds = %83, %79, %77, %75, %73
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5euler10LogMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %9) #9
  br label %92

92:                                               ; preds = %90, %88
  %.pn = phi { ptr, i32 } [ %91, %90 ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %9) #9
  br label %96

.critedge:                                        ; preds = %66, %44
  %93 = call noundef ptr @_ZNKSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %94 = getelementptr inbounds i8, ptr %93, i64 8
  store i8 1, ptr %94, align 8, !tbaa !22
  call void @_ZNSt10unique_ptrIN5euler6FileIOESt14default_deleteIS1_EEC2INS0_10HdfsFileIOES2_IS6_EvEEOS_IT_T0_E(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br label %95

95:                                               ; preds = %85, %.critedge
  call void @_ZNSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  br label %98

96:                                               ; preds = %86, %92, %64, %62
  %.pn.pn.pn = phi { ptr, i32 } [ %63, %62 ], [ %65, %64 ], [ %.pn, %92 ], [ %87, %86 ]
  call void @_ZNSt10unique_ptrIN5euler10HdfsFileIOESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br label %97

97:                                               ; preds = %96, %60
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %96 ], [ %61, %60 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  resume { ptr, i32 } %.pn.pn.pn.pn

98:                                               ; preds = %95, %15
  ret void
}

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

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

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

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

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

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

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

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

declare void @_ZN5euler10HdfsFileIOC1Ev(ptr) local_unnamed_addr

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 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 = { "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 = { 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 #6 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { nounwind allocsize(0) }
attributes #12 = { builtin 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, !8, i64 33}
!6 = !{!"_ZTSN5euler10HdfsFileIOE", !7, i64 0, !8, i64 32, !8, i64 33, !12, i64 40, !11, i64 48, !11, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !13, i64 88, !13, i64 120, !13, i64 152}
!7 = !{!"_ZTSN5euler6FileIOE", !8, i64 8, !11, i64 16, !11, i64 24}
!8 = !{!"bool", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !11, i64 8, !9, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!6, !8, i64 32}
!18 = !{!6, !12, i64 40}
!19 = !{!6, !12, i64 72}
!20 = !{!6, !12, i64 64}
!21 = !{!6, !12, i64 80}
!22 = !{!7, !8, i64 8}


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