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

; 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.18" = type { %"struct.std::array.19" }
%"struct.std::array.19" = type { [2 x float] }
%"class.OpenMesh::VectorT.22" = type { %"struct.std::array.23" }
%"struct.std::array.23" = type { [4 x i32] }
%"class.OpenMesh::VectorT.24" = type { %"struct.std::array.25" }
%"struct.std::array.25" = type { [4 x float] }
%"struct.OpenMesh::VertexHandle" = type { %"class.OpenMesh::BaseHandle" }
%"class.OpenMesh::BaseHandle" = type { i32 }
%"class.std::vector.26" = type { %"struct.std::_Vector_base.27" }
%"struct.std::_Vector_base.27" = 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.OpenMesh::VectorT.31" = type { %"struct.std::array.32" }
%"struct.std::array.32" = type { [4 x i8] }
%"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_OFFWriter_12write_binaryERSoRNS0_12BaseExporterENS0_7OptionsE(ptr noundef nonnull align 8 dereferenceable(8) %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.18", align 4
  %15 = alloca %"class.OpenMesh::VectorT.22", align 4
  %16 = alloca %"class.OpenMesh::VectorT.24", align 4
  %17 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %18 = alloca %"class.std::vector.26", align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %22 = alloca %"class.OpenMesh::VectorT", align 4
  %23 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %24 = alloca { <2 x float>, float }, align 8
  %25 = alloca %"class.OpenMesh::VectorT", align 4
  %26 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %27 = alloca { <2 x float>, float }, align 8
  %28 = alloca %"class.OpenMesh::VectorT.24", align 4
  %29 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %30 = alloca %"class.OpenMesh::VectorT.31", align 1
  %31 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %32 = alloca %"class.OpenMesh::VectorT.18", align 4
  %33 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %34 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %35 = alloca %"class.OpenMesh::VectorT.24", align 4
  %36 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %37 = alloca %"class.OpenMesh::VectorT.31", align 1
  %38 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %39 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %40 = alloca i64, align 8
  %41 = alloca %"class.OpenMesh::VectorT.24", align 4
  %42 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %43 = alloca %"class.OpenMesh::VectorT.31", align 1
  %44 = alloca %"struct.OpenMesh::FaceHandle", align 4
  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
  %45 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #5
  call void @_ZN8OpenMesh7VectorTIfLi3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #5
  call void @_ZN8OpenMesh7VectorTIfLi3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %13)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @_ZN8OpenMesh7VectorTIfLi2EEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %14)
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  call void @_ZN8OpenMesh7VectorTIiLi4EEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %15)
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  call void @_ZN8OpenMesh7VectorTIfLi4EEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %16)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @_ZN8OpenMesh12VertexHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #5
  call void @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = load ptr, ptr %47, align 8, !tbaa !9
  %49 = getelementptr inbounds ptr, ptr %48, i64 26
  %50 = load ptr, ptr %49, align 8
  %51 = invoke noundef i64 %50(ptr noundef nonnull align 8 dereferenceable(8) %47)
          to label %52 unwind label %135

52:                                               ; preds = %4
  %53 = trunc i64 %51 to i32
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoj(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %46, i32 noundef %53)
          to label %54 unwind label %135

54:                                               ; preds = %52
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = load ptr, ptr %56, align 8, !tbaa !9
  %58 = getelementptr inbounds ptr, ptr %57, i64 27
  %59 = load ptr, ptr %58, align 8
  %60 = invoke noundef i64 %59(ptr noundef nonnull align 8 dereferenceable(8) %56)
          to label %61 unwind label %135

61:                                               ; preds = %54
  %62 = trunc i64 %60 to i32
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoj(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %55, i32 noundef %62)
          to label %63 unwind label %135

63:                                               ; preds = %61
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %64, i32 noundef 0)
          to label %65 unwind label %135

65:                                               ; preds = %63
  store i32 0, ptr %9, align 4, !tbaa !11
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = load ptr, ptr %66, align 8, !tbaa !9
  %68 = getelementptr inbounds ptr, ptr %67, i64 26
  %69 = load ptr, ptr %68, align 8
  %70 = invoke noundef i64 %69(ptr noundef nonnull align 8 dereferenceable(8) %66)
          to label %71 unwind label %135

71:                                               ; preds = %65
  %72 = trunc i64 %70 to i32
  store i32 %72, ptr %10, align 4, !tbaa !11
  br label %73

73:                                               ; preds = %274, %71
  %74 = load i32, ptr %9, align 4, !tbaa !11
  %75 = load i32, ptr %10, align 4, !tbaa !11
  %76 = icmp ult i32 %74, %75
  br i1 %76, label %77, label %277

77:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %78 = load i32, ptr %9, align 4, !tbaa !11
  invoke void @_ZN8OpenMesh12VertexHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %21, i32 noundef %78)
          to label %79 unwind label %139

79:                                               ; preds = %77
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %21, i64 4, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #5
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %17, i64 4, i1 false)
  %81 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %23, i32 0, i32 0
  %82 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %81, i32 0, i32 0
  %83 = load i32, ptr %82, align 4
  %84 = load ptr, ptr %80, align 8, !tbaa !9
  %85 = getelementptr inbounds ptr, ptr %84, i64 2
  %86 = load ptr, ptr %85, align 8
  %87 = invoke { <2 x float>, float } %86(ptr noundef nonnull align 8 dereferenceable(8) %80, i32 %83)
          to label %88 unwind label %143

88:                                               ; preds = %79
  %89 = getelementptr inbounds %"class.OpenMesh::VectorT", ptr %22, i32 0, i32 0
  %90 = getelementptr inbounds %"struct.std::array", ptr %89, i32 0, i32 0
  store { <2 x float>, float } %87, ptr %24, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %90, ptr align 8 %24, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %22, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #5
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %12, i64 noundef 0)
          to label %93 unwind label %135

93:                                               ; preds = %88
  %94 = load float, ptr %92, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %91, float noundef %94)
          to label %95 unwind label %135

95:                                               ; preds = %93
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %12, i64 noundef 1)
          to label %98 unwind label %135

98:                                               ; preds = %95
  %99 = load float, ptr %97, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %96, float noundef %99)
          to label %100 unwind label %135

100:                                              ; preds = %98
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %12, i64 noundef 2)
          to label %103 unwind label %135

103:                                              ; preds = %100
  %104 = load float, ptr %102, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %101, float noundef %104)
          to label %105 unwind label %135

105:                                              ; preds = %103
  %106 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options17vertex_has_normalEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %107 unwind label %135

107:                                              ; preds = %105
  br i1 %106, label %108, label %151

108:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #5
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %17, i64 4, i1 false)
  %110 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %26, i32 0, i32 0
  %111 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %110, i32 0, i32 0
  %112 = load i32, ptr %111, align 4
  %113 = load ptr, ptr %109, align 8, !tbaa !9
  %114 = getelementptr inbounds ptr, ptr %113, i64 3
  %115 = load ptr, ptr %114, align 8
  %116 = invoke { <2 x float>, float } %115(ptr noundef nonnull align 8 dereferenceable(8) %109, i32 %112)
          to label %117 unwind label %147

117:                                              ; preds = %108
  %118 = getelementptr inbounds %"class.OpenMesh::VectorT", ptr %25, i32 0, i32 0
  %119 = getelementptr inbounds %"struct.std::array", ptr %118, i32 0, i32 0
  store { <2 x float>, float } %116, ptr %27, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %119, ptr align 8 %27, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %25, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #5
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %13, i64 noundef 0)
          to label %122 unwind label %135

122:                                              ; preds = %117
  %123 = load float, ptr %121, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %120, float noundef %123)
          to label %124 unwind label %135

124:                                              ; preds = %122
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %13, i64 noundef 1)
          to label %127 unwind label %135

127:                                              ; preds = %124
  %128 = load float, ptr %126, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %125, float noundef %128)
          to label %129 unwind label %135

129:                                              ; preds = %127
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %13, i64 noundef 2)
          to label %132 unwind label %135

132:                                              ; preds = %129
  %133 = load float, ptr %131, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %130, float noundef %133)
          to label %134 unwind label %135

134:                                              ; preds = %132
  br label %151

135:                                              ; preds = %560, %557, %554, %552, %549, %547, %544, %542, %539, %516, %513, %510, %508, %505, %503, %500, %498, %489, %475, %472, %449, %441, %438, %426, %412, %409, %406, %404, %401, %399, %396, %394, %391, %368, %365, %362, %360, %357, %355, %352, %350, %341, %327, %324, %323, %319, %318, %314, %313, %309, %307, %299, %296, %284, %277, %266, %263, %261, %256, %244, %235, %232, %229, %227, %224, %222, %219, %217, %214, %193, %190, %187, %185, %182, %180, %177, %175, %166, %154, %151, %132, %129, %127, %124, %122, %117, %105, %103, %100, %98, %95, %93, %88, %65, %63, %61, %54, %52, %4
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %19, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %20, align 4
  br label %575

139:                                              ; preds = %77
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %19, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %575

143:                                              ; preds = %79
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %19, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #5
  br label %575

147:                                              ; preds = %108
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %19, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #5
  br label %575

151:                                              ; preds = %134, %107
  %152 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options16vertex_has_colorEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %153 unwind label %135

153:                                              ; preds = %151
  br i1 %152, label %154, label %244

154:                                              ; preds = %153
  %155 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options14color_is_floatEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %156 unwind label %135

156:                                              ; preds = %154
  br i1 %155, label %157, label %201

157:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #5
  %158 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %17, i64 4, i1 false)
  %159 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %29, i32 0, i32 0
  %160 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %159, i32 0, i32 0
  %161 = load i32, ptr %160, align 4
  %162 = load ptr, ptr %158, align 8, !tbaa !9
  %163 = getelementptr inbounds ptr, ptr %162, i64 9
  %164 = load ptr, ptr %163, align 8
  %165 = invoke { <2 x float>, <2 x float> } %164(ptr noundef nonnull align 8 dereferenceable(8) %158, i32 %161)
          to label %166 unwind label %196

166:                                              ; preds = %157
  %167 = getelementptr inbounds %"class.OpenMesh::VectorT.24", ptr %28, i32 0, i32 0
  %168 = getelementptr inbounds %"struct.std::array.25", ptr %167, i32 0, i32 0
  %169 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %168, i32 0, i32 0
  %170 = extractvalue { <2 x float>, <2 x float> } %165, 0
  store <2 x float> %170, ptr %169, align 4
  %171 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %168, i32 0, i32 1
  %172 = extractvalue { <2 x float>, <2 x float> } %165, 1
  store <2 x float> %172, ptr %171, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %28, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #5
  %173 = load ptr, ptr %6, align 8, !tbaa !5
  %174 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %16, i64 noundef 0)
          to label %175 unwind label %135

175:                                              ; preds = %166
  %176 = load float, ptr %174, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %173, float noundef %176)
          to label %177 unwind label %135

177:                                              ; preds = %175
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  %179 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %16, i64 noundef 1)
          to label %180 unwind label %135

180:                                              ; preds = %177
  %181 = load float, ptr %179, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %178, float noundef %181)
          to label %182 unwind label %135

182:                                              ; preds = %180
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  %184 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %16, i64 noundef 2)
          to label %185 unwind label %135

185:                                              ; preds = %182
  %186 = load float, ptr %184, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %183, float noundef %186)
          to label %187 unwind label %135

187:                                              ; preds = %185
  %188 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options15color_has_alphaEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %189 unwind label %135

189:                                              ; preds = %187
  br i1 %188, label %190, label %200

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

193:                                              ; preds = %190
  %194 = load float, ptr %192, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %191, float noundef %194)
          to label %195 unwind label %135

195:                                              ; preds = %193
  br label %200

196:                                              ; preds = %157
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %19, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #5
  br label %575

200:                                              ; preds = %195, %189
  br label %243

201:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %202 = 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)
  %203 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %31, i32 0, i32 0
  %204 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %203, i32 0, i32 0
  %205 = load i32, ptr %204, align 4
  %206 = load ptr, ptr %202, align 8, !tbaa !9
  %207 = getelementptr inbounds ptr, ptr %206, i64 5
  %208 = load ptr, ptr %207, align 8
  %209 = invoke i32 %208(ptr noundef nonnull align 8 dereferenceable(8) %202, i32 %205)
          to label %210 unwind label %238

210:                                              ; preds = %201
  %211 = getelementptr inbounds %"class.OpenMesh::VectorT.31", ptr %30, i32 0, i32 0
  %212 = getelementptr inbounds %"struct.std::array.32", ptr %211, i32 0, i32 0
  store i32 %209, ptr %212, align 1
  %213 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN8OpenMesh7VectorTIiLi4EEaSIhSt9enable_ifILb1EvEEERS1_RKNS0_IT_Li4EEE(ptr noundef nonnull align 4 dereferenceable(16) %15, ptr noundef nonnull align 1 dereferenceable(4) %30)
          to label %214 unwind label %238

214:                                              ; preds = %210
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  %215 = load ptr, ptr %6, align 8, !tbaa !5
  %216 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %15, i64 noundef 0)
          to label %217 unwind label %135

217:                                              ; preds = %214
  %218 = load i32, ptr %216, align 4, !tbaa !11
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %215, i32 noundef %218)
          to label %219 unwind label %135

219:                                              ; preds = %217
  %220 = load ptr, ptr %6, align 8, !tbaa !5
  %221 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %15, i64 noundef 1)
          to label %222 unwind label %135

222:                                              ; preds = %219
  %223 = load i32, ptr %221, align 4, !tbaa !11
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %220, i32 noundef %223)
          to label %224 unwind label %135

224:                                              ; preds = %222
  %225 = load ptr, ptr %6, align 8, !tbaa !5
  %226 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %15, i64 noundef 2)
          to label %227 unwind label %135

227:                                              ; preds = %224
  %228 = load i32, ptr %226, align 4, !tbaa !11
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %225, i32 noundef %228)
          to label %229 unwind label %135

229:                                              ; preds = %227
  %230 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options15color_has_alphaEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %231 unwind label %135

231:                                              ; preds = %229
  br i1 %230, label %232, label %242

232:                                              ; preds = %231
  %233 = load ptr, ptr %6, align 8, !tbaa !5
  %234 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %15, i64 noundef 3)
          to label %235 unwind label %135

235:                                              ; preds = %232
  %236 = load i32, ptr %234, align 4, !tbaa !11
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %233, i32 noundef %236)
          to label %237 unwind label %135

237:                                              ; preds = %235
  br label %242

238:                                              ; preds = %210, %201
  %239 = landingpad { ptr, i32 }
          cleanup
  %240 = extractvalue { ptr, i32 } %239, 0
  store ptr %240, ptr %19, align 8
  %241 = extractvalue { ptr, i32 } %239, 1
  store i32 %241, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  br label %575

242:                                              ; preds = %237, %231
  br label %243

243:                                              ; preds = %242, %200
  br label %244

244:                                              ; preds = %243, %153
  %245 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options19vertex_has_texcoordEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %246 unwind label %135

246:                                              ; preds = %244
  br i1 %245, label %247, label %273

247:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  %248 = 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)
  %249 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %33, i32 0, i32 0
  %250 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %249, i32 0, i32 0
  %251 = load i32, ptr %250, align 4
  %252 = load ptr, ptr %248, align 8, !tbaa !9
  %253 = getelementptr inbounds ptr, ptr %252, i64 10
  %254 = load ptr, ptr %253, align 8
  %255 = invoke <2 x float> %254(ptr noundef nonnull align 8 dereferenceable(8) %248, i32 %251)
          to label %256 unwind label %269

256:                                              ; preds = %247
  %257 = getelementptr inbounds %"class.OpenMesh::VectorT.18", ptr %32, i32 0, i32 0
  %258 = getelementptr inbounds %"struct.std::array.19", ptr %257, i32 0, i32 0
  store <2 x float> %255, ptr %258, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %32, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  %259 = load ptr, ptr %6, align 8, !tbaa !5
  %260 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %14, i64 noundef 0)
          to label %261 unwind label %135

261:                                              ; preds = %256
  %262 = load float, ptr %260, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %259, float noundef %262)
          to label %263 unwind label %135

263:                                              ; preds = %261
  %264 = load ptr, ptr %6, align 8, !tbaa !5
  %265 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %14, i64 noundef 1)
          to label %266 unwind label %135

266:                                              ; preds = %263
  %267 = load float, ptr %265, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %264, float noundef %267)
          to label %268 unwind label %135

268:                                              ; preds = %266
  br label %273

269:                                              ; preds = %247
  %270 = landingpad { ptr, i32 }
          cleanup
  %271 = extractvalue { ptr, i32 } %270, 0
  store ptr %271, ptr %19, align 8
  %272 = extractvalue { ptr, i32 } %270, 1
  store i32 %272, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  br label %575

273:                                              ; preds = %268, %246
  br label %274

274:                                              ; preds = %273
  %275 = load i32, ptr %9, align 4, !tbaa !11
  %276 = add i32 %275, 1
  store i32 %276, ptr %9, align 4, !tbaa !11
  br label %73, !llvm.loop !19

277:                                              ; preds = %73
  %278 = load ptr, ptr %7, align 8, !tbaa !5
  %279 = load ptr, ptr %278, align 8, !tbaa !9
  %280 = getelementptr inbounds ptr, ptr %279, i64 29
  %281 = load ptr, ptr %280, align 8
  %282 = invoke noundef zeroext i1 %281(ptr noundef nonnull align 8 dereferenceable(8) %278)
          to label %283 unwind label %135

283:                                              ; preds = %277
  br i1 %282, label %284, label %426

284:                                              ; preds = %283
  store i32 0, ptr %9, align 4, !tbaa !11
  %285 = load ptr, ptr %7, align 8, !tbaa !5
  %286 = load ptr, ptr %285, align 8, !tbaa !9
  %287 = getelementptr inbounds ptr, ptr %286, i64 27
  %288 = load ptr, ptr %287, align 8
  %289 = invoke noundef i64 %288(ptr noundef nonnull align 8 dereferenceable(8) %285)
          to label %290 unwind label %135

290:                                              ; preds = %284
  %291 = trunc i64 %289 to i32
  store i32 %291, ptr %11, align 4, !tbaa !11
  br label %292

292:                                              ; preds = %422, %290
  %293 = load i32, ptr %9, align 4, !tbaa !11
  %294 = load i32, ptr %11, align 4, !tbaa !11
  %295 = icmp ult i32 %293, %294
  br i1 %295, label %296, label %425

296:                                              ; preds = %292
  %297 = load ptr, ptr %7, align 8, !tbaa !5
  %298 = load i32, ptr %9, align 4, !tbaa !11
  invoke void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %34, i32 noundef %298)
          to label %299 unwind label %135

299:                                              ; preds = %296
  %300 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %34, i32 0, i32 0
  %301 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %300, i32 0, i32 0
  %302 = load i32, ptr %301, align 4
  %303 = load ptr, ptr %297, align 8, !tbaa !9
  %304 = getelementptr inbounds ptr, ptr %303, i64 11
  %305 = load ptr, ptr %304, align 8
  %306 = invoke noundef i32 %305(ptr noundef nonnull align 8 dereferenceable(8) %297, i32 %302, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %307 unwind label %135

307:                                              ; preds = %299
  %308 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %308, i32 noundef 3)
          to label %309 unwind label %135

309:                                              ; preds = %307
  %310 = load ptr, ptr %6, align 8, !tbaa !5
  %311 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef 0) #5
  %312 = invoke noundef i32 @_ZNK8OpenMesh10BaseHandle3idxEv(ptr noundef nonnull align 4 dereferenceable(4) %311)
          to label %313 unwind label %135

313:                                              ; preds = %309
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %310, i32 noundef %312)
          to label %314 unwind label %135

314:                                              ; preds = %313
  %315 = load ptr, ptr %6, align 8, !tbaa !5
  %316 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef 1) #5
  %317 = invoke noundef i32 @_ZNK8OpenMesh10BaseHandle3idxEv(ptr noundef nonnull align 4 dereferenceable(4) %316)
          to label %318 unwind label %135

318:                                              ; preds = %314
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %315, i32 noundef %317)
          to label %319 unwind label %135

319:                                              ; preds = %318
  %320 = load ptr, ptr %6, align 8, !tbaa !5
  %321 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef 2) #5
  %322 = invoke noundef i32 @_ZNK8OpenMesh10BaseHandle3idxEv(ptr noundef nonnull align 4 dereferenceable(4) %321)
          to label %323 unwind label %135

323:                                              ; preds = %319
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %320, i32 noundef %322)
          to label %324 unwind label %135

324:                                              ; preds = %323
  %325 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options14face_has_colorEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %326 unwind label %135

326:                                              ; preds = %324
  br i1 %325, label %327, label %421

327:                                              ; preds = %326
  %328 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options14color_is_floatEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %329 unwind label %135

329:                                              ; preds = %327
  br i1 %328, label %330, label %376

330:                                              ; preds = %329
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #5
  %331 = load ptr, ptr %7, align 8, !tbaa !5
  %332 = load i32, ptr %9, align 4, !tbaa !11
  invoke void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %36, i32 noundef %332)
          to label %333 unwind label %371

333:                                              ; preds = %330
  %334 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %36, i32 0, i32 0
  %335 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %334, i32 0, i32 0
  %336 = load i32, ptr %335, align 4
  %337 = load ptr, ptr %331, align 8, !tbaa !9
  %338 = getelementptr inbounds ptr, ptr %337, i64 18
  %339 = load ptr, ptr %338, align 8
  %340 = invoke { <2 x float>, <2 x float> } %339(ptr noundef nonnull align 8 dereferenceable(8) %331, i32 %336)
          to label %341 unwind label %371

341:                                              ; preds = %333
  %342 = getelementptr inbounds %"class.OpenMesh::VectorT.24", ptr %35, i32 0, i32 0
  %343 = getelementptr inbounds %"struct.std::array.25", ptr %342, i32 0, i32 0
  %344 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %343, i32 0, i32 0
  %345 = extractvalue { <2 x float>, <2 x float> } %340, 0
  store <2 x float> %345, ptr %344, align 4
  %346 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %343, i32 0, i32 1
  %347 = extractvalue { <2 x float>, <2 x float> } %340, 1
  store <2 x float> %347, ptr %346, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %35, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #5
  %348 = load ptr, ptr %6, align 8, !tbaa !5
  %349 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %16, i64 noundef 0)
          to label %350 unwind label %135

350:                                              ; preds = %341
  %351 = load float, ptr %349, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %348, float noundef %351)
          to label %352 unwind label %135

352:                                              ; preds = %350
  %353 = load ptr, ptr %6, align 8, !tbaa !5
  %354 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %16, i64 noundef 1)
          to label %355 unwind label %135

355:                                              ; preds = %352
  %356 = load float, ptr %354, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %353, float noundef %356)
          to label %357 unwind label %135

357:                                              ; preds = %355
  %358 = load ptr, ptr %6, align 8, !tbaa !5
  %359 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %16, i64 noundef 2)
          to label %360 unwind label %135

360:                                              ; preds = %357
  %361 = load float, ptr %359, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %358, float noundef %361)
          to label %362 unwind label %135

362:                                              ; preds = %360
  %363 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options15color_has_alphaEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %364 unwind label %135

364:                                              ; preds = %362
  br i1 %363, label %365, label %375

365:                                              ; preds = %364
  %366 = load ptr, ptr %6, align 8, !tbaa !5
  %367 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %16, i64 noundef 3)
          to label %368 unwind label %135

368:                                              ; preds = %365
  %369 = load float, ptr %367, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %366, float noundef %369)
          to label %370 unwind label %135

370:                                              ; preds = %368
  br label %375

371:                                              ; preds = %333, %330
  %372 = landingpad { ptr, i32 }
          cleanup
  %373 = extractvalue { ptr, i32 } %372, 0
  store ptr %373, ptr %19, align 8
  %374 = extractvalue { ptr, i32 } %372, 1
  store i32 %374, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #5
  br label %575

375:                                              ; preds = %370, %364
  br label %420

376:                                              ; preds = %329
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #5
  %377 = load ptr, ptr %7, align 8, !tbaa !5
  %378 = load i32, ptr %9, align 4, !tbaa !11
  invoke void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %38, i32 noundef %378)
          to label %379 unwind label %415

379:                                              ; preds = %376
  %380 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %38, i32 0, i32 0
  %381 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %380, i32 0, i32 0
  %382 = load i32, ptr %381, align 4
  %383 = load ptr, ptr %377, align 8, !tbaa !9
  %384 = getelementptr inbounds ptr, ptr %383, i64 14
  %385 = load ptr, ptr %384, align 8
  %386 = invoke i32 %385(ptr noundef nonnull align 8 dereferenceable(8) %377, i32 %382)
          to label %387 unwind label %415

387:                                              ; preds = %379
  %388 = getelementptr inbounds %"class.OpenMesh::VectorT.31", ptr %37, i32 0, i32 0
  %389 = getelementptr inbounds %"struct.std::array.32", ptr %388, i32 0, i32 0
  store i32 %386, ptr %389, align 1
  %390 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN8OpenMesh7VectorTIiLi4EEaSIhSt9enable_ifILb1EvEEERS1_RKNS0_IT_Li4EEE(ptr noundef nonnull align 4 dereferenceable(16) %15, ptr noundef nonnull align 1 dereferenceable(4) %37)
          to label %391 unwind label %415

391:                                              ; preds = %387
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #5
  %392 = load ptr, ptr %6, align 8, !tbaa !5
  %393 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %15, i64 noundef 0)
          to label %394 unwind label %135

394:                                              ; preds = %391
  %395 = load i32, ptr %393, align 4, !tbaa !11
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %392, i32 noundef %395)
          to label %396 unwind label %135

396:                                              ; preds = %394
  %397 = load ptr, ptr %6, align 8, !tbaa !5
  %398 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %15, i64 noundef 1)
          to label %399 unwind label %135

399:                                              ; preds = %396
  %400 = load i32, ptr %398, align 4, !tbaa !11
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %397, i32 noundef %400)
          to label %401 unwind label %135

401:                                              ; preds = %399
  %402 = load ptr, ptr %6, align 8, !tbaa !5
  %403 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %15, i64 noundef 2)
          to label %404 unwind label %135

404:                                              ; preds = %401
  %405 = load i32, ptr %403, align 4, !tbaa !11
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %402, i32 noundef %405)
          to label %406 unwind label %135

406:                                              ; preds = %404
  %407 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options15color_has_alphaEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %408 unwind label %135

408:                                              ; preds = %406
  br i1 %407, label %409, label %419

409:                                              ; preds = %408
  %410 = load ptr, ptr %6, align 8, !tbaa !5
  %411 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %15, i64 noundef 3)
          to label %412 unwind label %135

412:                                              ; preds = %409
  %413 = load i32, ptr %411, align 4, !tbaa !11
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %410, i32 noundef %413)
          to label %414 unwind label %135

414:                                              ; preds = %412
  br label %419

415:                                              ; preds = %387, %379, %376
  %416 = landingpad { ptr, i32 }
          cleanup
  %417 = extractvalue { ptr, i32 } %416, 0
  store ptr %417, ptr %19, align 8
  %418 = extractvalue { ptr, i32 } %416, 1
  store i32 %418, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #5
  br label %575

419:                                              ; preds = %414, %408
  br label %420

420:                                              ; preds = %419, %375
  br label %421

421:                                              ; preds = %420, %326
  br label %422

422:                                              ; preds = %421
  %423 = load i32, ptr %9, align 4, !tbaa !11
  %424 = add i32 %423, 1
  store i32 %424, ptr %9, align 4, !tbaa !11
  br label %292, !llvm.loop !21

425:                                              ; preds = %292
  br label %574

426:                                              ; preds = %283
  store i32 0, ptr %9, align 4, !tbaa !11
  %427 = load ptr, ptr %7, align 8, !tbaa !5
  %428 = load ptr, ptr %427, align 8, !tbaa !9
  %429 = getelementptr inbounds ptr, ptr %428, i64 27
  %430 = load ptr, ptr %429, align 8
  %431 = invoke noundef i64 %430(ptr noundef nonnull align 8 dereferenceable(8) %427)
          to label %432 unwind label %135

432:                                              ; preds = %426
  %433 = trunc i64 %431 to i32
  store i32 %433, ptr %11, align 4, !tbaa !11
  br label %434

434:                                              ; preds = %570, %432
  %435 = load i32, ptr %9, align 4, !tbaa !11
  %436 = load i32, ptr %11, align 4, !tbaa !11
  %437 = icmp ult i32 %435, %436
  br i1 %437, label %438, label %573

438:                                              ; preds = %434
  %439 = load ptr, ptr %7, align 8, !tbaa !5
  %440 = load i32, ptr %9, align 4, !tbaa !11
  invoke void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %39, i32 noundef %440)
          to label %441 unwind label %135

441:                                              ; preds = %438
  %442 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %39, i32 0, i32 0
  %443 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %442, i32 0, i32 0
  %444 = load i32, ptr %443, align 4
  %445 = load ptr, ptr %439, align 8, !tbaa !9
  %446 = getelementptr inbounds ptr, ptr %445, i64 11
  %447 = load ptr, ptr %446, align 8
  %448 = invoke noundef i32 %447(ptr noundef nonnull align 8 dereferenceable(8) %439, i32 %444, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %449 unwind label %135

449:                                              ; preds = %441
  store i32 %448, ptr %10, align 4, !tbaa !11
  %450 = load ptr, ptr %6, align 8, !tbaa !5
  %451 = load i32, ptr %10, align 4, !tbaa !11
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoj(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %450, i32 noundef %451)
          to label %452 unwind label %135

452:                                              ; preds = %449
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #5
  store i64 0, ptr %40, align 8, !tbaa !22
  br label %453

453:                                              ; preds = %465, %452
  %454 = load i64, ptr %40, align 8, !tbaa !22
  %455 = call noundef i64 @_ZNKSt6vectorIN8OpenMesh12VertexHandleESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  %456 = icmp ult i64 %454, %455
  br i1 %456, label %458, label %457

457:                                              ; preds = %453
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #5
  br label %472

458:                                              ; preds = %453
  %459 = load ptr, ptr %6, align 8, !tbaa !5
  %460 = load i64, ptr %40, align 8, !tbaa !22
  %461 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %460) #5
  %462 = invoke noundef i32 @_ZNK8OpenMesh10BaseHandle3idxEv(ptr noundef nonnull align 4 dereferenceable(4) %461)
          to label %463 unwind label %468

463:                                              ; preds = %458
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %459, i32 noundef %462)
          to label %464 unwind label %468

464:                                              ; preds = %463
  br label %465

465:                                              ; preds = %464
  %466 = load i64, ptr %40, align 8, !tbaa !22
  %467 = add i64 %466, 1
  store i64 %467, ptr %40, align 8, !tbaa !22
  br label %453, !llvm.loop !24

468:                                              ; preds = %463, %458
  %469 = landingpad { ptr, i32 }
          cleanup
  %470 = extractvalue { ptr, i32 } %469, 0
  store ptr %470, ptr %19, align 8
  %471 = extractvalue { ptr, i32 } %469, 1
  store i32 %471, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #5
  br label %575

472:                                              ; preds = %457
  %473 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options14face_has_colorEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %474 unwind label %135

474:                                              ; preds = %472
  br i1 %473, label %475, label %569

475:                                              ; preds = %474
  %476 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options14color_is_floatEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %477 unwind label %135

477:                                              ; preds = %475
  br i1 %476, label %478, label %524

478:                                              ; preds = %477
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #5
  %479 = load ptr, ptr %7, align 8, !tbaa !5
  %480 = load i32, ptr %9, align 4, !tbaa !11
  invoke void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %42, i32 noundef %480)
          to label %481 unwind label %519

481:                                              ; preds = %478
  %482 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %42, i32 0, i32 0
  %483 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %482, i32 0, i32 0
  %484 = load i32, ptr %483, align 4
  %485 = load ptr, ptr %479, align 8, !tbaa !9
  %486 = getelementptr inbounds ptr, ptr %485, i64 18
  %487 = load ptr, ptr %486, align 8
  %488 = invoke { <2 x float>, <2 x float> } %487(ptr noundef nonnull align 8 dereferenceable(8) %479, i32 %484)
          to label %489 unwind label %519

489:                                              ; preds = %481
  %490 = getelementptr inbounds %"class.OpenMesh::VectorT.24", ptr %41, i32 0, i32 0
  %491 = getelementptr inbounds %"struct.std::array.25", ptr %490, i32 0, i32 0
  %492 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %491, i32 0, i32 0
  %493 = extractvalue { <2 x float>, <2 x float> } %488, 0
  store <2 x float> %493, ptr %492, align 4
  %494 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %491, i32 0, i32 1
  %495 = extractvalue { <2 x float>, <2 x float> } %488, 1
  store <2 x float> %495, ptr %494, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %41, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #5
  %496 = load ptr, ptr %6, align 8, !tbaa !5
  %497 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %16, i64 noundef 0)
          to label %498 unwind label %135

498:                                              ; preds = %489
  %499 = load float, ptr %497, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %496, float noundef %499)
          to label %500 unwind label %135

500:                                              ; preds = %498
  %501 = load ptr, ptr %6, align 8, !tbaa !5
  %502 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %16, i64 noundef 1)
          to label %503 unwind label %135

503:                                              ; preds = %500
  %504 = load float, ptr %502, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %501, float noundef %504)
          to label %505 unwind label %135

505:                                              ; preds = %503
  %506 = load ptr, ptr %6, align 8, !tbaa !5
  %507 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %16, i64 noundef 2)
          to label %508 unwind label %135

508:                                              ; preds = %505
  %509 = load float, ptr %507, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %506, float noundef %509)
          to label %510 unwind label %135

510:                                              ; preds = %508
  %511 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options15color_has_alphaEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %512 unwind label %135

512:                                              ; preds = %510
  br i1 %511, label %513, label %523

513:                                              ; preds = %512
  %514 = load ptr, ptr %6, align 8, !tbaa !5
  %515 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %16, i64 noundef 3)
          to label %516 unwind label %135

516:                                              ; preds = %513
  %517 = load float, ptr %515, align 4, !tbaa !15
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %514, float noundef %517)
          to label %518 unwind label %135

518:                                              ; preds = %516
  br label %523

519:                                              ; preds = %481, %478
  %520 = landingpad { ptr, i32 }
          cleanup
  %521 = extractvalue { ptr, i32 } %520, 0
  store ptr %521, ptr %19, align 8
  %522 = extractvalue { ptr, i32 } %520, 1
  store i32 %522, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #5
  br label %575

523:                                              ; preds = %518, %512
  br label %568

524:                                              ; preds = %477
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #5
  %525 = load ptr, ptr %7, align 8, !tbaa !5
  %526 = load i32, ptr %9, align 4, !tbaa !11
  invoke void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %44, i32 noundef %526)
          to label %527 unwind label %563

527:                                              ; preds = %524
  %528 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %44, i32 0, i32 0
  %529 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %528, i32 0, i32 0
  %530 = load i32, ptr %529, align 4
  %531 = load ptr, ptr %525, align 8, !tbaa !9
  %532 = getelementptr inbounds ptr, ptr %531, i64 14
  %533 = load ptr, ptr %532, align 8
  %534 = invoke i32 %533(ptr noundef nonnull align 8 dereferenceable(8) %525, i32 %530)
          to label %535 unwind label %563

535:                                              ; preds = %527
  %536 = getelementptr inbounds %"class.OpenMesh::VectorT.31", ptr %43, i32 0, i32 0
  %537 = getelementptr inbounds %"struct.std::array.32", ptr %536, i32 0, i32 0
  store i32 %534, ptr %537, align 1
  %538 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN8OpenMesh7VectorTIiLi4EEaSIhSt9enable_ifILb1EvEEERS1_RKNS0_IT_Li4EEE(ptr noundef nonnull align 4 dereferenceable(16) %15, ptr noundef nonnull align 1 dereferenceable(4) %43)
          to label %539 unwind label %563

539:                                              ; preds = %535
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #5
  %540 = load ptr, ptr %6, align 8, !tbaa !5
  %541 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %15, i64 noundef 0)
          to label %542 unwind label %135

542:                                              ; preds = %539
  %543 = load i32, ptr %541, align 4, !tbaa !11
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %540, i32 noundef %543)
          to label %544 unwind label %135

544:                                              ; preds = %542
  %545 = load ptr, ptr %6, align 8, !tbaa !5
  %546 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %15, i64 noundef 1)
          to label %547 unwind label %135

547:                                              ; preds = %544
  %548 = load i32, ptr %546, align 4, !tbaa !11
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %545, i32 noundef %548)
          to label %549 unwind label %135

549:                                              ; preds = %547
  %550 = load ptr, ptr %6, align 8, !tbaa !5
  %551 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %15, i64 noundef 2)
          to label %552 unwind label %135

552:                                              ; preds = %549
  %553 = load i32, ptr %551, align 4, !tbaa !11
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %550, i32 noundef %553)
          to label %554 unwind label %135

554:                                              ; preds = %552
  %555 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options15color_has_alphaEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %556 unwind label %135

556:                                              ; preds = %554
  br i1 %555, label %557, label %567

557:                                              ; preds = %556
  %558 = load ptr, ptr %6, align 8, !tbaa !5
  %559 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %15, i64 noundef 3)
          to label %560 unwind label %135

560:                                              ; preds = %557
  %561 = load i32, ptr %559, align 4, !tbaa !11
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %558, i32 noundef %561)
          to label %562 unwind label %135

562:                                              ; preds = %560
  br label %567

563:                                              ; preds = %535, %527, %524
  %564 = landingpad { ptr, i32 }
          cleanup
  %565 = extractvalue { ptr, i32 } %564, 0
  store ptr %565, ptr %19, align 8
  %566 = extractvalue { ptr, i32 } %564, 1
  store i32 %566, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #5
  br label %575

567:                                              ; preds = %562, %556
  br label %568

568:                                              ; preds = %567, %523
  br label %569

569:                                              ; preds = %568, %474
  br label %570

570:                                              ; preds = %569
  %571 = load i32, ptr %9, align 4, !tbaa !11
  %572 = add i32 %571, 1
  store i32 %572, ptr %9, align 4, !tbaa !11
  br label %434, !llvm.loop !25

573:                                              ; preds = %434
  br label %574

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

575:                                              ; preds = %563, %519, %468, %415, %371, %269, %238, %196, %147, %143, %139, %135
  call void @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %576

576:                                              ; preds = %575
  %577 = load ptr, ptr %19, align 8
  %578 = load i32, ptr %20, align 4
  %579 = insertvalue { ptr, i32 } poison, ptr %577, 0
  %580 = insertvalue { ptr, i32 } %579, i32 %578, 1
  resume { ptr, i32 } %580
}

; 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 @_ZN8OpenMesh7VectorTIfLi2EEC2Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8OpenMesh7VectorTIiLi4EEC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) 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 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 zeroext i1 @_ZNK8OpenMesh2IO7Options14color_is_floatEv(ptr noundef nonnull align 4 dereferenceable(4)) #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 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 @_ZNK8OpenMesh2IO7Options16vertex_has_colorEv(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 uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN8OpenMesh7VectorTIiLi4EEaSIhSt9enable_ifILb1EvEEERS1_RKNS0_IT_Li4EEE(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(4)) #3 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 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 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 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 noundef zeroext i1 @_ZNK8OpenMesh2IO7Options14face_has_colorEv(ptr noundef nonnull align 4 dereferenceable(4)) #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 void @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), float noundef) #3 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 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16), i64 noundef) #2 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 = { 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, 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 16, !14}
!18 = !{i64 0, i64 8, !14}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!23, !23, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}


; 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.18" = type { %"struct.std::array.19" }
%"struct.std::array.19" = type { [2 x float] }
%"class.OpenMesh::VectorT.22" = type { %"struct.std::array.23" }
%"struct.std::array.23" = type { [4 x i32] }
%"class.OpenMesh::VectorT.24" = type { %"struct.std::array.25" }
%"struct.std::array.25" = type { [4 x float] }
%"struct.OpenMesh::VertexHandle" = type { %"class.OpenMesh::BaseHandle" }
%"class.OpenMesh::BaseHandle" = type { i32 }
%"class.std::vector.26" = type { %"struct.std::_Vector_base.27" }
%"struct.std::_Vector_base.27" = 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.OpenMesh::VectorT.31" = type { %"struct.std::array.32" }
%"struct.std::array.32" = type { [4 x i8] }
%"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_OFFWriter_12write_binaryERSoRNS0_12BaseExporterENS0_7OptionsE(ptr noundef nonnull align 8 dereferenceable(8) %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.18", align 8
  %8 = alloca %"class.OpenMesh::VectorT.22", align 4
  %9 = alloca %"class.OpenMesh::VectorT.24", align 8
  %10 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %11 = alloca %"class.std::vector.26", align 8
  %12 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %13 = alloca %"class.OpenMesh::VectorT.31", align 4
  %14 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %15 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %16 = alloca %"class.OpenMesh::VectorT.31", align 4
  %17 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %18 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %19 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %20 = alloca %"class.OpenMesh::VectorT.31", align 4
  %21 = alloca %"struct.OpenMesh::FaceHandle", align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #4
  call void @_ZN8OpenMesh7VectorTIfLi3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #4
  call void @_ZN8OpenMesh7VectorTIfLi3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  call void @_ZN8OpenMesh7VectorTIfLi2EEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %7)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
  call void @_ZN8OpenMesh7VectorTIiLi4EEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %8)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #4
  call void @_ZN8OpenMesh7VectorTIfLi4EEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %9)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  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) #4
  call void @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %22, i64 208
  %24 = load ptr, ptr %23, align 8
  %25 = invoke noundef i64 %24(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %26 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

26:                                               ; preds = %4
  %27 = trunc i64 %25 to i32
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoj(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %27)
          to label %28 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

28:                                               ; preds = %26
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %29, i64 216
  %31 = load ptr, ptr %30, align 8
  %32 = invoke noundef i64 %31(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %33 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

33:                                               ; preds = %28
  %34 = trunc i64 %32 to i32
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoj(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %34)
          to label %35 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

35:                                               ; preds = %33
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef 0)
          to label %36 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

36:                                               ; preds = %35
  %37 = load ptr, ptr %2, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 208
  %39 = load ptr, ptr %38, align 8
  %40 = invoke noundef i64 %39(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %41 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

41:                                               ; preds = %36
  %42 = trunc i64 %40 to i32
  %.not = icmp eq i32 %42, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %41
  %.sroa.521.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  %.sroa.514.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  %.sroa.510.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  br label %43

43:                                               ; preds = %.lr.ph, %146
  %.0110 = phi i32 [ 0, %.lr.ph ], [ %147, %146 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  invoke void @_ZN8OpenMesh12VertexHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 noundef %.0110)
          to label %44 unwind label %75

44:                                               ; preds = %43
  %45 = load i32, ptr %12, align 4
  store i32 %45, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  %46 = load ptr, ptr %2, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  %48 = load ptr, ptr %47, align 8
  %49 = invoke { <2 x float>, float } %48(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %45)
          to label %50 unwind label %77

50:                                               ; preds = %44
  %.fca.0.extract15 = extractvalue { <2 x float>, float } %49, 0
  %.fca.1.extract16 = extractvalue { <2 x float>, float } %49, 1
  store <2 x float> %.fca.0.extract15, ptr %5, align 8
  store float %.fca.1.extract16, ptr %.sroa.521.0..sroa_idx, align 8, !tbaa !8
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %5, i64 noundef 0)
  %52 = load float, ptr %51, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %52)
          to label %53 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

53:                                               ; preds = %50
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %5, i64 noundef 1)
  %55 = load float, ptr %54, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %55)
          to label %56 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

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

59:                                               ; preds = %56
  %60 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options17vertex_has_normalEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %60, label %61, label %81

61:                                               ; preds = %59
  %.sroa.012.0.copyload = load i32, ptr %10, align 4
  %62 = load ptr, ptr %2, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %62, i64 24
  %64 = load ptr, ptr %63, align 8
  %65 = invoke { <2 x float>, float } %64(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %.sroa.012.0.copyload)
          to label %66 unwind label %79

66:                                               ; preds = %61
  %.fca.0.extract = extractvalue { <2 x float>, float } %65, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %65, 1
  store <2 x float> %.fca.0.extract, ptr %6, align 8
  store float %.fca.1.extract, ptr %.sroa.514.0..sroa_idx, align 8, !tbaa !8
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %6, i64 noundef 0)
  %68 = load float, ptr %67, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %68)
          to label %69 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

69:                                               ; preds = %66
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %6, i64 noundef 1)
  %71 = load float, ptr %70, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %71)
          to label %72 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

72:                                               ; preds = %69
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %6, i64 noundef 2)
  %74 = load float, ptr %73, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %74)
          to label %81 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

.loopexit103:                                     ; preds = %160, %166, %167, %170, %173, %186, %191, %194, %199, %212, %215, %218, %223
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %296, %291, %288, %285, %272, %267, %264, %259, %240, %234
  %lpad.loopexit105 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit:    ; preds = %50, %53, %56, %66, %69, %72, %90, %95, %98, %103, %115, %118, %121, %126, %138, %141
  %lpad.loopexit108 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp: ; preds = %4, %26, %28, %33, %35, %36, %._crit_edge, %156, %230
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

75:                                               ; preds = %43
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  br label %.loopexit.split-lp

77:                                               ; preds = %44
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

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

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

83:                                               ; preds = %81
  %84 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options14color_is_floatEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %84, label %85, label %108

85:                                               ; preds = %83
  %.sroa.08.0.copyload = load i32, ptr %10, align 4
  %86 = load ptr, ptr %2, align 8, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %86, 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.08.0.copyload)
          to label %90 unwind label %106

90:                                               ; preds = %85
  %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.510.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_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %94)
          to label %95 unwind label %.loopexit.split-lp.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_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %97)
          to label %98 unwind label %.loopexit.split-lp.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_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %100)
          to label %101 unwind label %.loopexit.split-lp.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 %131

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_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %105)
          to label %131 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

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

108:                                              ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #4
  %.sroa.07.0.copyload = load i32, ptr %10, align 4
  %109 = load ptr, ptr %2, align 8, !tbaa !5
  %110 = getelementptr inbounds i8, ptr %109, i64 40
  %111 = load ptr, ptr %110, align 8
  %112 = invoke i32 %111(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %.sroa.07.0.copyload)
          to label %113 unwind label %129

113:                                              ; preds = %108
  store i32 %112, ptr %13, align 4
  %114 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN8OpenMesh7VectorTIiLi4EEaSIhSt9enable_ifILb1EvEEERS1_RKNS0_IT_Li4EEE(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 1 dereferenceable(4) %13)
          to label %115 unwind label %129

115:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #4
  %116 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %8, i64 noundef 0)
  %117 = load i32, ptr %116, align 4, !tbaa !12
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %117)
          to label %118 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

118:                                              ; preds = %115
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %8, i64 noundef 1)
  %120 = load i32, ptr %119, align 4, !tbaa !12
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %120)
          to label %121 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

121:                                              ; preds = %118
  %122 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %8, i64 noundef 2)
  %123 = load i32, ptr %122, align 4, !tbaa !12
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %123)
          to label %124 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

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

126:                                              ; preds = %124
  %127 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %8, i64 noundef 3)
  %128 = load i32, ptr %127, align 4, !tbaa !12
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %128)
          to label %131 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

129:                                              ; preds = %113, %108
  %130 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #4
  br label %.loopexit.split-lp

131:                                              ; preds = %103, %101, %126, %124, %81
  %132 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options19vertex_has_texcoordEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %132, label %133, label %146

133:                                              ; preds = %131
  %.sroa.05.0.copyload = load i32, ptr %10, align 4
  %134 = load ptr, ptr %2, align 8, !tbaa !5
  %135 = getelementptr inbounds i8, ptr %134, i64 80
  %136 = load ptr, ptr %135, align 8
  %137 = invoke <2 x float> %136(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %.sroa.05.0.copyload)
          to label %138 unwind label %144

138:                                              ; preds = %133
  store <2 x float> %137, ptr %7, align 8, !tbaa !8
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %7, i64 noundef 0)
  %140 = load float, ptr %139, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %140)
          to label %141 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

141:                                              ; preds = %138
  %142 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %7, i64 noundef 1)
  %143 = load float, ptr %142, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %143)
          to label %146 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

144:                                              ; preds = %133
  %145 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

146:                                              ; preds = %131, %141
  %147 = add nuw i32 %.0110, 1
  %exitcond.not = icmp eq i32 %147, %42
  br i1 %exitcond.not, label %._crit_edge, label %43, !llvm.loop !14

._crit_edge:                                      ; preds = %146, %41
  %148 = load ptr, ptr %2, align 8, !tbaa !5
  %149 = getelementptr inbounds i8, ptr %148, i64 232
  %150 = load ptr, ptr %149, align 8
  %151 = invoke noundef zeroext i1 %150(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %152 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

152:                                              ; preds = %._crit_edge
  %153 = load ptr, ptr %2, align 8, !tbaa !5
  %154 = getelementptr inbounds i8, ptr %153, i64 216
  %155 = load ptr, ptr %154, align 8
  br i1 %151, label %156, label %230

156:                                              ; preds = %152
  %157 = invoke noundef i64 %155(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %158 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

158:                                              ; preds = %156
  %159 = trunc i64 %157 to i32
  %.not122 = icmp eq i32 %159, 0
  br i1 %.not122, label %.loopexit, label %.lr.ph119

.lr.ph119:                                        ; preds = %158
  %.sroa.54.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  br label %160

160:                                              ; preds = %.lr.ph119, %228
  %.1117 = phi i32 [ 0, %.lr.ph119 ], [ %229, %228 ]
  call void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %14, i32 noundef %.1117)
  %161 = load i32, ptr %14, align 4
  %162 = load ptr, ptr %2, align 8, !tbaa !5
  %163 = getelementptr inbounds i8, ptr %162, i64 88
  %164 = load ptr, ptr %163, align 8
  %165 = invoke noundef i32 %164(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %161, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %166 unwind label %.loopexit103

166:                                              ; preds = %160
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef 3)
          to label %167 unwind label %.loopexit103

167:                                              ; preds = %166
  %168 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 0) #4
  %169 = call noundef i32 @_ZNK8OpenMesh10BaseHandle3idxEv(ptr noundef nonnull align 4 dereferenceable(4) %168)
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %169)
          to label %170 unwind label %.loopexit103

170:                                              ; preds = %167
  %171 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 1) #4
  %172 = call noundef i32 @_ZNK8OpenMesh10BaseHandle3idxEv(ptr noundef nonnull align 4 dereferenceable(4) %171)
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %172)
          to label %173 unwind label %.loopexit103

173:                                              ; preds = %170
  %174 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 2) #4
  %175 = call noundef i32 @_ZNK8OpenMesh10BaseHandle3idxEv(ptr noundef nonnull align 4 dereferenceable(4) %174)
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %175)
          to label %176 unwind label %.loopexit103

176:                                              ; preds = %173
  %177 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options14face_has_colorEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %177, label %178, label %228

178:                                              ; preds = %176
  %179 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options14color_is_floatEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %179, label %180, label %204

180:                                              ; preds = %178
  call void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef %.1117)
  %181 = load i32, ptr %15, align 4
  %182 = load ptr, ptr %2, align 8, !tbaa !5
  %183 = getelementptr inbounds i8, ptr %182, i64 144
  %184 = load ptr, ptr %183, align 8
  %185 = invoke { <2 x float>, <2 x float> } %184(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %181)
          to label %186 unwind label %202

186:                                              ; preds = %180
  %187 = extractvalue { <2 x float>, <2 x float> } %185, 0
  %188 = extractvalue { <2 x float>, <2 x float> } %185, 1
  store <2 x float> %187, ptr %9, align 8
  store <2 x float> %188, ptr %.sroa.54.0..sroa_idx, align 8, !tbaa !8
  %189 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %9, i64 noundef 0)
  %190 = load float, ptr %189, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %190)
          to label %191 unwind label %.loopexit103

191:                                              ; preds = %186
  %192 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %9, i64 noundef 1)
  %193 = load float, ptr %192, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %193)
          to label %194 unwind label %.loopexit103

194:                                              ; preds = %191
  %195 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %9, i64 noundef 2)
  %196 = load float, ptr %195, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %196)
          to label %197 unwind label %.loopexit103

197:                                              ; preds = %194
  %198 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options15color_has_alphaEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %198, label %199, label %228

199:                                              ; preds = %197
  %200 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %9, i64 noundef 3)
  %201 = load float, ptr %200, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %201)
          to label %228 unwind label %.loopexit103

202:                                              ; preds = %180
  %203 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

204:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #4
  call void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 noundef %.1117)
  %205 = load i32, ptr %17, align 4
  %206 = load ptr, ptr %2, align 8, !tbaa !5
  %207 = getelementptr inbounds i8, ptr %206, i64 112
  %208 = load ptr, ptr %207, align 8
  %209 = invoke i32 %208(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %205)
          to label %210 unwind label %226

210:                                              ; preds = %204
  store i32 %209, ptr %16, align 4
  %211 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN8OpenMesh7VectorTIiLi4EEaSIhSt9enable_ifILb1EvEEERS1_RKNS0_IT_Li4EEE(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 1 dereferenceable(4) %16)
          to label %212 unwind label %226

212:                                              ; preds = %210
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #4
  %213 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %8, i64 noundef 0)
  %214 = load i32, ptr %213, align 4, !tbaa !12
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %214)
          to label %215 unwind label %.loopexit103

215:                                              ; preds = %212
  %216 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %8, i64 noundef 1)
  %217 = load i32, ptr %216, align 4, !tbaa !12
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %217)
          to label %218 unwind label %.loopexit103

218:                                              ; preds = %215
  %219 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %8, i64 noundef 2)
  %220 = load i32, ptr %219, align 4, !tbaa !12
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %220)
          to label %221 unwind label %.loopexit103

221:                                              ; preds = %218
  %222 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options15color_has_alphaEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %222, label %223, label %228

223:                                              ; preds = %221
  %224 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %8, i64 noundef 3)
  %225 = load i32, ptr %224, align 4, !tbaa !12
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %225)
          to label %228 unwind label %.loopexit103

226:                                              ; preds = %210, %204
  %227 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #4
  br label %.loopexit.split-lp

228:                                              ; preds = %176, %221, %223, %197, %199
  %229 = add nuw i32 %.1117, 1
  %exitcond125.not = icmp eq i32 %229, %159
  br i1 %exitcond125.not, label %.loopexit, label %160, !llvm.loop !16

230:                                              ; preds = %152
  %231 = invoke noundef i64 %155(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %232 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

232:                                              ; preds = %230
  %233 = trunc i64 %231 to i32
  %.not120 = icmp eq i32 %233, 0
  br i1 %.not120, label %.loopexit, label %.lr.ph116

.lr.ph116:                                        ; preds = %232
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  br label %234

234:                                              ; preds = %.lr.ph116, %301
  %.2114 = phi i32 [ 0, %.lr.ph116 ], [ %302, %301 ]
  call void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %18, i32 noundef %.2114)
  %235 = load i32, ptr %18, align 4
  %236 = load ptr, ptr %2, align 8, !tbaa !5
  %237 = getelementptr inbounds i8, ptr %236, i64 88
  %238 = load ptr, ptr %237, align 8
  %239 = invoke noundef i32 %238(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %235, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %240 unwind label %.loopexit.split-lp.loopexit

240:                                              ; preds = %234
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoj(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %239)
          to label %.preheader unwind label %.loopexit.split-lp.loopexit

.preheader:                                       ; preds = %240
  %241 = call noundef i64 @_ZNKSt6vectorIN8OpenMesh12VertexHandleESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  %.not121 = icmp eq i64 %241, 0
  br i1 %.not121, label %._crit_edge113, label %.lr.ph112

._crit_edge113:                                   ; preds = %245, %.preheader
  %242 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options14face_has_colorEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %242, label %251, label %301

.lr.ph112:                                        ; preds = %.preheader, %245
  %.099111 = phi i64 [ %246, %245 ], [ 0, %.preheader ]
  %243 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %.099111) #4
  %244 = call noundef i32 @_ZNK8OpenMesh10BaseHandle3idxEv(ptr noundef nonnull align 4 dereferenceable(4) %243)
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %244)
          to label %245 unwind label %249

245:                                              ; preds = %.lr.ph112
  %246 = add nuw i64 %.099111, 1
  %247 = call noundef i64 @_ZNKSt6vectorIN8OpenMesh12VertexHandleESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  %248 = icmp ult i64 %246, %247
  br i1 %248, label %.lr.ph112, label %._crit_edge113, !llvm.loop !17

249:                                              ; preds = %.lr.ph112
  %250 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

251:                                              ; preds = %._crit_edge113
  %252 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options14color_is_floatEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %252, label %253, label %277

253:                                              ; preds = %251
  call void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %19, i32 noundef %.2114)
  %254 = load i32, ptr %19, align 4
  %255 = load ptr, ptr %2, align 8, !tbaa !5
  %256 = getelementptr inbounds i8, ptr %255, i64 144
  %257 = load ptr, ptr %256, align 8
  %258 = invoke { <2 x float>, <2 x float> } %257(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %254)
          to label %259 unwind label %275

259:                                              ; preds = %253
  %260 = extractvalue { <2 x float>, <2 x float> } %258, 0
  %261 = extractvalue { <2 x float>, <2 x float> } %258, 1
  store <2 x float> %260, ptr %9, align 8
  store <2 x float> %261, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !8
  %262 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %9, i64 noundef 0)
  %263 = load float, ptr %262, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %263)
          to label %264 unwind label %.loopexit.split-lp.loopexit

264:                                              ; preds = %259
  %265 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %9, i64 noundef 1)
  %266 = load float, ptr %265, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %266)
          to label %267 unwind label %.loopexit.split-lp.loopexit

267:                                              ; preds = %264
  %268 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %9, i64 noundef 2)
  %269 = load float, ptr %268, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %269)
          to label %270 unwind label %.loopexit.split-lp.loopexit

270:                                              ; preds = %267
  %271 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options15color_has_alphaEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %271, label %272, label %301

272:                                              ; preds = %270
  %273 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %9, i64 noundef 3)
  %274 = load float, ptr %273, align 4, !tbaa !10
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %274)
          to label %301 unwind label %.loopexit.split-lp.loopexit

275:                                              ; preds = %253
  %276 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

277:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #4
  call void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %21, i32 noundef %.2114)
  %278 = load i32, ptr %21, align 4
  %279 = load ptr, ptr %2, align 8, !tbaa !5
  %280 = getelementptr inbounds i8, ptr %279, i64 112
  %281 = load ptr, ptr %280, align 8
  %282 = invoke i32 %281(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %278)
          to label %283 unwind label %299

283:                                              ; preds = %277
  store i32 %282, ptr %20, align 4
  %284 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN8OpenMesh7VectorTIiLi4EEaSIhSt9enable_ifILb1EvEEERS1_RKNS0_IT_Li4EEE(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 1 dereferenceable(4) %20)
          to label %285 unwind label %299

285:                                              ; preds = %283
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #4
  %286 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %8, i64 noundef 0)
  %287 = load i32, ptr %286, align 4, !tbaa !12
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %287)
          to label %288 unwind label %.loopexit.split-lp.loopexit

288:                                              ; preds = %285
  %289 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %8, i64 noundef 1)
  %290 = load i32, ptr %289, align 4, !tbaa !12
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %290)
          to label %291 unwind label %.loopexit.split-lp.loopexit

291:                                              ; preds = %288
  %292 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %8, i64 noundef 2)
  %293 = load i32, ptr %292, align 4, !tbaa !12
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %293)
          to label %294 unwind label %.loopexit.split-lp.loopexit

294:                                              ; preds = %291
  %295 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options15color_has_alphaEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %295, label %296, label %301

296:                                              ; preds = %294
  %297 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %8, i64 noundef 3)
  %298 = load i32, ptr %297, align 4, !tbaa !12
  invoke void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSoi(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %298)
          to label %301 unwind label %.loopexit.split-lp.loopexit

299:                                              ; preds = %283, %277
  %300 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #4
  br label %.loopexit.split-lp

301:                                              ; preds = %._crit_edge113, %294, %296, %270, %272
  %302 = add nuw i32 %.2114, 1
  %exitcond124.not = icmp eq i32 %302, %233
  br i1 %exitcond124.not, label %.loopexit, label %234, !llvm.loop !18

.loopexit:                                        ; preds = %301, %228, %232, %158
  call void @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #4
  ret i1 true

.loopexit.split-lp:                               ; preds = %.loopexit103, %.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit, %299, %275, %249, %226, %202, %144, %129, %106, %79, %77, %75
  %.pn = phi { ptr, i32 } [ %145, %144 ], [ %107, %106 ], [ %130, %129 ], [ %80, %79 ], [ %78, %77 ], [ %76, %75 ], [ %203, %202 ], [ %227, %226 ], [ %250, %249 ], [ %276, %275 ], [ %300, %299 ], [ %lpad.loopexit, %.loopexit103 ], [ %lpad.loopexit105, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit108, %.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp ]
  call void @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #4
  resume { ptr, i32 } %.pn
}

; 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 @_ZN8OpenMesh7VectorTIfLi2EEC2Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8OpenMesh7VectorTIiLi4EEC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) 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 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 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 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 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 @_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 @_ZNK8OpenMesh2IO7Options15color_has_alphaEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN8OpenMesh7VectorTIiLi4EEaSIhSt9enable_ifILb1EvEEERS1_RKNS0_IT_Li4EEE(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(4)) local_unnamed_addr #3 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 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 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 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 noundef zeroext i1 @_ZNK8OpenMesh2IO7Options14face_has_colorEv(ptr noundef nonnull align 4 dereferenceable(4)) local_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 void @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8OpenMesh2IO11_OFFWriter_10writeValueERSof(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), float noundef) local_unnamed_addr #3 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 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIiLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16), i64 noundef) local_unnamed_addr #2 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 = { 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 = !{!13, !13, i64 0}
!13 = !{!"int", !9, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}


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