; LLVM IR from turi-code/SFrame :: oss_src/fileio (hdfs)

; 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.anon.0 = type { i8 }
%"class.std::lock_guard" = type { ptr }
%"struct.std::pair" = type { %"class.std::__cxx11::basic_string", i64 }
%"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] }

@_ZN8graphlabL18mtx_is_initializedE = external hidden global i32, align 4
@_ZN8graphlabL3mtxE = external hidden global ptr, align 8
@_ZZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmE7fs_poolB5cxx11 = external hidden global ptr, align 8
@_ZGVZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmE7fs_poolB5cxx11 = external hidden global i64, align 8

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @__cxa_guard_abort(ptr) #0

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #0

declare i32 @pthread_once(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8graphlabL8init_mtxEv() #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #3

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr noundef %0, i64 noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca %class.anon.0, align 1
  %6 = alloca %"class.std::lock_guard", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"struct.std::pair", align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca %"struct.std::pair", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  %13 = call i32 @pthread_once(ptr noundef @_ZN8graphlabL18mtx_is_initializedE, ptr noundef @_ZN8graphlabL8init_mtxEv)
  br label %14

14:                                               ; preds = %2
  %15 = load ptr, ptr @_ZN8graphlabL3mtxE, align 8, !tbaa !5
  %16 = icmp ne ptr %15, null
  %17 = xor i1 %16, true
  %18 = zext i1 %17 to i64
  %19 = call i64 @llvm.expect.i64(i64 %18, i64 0)
  %20 = icmp ne i64 %19, 0
  br i1 %20, label %21, label %22

21:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #0
  call void @"_ZZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmENK3$_0clEv"(ptr noundef nonnull align 1 dereferenceable(1) %5)
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #0
  br label %22

22:                                               ; preds = %21, %14
  br label %23

23:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #0
  %24 = load ptr, ptr @_ZN8graphlabL3mtxE, align 8, !tbaa !5
  call void @_ZNSt10lock_guardIN8graphlab5mutexEEC2ERS1_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(40) %24)
  %25 = load atomic i8, ptr @_ZGVZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmE7fs_poolB5cxx11 acquire, align 8
  %26 = icmp eq i8 %25, 0
  br i1 %26, label %27, label %33, !prof !11

27:                                               ; preds = %23
  %28 = call i32 @__cxa_guard_acquire(ptr @_ZGVZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmE7fs_poolB5cxx11) #0
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %33

30:                                               ; preds = %27
  %31 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 48) #11
          to label %32 unwind label %50

32:                                               ; preds = %30
  call void @llvm.memset.p0.i64(ptr align 16 %31, i8 0, i64 48, i1 false)
  call void @_ZNSt3mapISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmEPN8graphlab4hdfsESt4lessIS7_ESaIS0_IKS7_SA_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %31) #0
  store ptr %31, ptr @_ZZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmE7fs_poolB5cxx11, align 8, !tbaa !5
  call void @__cxa_guard_release(ptr @_ZGVZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmE7fs_poolB5cxx11) #0
  br label %33

33:                                               ; preds = %32, %27, %23
  %34 = load ptr, ptr @_ZZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmE7fs_poolB5cxx11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #0
  invoke void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmEC2IRS5_RmTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISB_SC_EEEbE4typeELb1EEEOSB_OSC_(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %35 unwind label %54

35:                                               ; preds = %33
  %36 = invoke noundef i64 @_ZNKSt3mapISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmEPN8graphlab4hdfsESt4lessIS7_ESaIS0_IKS7_SA_EEE5countERSD_(ptr noundef nonnull align 8 dereferenceable(48) %34, ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %37 unwind label %58

37:                                               ; preds = %35
  %38 = icmp eq i64 %36, 0
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #0
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #0
  br i1 %38, label %39, label %81

39:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #0
  %40 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 1) #11
          to label %41 unwind label %63

41:                                               ; preds = %39
  %42 = load i64, ptr %4, align 8, !tbaa !9
  %43 = trunc i64 %42 to i32
  invoke void @_ZN8graphlab4hdfsC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull align 1 dereferenceable(1) %40, ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %43)
          to label %44 unwind label %67

44:                                               ; preds = %41
  store ptr %40, ptr %10, align 8, !tbaa !5
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = load ptr, ptr @_ZZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmE7fs_poolB5cxx11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #0
  invoke void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmEC2IRS5_RmTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISB_SC_EEEbE4typeELb1EEEOSB_OSC_(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %47 unwind label %71

47:                                               ; preds = %44
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmEPN8graphlab4hdfsESt4lessIS7_ESaIS0_IKS7_SA_EEEixEOS7_(ptr noundef nonnull align 8 dereferenceable(48) %46, ptr noundef nonnull align 8 dereferenceable(40) %11)
          to label %49 unwind label %75

49:                                               ; preds = %47
  store ptr %45, ptr %48, align 8, !tbaa !5
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #0
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #0
  br label %81

50:                                               ; preds = %30
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %7, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %8, align 4
  call void @__cxa_guard_abort(ptr @_ZGVZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmE7fs_poolB5cxx11) #0
  br label %96

54:                                               ; preds = %33
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %7, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %8, align 4
  br label %62

58:                                               ; preds = %35
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %7, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %8, align 4
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #0
  br label %62

62:                                               ; preds = %58, %54
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #0
  br label %96

63:                                               ; preds = %39
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %7, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %8, align 4
  br label %80

67:                                               ; preds = %41
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %7, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %8, align 4
  call void @_ZdlPvm(ptr noundef %40, i64 noundef 1) #12
  br label %80

71:                                               ; preds = %44
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %7, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %8, align 4
  br label %79

75:                                               ; preds = %47
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %7, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %8, align 4
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #0
  br label %79

79:                                               ; preds = %75, %71
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #0
  br label %80

80:                                               ; preds = %79, %67, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #0
  br label %96

81:                                               ; preds = %49, %37
  %82 = load ptr, ptr @_ZZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmE7fs_poolB5cxx11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %12) #0
  invoke void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmEC2IRS5_RmTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISB_SC_EEEbE4typeELb1EEEOSB_OSC_(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %83 unwind label %87

83:                                               ; preds = %81
  %84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmEPN8graphlab4hdfsESt4lessIS7_ESaIS0_IKS7_SA_EEEixEOS7_(ptr noundef nonnull align 8 dereferenceable(48) %82, ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %85 unwind label %91

85:                                               ; preds = %83
  %86 = load ptr, ptr %84, align 8, !tbaa !5
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #0
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #0
  call void @_ZNSt10lock_guardIN8graphlab5mutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #0
  ret ptr %86

87:                                               ; preds = %81
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %7, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %8, align 4
  br label %95

91:                                               ; preds = %83
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %7, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %8, align 4
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #0
  br label %95

95:                                               ; preds = %91, %87
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #0
  br label %96

96:                                               ; preds = %95, %80, %62, %50
  call void @_ZNSt10lock_guardIN8graphlab5mutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #0
  br label %97

97:                                               ; preds = %96
  %98 = load ptr, ptr %7, align 8
  %99 = load i32, ptr %8, align 4
  %100 = insertvalue { ptr, i32 } poison, ptr %98, 0
  %101 = insertvalue { ptr, i32 } %100, i32 %99, 1
  resume { ptr, i32 } %101
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmENK3$_0clEv"(ptr noundef nonnull align 1 dereferenceable(1)) #8 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt3mapISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmEPN8graphlab4hdfsESt4lessIS7_ESaIS0_IKS7_SA_EEE5countERSD_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(40)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmEPN8graphlab4hdfsESt4lessIS7_ESaIS0_IKS7_SA_EEEixEOS7_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(40)) #2 align 2

attributes #0 = { nounwind }
attributes #1 = { "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 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { 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 #7 = { 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 #8 = { 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 #9 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #10 = { 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 #11 = { builtin 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 = !{!"long", !7, i64 0}
!11 = !{!"branch_weights", i32 1, i32 1048575}


; 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.anon.0 = type { i8 }
%"class.std::lock_guard" = type { ptr }
%"struct.std::pair" = type { %"class.std::__cxx11::basic_string", i64 }
%"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] }

@_ZN8graphlabL18mtx_is_initializedE = external hidden global i32, align 4
@_ZN8graphlabL3mtxE = external hidden local_unnamed_addr global ptr, align 8
@_ZZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmE7fs_poolB5cxx11 = external hidden local_unnamed_addr global ptr, align 8
@_ZGVZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmE7fs_poolB5cxx11 = external hidden global i64, align 8

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nofree nounwind
declare void @__cxa_guard_abort(ptr) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #0

declare i32 @pthread_once(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8graphlabL8init_mtxEv() #2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr noundef %0, i64 noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i64, align 8
  %4 = alloca %class.anon.0, align 1
  %5 = alloca %"class.std::lock_guard", align 8
  %6 = alloca %"struct.std::pair", align 8
  %7 = alloca %"struct.std::pair", align 8
  %8 = alloca %"struct.std::pair", align 8
  store i64 %1, ptr %3, align 8, !tbaa !5
  %9 = tail call i32 @pthread_once(ptr noundef nonnull @_ZN8graphlabL18mtx_is_initializedE, ptr noundef nonnull @_ZN8graphlabL8init_mtxEv)
  %10 = load ptr, ptr @_ZN8graphlabL3mtxE, align 8, !tbaa !9
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %11, label %12, !prof !11

11:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #10
  call void @"_ZZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmENK3$_0clEv"(ptr noundef nonnull align 1 dereferenceable(1) %4)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #10
  %.pre = load ptr, ptr @_ZN8graphlabL3mtxE, align 8, !tbaa !9
  br label %12

12:                                               ; preds = %2, %11
  %13 = phi ptr [ %10, %2 ], [ %.pre, %11 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #10
  call void @_ZNSt10lock_guardIN8graphlab5mutexEEC2ERS1_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(40) %13)
  %14 = load atomic i8, ptr @_ZGVZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmE7fs_poolB5cxx11 acquire, align 8
  %15 = icmp eq i8 %14, 0
  br i1 %15, label %16, label %21, !prof !12

16:                                               ; preds = %12
  %17 = call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmE7fs_poolB5cxx11) #10
  %.not7 = icmp eq i32 %17, 0
  br i1 %.not7, label %21, label %18

18:                                               ; preds = %16
  %19 = invoke noalias noundef nonnull dereferenceable(48) ptr @_Znwm(i64 noundef 48) #11
          to label %20 unwind label %37

20:                                               ; preds = %18
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) %19, i8 0, i64 48, i1 false)
  call void @_ZNSt3mapISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmEPN8graphlab4hdfsESt4lessIS7_ESaIS0_IKS7_SA_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #10
  store ptr %19, ptr @_ZZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmE7fs_poolB5cxx11, align 8, !tbaa !9
  call void @__cxa_guard_release(ptr nonnull @_ZGVZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmE7fs_poolB5cxx11) #10
  br label %21

21:                                               ; preds = %20, %16, %12
  %22 = load ptr, ptr @_ZZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmE7fs_poolB5cxx11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #10
  invoke void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmEC2IRS5_RmTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISB_SC_EEEbE4typeELb1EEEOSB_OSC_(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %23 unwind label %39

23:                                               ; preds = %21
  %24 = invoke noundef i64 @_ZNKSt3mapISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmEPN8graphlab4hdfsESt4lessIS7_ESaIS0_IKS7_SA_EEE5countERSD_(ptr noundef nonnull align 8 dereferenceable(48) %22, ptr noundef nonnull align 8 dereferenceable(40) %6)
          to label %25 unwind label %41

25:                                               ; preds = %23
  %26 = icmp eq i64 %24, 0
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #10
  br i1 %26, label %27, label %53

27:                                               ; preds = %25
  %28 = invoke noalias noundef nonnull dereferenceable(1) ptr @_Znwm(i64 noundef 1) #11
          to label %29 unwind label %44

29:                                               ; preds = %27
  %30 = load i64, ptr %3, align 8, !tbaa !5
  %31 = trunc i64 %30 to i32
  invoke void @_ZN8graphlab4hdfsC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull align 1 dereferenceable(1) %28, ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %31)
          to label %32 unwind label %46

32:                                               ; preds = %29
  %33 = load ptr, ptr @_ZZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmE7fs_poolB5cxx11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #10
  invoke void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmEC2IRS5_RmTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISB_SC_EEEbE4typeELb1EEEOSB_OSC_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %34 unwind label %48

34:                                               ; preds = %32
  %35 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmEPN8graphlab4hdfsESt4lessIS7_ESaIS0_IKS7_SA_EEEixEOS7_(ptr noundef nonnull align 8 dereferenceable(48) %33, ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %36 unwind label %50

36:                                               ; preds = %34
  store ptr %28, ptr %35, align 8, !tbaa !9
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #10
  br label %53

37:                                               ; preds = %18
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_guard_abort(ptr nonnull @_ZGVZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmE7fs_poolB5cxx11) #10
  br label %64

39:                                               ; preds = %21
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %43

41:                                               ; preds = %23
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #10
  br label %43

43:                                               ; preds = %41, %39
  %.pn = phi { ptr, i32 } [ %42, %41 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #10
  br label %64

44:                                               ; preds = %27
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %64

46:                                               ; preds = %29
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %28, i64 noundef 1) #12
  br label %64

48:                                               ; preds = %32
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %52

50:                                               ; preds = %34
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #10
  br label %52

52:                                               ; preds = %50, %48
  %.pn9 = phi { ptr, i32 } [ %51, %50 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #10
  br label %64

53:                                               ; preds = %36, %25
  %54 = load ptr, ptr @_ZZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmE7fs_poolB5cxx11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #10
  invoke void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmEC2IRS5_RmTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISB_SC_EEEbE4typeELb1EEEOSB_OSC_(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %55 unwind label %59

55:                                               ; preds = %53
  %56 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmEPN8graphlab4hdfsESt4lessIS7_ESaIS0_IKS7_SA_EEEixEOS7_(ptr noundef nonnull align 8 dereferenceable(48) %54, ptr noundef nonnull align 8 dereferenceable(40) %8)
          to label %57 unwind label %61

57:                                               ; preds = %55
  %58 = load ptr, ptr %56, align 8, !tbaa !9
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #10
  call void @_ZNSt10lock_guardIN8graphlab5mutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #10
  ret ptr %58

59:                                               ; preds = %53
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %63

61:                                               ; preds = %55
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #10
  br label %63

63:                                               ; preds = %61, %59
  %.pn12 = phi { ptr, i32 } [ %62, %61 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #10
  br label %64

64:                                               ; preds = %44, %46, %52, %63, %43, %37
  %.pn12.pn = phi { ptr, i32 } [ %.pn12, %63 ], [ %.pn, %43 ], [ %38, %37 ], [ %.pn9, %52 ], [ %47, %46 ], [ %45, %44 ]
  call void @_ZNSt10lock_guardIN8graphlab5mutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #10
  resume { ptr, i32 } %.pn12.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN8graphlab4hdfs8get_hdfsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmENK3$_0clEv"(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #7 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) #8

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt3mapISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmEPN8graphlab4hdfsESt4lessIS7_ESaIS0_IKS7_SA_EEE5countERSD_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmEPN8graphlab4hdfsESt4lessIS7_ESaIS0_IKS7_SA_EEEixEOS7_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2 align 2

attributes #0 = { nofree nounwind }
attributes #1 = { "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 #6 = { 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 #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { 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 #10 = { nounwind }
attributes #11 = { builtin 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!12 = !{!"branch_weights", i32 1, i32 1048575}


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