; LLVM IR from bldeng/AASolver :: AndersonOpt/external/OpenMesh/Core/IO/writer (PLYWriter)

; 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.OpenMesh::VectorT" = type { %"struct.std::array" }
%"struct.std::array" = type { [3 x float] }
%"class.OpenMesh::VectorT.34" = type { %"struct.std::array.35" }
%"struct.std::array.35" = type { [2 x float] }
%"class.OpenMesh::VectorT.42" = type { %"struct.std::array.43" }
%"struct.std::array.43" = type { [4 x i8] }
%"class.OpenMesh::VectorT.32" = type { %"struct.std::array.33" }
%"struct.std::array.33" = type { [4 x float] }
%"struct.OpenMesh::VertexHandle" = type { %"class.OpenMesh::BaseHandle" }
%"class.OpenMesh::BaseHandle" = type { i32 }
%"class.std::vector.36" = type { %"struct.std::_Vector_base.37" }
%"struct.std::_Vector_base.37" = type { %"struct.std::_Vector_base<OpenMesh::VertexHandle, std::allocator<OpenMesh::VertexHandle>>::_Vector_impl" }
%"struct.std::_Vector_base<OpenMesh::VertexHandle, std::allocator<OpenMesh::VertexHandle>>::_Vector_impl" = type { %"struct.std::_Vector_base<OpenMesh::VertexHandle, std::allocator<OpenMesh::VertexHandle>>::_Vector_impl_data" }
%"struct.std::_Vector_base<OpenMesh::VertexHandle, std::allocator<OpenMesh::VertexHandle>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<OpenMesh::IO::_PLYWriter_::CustomProperty, std::allocator<OpenMesh::IO::_PLYWriter_::CustomProperty>>::_Vector_impl" }
%"struct.std::_Vector_base<OpenMesh::IO::_PLYWriter_::CustomProperty, std::allocator<OpenMesh::IO::_PLYWriter_::CustomProperty>>::_Vector_impl" = type { %"struct.std::_Vector_base<OpenMesh::IO::_PLYWriter_::CustomProperty, std::allocator<OpenMesh::IO::_PLYWriter_::CustomProperty>>::_Vector_impl_data" }
%"struct.std::_Vector_base<OpenMesh::IO::_PLYWriter_::CustomProperty, std::allocator<OpenMesh::IO::_PLYWriter_::CustomProperty>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.41" = type { ptr }
%"struct.OpenMesh::FaceHandle" = type { %"class.OpenMesh::BaseHandle" }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO11_PLYWriter_12write_binaryERSoRNS0_12BaseExporterENS0_7OptionsE(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef %3) #1 align 2 personality ptr @__gxx_personality_v0 {
  %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 i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.OpenMesh::VectorT", align 4
  %13 = alloca %"class.OpenMesh::VectorT", align 4
  %14 = alloca %"class.OpenMesh::VectorT.34", align 4
  %15 = alloca %"class.OpenMesh::VectorT.42", align 1
  %16 = alloca %"class.OpenMesh::VectorT.32", align 4
  %17 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %18 = alloca %"class.std::vector.36", align 8
  %19 = alloca %"class.std::vector.18", align 8
  %20 = alloca %"class.std::vector.18", align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %24 = alloca %"class.OpenMesh::VectorT", align 4
  %25 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %26 = alloca { <2 x float>, float }, align 8
  %27 = alloca %"class.OpenMesh::VectorT", align 4
  %28 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %29 = alloca { <2 x float>, float }, align 8
  %30 = alloca %"class.OpenMesh::VectorT.34", align 4
  %31 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %32 = alloca %"class.OpenMesh::VectorT.32", align 4
  %33 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %34 = alloca %"class.OpenMesh::VectorT.42", align 1
  %35 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %36 = alloca %"class.__gnu_cxx::__normal_iterator.41", align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator.41", align 8
  %38 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %39 = alloca i64, align 8
  %40 = alloca %"class.__gnu_cxx::__normal_iterator.41", align 8
  %41 = alloca %"class.__gnu_cxx::__normal_iterator.41", 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
  store ptr %3, ptr %8, align 8, !tbaa !5
  %42 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #6
  call void @_ZN8OpenMesh7VectorTIfLi3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #6
  call void @_ZN8OpenMesh7VectorTIfLi3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %13)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @_ZN8OpenMesh7VectorTIfLi2EEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %14)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @_ZN8OpenMesh7VectorTIhLi4EEC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %15)
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  call void @_ZN8OpenMesh7VectorTIfLi4EEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %16)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  call void @_ZN8OpenMesh12VertexHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #6
  call void @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #6
  call void @_ZNSt6vectorIN8OpenMesh2IO11_PLYWriter_14CustomPropertyESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #6
  call void @_ZNSt6vectorIN8OpenMesh2IO11_PLYWriter_14CustomPropertyESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_12write_headerERSoRNS0_12BaseExporterERNS0_7OptionsERSt6vectorINS1_14CustomPropertyESaIS8_EESB_(ptr noundef nonnull align 8 dereferenceable(112) %42, ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %45 unwind label %115

45:                                               ; preds = %4
  store i32 0, ptr %9, align 4, !tbaa !9
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = load ptr, ptr %46, align 8, !tbaa !11
  %48 = getelementptr inbounds ptr, ptr %47, i64 26
  %49 = load ptr, ptr %48, align 8
  %50 = invoke noundef i64 %49(ptr noundef nonnull align 8 dereferenceable(8) %46)
          to label %51 unwind label %115

51:                                               ; preds = %45
  %52 = trunc i64 %50 to i32
  store i32 %52, ptr %10, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %276, %51
  %54 = load i32, ptr %9, align 4, !tbaa !9
  %55 = load i32, ptr %10, align 4, !tbaa !9
  %56 = icmp ult i32 %54, %55
  br i1 %56, label %57, label %279

57:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %58 = load i32, ptr %9, align 4, !tbaa !9
  invoke void @_ZN8OpenMesh12VertexHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %23, i32 noundef %58)
          to label %59 unwind label %119

59:                                               ; preds = %57
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %23, i64 4, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #6
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %17, i64 4, i1 false)
  %61 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %25, i32 0, i32 0
  %62 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %61, i32 0, i32 0
  %63 = load i32, ptr %62, align 4
  %64 = load ptr, ptr %60, align 8, !tbaa !11
  %65 = getelementptr inbounds ptr, ptr %64, i64 2
  %66 = load ptr, ptr %65, align 8
  %67 = invoke { <2 x float>, float } %66(ptr noundef nonnull align 8 dereferenceable(8) %60, i32 %63)
          to label %68 unwind label %123

68:                                               ; preds = %59
  %69 = getelementptr inbounds %"class.OpenMesh::VectorT", ptr %24, i32 0, i32 0
  %70 = getelementptr inbounds %"struct.std::array", ptr %69, i32 0, i32 0
  store { <2 x float>, float } %67, ptr %26, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %70, ptr align 8 %26, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %24, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #6
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %12, i64 noundef 0)
          to label %73 unwind label %115

73:                                               ; preds = %68
  %74 = load float, ptr %72, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112) %42, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %71, float noundef %74)
          to label %75 unwind label %115

75:                                               ; preds = %73
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %12, i64 noundef 1)
          to label %78 unwind label %115

78:                                               ; preds = %75
  %79 = load float, ptr %77, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112) %42, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %76, float noundef %79)
          to label %80 unwind label %115

80:                                               ; preds = %78
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %12, i64 noundef 2)
          to label %83 unwind label %115

83:                                               ; preds = %80
  %84 = load float, ptr %82, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112) %42, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %81, float noundef %84)
          to label %85 unwind label %115

85:                                               ; preds = %83
  %86 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options17vertex_has_normalEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %87 unwind label %115

87:                                               ; preds = %85
  br i1 %86, label %88, label %131

88:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 12, ptr %27) #6
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %17, i64 4, i1 false)
  %90 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %28, i32 0, i32 0
  %91 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %90, i32 0, i32 0
  %92 = load i32, ptr %91, align 4
  %93 = load ptr, ptr %89, align 8, !tbaa !11
  %94 = getelementptr inbounds ptr, ptr %93, i64 3
  %95 = load ptr, ptr %94, align 8
  %96 = invoke { <2 x float>, float } %95(ptr noundef nonnull align 8 dereferenceable(8) %89, i32 %92)
          to label %97 unwind label %127

97:                                               ; preds = %88
  %98 = getelementptr inbounds %"class.OpenMesh::VectorT", ptr %27, i32 0, i32 0
  %99 = getelementptr inbounds %"struct.std::array", ptr %98, i32 0, i32 0
  store { <2 x float>, float } %96, ptr %29, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %99, ptr align 8 %29, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %27, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #6
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %13, i64 noundef 0)
          to label %102 unwind label %115

102:                                              ; preds = %97
  %103 = load float, ptr %101, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112) %42, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %100, float noundef %103)
          to label %104 unwind label %115

104:                                              ; preds = %102
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %13, i64 noundef 1)
          to label %107 unwind label %115

107:                                              ; preds = %104
  %108 = load float, ptr %106, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112) %42, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %105, float noundef %108)
          to label %109 unwind label %115

109:                                              ; preds = %107
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %13, i64 noundef 2)
          to label %112 unwind label %115

112:                                              ; preds = %109
  %113 = load float, ptr %111, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112) %42, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %110, float noundef %113)
          to label %114 unwind label %115

114:                                              ; preds = %112
  br label %131

115:                                              ; preds = %302, %294, %291, %279, %245, %242, %239, %236, %233, %230, %227, %224, %219, %202, %199, %196, %194, %191, %189, %186, %184, %175, %163, %160, %153, %150, %148, %143, %131, %112, %109, %107, %104, %102, %97, %85, %83, %80, %78, %75, %73, %68, %45, %4
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %21, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %22, align 4
  br label %350

119:                                              ; preds = %57
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %21, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %350

123:                                              ; preds = %59
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %21, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #6
  br label %350

127:                                              ; preds = %88
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %21, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #6
  br label %350

131:                                              ; preds = %114, %87
  %132 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options19vertex_has_texcoordEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %133 unwind label %115

133:                                              ; preds = %131
  br i1 %132, label %134, label %160

134:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %17, i64 4, i1 false)
  %136 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %31, i32 0, i32 0
  %137 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %136, i32 0, i32 0
  %138 = load i32, ptr %137, align 4
  %139 = load ptr, ptr %135, align 8, !tbaa !11
  %140 = getelementptr inbounds ptr, ptr %139, i64 10
  %141 = load ptr, ptr %140, align 8
  %142 = invoke <2 x float> %141(ptr noundef nonnull align 8 dereferenceable(8) %135, i32 %138)
          to label %143 unwind label %156

143:                                              ; preds = %134
  %144 = getelementptr inbounds %"class.OpenMesh::VectorT.34", ptr %30, i32 0, i32 0
  %145 = getelementptr inbounds %"struct.std::array.35", ptr %144, i32 0, i32 0
  store <2 x float> %142, ptr %145, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %30, i64 8, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  %147 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %14, i64 noundef 0)
          to label %148 unwind label %115

148:                                              ; preds = %143
  %149 = load float, ptr %147, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112) %42, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %146, float noundef %149)
          to label %150 unwind label %115

150:                                              ; preds = %148
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %14, i64 noundef 1)
          to label %153 unwind label %115

153:                                              ; preds = %150
  %154 = load float, ptr %152, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112) %42, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %151, float noundef %154)
          to label %155 unwind label %115

155:                                              ; preds = %153
  br label %160

156:                                              ; preds = %134
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %21, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %350

160:                                              ; preds = %155, %133
  %161 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options16vertex_has_colorEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %162 unwind label %115

162:                                              ; preds = %160
  br i1 %161, label %163, label %255

163:                                              ; preds = %162
  %164 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options14color_is_floatEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %165 unwind label %115

165:                                              ; preds = %163
  br i1 %164, label %166, label %210

166:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #6
  %167 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %17, i64 4, i1 false)
  %168 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %33, i32 0, i32 0
  %169 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %168, i32 0, i32 0
  %170 = load i32, ptr %169, align 4
  %171 = load ptr, ptr %167, align 8, !tbaa !11
  %172 = getelementptr inbounds ptr, ptr %171, i64 9
  %173 = load ptr, ptr %172, align 8
  %174 = invoke { <2 x float>, <2 x float> } %173(ptr noundef nonnull align 8 dereferenceable(8) %167, i32 %170)
          to label %175 unwind label %205

175:                                              ; preds = %166
  %176 = getelementptr inbounds %"class.OpenMesh::VectorT.32", ptr %32, i32 0, i32 0
  %177 = getelementptr inbounds %"struct.std::array.33", ptr %176, i32 0, i32 0
  %178 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %177, i32 0, i32 0
  %179 = extractvalue { <2 x float>, <2 x float> } %174, 0
  store <2 x float> %179, ptr %178, align 4
  %180 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %177, i32 0, i32 1
  %181 = extractvalue { <2 x float>, <2 x float> } %174, 1
  store <2 x float> %181, ptr %180, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %32, i64 16, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #6
  %182 = load ptr, ptr %6, align 8, !tbaa !5
  %183 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %16, i64 noundef 0)
          to label %184 unwind label %115

184:                                              ; preds = %175
  %185 = load float, ptr %183, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112) %42, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %182, float noundef %185)
          to label %186 unwind label %115

186:                                              ; preds = %184
  %187 = load ptr, ptr %6, align 8, !tbaa !5
  %188 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %16, i64 noundef 1)
          to label %189 unwind label %115

189:                                              ; preds = %186
  %190 = load float, ptr %188, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112) %42, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %187, float noundef %190)
          to label %191 unwind label %115

191:                                              ; preds = %189
  %192 = load ptr, ptr %6, align 8, !tbaa !5
  %193 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %16, i64 noundef 2)
          to label %194 unwind label %115

194:                                              ; preds = %191
  %195 = load float, ptr %193, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112) %42, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %192, float noundef %195)
          to label %196 unwind label %115

196:                                              ; preds = %194
  %197 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options15color_has_alphaEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %198 unwind label %115

198:                                              ; preds = %196
  br i1 %197, label %199, label %209

199:                                              ; preds = %198
  %200 = load ptr, ptr %6, align 8, !tbaa !5
  %201 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %16, i64 noundef 3)
          to label %202 unwind label %115

202:                                              ; preds = %199
  %203 = load float, ptr %201, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112) %42, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %200, float noundef %203)
          to label %204 unwind label %115

204:                                              ; preds = %202
  br label %209

205:                                              ; preds = %166
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %21, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #6
  br label %350

209:                                              ; preds = %204, %198
  br label %254

210:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  %211 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %17, i64 4, i1 false)
  %212 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %35, i32 0, i32 0
  %213 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %212, i32 0, i32 0
  %214 = load i32, ptr %213, align 4
  %215 = load ptr, ptr %211, align 8, !tbaa !11
  %216 = getelementptr inbounds ptr, ptr %215, i64 5
  %217 = load ptr, ptr %216, align 8
  %218 = invoke i32 %217(ptr noundef nonnull align 8 dereferenceable(8) %211, i32 %214)
          to label %219 unwind label %249

219:                                              ; preds = %210
  %220 = getelementptr inbounds %"class.OpenMesh::VectorT.42", ptr %34, i32 0, i32 0
  %221 = getelementptr inbounds %"struct.std::array.43", ptr %220, i32 0, i32 0
  store i32 %218, ptr %221, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %15, ptr align 1 %34, i64 4, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  %222 = load ptr, ptr %6, align 8, !tbaa !5
  %223 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN8OpenMesh7VectorTIhLi4EEixEm(ptr noundef nonnull align 1 dereferenceable(4) %15, i64 noundef 0)
          to label %224 unwind label %115

224:                                              ; preds = %219
  %225 = load i8, ptr %223, align 1, !tbaa !14
  %226 = zext i8 %225 to i32
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSoi(ptr noundef nonnull align 8 dereferenceable(112) %42, i32 noundef 6, ptr noundef nonnull align 8 dereferenceable(8) %222, i32 noundef %226)
          to label %227 unwind label %115

227:                                              ; preds = %224
  %228 = load ptr, ptr %6, align 8, !tbaa !5
  %229 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN8OpenMesh7VectorTIhLi4EEixEm(ptr noundef nonnull align 1 dereferenceable(4) %15, i64 noundef 1)
          to label %230 unwind label %115

230:                                              ; preds = %227
  %231 = load i8, ptr %229, align 1, !tbaa !14
  %232 = zext i8 %231 to i32
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSoi(ptr noundef nonnull align 8 dereferenceable(112) %42, i32 noundef 6, ptr noundef nonnull align 8 dereferenceable(8) %228, i32 noundef %232)
          to label %233 unwind label %115

233:                                              ; preds = %230
  %234 = load ptr, ptr %6, align 8, !tbaa !5
  %235 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN8OpenMesh7VectorTIhLi4EEixEm(ptr noundef nonnull align 1 dereferenceable(4) %15, i64 noundef 2)
          to label %236 unwind label %115

236:                                              ; preds = %233
  %237 = load i8, ptr %235, align 1, !tbaa !14
  %238 = zext i8 %237 to i32
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSoi(ptr noundef nonnull align 8 dereferenceable(112) %42, i32 noundef 6, ptr noundef nonnull align 8 dereferenceable(8) %234, i32 noundef %238)
          to label %239 unwind label %115

239:                                              ; preds = %236
  %240 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options15color_has_alphaEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %241 unwind label %115

241:                                              ; preds = %239
  br i1 %240, label %242, label %253

242:                                              ; preds = %241
  %243 = load ptr, ptr %6, align 8, !tbaa !5
  %244 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN8OpenMesh7VectorTIhLi4EEixEm(ptr noundef nonnull align 1 dereferenceable(4) %15, i64 noundef 3)
          to label %245 unwind label %115

245:                                              ; preds = %242
  %246 = load i8, ptr %244, align 1, !tbaa !14
  %247 = zext i8 %246 to i32
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSoi(ptr noundef nonnull align 8 dereferenceable(112) %42, i32 noundef 6, ptr noundef nonnull align 8 dereferenceable(8) %243, i32 noundef %247)
          to label %248 unwind label %115

248:                                              ; preds = %245
  br label %253

249:                                              ; preds = %210
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %21, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  br label %350

253:                                              ; preds = %248, %241
  br label %254

254:                                              ; preds = %253, %209
  br label %255

255:                                              ; preds = %254, %162
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %256 = call ptr @_ZNSt6vectorIN8OpenMesh2IO11_PLYWriter_14CustomPropertyESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  %257 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.41", ptr %36, i32 0, i32 0
  store ptr %256, ptr %257, align 8
  br label %258

258:                                              ; preds = %269, %255
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  %259 = call ptr @_ZNSt6vectorIN8OpenMesh2IO11_PLYWriter_14CustomPropertyESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  %260 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.41", ptr %37, i32 0, i32 0
  store ptr %259, ptr %260, align 8
  %261 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPN8OpenMesh2IO11_PLYWriter_14CustomPropertyESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  br i1 %261, label %263, label %262

262:                                              ; preds = %258
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  br label %275

263:                                              ; preds = %258
  %264 = load ptr, ptr %6, align 8, !tbaa !5
  %265 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN8OpenMesh2IO11_PLYWriter_14CustomPropertyESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #6
  %266 = load i32, ptr %9, align 4, !tbaa !9
  %267 = zext i32 %266 to i64
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_16write_customPropILb1EEEvRSoRKNS1_14CustomPropertyEm(ptr noundef nonnull align 8 dereferenceable(112) %42, ptr noundef nonnull align 8 dereferenceable(8) %264, ptr noundef nonnull align 8 dereferenceable(16) %265, i64 noundef %267)
          to label %268 unwind label %271

268:                                              ; preds = %263
  br label %269

269:                                              ; preds = %268
  %270 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN8OpenMesh2IO11_PLYWriter_14CustomPropertyESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #6
  br label %258, !llvm.loop !20

271:                                              ; preds = %263
  %272 = landingpad { ptr, i32 }
          cleanup
  %273 = extractvalue { ptr, i32 } %272, 0
  store ptr %273, ptr %21, align 8
  %274 = extractvalue { ptr, i32 } %272, 1
  store i32 %274, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  br label %350

275:                                              ; preds = %262
  br label %276

276:                                              ; preds = %275
  %277 = load i32, ptr %9, align 4, !tbaa !9
  %278 = add i32 %277, 1
  store i32 %278, ptr %9, align 4, !tbaa !9
  br label %53, !llvm.loop !22

279:                                              ; preds = %53
  store i32 0, ptr %9, align 4, !tbaa !9
  %280 = load ptr, ptr %7, align 8, !tbaa !5
  %281 = load ptr, ptr %280, align 8, !tbaa !11
  %282 = getelementptr inbounds ptr, ptr %281, i64 27
  %283 = load ptr, ptr %282, align 8
  %284 = invoke noundef i64 %283(ptr noundef nonnull align 8 dereferenceable(8) %280)
          to label %285 unwind label %115

285:                                              ; preds = %279
  %286 = trunc i64 %284 to i32
  store i32 %286, ptr %11, align 4, !tbaa !9
  br label %287

287:                                              ; preds = %346, %285
  %288 = load i32, ptr %9, align 4, !tbaa !9
  %289 = load i32, ptr %11, align 4, !tbaa !9
  %290 = icmp ult i32 %288, %289
  br i1 %290, label %291, label %349

291:                                              ; preds = %287
  %292 = load ptr, ptr %7, align 8, !tbaa !5
  %293 = load i32, ptr %9, align 4, !tbaa !9
  invoke void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %38, i32 noundef %293)
          to label %294 unwind label %115

294:                                              ; preds = %291
  %295 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %38, i32 0, i32 0
  %296 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %295, i32 0, i32 0
  %297 = load i32, ptr %296, align 4
  %298 = load ptr, ptr %292, align 8, !tbaa !11
  %299 = getelementptr inbounds ptr, ptr %298, i64 11
  %300 = load ptr, ptr %299, align 8
  %301 = invoke noundef i32 %300(ptr noundef nonnull align 8 dereferenceable(8) %292, i32 %297, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %302 unwind label %115

302:                                              ; preds = %294
  store i32 %301, ptr %10, align 4, !tbaa !9
  %303 = load ptr, ptr %6, align 8, !tbaa !5
  %304 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSoj(ptr noundef nonnull align 8 dereferenceable(112) %42, i32 noundef 8, ptr noundef nonnull align 8 dereferenceable(8) %303, i32 noundef %304)
          to label %305 unwind label %115

305:                                              ; preds = %302
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #6
  store i64 0, ptr %39, align 8, !tbaa !23
  br label %306

306:                                              ; preds = %318, %305
  %307 = load i64, ptr %39, align 8, !tbaa !23
  %308 = call noundef i64 @_ZNKSt6vectorIN8OpenMesh12VertexHandleESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %309 = icmp ult i64 %307, %308
  br i1 %309, label %311, label %310

310:                                              ; preds = %306
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  br label %325

311:                                              ; preds = %306
  %312 = load ptr, ptr %6, align 8, !tbaa !5
  %313 = load i64, ptr %39, align 8, !tbaa !23
  %314 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %313) #6
  %315 = invoke noundef i32 @_ZNK8OpenMesh10BaseHandle3idxEv(ptr noundef nonnull align 4 dereferenceable(4) %314)
          to label %316 unwind label %321

316:                                              ; preds = %311
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSoi(ptr noundef nonnull align 8 dereferenceable(112) %42, i32 noundef 3, ptr noundef nonnull align 8 dereferenceable(8) %312, i32 noundef %315)
          to label %317 unwind label %321

317:                                              ; preds = %316
  br label %318

318:                                              ; preds = %317
  %319 = load i64, ptr %39, align 8, !tbaa !23
  %320 = add i64 %319, 1
  store i64 %320, ptr %39, align 8, !tbaa !23
  br label %306, !llvm.loop !25

321:                                              ; preds = %316, %311
  %322 = landingpad { ptr, i32 }
          cleanup
  %323 = extractvalue { ptr, i32 } %322, 0
  store ptr %323, ptr %21, align 8
  %324 = extractvalue { ptr, i32 } %322, 1
  store i32 %324, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  br label %350

325:                                              ; preds = %310
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #6
  %326 = call ptr @_ZNSt6vectorIN8OpenMesh2IO11_PLYWriter_14CustomPropertyESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  %327 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.41", ptr %40, i32 0, i32 0
  store ptr %326, ptr %327, align 8
  br label %328

328:                                              ; preds = %339, %325
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #6
  %329 = call ptr @_ZNSt6vectorIN8OpenMesh2IO11_PLYWriter_14CustomPropertyESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  %330 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.41", ptr %41, i32 0, i32 0
  store ptr %329, ptr %330, align 8
  %331 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPN8OpenMesh2IO11_PLYWriter_14CustomPropertyESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull align 8 dereferenceable(8) %41) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  br i1 %331, label %333, label %332

332:                                              ; preds = %328
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  br label %345

333:                                              ; preds = %328
  %334 = load ptr, ptr %6, align 8, !tbaa !5
  %335 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN8OpenMesh2IO11_PLYWriter_14CustomPropertyESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %40) #6
  %336 = load i32, ptr %9, align 4, !tbaa !9
  %337 = zext i32 %336 to i64
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_16write_customPropILb1EEEvRSoRKNS1_14CustomPropertyEm(ptr noundef nonnull align 8 dereferenceable(112) %42, ptr noundef nonnull align 8 dereferenceable(8) %334, ptr noundef nonnull align 8 dereferenceable(16) %335, i64 noundef %337)
          to label %338 unwind label %341

338:                                              ; preds = %333
  br label %339

339:                                              ; preds = %338
  %340 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN8OpenMesh2IO11_PLYWriter_14CustomPropertyESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %40) #6
  br label %328, !llvm.loop !26

341:                                              ; preds = %333
  %342 = landingpad { ptr, i32 }
          cleanup
  %343 = extractvalue { ptr, i32 } %342, 0
  store ptr %343, ptr %21, align 8
  %344 = extractvalue { ptr, i32 } %342, 1
  store i32 %344, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  br label %350

345:                                              ; preds = %332
  br label %346

346:                                              ; preds = %345
  %347 = load i32, ptr %9, align 4, !tbaa !9
  %348 = add i32 %347, 1
  store i32 %348, ptr %9, align 4, !tbaa !9
  br label %287, !llvm.loop !27

349:                                              ; preds = %287
  call void @_ZNSt6vectorIN8OpenMesh2IO11_PLYWriter_14CustomPropertyESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #6
  call void @_ZNSt6vectorIN8OpenMesh2IO11_PLYWriter_14CustomPropertyESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  ret i1 true

350:                                              ; preds = %341, %321, %271, %249, %205, %156, %127, %123, %119, %115
  call void @_ZNSt6vectorIN8OpenMesh2IO11_PLYWriter_14CustomPropertyESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #6
  call void @_ZNSt6vectorIN8OpenMesh2IO11_PLYWriter_14CustomPropertyESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %351

351:                                              ; preds = %350
  %352 = load ptr, ptr %21, align 8
  %353 = load i32, ptr %22, align 4
  %354 = insertvalue { ptr, i32 } poison, ptr %352, 0
  %355 = insertvalue { ptr, i32 } %354, i32 %353, 1
  resume { ptr, i32 } %355
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO7Options17vertex_has_normalEv(ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO7Options19vertex_has_texcoordEv(ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO7Options16vertex_has_colorEv(ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO7Options14color_is_floatEv(ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO7Options15color_has_alphaEv(ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8OpenMesh7VectorTIfLi3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8OpenMesh12VertexHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #3 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12), i64 noundef) #2 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxltIPN8OpenMesh2IO11_PLYWriter_14CustomPropertyESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8OpenMesh10BaseHandle3idxEv(ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSoi(ptr noundef nonnull align 8 dereferenceable(112), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSoj(ptr noundef nonnull align 8 dereferenceable(112), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), float noundef) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16), i64 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8OpenMesh2IO11_PLYWriter_16write_customPropILb1EEEvRSoRKNS1_14CustomPropertyEm(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="64" "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 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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{i64 0, i64 12, !14}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{i64 0, i64 8, !14}
!18 = !{i64 0, i64 16, !14}
!19 = !{i64 0, i64 4, !14}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!24, !24, i64 0}
!24 = !{!"long", !7, i64 0}
!25 = distinct !{!25, !21}
!26 = distinct !{!26, !21}
!27 = distinct !{!27, !21}


; 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.OpenMesh::VectorT" = type { %"struct.std::array" }
%"struct.std::array" = type { [3 x float] }
%"class.OpenMesh::VectorT.34" = type { %"struct.std::array.35" }
%"struct.std::array.35" = type { [2 x float] }
%"class.OpenMesh::VectorT.42" = type { %"struct.std::array.43" }
%"struct.std::array.43" = type { [4 x i8] }
%"class.OpenMesh::VectorT.32" = type { %"struct.std::array.33" }
%"struct.std::array.33" = type { [4 x float] }
%"struct.OpenMesh::VertexHandle" = type { %"class.OpenMesh::BaseHandle" }
%"class.OpenMesh::BaseHandle" = type { i32 }
%"class.std::vector.36" = type { %"struct.std::_Vector_base.37" }
%"struct.std::_Vector_base.37" = type { %"struct.std::_Vector_base<OpenMesh::VertexHandle, std::allocator<OpenMesh::VertexHandle>>::_Vector_impl" }
%"struct.std::_Vector_base<OpenMesh::VertexHandle, std::allocator<OpenMesh::VertexHandle>>::_Vector_impl" = type { %"struct.std::_Vector_base<OpenMesh::VertexHandle, std::allocator<OpenMesh::VertexHandle>>::_Vector_impl_data" }
%"struct.std::_Vector_base<OpenMesh::VertexHandle, std::allocator<OpenMesh::VertexHandle>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<OpenMesh::IO::_PLYWriter_::CustomProperty, std::allocator<OpenMesh::IO::_PLYWriter_::CustomProperty>>::_Vector_impl" }
%"struct.std::_Vector_base<OpenMesh::IO::_PLYWriter_::CustomProperty, std::allocator<OpenMesh::IO::_PLYWriter_::CustomProperty>>::_Vector_impl" = type { %"struct.std::_Vector_base<OpenMesh::IO::_PLYWriter_::CustomProperty, std::allocator<OpenMesh::IO::_PLYWriter_::CustomProperty>>::_Vector_impl_data" }
%"struct.std::_Vector_base<OpenMesh::IO::_PLYWriter_::CustomProperty, std::allocator<OpenMesh::IO::_PLYWriter_::CustomProperty>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.41" = type { ptr }
%"struct.OpenMesh::FaceHandle" = type { %"class.OpenMesh::BaseHandle" }

declare i32 @__gxx_personality_v0(...)

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO11_PLYWriter_12write_binaryERSoRNS0_12BaseExporterENS0_7OptionsE(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.OpenMesh::VectorT", align 8
  %6 = alloca %"class.OpenMesh::VectorT", align 8
  %7 = alloca %"class.OpenMesh::VectorT.34", align 8
  %8 = alloca %"class.OpenMesh::VectorT.42", align 4
  %9 = alloca %"class.OpenMesh::VectorT.32", align 8
  %10 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %11 = alloca %"class.std::vector.36", align 8
  %12 = alloca %"class.std::vector.18", align 8
  %13 = alloca %"class.std::vector.18", align 8
  %14 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.41", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.41", align 8
  %17 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.41", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.41", align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #5
  call void @_ZN8OpenMesh7VectorTIfLi3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #5
  call void @_ZN8OpenMesh7VectorTIfLi3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @_ZN8OpenMesh7VectorTIfLi2EEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %7)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  call void @_ZN8OpenMesh7VectorTIhLi4EEC2Ev(ptr noundef nonnull align 1 dereferenceable(4) %8)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #5
  call void @_ZN8OpenMesh7VectorTIfLi4EEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %9)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  call void @_ZN8OpenMesh12VertexHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %10, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  call void @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #5
  call void @_ZNSt6vectorIN8OpenMesh2IO11_PLYWriter_14CustomPropertyESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #5
  call void @_ZNSt6vectorIN8OpenMesh2IO11_PLYWriter_14CustomPropertyESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_12write_headerERSoRNS0_12BaseExporterERNS0_7OptionsERSt6vectorINS1_14CustomPropertyESaIS8_EESB_(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %20 unwind label %.loopexit.split-lp.loopexit.split-lp

20:                                               ; preds = %4
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %21, i64 208
  %23 = load ptr, ptr %22, align 8
  %24 = invoke noundef i64 %23(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %25 unwind label %.loopexit.split-lp.loopexit.split-lp

25:                                               ; preds = %20
  %26 = and i64 %24, 4294967295
  %.not = icmp eq i64 %26, 0
  br i1 %.not, label %._crit_edge72, label %.lr.ph71

.lr.ph71:                                         ; preds = %25
  %.sroa.518.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  %.sroa.511.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  %wide.trip.count = and i64 %24, 4294967295
  br label %27

27:                                               ; preds = %.lr.ph71, %._crit_edge
  %indvars.iv = phi i64 [ 0, %.lr.ph71 ], [ %indvars.iv.next, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #5
  %28 = trunc nuw i64 %indvars.iv to i32
  invoke void @_ZN8OpenMesh12VertexHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %14, i32 noundef %28)
          to label %29 unwind label %60

29:                                               ; preds = %27
  %30 = load i32, ptr %14, align 4
  store i32 %30, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  %33 = load ptr, ptr %32, align 8
  %34 = invoke { <2 x float>, float } %33(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %30)
          to label %35 unwind label %62

35:                                               ; preds = %29
  %.fca.0.extract12 = extractvalue { <2 x float>, float } %34, 0
  %.fca.1.extract13 = extractvalue { <2 x float>, float } %34, 1
  store <2 x float> %.fca.0.extract12, ptr %5, align 8
  store float %.fca.1.extract13, ptr %.sroa.518.0..sroa_idx, align 8, !tbaa !8
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %5, i64 noundef 0)
  %37 = load float, ptr %36, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112) %0, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %37)
          to label %38 unwind label %.loopexit.split-lp.loopexit

38:                                               ; preds = %35
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %5, i64 noundef 1)
  %40 = load float, ptr %39, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112) %0, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %40)
          to label %41 unwind label %.loopexit.split-lp.loopexit

41:                                               ; preds = %38
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %5, i64 noundef 2)
  %43 = load float, ptr %42, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112) %0, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %43)
          to label %44 unwind label %.loopexit.split-lp.loopexit

44:                                               ; preds = %41
  %45 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options17vertex_has_normalEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %45, label %46, label %66

46:                                               ; preds = %44
  %.sroa.09.0.copyload = load i32, ptr %10, align 4
  %47 = load ptr, ptr %2, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %47, i64 24
  %49 = load ptr, ptr %48, align 8
  %50 = invoke { <2 x float>, float } %49(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %.sroa.09.0.copyload)
          to label %51 unwind label %64

51:                                               ; preds = %46
  %.fca.0.extract = extractvalue { <2 x float>, float } %50, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %50, 1
  store <2 x float> %.fca.0.extract, ptr %6, align 8
  store float %.fca.1.extract, ptr %.sroa.511.0..sroa_idx, align 8, !tbaa !8
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %6, i64 noundef 0)
  %53 = load float, ptr %52, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112) %0, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %53)
          to label %54 unwind label %.loopexit.split-lp.loopexit

54:                                               ; preds = %51
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %6, i64 noundef 1)
  %56 = load float, ptr %55, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112) %0, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %56)
          to label %57 unwind label %.loopexit.split-lp.loopexit

57:                                               ; preds = %54
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %6, i64 noundef 2)
  %59 = load float, ptr %58, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112) %0, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %59)
          to label %66 unwind label %.loopexit.split-lp.loopexit

.loopexit:                                        ; preds = %.lr.ph81, %155
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %126, %120, %116, %112, %103, %98, %95, %90, %76, %73, %57, %54, %51, %41, %38, %35
  %lpad.loopexit66 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp:             ; preds = %._crit_edge72, %20, %4
  %lpad.loopexit.split-lp67 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

60:                                               ; preds = %27
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  br label %.loopexit.split-lp

62:                                               ; preds = %29
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

64:                                               ; preds = %46
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

66:                                               ; preds = %57, %44
  %67 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options19vertex_has_texcoordEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %67, label %68, label %81

68:                                               ; preds = %66
  %.sroa.06.0.copyload = load i32, ptr %10, align 4
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %69, i64 80
  %71 = load ptr, ptr %70, align 8
  %72 = invoke <2 x float> %71(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %.sroa.06.0.copyload)
          to label %73 unwind label %79

73:                                               ; preds = %68
  store <2 x float> %72, ptr %7, align 8, !tbaa !8
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %7, i64 noundef 0)
  %75 = load float, ptr %74, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112) %0, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %75)
          to label %76 unwind label %.loopexit.split-lp.loopexit

76:                                               ; preds = %73
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %7, i64 noundef 1)
  %78 = load float, ptr %77, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112) %0, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %78)
          to label %81 unwind label %.loopexit.split-lp.loopexit

79:                                               ; preds = %68
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

81:                                               ; preds = %76, %66
  %82 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options16vertex_has_colorEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %82, label %83, label %132

83:                                               ; preds = %81
  %84 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options14color_is_floatEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  %.sroa.04.0.copyload = load i32, ptr %10, align 4
  %85 = load ptr, ptr %2, align 8, !tbaa !5
  br i1 %84, label %86, label %108

86:                                               ; preds = %83
  %87 = getelementptr inbounds i8, ptr %85, i64 72
  %88 = load ptr, ptr %87, align 8
  %89 = invoke { <2 x float>, <2 x float> } %88(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %.sroa.04.0.copyload)
          to label %90 unwind label %106

90:                                               ; preds = %86
  %91 = extractvalue { <2 x float>, <2 x float> } %89, 0
  %92 = extractvalue { <2 x float>, <2 x float> } %89, 1
  store <2 x float> %91, ptr %9, align 8
  store <2 x float> %92, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !8
  %93 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %9, i64 noundef 0)
  %94 = load float, ptr %93, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112) %0, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %94)
          to label %95 unwind label %.loopexit.split-lp.loopexit

95:                                               ; preds = %90
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %9, i64 noundef 1)
  %97 = load float, ptr %96, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112) %0, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %97)
          to label %98 unwind label %.loopexit.split-lp.loopexit

98:                                               ; preds = %95
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %9, i64 noundef 2)
  %100 = load float, ptr %99, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112) %0, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %100)
          to label %101 unwind label %.loopexit.split-lp.loopexit

101:                                              ; preds = %98
  %102 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options15color_has_alphaEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %102, label %103, label %132

103:                                              ; preds = %101
  %104 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %9, i64 noundef 3)
  %105 = load float, ptr %104, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112) %0, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %105)
          to label %132 unwind label %.loopexit.split-lp.loopexit

106:                                              ; preds = %86
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

108:                                              ; preds = %83
  %109 = getelementptr inbounds i8, ptr %85, i64 40
  %110 = load ptr, ptr %109, align 8
  %111 = invoke i32 %110(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %.sroa.04.0.copyload)
          to label %112 unwind label %130

112:                                              ; preds = %108
  store i32 %111, ptr %8, align 4, !tbaa !8
  %113 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN8OpenMesh7VectorTIhLi4EEixEm(ptr noundef nonnull align 1 dereferenceable(4) %8, i64 noundef 0)
  %114 = load i8, ptr %113, align 1, !tbaa !8
  %115 = zext i8 %114 to i32
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSoi(ptr noundef nonnull align 8 dereferenceable(112) %0, i32 noundef 6, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %115)
          to label %116 unwind label %.loopexit.split-lp.loopexit

116:                                              ; preds = %112
  %117 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN8OpenMesh7VectorTIhLi4EEixEm(ptr noundef nonnull align 1 dereferenceable(4) %8, i64 noundef 1)
  %118 = load i8, ptr %117, align 1, !tbaa !8
  %119 = zext i8 %118 to i32
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSoi(ptr noundef nonnull align 8 dereferenceable(112) %0, i32 noundef 6, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %119)
          to label %120 unwind label %.loopexit.split-lp.loopexit

120:                                              ; preds = %116
  %121 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN8OpenMesh7VectorTIhLi4EEixEm(ptr noundef nonnull align 1 dereferenceable(4) %8, i64 noundef 2)
  %122 = load i8, ptr %121, align 1, !tbaa !8
  %123 = zext i8 %122 to i32
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSoi(ptr noundef nonnull align 8 dereferenceable(112) %0, i32 noundef 6, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %123)
          to label %124 unwind label %.loopexit.split-lp.loopexit

124:                                              ; preds = %120
  %125 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options15color_has_alphaEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %125, label %126, label %132

126:                                              ; preds = %124
  %127 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN8OpenMesh7VectorTIhLi4EEixEm(ptr noundef nonnull align 1 dereferenceable(4) %8, i64 noundef 3)
  %128 = load i8, ptr %127, align 1, !tbaa !8
  %129 = zext i8 %128 to i32
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSoi(ptr noundef nonnull align 8 dereferenceable(112) %0, i32 noundef 6, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %129)
          to label %132 unwind label %.loopexit.split-lp.loopexit

130:                                              ; preds = %108
  %131 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

132:                                              ; preds = %103, %101, %126, %124, %81
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  %133 = call ptr @_ZNSt6vectorIN8OpenMesh2IO11_PLYWriter_14CustomPropertyESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  store ptr %133, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  %134 = call ptr @_ZNSt6vectorIN8OpenMesh2IO11_PLYWriter_14CustomPropertyESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  store ptr %134, ptr %16, align 8
  %135 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPN8OpenMesh2IO11_PLYWriter_14CustomPropertyESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  br i1 %135, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %137, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge72, label %27, !llvm.loop !12

.lr.ph:                                           ; preds = %132, %137
  %136 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN8OpenMesh2IO11_PLYWriter_14CustomPropertyESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_16write_customPropILb1EEEvRSoRKNS1_14CustomPropertyEm(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(16) %136, i64 noundef %indvars.iv)
          to label %137 unwind label %141

137:                                              ; preds = %.lr.ph
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN8OpenMesh2IO11_PLYWriter_14CustomPropertyESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  %139 = call ptr @_ZNSt6vectorIN8OpenMesh2IO11_PLYWriter_14CustomPropertyESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  store ptr %139, ptr %16, align 8
  %140 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPN8OpenMesh2IO11_PLYWriter_14CustomPropertyESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  br i1 %140, label %.lr.ph, label %._crit_edge, !llvm.loop !14

141:                                              ; preds = %.lr.ph
  %142 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  br label %.loopexit.split-lp

._crit_edge72:                                    ; preds = %._crit_edge, %25
  %143 = load ptr, ptr %2, align 8, !tbaa !5
  %144 = getelementptr inbounds i8, ptr %143, i64 216
  %145 = load ptr, ptr %144, align 8
  %146 = invoke noundef i64 %145(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %147 unwind label %.loopexit.split-lp.loopexit.split-lp

147:                                              ; preds = %._crit_edge72
  %148 = and i64 %146, 4294967295
  %.not83 = icmp eq i64 %148, 0
  br i1 %.not83, label %._crit_edge82, label %.lr.ph81.preheader

.lr.ph81.preheader:                               ; preds = %147
  %wide.trip.count89 = and i64 %146, 4294967295
  br label %.lr.ph81

.lr.ph81:                                         ; preds = %.lr.ph81.preheader, %._crit_edge78
  %indvars.iv86 = phi i64 [ 0, %.lr.ph81.preheader ], [ %indvars.iv.next87, %._crit_edge78 ]
  %149 = trunc nuw i64 %indvars.iv86 to i32
  call void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 noundef %149)
  %150 = load i32, ptr %17, align 4
  %151 = load ptr, ptr %2, align 8, !tbaa !5
  %152 = getelementptr inbounds i8, ptr %151, i64 88
  %153 = load ptr, ptr %152, align 8
  %154 = invoke noundef i32 %153(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %150, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %155 unwind label %.loopexit

155:                                              ; preds = %.lr.ph81
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSoj(ptr noundef nonnull align 8 dereferenceable(112) %0, i32 noundef 8, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %154)
          to label %.preheader unwind label %.loopexit

.preheader:                                       ; preds = %155
  %156 = call noundef i64 @_ZNKSt6vectorIN8OpenMesh12VertexHandleESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  %.not84 = icmp eq i64 %156, 0
  br i1 %.not84, label %._crit_edge75, label %.lr.ph74

._crit_edge75:                                    ; preds = %162, %.preheader
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #5
  %157 = call ptr @_ZNSt6vectorIN8OpenMesh2IO11_PLYWriter_14CustomPropertyESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  store ptr %157, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #5
  %158 = call ptr @_ZNSt6vectorIN8OpenMesh2IO11_PLYWriter_14CustomPropertyESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  store ptr %158, ptr %19, align 8
  %159 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPN8OpenMesh2IO11_PLYWriter_14CustomPropertyESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #5
  br i1 %159, label %.lr.ph77, label %._crit_edge78

.lr.ph74:                                         ; preds = %.preheader, %162
  %.073 = phi i64 [ %163, %162 ], [ 0, %.preheader ]
  %160 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %.073) #5
  %161 = call noundef i32 @_ZNK8OpenMesh10BaseHandle3idxEv(ptr noundef nonnull align 4 dereferenceable(4) %160)
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSoi(ptr noundef nonnull align 8 dereferenceable(112) %0, i32 noundef 3, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %161)
          to label %162 unwind label %166

162:                                              ; preds = %.lr.ph74
  %163 = add nuw i64 %.073, 1
  %164 = call noundef i64 @_ZNKSt6vectorIN8OpenMesh12VertexHandleESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  %165 = icmp ult i64 %163, %164
  br i1 %165, label %.lr.ph74, label %._crit_edge75, !llvm.loop !15

166:                                              ; preds = %.lr.ph74
  %167 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

._crit_edge78:                                    ; preds = %169, %._crit_edge75
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #5
  %indvars.iv.next87 = add nuw nsw i64 %indvars.iv86, 1
  %exitcond90.not = icmp eq i64 %indvars.iv.next87, %wide.trip.count89
  br i1 %exitcond90.not, label %._crit_edge82, label %.lr.ph81, !llvm.loop !16

.lr.ph77:                                         ; preds = %._crit_edge75, %169
  %168 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN8OpenMesh2IO11_PLYWriter_14CustomPropertyESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  invoke void @_ZNK8OpenMesh2IO11_PLYWriter_16write_customPropILb1EEEvRSoRKNS1_14CustomPropertyEm(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(16) %168, i64 noundef %indvars.iv86)
          to label %169 unwind label %173

169:                                              ; preds = %.lr.ph77
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN8OpenMesh2IO11_PLYWriter_14CustomPropertyESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #5
  %171 = call ptr @_ZNSt6vectorIN8OpenMesh2IO11_PLYWriter_14CustomPropertyESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  store ptr %171, ptr %19, align 8
  %172 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPN8OpenMesh2IO11_PLYWriter_14CustomPropertyESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #5
  br i1 %172, label %.lr.ph77, label %._crit_edge78, !llvm.loop !17

173:                                              ; preds = %.lr.ph77
  %174 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #5
  br label %.loopexit.split-lp

._crit_edge82:                                    ; preds = %._crit_edge78, %147
  call void @_ZNSt6vectorIN8OpenMesh2IO11_PLYWriter_14CustomPropertyESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  call void @_ZNSt6vectorIN8OpenMesh2IO11_PLYWriter_14CustomPropertyESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  call void @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #5
  ret i1 true

.loopexit.split-lp:                               ; preds = %.loopexit, %.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit, %173, %166, %141, %130, %106, %79, %64, %62, %60
  %.pn = phi { ptr, i32 } [ %142, %141 ], [ %107, %106 ], [ %131, %130 ], [ %80, %79 ], [ %65, %64 ], [ %63, %62 ], [ %61, %60 ], [ %167, %166 ], [ %174, %173 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit66, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp67, %.loopexit.split-lp.loopexit.split-lp ]
  call void @_ZNSt6vectorIN8OpenMesh2IO11_PLYWriter_14CustomPropertyESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  call void @_ZNSt6vectorIN8OpenMesh2IO11_PLYWriter_14CustomPropertyESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  call void @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #5
  resume { ptr, i32 } %.pn
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO7Options17vertex_has_normalEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO7Options19vertex_has_texcoordEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO7Options16vertex_has_colorEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO7Options14color_is_floatEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO7Options15color_has_alphaEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8OpenMesh7VectorTIfLi3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8OpenMesh12VertexHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12), i64 noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxltIPN8OpenMesh2IO11_PLYWriter_14CustomPropertyESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSoi(ptr noundef nonnull align 8 dereferenceable(112), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSoj(ptr noundef nonnull align 8 dereferenceable(112), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8OpenMesh2IO11_PLYWriter_10writeValueENS1_9ValueTypeERSof(ptr noundef nonnull align 8 dereferenceable(112), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), float noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16), i64 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8OpenMesh2IO11_PLYWriter_16write_customPropILb1EEEvRSoRKNS1_14CustomPropertyEm(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="64" "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 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 = { 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 = { 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"omnipotent char", !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !9, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass