; LLVM IR from StanfordVL/GibsonEnv :: gibson/core/channels/common (tinyply)

; 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::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.35" = type { %"class.std::__shared_ptr.36" }
%"class.std::__shared_ptr.36" = type { ptr, %"class.std::__shared_count" }
%"class.std::initializer_list.44" = type { ptr, i64 }
%"struct.tinyply::PlyFile::PlyFileImpl::ParsingHelper" = type { %"class.std::shared_ptr", %"class.std::shared_ptr.35" }
%"class.tinyply::Buffer" = type { ptr, %"class.std::unique_ptr", i64 }
%"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.40" }
%"struct.std::_Head_base.40" = type { ptr }
%class.anon = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"struct.tinyply::PlyElement" = type { %"class.std::__cxx11::basic_string", i64, %"class.std::vector" }
%"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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<tinyply::PlyProperty, std::allocator<tinyply::PlyProperty>>::_Vector_impl" }
%"struct.std::_Vector_base<tinyply::PlyProperty, std::allocator<tinyply::PlyProperty>>::_Vector_impl" = type { %"struct.std::_Vector_base<tinyply::PlyProperty, std::allocator<tinyply::PlyProperty>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tinyply::PlyProperty, std::allocator<tinyply::PlyProperty>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.tinyply::PlyData" = type { i8, i64, %"class.tinyply::Buffer" }
%"struct.tinyply::PlyFile::PlyFileImpl::PlyCursor" = type { i64, i64 }
%"struct.tinyply::PlyFile::PlyFileImpl" = type { %"class.std::map.14", i8, i8, %"class.std::vector.9", %"class.std::vector.20", %"class.std::vector.20" }
%"class.std::map.14" = type { %"class.std::_Rb_tree.15" }
%"class.std::_Rb_tree.15" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, tinyply::PlyFile::PlyFileImpl::ParsingHelper>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, tinyply::PlyFile::PlyFileImpl::ParsingHelper>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, tinyply::PlyFile::PlyFileImpl::ParsingHelper>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, tinyply::PlyFile::PlyFileImpl::ParsingHelper>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<tinyply::PlyElement, std::allocator<tinyply::PlyElement>>::_Vector_impl" }
%"struct.std::_Vector_base<tinyply::PlyElement, std::allocator<tinyply::PlyElement>>::_Vector_impl" = type { %"struct.std::_Vector_base<tinyply::PlyElement, std::allocator<tinyply::PlyElement>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tinyply::PlyElement, std::allocator<tinyply::PlyElement>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; 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 dso_local noundef i64 @_Z12find_elementRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIN7tinyply10PlyElementESaIS9_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(24)) #1

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIN7tinyply7PlyDataEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIN7tinyply7PlyFile11PlyFileImpl9PlyCursorEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES6_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.35") align 8) #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorIN7tinyply10PlyElementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7tinyply7PlyFile11PlyFileImpl25add_properties_to_elementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt16initializer_listIS7_ENS_4TypeEmPhSC_m(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr %2, i64 %3, i8 noundef zeroext %4, i64 noundef %5, ptr noundef %6, i8 noundef zeroext %7, i64 noundef %8) #4 align 2 personality ptr @__gxx_personality_v0 {
  %10 = alloca %"class.std::initializer_list.44", align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i8, align 1
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i8, align 1
  %17 = alloca i64, align 8
  %18 = alloca %"struct.tinyply::PlyFile::PlyFileImpl::ParsingHelper", align 8
  %19 = alloca %"class.std::shared_ptr", align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.tinyply::Buffer", align 8
  %23 = alloca %"class.std::shared_ptr.35", align 8
  %24 = alloca %class.anon, align 8
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca %"struct.tinyply::PlyElement", align 8
  %28 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 0
  store ptr %2, ptr %28, align 8
  %29 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 1
  store i64 %3, ptr %29, align 8
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store i8 %4, ptr %13, align 1, !tbaa !9
  store i64 %5, ptr %14, align 8, !tbaa !11
  store ptr %6, ptr %15, align 8, !tbaa !5
  store i8 %7, ptr %16, align 1, !tbaa !9
  store i64 %8, ptr %17, align 8, !tbaa !11
  %30 = load ptr, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #5
  call void @_ZN7tinyply7PlyFile11PlyFileImpl13ParsingHelperC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  invoke void @_ZSt11make_sharedIN7tinyply7PlyDataEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %19)
          to label %31 unwind label %78

31:                                               ; preds = %9
  %32 = getelementptr inbounds %"struct.tinyply::PlyFile::PlyFileImpl::ParsingHelper", ptr %18, i32 0, i32 0
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN7tinyply7PlyDataEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(16) %19) #5
  call void @_ZNSt12__shared_ptrIN7tinyply7PlyDataELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  %34 = load i64, ptr %14, align 8, !tbaa !11
  %35 = getelementptr inbounds %"struct.tinyply::PlyFile::PlyFileImpl::ParsingHelper", ptr %18, i32 0, i32 0
  %36 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7tinyply7PlyDataELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %35) #5
  %37 = getelementptr inbounds %"struct.tinyply::PlyData", ptr %36, i32 0, i32 1
  store i64 %34, ptr %37, align 8, !tbaa !13
  %38 = load i8, ptr %13, align 1, !tbaa !9
  %39 = getelementptr inbounds %"struct.tinyply::PlyFile::PlyFileImpl::ParsingHelper", ptr %18, i32 0, i32 0
  %40 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7tinyply7PlyDataELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %39) #5
  %41 = getelementptr inbounds %"struct.tinyply::PlyData", ptr %40, i32 0, i32 0
  store i8 %38, ptr %41, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #5
  %42 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZN7tinyply6BufferC2EPh(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef %42)
          to label %43 unwind label %82

43:                                               ; preds = %31
  %44 = getelementptr inbounds %"struct.tinyply::PlyFile::PlyFileImpl::ParsingHelper", ptr %18, i32 0, i32 0
  %45 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7tinyply7PlyDataELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %44) #5
  %46 = getelementptr inbounds %"struct.tinyply::PlyData", ptr %45, i32 0, i32 2
  %47 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN7tinyply6BufferaSEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %46, ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  call void @_ZN7tinyply6BufferD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #5
  invoke void @_ZSt11make_sharedIN7tinyply7PlyFile11PlyFileImpl9PlyCursorEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES6_E4typeEEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.35") align 8 %23)
          to label %48 unwind label %86

48:                                               ; preds = %43
  %49 = getelementptr inbounds %"struct.tinyply::PlyFile::PlyFileImpl::ParsingHelper", ptr %18, i32 0, i32 1
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN7tinyply7PlyFile11PlyFileImpl9PlyCursorEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 8 dereferenceable(16) %23) #5
  call void @_ZNSt12__shared_ptrIN7tinyply7PlyFile11PlyFileImpl9PlyCursorELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  %51 = getelementptr inbounds %"struct.tinyply::PlyFile::PlyFileImpl::ParsingHelper", ptr %18, i32 0, i32 1
  %52 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7tinyply7PlyFile11PlyFileImpl9PlyCursorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %51) #5
  %53 = getelementptr inbounds %"struct.tinyply::PlyFile::PlyFileImpl::PlyCursor", ptr %52, i32 0, i32 0
  store i64 0, ptr %53, align 8, !tbaa !23
  %54 = getelementptr inbounds %"struct.tinyply::PlyFile::PlyFileImpl::ParsingHelper", ptr %18, i32 0, i32 1
  %55 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7tinyply7PlyFile11PlyFileImpl9PlyCursorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %54) #5
  %56 = getelementptr inbounds %"struct.tinyply::PlyFile::PlyFileImpl::PlyCursor", ptr %55, i32 0, i32 1
  store i64 0, ptr %56, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 56, ptr %24) #5
  %57 = getelementptr inbounds %class.anon, ptr %24, i32 0, i32 0
  store ptr %10, ptr %57, align 8, !tbaa !5
  %58 = getelementptr inbounds %class.anon, ptr %24, i32 0, i32 1
  store ptr %16, ptr %58, align 8, !tbaa !5
  %59 = getelementptr inbounds %class.anon, ptr %24, i32 0, i32 2
  store ptr %13, ptr %59, align 8, !tbaa !5
  %60 = getelementptr inbounds %class.anon, ptr %24, i32 0, i32 3
  store ptr %17, ptr %60, align 8, !tbaa !5
  %61 = getelementptr inbounds %class.anon, ptr %24, i32 0, i32 4
  store ptr %30, ptr %61, align 8, !tbaa !26
  %62 = getelementptr inbounds %class.anon, ptr %24, i32 0, i32 5
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %63, ptr %62, align 8, !tbaa !5
  %64 = getelementptr inbounds %class.anon, ptr %24, i32 0, i32 6
  store ptr %18, ptr %64, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.tinyply::PlyFile::PlyFileImpl", ptr %30, i32 0, i32 3
  %67 = call noundef i64 @_Z12find_elementRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIN7tinyply10PlyElementESaIS9_EE(ptr noundef nonnull align 8 dereferenceable(32) %65, ptr noundef nonnull align 8 dereferenceable(24) %66)
  %68 = trunc i64 %67 to i32
  store i32 %68, ptr %25, align 4, !tbaa !28
  %69 = load i32, ptr %25, align 4, !tbaa !28
  %70 = icmp sge i32 %69, 0
  br i1 %70, label %71, label %94

71:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %72 = getelementptr inbounds %"struct.tinyply::PlyFile::PlyFileImpl", ptr %30, i32 0, i32 3
  %73 = load i32, ptr %25, align 4, !tbaa !28
  %74 = sext i32 %73 to i64
  %75 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorIN7tinyply10PlyElementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %74) #5
  store ptr %75, ptr %26, align 8, !tbaa !5
  %76 = load ptr, ptr %26, align 8, !tbaa !5
  invoke void @"_ZZN7tinyply7PlyFile11PlyFileImpl25add_properties_to_elementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt16initializer_listIS7_ENS_4TypeEmPhSC_mENK3$_0clERNS_10PlyElementE"(ptr noundef nonnull align 8 dereferenceable(56) %24, ptr noundef nonnull align 8 dereferenceable(64) %76)
          to label %77 unwind label %90

77:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  br label %122

78:                                               ; preds = %9
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %20, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  br label %124

82:                                               ; preds = %31
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %20, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #5
  br label %124

86:                                               ; preds = %43
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %20, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  br label %124

90:                                               ; preds = %71
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %20, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  br label %123

94:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 64, ptr %27) #5
  %95 = load i8, ptr %16, align 1, !tbaa !9
  %96 = icmp eq i8 %95, 0
  br i1 %96, label %97, label %103

97:                                               ; preds = %94
  %98 = load ptr, ptr %12, align 8, !tbaa !5
  %99 = load i64, ptr %14, align 8, !tbaa !11
  %100 = call noundef i64 @_ZNKSt16initializer_listINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  %101 = udiv i64 %99, %100
  invoke void @_ZN7tinyply10PlyElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr noundef nonnull align 8 dereferenceable(64) %27, ptr noundef nonnull align 8 dereferenceable(32) %98, i64 noundef %101)
          to label %102 unwind label %113

102:                                              ; preds = %97
  br label %109

103:                                              ; preds = %94
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  %105 = load i64, ptr %14, align 8, !tbaa !11
  %106 = load i64, ptr %17, align 8, !tbaa !11
  %107 = udiv i64 %105, %106
  invoke void @_ZN7tinyply10PlyElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr noundef nonnull align 8 dereferenceable(64) %27, ptr noundef nonnull align 8 dereferenceable(32) %104, i64 noundef %107)
          to label %108 unwind label %113

108:                                              ; preds = %103
  br label %109

109:                                              ; preds = %108, %102
  invoke void @"_ZZN7tinyply7PlyFile11PlyFileImpl25add_properties_to_elementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt16initializer_listIS7_ENS_4TypeEmPhSC_mENK3$_0clERNS_10PlyElementE"(ptr noundef nonnull align 8 dereferenceable(56) %24, ptr noundef nonnull align 8 dereferenceable(64) %27)
          to label %110 unwind label %117

110:                                              ; preds = %109
  %111 = getelementptr inbounds %"struct.tinyply::PlyFile::PlyFileImpl", ptr %30, i32 0, i32 3
  invoke void @_ZNSt6vectorIN7tinyply10PlyElementESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %111, ptr noundef nonnull align 8 dereferenceable(64) %27)
          to label %112 unwind label %117

112:                                              ; preds = %110
  call void @_ZN7tinyply10PlyElementD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %27) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %27) #5
  br label %122

113:                                              ; preds = %103, %97
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %20, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %21, align 4
  br label %121

117:                                              ; preds = %110, %109
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %20, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %21, align 4
  call void @_ZN7tinyply10PlyElementD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %27) #5
  br label %121

121:                                              ; preds = %117, %113
  call void @llvm.lifetime.end.p0(i64 64, ptr %27) #5
  br label %123

122:                                              ; preds = %112, %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %24) #5
  call void @_ZN7tinyply7PlyFile11PlyFileImpl13ParsingHelperD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #5
  ret void

123:                                              ; preds = %121, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %24) #5
  br label %124

124:                                              ; preds = %123, %86, %82, %78
  call void @_ZN7tinyply7PlyFile11PlyFileImpl13ParsingHelperD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #5
  br label %125

125:                                              ; preds = %124
  %126 = load ptr, ptr %20, align 8
  %127 = load i32, ptr %21, align 4
  %128 = insertvalue { ptr, i32 } poison, ptr %126, 0
  %129 = insertvalue { ptr, i32 } %128, i32 %127, 1
  resume { ptr, i32 } %129
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN7tinyply7PlyFile11PlyFileImpl25add_properties_to_elementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt16initializer_listIS7_ENS_4TypeEmPhSC_mENK3$_0clERNS_10PlyElementE"(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(64)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7tinyply10PlyElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN7tinyply10PlyElementESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(64)) #4 align 2

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

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

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

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 = { 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 #3 = { 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 #4 = { 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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTSN7tinyply4TypeE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !12, i64 8}
!14 = !{!"_ZTSN7tinyply7PlyDataE", !10, i64 0, !12, i64 8, !15, i64 16}
!15 = !{!"_ZTSN7tinyply6BufferE", !6, i64 0, !16, i64 8, !12, i64 16}
!16 = !{!"_ZTSSt10unique_ptrIhN7tinyply6Buffer12delete_arrayEE", !17, i64 0}
!17 = !{!"_ZTSSt15__uniq_ptr_dataIhN7tinyply6Buffer12delete_arrayELb1ELb1EE", !18, i64 0}
!18 = !{!"_ZTSSt15__uniq_ptr_implIhN7tinyply6Buffer12delete_arrayEE", !19, i64 0}
!19 = !{!"_ZTSSt5tupleIJPhN7tinyply6Buffer12delete_arrayEEE", !20, i64 0}
!20 = !{!"_ZTSSt11_Tuple_implILm0EJPhN7tinyply6Buffer12delete_arrayEEE", !21, i64 0}
!21 = !{!"_ZTSSt10_Head_baseILm0EPhLb0EE", !6, i64 0}
!22 = !{!14, !10, i64 0}
!23 = !{!24, !12, i64 0}
!24 = !{!"_ZTSN7tinyply7PlyFile11PlyFileImpl9PlyCursorE", !12, i64 0, !12, i64 8}
!25 = !{!24, !12, i64 8}
!26 = !{!27, !6, i64 32}
!27 = !{!"_ZTSZN7tinyply7PlyFile11PlyFileImpl25add_properties_to_elementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt16initializer_listIS7_ENS_4TypeEmPhSC_mE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!28 = !{!29, !29, i64 0}
!29 = !{!"int", !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.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.35" = type { %"class.std::__shared_ptr.36" }
%"class.std::__shared_ptr.36" = type { ptr, %"class.std::__shared_count" }
%"class.std::initializer_list.44" = type { ptr, i64 }
%"struct.tinyply::PlyFile::PlyFileImpl::ParsingHelper" = type { %"class.std::shared_ptr", %"class.std::shared_ptr.35" }
%"class.tinyply::Buffer" = type { ptr, %"class.std::unique_ptr", i64 }
%"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.40" }
%"struct.std::_Head_base.40" = type { ptr }
%class.anon = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"struct.tinyply::PlyElement" = type { %"class.std::__cxx11::basic_string", i64, %"class.std::vector" }
%"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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<tinyply::PlyProperty, std::allocator<tinyply::PlyProperty>>::_Vector_impl" }
%"struct.std::_Vector_base<tinyply::PlyProperty, std::allocator<tinyply::PlyProperty>>::_Vector_impl" = type { %"struct.std::_Vector_base<tinyply::PlyProperty, std::allocator<tinyply::PlyProperty>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tinyply::PlyProperty, std::allocator<tinyply::PlyProperty>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; 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 dso_local noundef i64 @_Z12find_elementRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIN7tinyply10PlyElementESaIS9_EE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIN7tinyply7PlyDataEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIN7tinyply7PlyFile11PlyFileImpl9PlyCursorEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES6_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.35") align 8) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorIN7tinyply10PlyElementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7tinyply7PlyFile11PlyFileImpl25add_properties_to_elementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt16initializer_listIS7_ENS_4TypeEmPhSC_m(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr %2, i64 %3, i8 noundef zeroext %4, i64 noundef %5, ptr noundef %6, i8 noundef zeroext %7, i64 noundef %8) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %10 = alloca %"class.std::initializer_list.44", align 8
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i64, align 8
  %14 = alloca %"struct.tinyply::PlyFile::PlyFileImpl::ParsingHelper", align 8
  %15 = alloca %"class.std::shared_ptr", align 8
  %16 = alloca %"class.tinyply::Buffer", align 8
  %17 = alloca %"class.std::shared_ptr.35", align 8
  %18 = alloca %class.anon, align 8
  %19 = alloca %"struct.tinyply::PlyElement", align 8
  store ptr %2, ptr %10, align 8
  %20 = getelementptr inbounds i8, ptr %10, i64 8
  store i64 %3, ptr %20, align 8
  store i8 %4, ptr %11, align 1, !tbaa !5
  store i8 %7, ptr %12, align 1, !tbaa !5
  store i64 %8, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #5
  call void @_ZN7tinyply7PlyFile11PlyFileImpl13ParsingHelperC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #5
  invoke void @_ZSt11make_sharedIN7tinyply7PlyDataEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES4_E4typeEEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %15)
          to label %21 unwind label %48

21:                                               ; preds = %9
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN7tinyply7PlyDataEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  call void @_ZNSt12__shared_ptrIN7tinyply7PlyDataELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #5
  %23 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7tinyply7PlyDataELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  %24 = getelementptr inbounds i8, ptr %23, i64 8
  store i64 %5, ptr %24, align 8, !tbaa !11
  %25 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7tinyply7PlyDataELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  store i8 %4, ptr %25, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #5
  call void @_ZN7tinyply6BufferC2EPh(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef %6)
  %26 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7tinyply7PlyDataELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  %27 = getelementptr inbounds i8, ptr %26, i64 16
  %28 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN7tinyply6BufferaSEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  call void @_ZN7tinyply6BufferD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #5
  invoke void @_ZSt11make_sharedIN7tinyply7PlyFile11PlyFileImpl9PlyCursorEJEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES6_E4typeEEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.35") align 8 %17)
          to label %29 unwind label %50

29:                                               ; preds = %21
  %30 = getelementptr inbounds i8, ptr %14, i64 16
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN7tinyply7PlyFile11PlyFileImpl9PlyCursorEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  call void @_ZNSt12__shared_ptrIN7tinyply7PlyFile11PlyFileImpl9PlyCursorELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #5
  %32 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7tinyply7PlyFile11PlyFileImpl9PlyCursorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %30) #5
  store i64 0, ptr %32, align 8, !tbaa !22
  %33 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7tinyply7PlyFile11PlyFileImpl9PlyCursorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %30) #5
  %34 = getelementptr inbounds i8, ptr %33, i64 8
  store i64 0, ptr %34, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %18) #5
  store ptr %10, ptr %18, align 8, !tbaa !25
  %35 = getelementptr inbounds i8, ptr %18, i64 8
  store ptr %12, ptr %35, align 8, !tbaa !25
  %36 = getelementptr inbounds i8, ptr %18, i64 16
  store ptr %11, ptr %36, align 8, !tbaa !25
  %37 = getelementptr inbounds i8, ptr %18, i64 24
  store ptr %13, ptr %37, align 8, !tbaa !25
  %38 = getelementptr inbounds i8, ptr %18, i64 32
  store ptr %0, ptr %38, align 8, !tbaa !26
  %39 = getelementptr inbounds i8, ptr %18, i64 40
  store ptr %1, ptr %39, align 8, !tbaa !25
  %40 = getelementptr inbounds i8, ptr %18, i64 48
  store ptr %14, ptr %40, align 8, !tbaa !25
  %41 = getelementptr inbounds i8, ptr %0, i64 56
  %42 = call noundef i64 @_Z12find_elementRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIN7tinyply10PlyElementESaIS9_EE(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(24) %41)
  %43 = and i64 %42, 2147483648
  %44 = icmp eq i64 %43, 0
  br i1 %44, label %45, label %54

45:                                               ; preds = %29
  %46 = and i64 %42, 2147483647
  %47 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorIN7tinyply10PlyElementESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %46) #5
  invoke void @"_ZZN7tinyply7PlyFile11PlyFileImpl25add_properties_to_elementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt16initializer_listIS7_ENS_4TypeEmPhSC_mENK3$_0clERNS_10PlyElementE"(ptr noundef nonnull align 8 dereferenceable(56) %18, ptr noundef nonnull align 8 dereferenceable(64) %47)
          to label %70 unwind label %52

48:                                               ; preds = %9
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #5
  br label %72

50:                                               ; preds = %21
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #5
  br label %72

52:                                               ; preds = %45
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %71

54:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %19) #5
  %55 = load i8, ptr %12, align 1, !tbaa !5
  %56 = icmp eq i8 %55, 0
  br i1 %56, label %57, label %59

57:                                               ; preds = %54
  %58 = call noundef i64 @_ZNKSt16initializer_listINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  br label %.invoke

59:                                               ; preds = %54
  %60 = load i64, ptr %13, align 8, !tbaa !9
  br label %.invoke

.invoke:                                          ; preds = %57, %59
  %.sink = phi i64 [ %58, %57 ], [ %60, %59 ]
  %61 = udiv i64 %5, %.sink
  invoke void @_ZN7tinyply10PlyElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr noundef nonnull align 8 dereferenceable(64) %19, ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %61)
          to label %62 unwind label %65

62:                                               ; preds = %.invoke
  invoke void @"_ZZN7tinyply7PlyFile11PlyFileImpl25add_properties_to_elementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt16initializer_listIS7_ENS_4TypeEmPhSC_mENK3$_0clERNS_10PlyElementE"(ptr noundef nonnull align 8 dereferenceable(56) %18, ptr noundef nonnull align 8 dereferenceable(64) %19)
          to label %63 unwind label %67

63:                                               ; preds = %62
  invoke void @_ZNSt6vectorIN7tinyply10PlyElementESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %41, ptr noundef nonnull align 8 dereferenceable(64) %19)
          to label %64 unwind label %67

64:                                               ; preds = %63
  call void @_ZN7tinyply10PlyElementD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %19) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %19) #5
  br label %70

65:                                               ; preds = %.invoke
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %69

67:                                               ; preds = %63, %62
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7tinyply10PlyElementD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %19) #5
  br label %69

69:                                               ; preds = %67, %65
  %.pn = phi { ptr, i32 } [ %68, %67 ], [ %66, %65 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %19) #5
  br label %71

70:                                               ; preds = %45, %64
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %18) #5
  call void @_ZN7tinyply7PlyFile11PlyFileImpl13ParsingHelperD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #5
  ret void

71:                                               ; preds = %69, %52
  %.pn18 = phi { ptr, i32 } [ %53, %52 ], [ %.pn, %69 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %18) #5
  br label %72

72:                                               ; preds = %71, %50, %48
  %.pn18.pn = phi { ptr, i32 } [ %.pn18, %71 ], [ %51, %50 ], [ %49, %48 ]
  call void @_ZN7tinyply7PlyFile11PlyFileImpl13ParsingHelperD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #5
  resume { ptr, i32 } %.pn18.pn
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN7tinyply7PlyFile11PlyFileImpl25add_properties_to_elementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt16initializer_listIS7_ENS_4TypeEmPhSC_mENK3$_0clERNS_10PlyElementE"(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7tinyply10PlyElementC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN7tinyply10PlyElementESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #4 align 2

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"_ZTSN7tinyply4TypeE", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_ZTSN7tinyply7PlyDataE", !6, i64 0, !10, i64 8, !13, i64 16}
!13 = !{!"_ZTSN7tinyply6BufferE", !14, i64 0, !15, i64 8, !10, i64 16}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!"_ZTSSt10unique_ptrIhN7tinyply6Buffer12delete_arrayEE", !16, i64 0}
!16 = !{!"_ZTSSt15__uniq_ptr_dataIhN7tinyply6Buffer12delete_arrayELb1ELb1EE", !17, i64 0}
!17 = !{!"_ZTSSt15__uniq_ptr_implIhN7tinyply6Buffer12delete_arrayEE", !18, i64 0}
!18 = !{!"_ZTSSt5tupleIJPhN7tinyply6Buffer12delete_arrayEEE", !19, i64 0}
!19 = !{!"_ZTSSt11_Tuple_implILm0EJPhN7tinyply6Buffer12delete_arrayEEE", !20, i64 0}
!20 = !{!"_ZTSSt10_Head_baseILm0EPhLb0EE", !14, i64 0}
!21 = !{!12, !6, i64 0}
!22 = !{!23, !10, i64 0}
!23 = !{!"_ZTSN7tinyply7PlyFile11PlyFileImpl9PlyCursorE", !10, i64 0, !10, i64 8}
!24 = !{!23, !10, i64 8}
!25 = !{!14, !14, i64 0}
!26 = !{!27, !14, i64 32}
!27 = !{!"_ZTSZN7tinyply7PlyFile11PlyFileImpl25add_properties_to_elementERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt16initializer_listIS7_ENS_4TypeEmPhSC_mE3$_0", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass