; 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<tinyply::Type, std::pair<const tinyply::Type, tinyply::PropertyInfo>, std::_Select1st<std::pair<const tinyply::Type, tinyply::PropertyInfo>>, std::less<tinyply::Type>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<tinyply::Type, std::pair<const tinyply::Type, tinyply::PropertyInfo>, std::_Select1st<std::pair<const tinyply::Type, tinyply::PropertyInfo>>, std::less<tinyply::Type>>::_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.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.0" = type { i8 }
%"struct.tinyply::PlyProperty" = type { %"class.std::__cxx11::basic_string", i8, i8, i8, i32 }
%"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] }
%"struct.tinyply::PropertyInfo" = type { i32, %"class.std::__cxx11::basic_string" }

@_ZN7tinyplyL13PropertyTableE = external hidden global %"class.std::map", align 8
@__dso_handle = external hidden global i8
@_ZZN7tinyply7PlyFile11PlyFileImpl20skip_property_binaryERKNS_11PlyPropertyERSiE4skip = external hidden global %"class.std::vector.25", align 8
@_ZGVZN7tinyply7PlyFile11PlyFileImpl20skip_property_binaryERKNS_11PlyPropertyERSiE4skip = external hidden global i64, align 8

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

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

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: nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN7tinyply7PlyFile11PlyFileImpl20skip_property_binaryERKNS_11PlyPropertyERSi(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::allocator.0", align 1
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %14 = load ptr, ptr %5, align 8
  %15 = load atomic i8, ptr @_ZGVZN7tinyply7PlyFile11PlyFileImpl20skip_property_binaryERKNS_11PlyPropertyERSiE4skip acquire, align 8
  %16 = icmp eq i8 %15, 0
  br i1 %16, label %17, label %30, !prof !9

17:                                               ; preds = %3
  %18 = call i32 @__cxa_guard_acquire(ptr @_ZGVZN7tinyply7PlyFile11PlyFileImpl20skip_property_binaryERKNS_11PlyPropertyERSiE4skip) #2
  %19 = icmp ne i32 %18, 0
  br i1 %19, label %20, label %30

20:                                               ; preds = %17
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.tinyply::PlyProperty", ptr %21, i32 0, i32 1
  %23 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt3mapIN7tinyply4TypeENS0_12PropertyInfoESt4lessIS1_ESaISt4pairIKS1_S2_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) @_ZN7tinyplyL13PropertyTableE, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %24 unwind label %46

24:                                               ; preds = %20
  %25 = getelementptr inbounds %"struct.tinyply::PropertyInfo", ptr %23, i32 0, i32 0
  %26 = load i32, ptr %25, align 8, !tbaa !10
  %27 = sext i32 %26 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #2
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #2
  invoke void @_ZNSt6vectorIcSaIcEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) @_ZZN7tinyply7PlyFile11PlyFileImpl20skip_property_binaryERKNS_11PlyPropertyERSiE4skip, i64 noundef %27, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %28 unwind label %50

28:                                               ; preds = %24
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #2
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #2
  %29 = call i32 @__cxa_atexit(ptr @_ZNSt6vectorIcSaIcEED2Ev, ptr @_ZZN7tinyply7PlyFile11PlyFileImpl20skip_property_binaryERKNS_11PlyPropertyERSiE4skip, ptr @__dso_handle) #2
  call void @__cxa_guard_release(ptr @_ZGVZN7tinyply7PlyFile11PlyFileImpl20skip_property_binaryERKNS_11PlyPropertyERSiE4skip) #2
  br label %30

30:                                               ; preds = %28, %17, %3
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.tinyply::PlyProperty", ptr %31, i32 0, i32 2
  %33 = load i8, ptr %32, align 1, !tbaa !16, !range !20, !noundef !21
  %34 = trunc i8 %33 to i1
  br i1 %34, label %35, label %77

35:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #2
  store i64 0, ptr %11, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #2
  store i64 0, ptr %12, align 8, !tbaa !22
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.tinyply::PlyProperty", ptr %36, i32 0, i32 3
  %38 = load i8, ptr %37, align 2, !tbaa !23
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = call noundef i64 @_ZN7tinyply7PlyFile11PlyFileImpl20read_property_binaryENS_4TypeEPvRmRSi(ptr noundef nonnull align 8 dereferenceable(128) %14, i8 noundef zeroext %38, ptr noundef %11, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(16) %39)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #2
  store i64 0, ptr %13, align 8, !tbaa !22
  br label %41

41:                                               ; preds = %65, %35
  %42 = load i64, ptr %13, align 8, !tbaa !22
  %43 = load i64, ptr %11, align 8, !tbaa !22
  %44 = icmp ult i64 %42, %43
  br i1 %44, label %55, label %45

45:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #2
  br label %68

46:                                               ; preds = %20
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %8, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %9, align 4
  br label %54

50:                                               ; preds = %24
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %8, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %9, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #2
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #2
  br label %54

54:                                               ; preds = %50, %46
  call void @__cxa_guard_abort(ptr @_ZGVZN7tinyply7PlyFile11PlyFileImpl20skip_property_binaryERKNS_11PlyPropertyERSiE4skip) #2
  br label %95

55:                                               ; preds = %41
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = call noundef ptr @_ZNSt6vectorIcSaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZZN7tinyply7PlyFile11PlyFileImpl20skip_property_binaryERKNS_11PlyPropertyERSiE4skip) #2
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.tinyply::PlyProperty", ptr %58, i32 0, i32 1
  %60 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt3mapIN7tinyply4TypeENS0_12PropertyInfoESt4lessIS1_ESaISt4pairIKS1_S2_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) @_ZN7tinyplyL13PropertyTableE, ptr noundef nonnull align 1 dereferenceable(1) %59)
  %61 = getelementptr inbounds %"struct.tinyply::PropertyInfo", ptr %60, i32 0, i32 0
  %62 = load i32, ptr %61, align 8, !tbaa !10
  %63 = sext i32 %62 to i64
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %56, ptr noundef %57, i64 noundef %63)
  br label %65

65:                                               ; preds = %55
  %66 = load i64, ptr %13, align 8, !tbaa !22
  %67 = add i64 %66, 1
  store i64 %67, ptr %13, align 8, !tbaa !22
  br label %41, !llvm.loop !24

68:                                               ; preds = %45
  %69 = load i64, ptr %11, align 8, !tbaa !22
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.tinyply::PlyProperty", ptr %70, i32 0, i32 1
  %72 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt3mapIN7tinyply4TypeENS0_12PropertyInfoESt4lessIS1_ESaISt4pairIKS1_S2_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) @_ZN7tinyplyL13PropertyTableE, ptr noundef nonnull align 1 dereferenceable(1) %71)
  %73 = getelementptr inbounds %"struct.tinyply::PropertyInfo", ptr %72, i32 0, i32 0
  %74 = load i32, ptr %73, align 8, !tbaa !10
  %75 = sext i32 %74 to i64
  %76 = mul i64 %69, %75
  store i64 %76, ptr %4, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #2
  br label %93

77:                                               ; preds = %30
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = call noundef ptr @_ZNSt6vectorIcSaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZZN7tinyply7PlyFile11PlyFileImpl20skip_property_binaryERKNS_11PlyPropertyERSiE4skip) #2
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.tinyply::PlyProperty", ptr %80, i32 0, i32 1
  %82 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt3mapIN7tinyply4TypeENS0_12PropertyInfoESt4lessIS1_ESaISt4pairIKS1_S2_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) @_ZN7tinyplyL13PropertyTableE, ptr noundef nonnull align 1 dereferenceable(1) %81)
  %83 = getelementptr inbounds %"struct.tinyply::PropertyInfo", ptr %82, i32 0, i32 0
  %84 = load i32, ptr %83, align 8, !tbaa !10
  %85 = sext i32 %84 to i64
  %86 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %78, ptr noundef %79, i64 noundef %85)
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.tinyply::PlyProperty", ptr %87, i32 0, i32 1
  %89 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt3mapIN7tinyply4TypeENS0_12PropertyInfoESt4lessIS1_ESaISt4pairIKS1_S2_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) @_ZN7tinyplyL13PropertyTableE, ptr noundef nonnull align 1 dereferenceable(1) %88)
  %90 = getelementptr inbounds %"struct.tinyply::PropertyInfo", ptr %89, i32 0, i32 0
  %91 = load i32, ptr %90, align 8, !tbaa !10
  %92 = sext i32 %91 to i64
  store i64 %92, ptr %4, align 8
  br label %93

93:                                               ; preds = %77, %68
  %94 = load i64, ptr %4, align 8
  ret i64 %94

95:                                               ; preds = %54
  %96 = load ptr, ptr %8, align 8
  %97 = load i32, ptr %9, align 4
  %98 = insertvalue { ptr, i32 } poison, ptr %96, 0
  %99 = insertvalue { ptr, i32 } %98, i32 %97, 1
  resume { ptr, i32 } %99
}

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN7tinyply7PlyFile11PlyFileImpl20read_property_binaryENS_4TypeEPvRmRSi(ptr noundef nonnull align 8 dereferenceable(128), i8 noundef zeroext, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { nounwind }
attributes #3 = { 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 = { "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" }

!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 = !{!"branch_weights", i32 1, i32 1048575}
!10 = !{!11, !12, i64 0}
!11 = !{!"_ZTSN7tinyply12PropertyInfoE", !12, i64 0, !13, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !19, i64 33}
!17 = !{!"_ZTSN7tinyply11PlyPropertyE", !13, i64 0, !18, i64 32, !19, i64 33, !18, i64 34, !12, i64 36}
!18 = !{!"_ZTSN7tinyply4TypeE", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!15, !15, i64 0}
!23 = !{!17, !18, i64 34}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


; 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<tinyply::Type, std::pair<const tinyply::Type, tinyply::PropertyInfo>, std::_Select1st<std::pair<const tinyply::Type, tinyply::PropertyInfo>>, std::less<tinyply::Type>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<tinyply::Type, std::pair<const tinyply::Type, tinyply::PropertyInfo>, std::_Select1st<std::pair<const tinyply::Type, tinyply::PropertyInfo>>, std::less<tinyply::Type>>::_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.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.0" = type { i8 }

@_ZN7tinyplyL13PropertyTableE = external hidden global %"class.std::map", align 8
@__dso_handle = external hidden global i8
@_ZZN7tinyply7PlyFile11PlyFileImpl20skip_property_binaryERKNS_11PlyPropertyERSiE4skip = external hidden global %"class.std::vector.25", align 8
@_ZGVZN7tinyply7PlyFile11PlyFileImpl20skip_property_binaryERKNS_11PlyPropertyERSiE4skip = external hidden global i64, align 8

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

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

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: nofree nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN7tinyply7PlyFile11PlyFileImpl20skip_property_binaryERKNS_11PlyPropertyERSi(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::allocator.0", align 1
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = load atomic i8, ptr @_ZGVZN7tinyply7PlyFile11PlyFileImpl20skip_property_binaryERKNS_11PlyPropertyERSiE4skip acquire, align 8
  %8 = icmp eq i8 %7, 0
  br i1 %8, label %9, label %19, !prof !5

9:                                                ; preds = %3
  %10 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZN7tinyply7PlyFile11PlyFileImpl20skip_property_binaryERKNS_11PlyPropertyERSiE4skip) #5
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %19, label %11

11:                                               ; preds = %9
  %12 = getelementptr inbounds i8, ptr %1, i64 32
  %13 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt3mapIN7tinyply4TypeENS0_12PropertyInfoESt4lessIS1_ESaISt4pairIKS1_S2_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) @_ZN7tinyplyL13PropertyTableE, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %14 unwind label %34

14:                                               ; preds = %11
  %15 = load i32, ptr %13, align 8, !tbaa !6
  %16 = sext i32 %15 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  invoke void @_ZNSt6vectorIcSaIcEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) @_ZZN7tinyply7PlyFile11PlyFileImpl20skip_property_binaryERKNS_11PlyPropertyERSiE4skip, i64 noundef %16, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %17 unwind label %36

17:                                               ; preds = %14
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  %18 = call i32 @__cxa_atexit(ptr nonnull @_ZNSt6vectorIcSaIcEED2Ev, ptr nonnull @_ZZN7tinyply7PlyFile11PlyFileImpl20skip_property_binaryERKNS_11PlyPropertyERSiE4skip, ptr nonnull @__dso_handle) #5
  call void @__cxa_guard_release(ptr nonnull @_ZGVZN7tinyply7PlyFile11PlyFileImpl20skip_property_binaryERKNS_11PlyPropertyERSiE4skip) #5
  br label %19

19:                                               ; preds = %17, %9, %3
  %20 = getelementptr inbounds i8, ptr %1, i64 33
  %21 = load i8, ptr %20, align 1, !tbaa !15, !range !19, !noundef !20
  %22 = trunc nuw i8 %21 to i1
  br i1 %22, label %23, label %48

23:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  store i64 0, ptr %5, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  store i64 0, ptr %6, align 8, !tbaa !21
  %24 = getelementptr inbounds i8, ptr %1, i64 34
  %25 = load i8, ptr %24, align 2, !tbaa !22
  %26 = call noundef i64 @_ZN7tinyply7PlyFile11PlyFileImpl20read_property_binaryENS_4TypeEPvRmRSi(ptr noundef nonnull align 8 dereferenceable(128) %0, i8 noundef zeroext %25, ptr noundef nonnull %5, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(16) %2)
  %27 = load i64, ptr %5, align 8, !tbaa !21
  %.not21 = icmp eq i64 %27, 0
  br i1 %.not21, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %23
  %28 = getelementptr inbounds i8, ptr %1, i64 32
  br label %39

._crit_edge:                                      ; preds = %39, %23
  %.lcssa = phi i64 [ 0, %23 ], [ %46, %39 ]
  %29 = getelementptr inbounds i8, ptr %1, i64 32
  %30 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt3mapIN7tinyply4TypeENS0_12PropertyInfoESt4lessIS1_ESaISt4pairIKS1_S2_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) @_ZN7tinyplyL13PropertyTableE, ptr noundef nonnull align 1 dereferenceable(1) %29)
  %31 = load i32, ptr %30, align 8, !tbaa !6
  %32 = sext i32 %31 to i64
  %33 = mul i64 %.lcssa, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %58

34:                                               ; preds = %11
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %38

36:                                               ; preds = %14
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  br label %38

38:                                               ; preds = %36, %34
  %.pn = phi { ptr, i32 } [ %37, %36 ], [ %35, %34 ]
  call void @__cxa_guard_abort(ptr nonnull @_ZGVZN7tinyply7PlyFile11PlyFileImpl20skip_property_binaryERKNS_11PlyPropertyERSiE4skip) #5
  resume { ptr, i32 } %.pn

39:                                               ; preds = %.lr.ph, %39
  %.020 = phi i64 [ 0, %.lr.ph ], [ %45, %39 ]
  %40 = call noundef ptr @_ZNSt6vectorIcSaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZZN7tinyply7PlyFile11PlyFileImpl20skip_property_binaryERKNS_11PlyPropertyERSiE4skip) #5
  %41 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt3mapIN7tinyply4TypeENS0_12PropertyInfoESt4lessIS1_ESaISt4pairIKS1_S2_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) @_ZN7tinyplyL13PropertyTableE, ptr noundef nonnull align 1 dereferenceable(1) %28)
  %42 = load i32, ptr %41, align 8, !tbaa !6
  %43 = sext i32 %42 to i64
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef %40, i64 noundef %43)
  %45 = add nuw i64 %.020, 1
  %46 = load i64, ptr %5, align 8, !tbaa !21
  %47 = icmp ult i64 %45, %46
  br i1 %47, label %39, label %._crit_edge, !llvm.loop !23

48:                                               ; preds = %19
  %49 = call noundef ptr @_ZNSt6vectorIcSaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZZN7tinyply7PlyFile11PlyFileImpl20skip_property_binaryERKNS_11PlyPropertyERSiE4skip) #5
  %50 = getelementptr inbounds i8, ptr %1, i64 32
  %51 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt3mapIN7tinyply4TypeENS0_12PropertyInfoESt4lessIS1_ESaISt4pairIKS1_S2_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) @_ZN7tinyplyL13PropertyTableE, ptr noundef nonnull align 1 dereferenceable(1) %50)
  %52 = load i32, ptr %51, align 8, !tbaa !6
  %53 = sext i32 %52 to i64
  %54 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef %49, i64 noundef %53)
  %55 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt3mapIN7tinyply4TypeENS0_12PropertyInfoESt4lessIS1_ESaISt4pairIKS1_S2_EEEixERS6_(ptr noundef nonnull align 8 dereferenceable(48) @_ZN7tinyplyL13PropertyTableE, ptr noundef nonnull align 1 dereferenceable(1) %50)
  %56 = load i32, ptr %55, align 8, !tbaa !6
  %57 = sext i32 %56 to i64
  br label %58

58:                                               ; preds = %48, %._crit_edge
  %.017 = phi i64 [ %33, %._crit_edge ], [ %57, %48 ]
  ret i64 %.017
}

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN7tinyply7PlyFile11PlyFileImpl20read_property_binaryENS_4TypeEPvRmRSi(ptr noundef nonnull align 8 dereferenceable(128), i8 noundef zeroext, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { nofree nounwind }
attributes #3 = { 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 = { "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 = !{!"branch_weights", i32 1, i32 1048575}
!6 = !{!7, !8, i64 0}
!7 = !{!"_ZTSN7tinyply12PropertyInfoE", !8, i64 0, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !14, i64 8, !9, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!"long", !9, i64 0}
!15 = !{!16, !18, i64 33}
!16 = !{!"_ZTSN7tinyply11PlyPropertyE", !11, i64 0, !17, i64 32, !18, i64 33, !17, i64 34, !8, i64 36}
!17 = !{!"_ZTSN7tinyply4TypeE", !9, i64 0}
!18 = !{!"bool", !9, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!14, !14, i64 0}
!22 = !{!16, !17, i64 34}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass