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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.OpenMesh::VectorT" = type { %"struct.std::array" }
%"struct.std::array" = type { [3 x float] }
%"class.OpenMesh::VectorT.34" = type { %"struct.std::array.35" }
%"struct.std::array.35" = type { [2 x float] }
%"struct.OpenMesh::VertexHandle" = type { %"class.OpenMesh::BaseHandle" }
%"class.OpenMesh::BaseHandle" = type { i32 }
%"class.std::vector.36" = type { %"struct.std::_Vector_base.37" }
%"struct.std::_Vector_base.37" = type { %"struct.std::_Vector_base<OpenMesh::VertexHandle, std::allocator<OpenMesh::VertexHandle>>::_Vector_impl" }
%"struct.std::_Vector_base<OpenMesh::VertexHandle, std::allocator<OpenMesh::VertexHandle>>::_Vector_impl" = type { %"struct.std::_Vector_base<OpenMesh::VertexHandle, std::allocator<OpenMesh::VertexHandle>>::_Vector_impl_data" }
%"struct.std::_Vector_base<OpenMesh::VertexHandle, std::allocator<OpenMesh::VertexHandle>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.OpenMesh::VectorT.28" = type { %"struct.std::array.29" }
%"struct.std::array.29" = type { [4 x float] }
%"class.OpenMesh::IO::Options" = type { i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_fstream" = type { %"class.std::basic_iostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.17 }
%union.anon.17 = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.OpenMesh::VectorT.30" = type { %"struct.std::array.31" }
%"struct.std::array.31" = type { [4 x i8] }
%"struct.OpenMesh::FaceHandle" = type { %"class.OpenMesh::BaseHandle" }
%"class.OpenMesh::VectorT.32" = type { %"struct.std::array.33" }
%"struct.std::array.33" = type { [3 x i8] }
%"class.OpenMesh::IO::_OBJWriter_" = type { %"class.OpenMesh::IO::BaseWriter", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::vector", %"class.std::vector.3" }
%"class.OpenMesh::IO::BaseWriter" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<OpenMesh::VectorT<float, 3>, std::allocator<OpenMesh::VectorT<float, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<OpenMesh::VectorT<float, 3>, std::allocator<OpenMesh::VectorT<float, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<OpenMesh::VectorT<float, 3>, std::allocator<OpenMesh::VectorT<float, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<OpenMesh::VectorT<float, 3>, std::allocator<OpenMesh::VectorT<float, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<OpenMesh::VectorT<float, 4>, std::allocator<OpenMesh::VectorT<float, 4>>>::_Vector_impl" }
%"struct.std::_Vector_base<OpenMesh::VectorT<float, 4>, std::allocator<OpenMesh::VectorT<float, 4>>>::_Vector_impl" = type { %"struct.std::_Vector_base<OpenMesh::VectorT<float, 4>, std::allocator<OpenMesh::VectorT<float, 4>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<OpenMesh::VectorT<float, 4>, std::allocator<OpenMesh::VectorT<float, 4>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [2 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt13basic_fstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef, i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

declare noundef nonnull align 8 dereferenceable(224) ptr @_Z5omerrv() #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt13basic_fstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(264)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(264)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK8OpenMesh2IO11_OBJWriter_11getMaterialENS_7VectorTIfLi3EEE(ptr noundef nonnull align 8 dereferenceable(120), <2 x float>, float) #5 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) #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK8OpenMesh2IO11_OBJWriter_11getMaterialENS_7VectorTIfLi4EEE(ptr noundef nonnull align 8 dereferenceable(120), <2 x float>, <2 x float>) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO11_OBJWriter_13writeMaterialERSoRNS0_12BaseExporterENS0_7OptionsE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZN8OpenMesh10color_castINS_7VectorTIfLi4EEENS1_IhLi4EEEEENS_12color_casterIT_T0_E11return_typeERKS6_(ptr noundef nonnull align 1 dereferenceable(4)) #7

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN8OpenMesh10color_castINS_7VectorTIfLi3EEENS1_IhLi3EEEEENS_12color_casterIT_T0_E11return_typeERKS6_(ptr noundef nonnull align 1 dereferenceable(3)) #7

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #3

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) #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) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO11_OBJWriter_5writeERSoRNS0_12BaseExporterENS0_7OptionsEl(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef %3, i64 noundef %4) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca %"class.OpenMesh::VectorT", align 4
  %18 = alloca %"class.OpenMesh::VectorT", align 4
  %19 = alloca %"class.OpenMesh::VectorT.34", align 4
  %20 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %21 = alloca %"class.std::vector.36", align 8
  %22 = alloca i8, align 1
  %23 = alloca %"class.OpenMesh::VectorT", align 4
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca %"class.OpenMesh::VectorT.28", align 4
  %27 = alloca %"class.OpenMesh::IO::Options", align 4
  %28 = alloca i32, align 4
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca %"class.std::basic_fstream", align 8
  %32 = alloca %"class.OpenMesh::IO::Options", align 4
  %33 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %34 = alloca %"class.OpenMesh::VectorT", align 4
  %35 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %36 = alloca { <2 x float>, float }, align 8
  %37 = alloca %"class.OpenMesh::VectorT", align 4
  %38 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %39 = alloca { <2 x float>, float }, align 8
  %40 = alloca %"class.OpenMesh::VectorT.34", align 4
  %41 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %42 = alloca i64, align 8
  %43 = alloca i8, align 1
  %44 = alloca i64, align 8
  %45 = alloca %"class.OpenMesh::VectorT.28", align 4
  %46 = alloca %"class.OpenMesh::VectorT.30", align 1
  %47 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %48 = alloca %"class.OpenMesh::VectorT.28", align 4
  %49 = alloca %"class.OpenMesh::VectorT", align 4
  %50 = alloca %"class.OpenMesh::VectorT.32", align 1
  %51 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %52 = alloca { <2 x float>, float }, align 8
  %53 = alloca %"class.OpenMesh::VectorT", align 4
  %54 = alloca { <2 x float>, float }, align 4
  %55 = alloca %"struct.OpenMesh::FaceHandle", align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i64 %4, ptr %11, align 8, !tbaa !9
  %56 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #8
  call void @_ZN8OpenMesh7VectorTIfLi3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %17)
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #8
  call void @_ZN8OpenMesh7VectorTIfLi3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %18)
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  call void @_ZN8OpenMesh7VectorTIfLi2EEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %19)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  call void @_ZN8OpenMesh12VertexHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #8
  call void @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #8
  store i8 0, ptr %22, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #8
  invoke void @_ZN8OpenMesh7VectorTIfLi3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %23)
          to label %57 unwind label %77

57:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #8
  invoke void @_ZN8OpenMesh7VectorTIfLi4EEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %26)
          to label %58 unwind label %81

58:                                               ; preds = %57
  %59 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_Z5omlogv()
          to label %60 unwind label %81

60:                                               ; preds = %58
  %61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef @.str.10)
          to label %62 unwind label %81

62:                                               ; preds = %60
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = load ptr, ptr %63, align 8, !tbaa !13
  %65 = getelementptr i8, ptr %64, i64 -24
  %66 = load i64, ptr %65, align 8
  %67 = getelementptr inbounds i8, ptr %63, i64 %66
  %68 = load i64, ptr %11, align 8, !tbaa !9
  %69 = invoke noundef i64 @_ZNSt8ios_base9precisionEl(ptr noundef nonnull align 8 dereferenceable(216) %67, i64 noundef %68)
          to label %70 unwind label %81

70:                                               ; preds = %62
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN8OpenMesh2IO7OptionsC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %72 unwind label %81

72:                                               ; preds = %70
  %73 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO10BaseWriter5checkERNS0_12BaseExporterENS0_7OptionsE(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef %27)
          to label %74 unwind label %85

74:                                               ; preds = %72
  %75 = xor i1 %73, true
  call void @_ZN8OpenMesh2IO7OptionsD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %27) #8
  br i1 %75, label %76, label %89

76:                                               ; preds = %74
  store i1 false, ptr %6, align 1
  store i32 1, ptr %28, align 4
  br label %526

77:                                               ; preds = %5
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %24, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %25, align 4
  br label %529

81:                                               ; preds = %330, %327, %325, %323, %320, %318, %315, %312, %293, %290, %288, %286, %283, %281, %279, %276, %274, %271, %268, %266, %263, %261, %259, %256, %254, %252, %249, %247, %242, %197, %194, %192, %189, %186, %183, %178, %176, %174, %167, %165, %163, %157, %154, %96, %92, %89, %70, %62, %60, %58, %57
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %24, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %25, align 4
  br label %528

85:                                               ; preds = %72
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %24, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %25, align 4
  call void @_ZN8OpenMesh2IO7OptionsD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %27) #8
  br label %528

89:                                               ; preds = %74
  %90 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 1)
          to label %91 unwind label %81

91:                                               ; preds = %89
  br i1 %90, label %95, label %92

92:                                               ; preds = %91
  %93 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 256)
          to label %94 unwind label %81

94:                                               ; preds = %92
  br i1 %93, label %95, label %96

95:                                               ; preds = %94, %91
  store i1 false, ptr %6, align 1
  store i32 1, ptr %28, align 4
  br label %526

96:                                               ; preds = %94
  %97 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 512)
          to label %98 unwind label %81

98:                                               ; preds = %96
  br i1 %97, label %99, label %154

99:                                               ; preds = %98
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %30) #8
  %100 = getelementptr inbounds %"class.OpenMesh::IO::_OBJWriter_", ptr %56, i32 0, i32 1
  %101 = getelementptr inbounds %"class.OpenMesh::IO::_OBJWriter_", ptr %56, i32 0, i32 2
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %30, ptr noundef nonnull align 8 dereferenceable(32) %100, ptr noundef nonnull align 8 dereferenceable(32) %101)
          to label %102 unwind label %121

102:                                              ; preds = %99
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %29, ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef @.str.11)
          to label %103 unwind label %125

103:                                              ; preds = %102
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 528, ptr %31) #8
  %104 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %29) #8
  invoke void @_ZNSt13basic_fstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(264) %31, ptr noundef %104, i32 noundef 16)
          to label %105 unwind label %130

105:                                              ; preds = %103
  %106 = load ptr, ptr %31, align 8, !tbaa !13
  %107 = getelementptr i8, ptr %106, i64 -24
  %108 = load i64, ptr %107, align 8
  %109 = getelementptr inbounds i8, ptr %31, i64 %108
  %110 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %109)
          to label %111 unwind label %134

111:                                              ; preds = %105
  br i1 %110, label %112, label %138

112:                                              ; preds = %111
  %113 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_Z5omerrv()
          to label %114 unwind label %134

114:                                              ; preds = %112
  %115 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %113, ptr noundef @.str.12)
          to label %116 unwind label %134

116:                                              ; preds = %114
  %117 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %115, ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %118 unwind label %134

118:                                              ; preds = %116
  %119 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %120 unwind label %134

120:                                              ; preds = %118
  br label %150

121:                                              ; preds = %99
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %24, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %25, align 4
  br label %129

125:                                              ; preds = %102
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %24, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %25, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #8
  br label %129

129:                                              ; preds = %125, %121
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #8
  br label %153

130:                                              ; preds = %103
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %24, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %25, align 4
  br label %152

134:                                              ; preds = %143, %138, %118, %116, %114, %112, %105
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %24, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %25, align 4
  br label %151

138:                                              ; preds = %111
  %139 = getelementptr inbounds i8, ptr %31, i64 16
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN8OpenMesh2IO7OptionsC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(4) %32, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %141 unwind label %134

141:                                              ; preds = %138
  %142 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO11_OBJWriter_13writeMaterialERSoRNS0_12BaseExporterENS0_7OptionsE(ptr noundef nonnull align 8 dereferenceable(120) %56, ptr noundef nonnull align 8 dereferenceable(8) %139, ptr noundef nonnull align 8 dereferenceable(8) %140, ptr noundef %32)
          to label %143 unwind label %146

143:                                              ; preds = %141
  %144 = zext i1 %142 to i8
  store i8 %144, ptr %22, align 1, !tbaa !11
  call void @_ZN8OpenMesh2IO7OptionsD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %32) #8
  invoke void @_ZNSt13basic_fstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(264) %31)
          to label %145 unwind label %134

145:                                              ; preds = %143
  br label %150

146:                                              ; preds = %141
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %24, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %25, align 4
  call void @_ZN8OpenMesh2IO7OptionsD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %32) #8
  br label %151

150:                                              ; preds = %145, %120
  call void @_ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(264) %31) #8
  call void @llvm.lifetime.end.p0(i64 528, ptr %31) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #8
  br label %154

151:                                              ; preds = %146, %134
  call void @_ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(264) %31) #8
  br label %152

152:                                              ; preds = %151, %130
  call void @llvm.lifetime.end.p0(i64 528, ptr %31) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #8
  br label %153

153:                                              ; preds = %152, %129
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #8
  br label %528

154:                                              ; preds = %150, %98
  %155 = load ptr, ptr %8, align 8, !tbaa !5
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %155, ptr noundef @.str.13)
          to label %157 unwind label %81

157:                                              ; preds = %154
  %158 = load ptr, ptr %9, align 8, !tbaa !5
  %159 = load ptr, ptr %158, align 8, !tbaa !13
  %160 = getelementptr inbounds ptr, ptr %159, i64 26
  %161 = load ptr, ptr %160, align 8
  %162 = invoke noundef i64 %161(ptr noundef nonnull align 8 dereferenceable(8) %158)
          to label %163 unwind label %81

163:                                              ; preds = %157
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %156, i64 noundef %162)
          to label %165 unwind label %81

165:                                              ; preds = %163
  %166 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %164, ptr noundef @.str.14)
          to label %167 unwind label %81

167:                                              ; preds = %165
  %168 = load ptr, ptr %8, align 8, !tbaa !5
  %169 = load ptr, ptr %9, align 8, !tbaa !5
  %170 = load ptr, ptr %169, align 8, !tbaa !13
  %171 = getelementptr inbounds ptr, ptr %170, i64 27
  %172 = load ptr, ptr %171, align 8
  %173 = invoke noundef i64 %172(ptr noundef nonnull align 8 dereferenceable(8) %169)
          to label %174 unwind label %81

174:                                              ; preds = %167
  %175 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %168, i64 noundef %173)
          to label %176 unwind label %81

176:                                              ; preds = %174
  %177 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %175, ptr noundef @.str.15)
          to label %178 unwind label %81

178:                                              ; preds = %176
  %179 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %177, i8 noundef signext 10)
          to label %180 unwind label %81

180:                                              ; preds = %178
  %181 = load i8, ptr %22, align 1, !tbaa !11, !range !15, !noundef !16
  %182 = trunc i8 %181 to i1
  br i1 %182, label %183, label %197

183:                                              ; preds = %180
  %184 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 512)
          to label %185 unwind label %81

185:                                              ; preds = %183
  br i1 %184, label %186, label %197

186:                                              ; preds = %185
  %187 = load ptr, ptr %8, align 8, !tbaa !5
  %188 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %187, ptr noundef @.str.16)
          to label %189 unwind label %81

189:                                              ; preds = %186
  %190 = getelementptr inbounds %"class.OpenMesh::IO::_OBJWriter_", ptr %56, i32 0, i32 2
  %191 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %188, ptr noundef nonnull align 8 dereferenceable(32) %190)
          to label %192 unwind label %81

192:                                              ; preds = %189
  %193 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %191, ptr noundef @.str.11)
          to label %194 unwind label %81

194:                                              ; preds = %192
  %195 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %193, i8 noundef signext 10)
          to label %196 unwind label %81

196:                                              ; preds = %194
  br label %197

197:                                              ; preds = %196, %185, %180
  store i64 0, ptr %13, align 8, !tbaa !9
  %198 = load ptr, ptr %9, align 8, !tbaa !5
  %199 = load ptr, ptr %198, align 8, !tbaa !13
  %200 = getelementptr inbounds ptr, ptr %199, i64 26
  %201 = load ptr, ptr %200, align 8
  %202 = invoke noundef i64 %201(ptr noundef nonnull align 8 dereferenceable(8) %198)
          to label %203 unwind label %81

203:                                              ; preds = %197
  store i64 %202, ptr %15, align 8, !tbaa !9
  br label %204

204:                                              ; preds = %334, %203
  %205 = load i64, ptr %13, align 8, !tbaa !9
  %206 = load i64, ptr %15, align 8, !tbaa !9
  %207 = icmp ult i64 %205, %206
  br i1 %207, label %208, label %337

208:                                              ; preds = %204
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  %209 = load i64, ptr %13, align 8, !tbaa !9
  %210 = trunc i64 %209 to i32
  invoke void @_ZN8OpenMesh12VertexHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %33, i32 noundef %210)
          to label %211 unwind label %296

211:                                              ; preds = %208
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %33, i64 4, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %34) #8
  %212 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %20, i64 4, i1 false)
  %213 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %35, i32 0, i32 0
  %214 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %213, i32 0, i32 0
  %215 = load i32, ptr %214, align 4
  %216 = load ptr, ptr %212, align 8, !tbaa !13
  %217 = getelementptr inbounds ptr, ptr %216, i64 2
  %218 = load ptr, ptr %217, align 8
  %219 = invoke { <2 x float>, float } %218(ptr noundef nonnull align 8 dereferenceable(8) %212, i32 %215)
          to label %220 unwind label %300

220:                                              ; preds = %211
  %221 = getelementptr inbounds %"class.OpenMesh::VectorT", ptr %34, i32 0, i32 0
  %222 = getelementptr inbounds %"struct.std::array", ptr %221, i32 0, i32 0
  store { <2 x float>, float } %219, ptr %36, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %222, ptr align 8 %36, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %34, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %37) #8
  %223 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 %20, i64 4, i1 false)
  %224 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %38, i32 0, i32 0
  %225 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %224, i32 0, i32 0
  %226 = load i32, ptr %225, align 4
  %227 = load ptr, ptr %223, align 8, !tbaa !13
  %228 = getelementptr inbounds ptr, ptr %227, i64 3
  %229 = load ptr, ptr %228, align 8
  %230 = invoke { <2 x float>, float } %229(ptr noundef nonnull align 8 dereferenceable(8) %223, i32 %226)
          to label %231 unwind label %304

231:                                              ; preds = %220
  %232 = getelementptr inbounds %"class.OpenMesh::VectorT", ptr %37, i32 0, i32 0
  %233 = getelementptr inbounds %"struct.std::array", ptr %232, i32 0, i32 0
  store { <2 x float>, float } %230, ptr %39, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %233, ptr align 8 %39, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %37, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  %234 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 4 %20, i64 4, i1 false)
  %235 = getelementptr inbounds %"struct.OpenMesh::VertexHandle", ptr %41, i32 0, i32 0
  %236 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %235, i32 0, i32 0
  %237 = load i32, ptr %236, align 4
  %238 = load ptr, ptr %234, align 8, !tbaa !13
  %239 = getelementptr inbounds ptr, ptr %238, i64 10
  %240 = load ptr, ptr %239, align 8
  %241 = invoke <2 x float> %240(ptr noundef nonnull align 8 dereferenceable(8) %234, i32 %237)
          to label %242 unwind label %308

242:                                              ; preds = %231
  %243 = getelementptr inbounds %"class.OpenMesh::VectorT.34", ptr %40, i32 0, i32 0
  %244 = getelementptr inbounds %"struct.std::array.35", ptr %243, i32 0, i32 0
  store <2 x float> %241, ptr %244, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %40, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  %245 = load ptr, ptr %8, align 8, !tbaa !5
  %246 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %245, ptr noundef @.str.17)
          to label %247 unwind label %81

247:                                              ; preds = %242
  %248 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %17, i64 noundef 0)
          to label %249 unwind label %81

249:                                              ; preds = %247
  %250 = load float, ptr %248, align 4, !tbaa !20
  %251 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %246, float noundef %250)
          to label %252 unwind label %81

252:                                              ; preds = %249
  %253 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %251, ptr noundef @.str.18)
          to label %254 unwind label %81

254:                                              ; preds = %252
  %255 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %17, i64 noundef 1)
          to label %256 unwind label %81

256:                                              ; preds = %254
  %257 = load float, ptr %255, align 4, !tbaa !20
  %258 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %253, float noundef %257)
          to label %259 unwind label %81

259:                                              ; preds = %256
  %260 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %258, ptr noundef @.str.18)
          to label %261 unwind label %81

261:                                              ; preds = %259
  %262 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %17, i64 noundef 2)
          to label %263 unwind label %81

263:                                              ; preds = %261
  %264 = load float, ptr %262, align 4, !tbaa !20
  %265 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %260, float noundef %264)
          to label %266 unwind label %81

266:                                              ; preds = %263
  %267 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %265, i8 noundef signext 10)
          to label %268 unwind label %81

268:                                              ; preds = %266
  %269 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 16)
          to label %270 unwind label %81

270:                                              ; preds = %268
  br i1 %269, label %271, label %312

271:                                              ; preds = %270
  %272 = load ptr, ptr %8, align 8, !tbaa !5
  %273 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %272, ptr noundef @.str.19)
          to label %274 unwind label %81

274:                                              ; preds = %271
  %275 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %18, i64 noundef 0)
          to label %276 unwind label %81

276:                                              ; preds = %274
  %277 = load float, ptr %275, align 4, !tbaa !20
  %278 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %273, float noundef %277)
          to label %279 unwind label %81

279:                                              ; preds = %276
  %280 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %278, ptr noundef @.str.18)
          to label %281 unwind label %81

281:                                              ; preds = %279
  %282 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %18, i64 noundef 1)
          to label %283 unwind label %81

283:                                              ; preds = %281
  %284 = load float, ptr %282, align 4, !tbaa !20
  %285 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %280, float noundef %284)
          to label %286 unwind label %81

286:                                              ; preds = %283
  %287 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %285, ptr noundef @.str.18)
          to label %288 unwind label %81

288:                                              ; preds = %286
  %289 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %18, i64 noundef 2)
          to label %290 unwind label %81

290:                                              ; preds = %288
  %291 = load float, ptr %289, align 4, !tbaa !20
  %292 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %287, float noundef %291)
          to label %293 unwind label %81

293:                                              ; preds = %290
  %294 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %292, i8 noundef signext 10)
          to label %295 unwind label %81

295:                                              ; preds = %293
  br label %312

296:                                              ; preds = %208
  %297 = landingpad { ptr, i32 }
          cleanup
  %298 = extractvalue { ptr, i32 } %297, 0
  store ptr %298, ptr %24, align 8
  %299 = extractvalue { ptr, i32 } %297, 1
  store i32 %299, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  br label %528

300:                                              ; preds = %211
  %301 = landingpad { ptr, i32 }
          cleanup
  %302 = extractvalue { ptr, i32 } %301, 0
  store ptr %302, ptr %24, align 8
  %303 = extractvalue { ptr, i32 } %301, 1
  store i32 %303, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #8
  br label %528

304:                                              ; preds = %220
  %305 = landingpad { ptr, i32 }
          cleanup
  %306 = extractvalue { ptr, i32 } %305, 0
  store ptr %306, ptr %24, align 8
  %307 = extractvalue { ptr, i32 } %305, 1
  store i32 %307, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #8
  br label %528

308:                                              ; preds = %231
  %309 = landingpad { ptr, i32 }
          cleanup
  %310 = extractvalue { ptr, i32 } %309, 0
  store ptr %310, ptr %24, align 8
  %311 = extractvalue { ptr, i32 } %309, 1
  store i32 %311, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  br label %528

312:                                              ; preds = %295, %270
  %313 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 64)
          to label %314 unwind label %81

314:                                              ; preds = %312
  br i1 %313, label %315, label %333

315:                                              ; preds = %314
  %316 = load ptr, ptr %8, align 8, !tbaa !5
  %317 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %316, ptr noundef @.str.20)
          to label %318 unwind label %81

318:                                              ; preds = %315
  %319 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %19, i64 noundef 0)
          to label %320 unwind label %81

320:                                              ; preds = %318
  %321 = load float, ptr %319, align 4, !tbaa !20
  %322 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %317, float noundef %321)
          to label %323 unwind label %81

323:                                              ; preds = %320
  %324 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %322, ptr noundef @.str.18)
          to label %325 unwind label %81

325:                                              ; preds = %323
  %326 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %19, i64 noundef 1)
          to label %327 unwind label %81

327:                                              ; preds = %325
  %328 = load float, ptr %326, align 4, !tbaa !20
  %329 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %324, float noundef %328)
          to label %330 unwind label %81

330:                                              ; preds = %327
  %331 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %329, i8 noundef signext 10)
          to label %332 unwind label %81

332:                                              ; preds = %330
  br label %333

333:                                              ; preds = %332, %314
  br label %334

334:                                              ; preds = %333
  %335 = load i64, ptr %13, align 8, !tbaa !9
  %336 = add i64 %335, 1
  store i64 %336, ptr %13, align 8, !tbaa !9
  br label %204, !llvm.loop !22

337:                                              ; preds = %204
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #8
  %338 = call noundef i64 @_ZNSt14numeric_limitsImE3maxEv() #8
  store i64 %338, ptr %42, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %43) #8
  %339 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 64)
          to label %340 unwind label %397

340:                                              ; preds = %337
  br i1 %339, label %345, label %341

341:                                              ; preds = %340
  %342 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 16)
          to label %343 unwind label %397

343:                                              ; preds = %341
  %344 = xor i1 %342, true
  br label %345

345:                                              ; preds = %343, %340
  %346 = phi i1 [ false, %340 ], [ %344, %343 ]
  %347 = zext i1 %346 to i8
  store i8 %347, ptr %43, align 1, !tbaa !11
  store i64 0, ptr %13, align 8, !tbaa !9
  %348 = load ptr, ptr %9, align 8, !tbaa !5
  %349 = load ptr, ptr %348, align 8, !tbaa !13
  %350 = getelementptr inbounds ptr, ptr %349, i64 27
  %351 = load ptr, ptr %350, align 8
  %352 = invoke noundef i64 %351(ptr noundef nonnull align 8 dereferenceable(8) %348)
          to label %353 unwind label %397

353:                                              ; preds = %345
  store i64 %352, ptr %16, align 8, !tbaa !9
  br label %354

354:                                              ; preds = %519, %353
  %355 = load i64, ptr %13, align 8, !tbaa !9
  %356 = load i64, ptr %16, align 8, !tbaa !9
  %357 = icmp ult i64 %355, %356
  br i1 %357, label %358, label %522

358:                                              ; preds = %354
  %359 = load i8, ptr %22, align 1, !tbaa !11, !range !15, !noundef !16
  %360 = trunc i8 %359 to i1
  br i1 %360, label %361, label %454

361:                                              ; preds = %358
  %362 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 512)
          to label %363 unwind label %397

363:                                              ; preds = %361
  br i1 %362, label %364, label %454

364:                                              ; preds = %363
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #8
  %365 = call noundef i64 @_ZNSt14numeric_limitsImE3maxEv() #8
  store i64 %365, ptr %44, align 8, !tbaa !9
  %366 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options15color_has_alphaEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %367 unwind label %401

367:                                              ; preds = %364
  br i1 %366, label %368, label %409

368:                                              ; preds = %367
  call void @llvm.lifetime.start.p0(i64 16, ptr %45) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #8
  %369 = load ptr, ptr %9, align 8, !tbaa !5
  %370 = load i64, ptr %13, align 8, !tbaa !9
  %371 = trunc i64 %370 to i32
  invoke void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %47, i32 noundef %371)
          to label %372 unwind label %405

372:                                              ; preds = %368
  %373 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %47, i32 0, i32 0
  %374 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %373, i32 0, i32 0
  %375 = load i32, ptr %374, align 4
  %376 = load ptr, ptr %369, align 8, !tbaa !13
  %377 = getelementptr inbounds ptr, ptr %376, i64 14
  %378 = load ptr, ptr %377, align 8
  %379 = invoke i32 %378(ptr noundef nonnull align 8 dereferenceable(8) %369, i32 %375)
          to label %380 unwind label %405

380:                                              ; preds = %372
  %381 = getelementptr inbounds %"class.OpenMesh::VectorT.30", ptr %46, i32 0, i32 0
  %382 = getelementptr inbounds %"struct.std::array.31", ptr %381, i32 0, i32 0
  store i32 %379, ptr %382, align 1
  %383 = invoke { <2 x float>, <2 x float> } @_ZN8OpenMesh10color_castINS_7VectorTIfLi4EEENS1_IhLi4EEEEENS_12color_casterIT_T0_E11return_typeERKS6_(ptr noundef nonnull align 1 dereferenceable(4) %46)
          to label %384 unwind label %405

384:                                              ; preds = %380
  %385 = getelementptr inbounds %"class.OpenMesh::VectorT.28", ptr %45, i32 0, i32 0
  %386 = getelementptr inbounds %"struct.std::array.29", ptr %385, i32 0, i32 0
  %387 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %386, i32 0, i32 0
  %388 = extractvalue { <2 x float>, <2 x float> } %383, 0
  store <2 x float> %388, ptr %387, align 4
  %389 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %386, i32 0, i32 1
  %390 = extractvalue { <2 x float>, <2 x float> } %383, 1
  store <2 x float> %390, ptr %389, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %45, i64 16, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 4 %26, i64 16, i1 false), !tbaa.struct !24
  %391 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %48, i32 0, i32 0
  %392 = load <2 x float>, ptr %391, align 4
  %393 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %48, i32 0, i32 1
  %394 = load <2 x float>, ptr %393, align 4
  %395 = invoke noundef i64 @_ZNK8OpenMesh2IO11_OBJWriter_11getMaterialENS_7VectorTIfLi4EEE(ptr noundef nonnull align 8 dereferenceable(120) %56, <2 x float> %392, <2 x float> %394)
          to label %396 unwind label %401

396:                                              ; preds = %384
  store i64 %395, ptr %44, align 8, !tbaa !9
  br label %438

397:                                              ; preds = %515, %505, %502, %499, %494, %491, %488, %482, %478, %474, %461, %457, %454, %361, %345, %341, %337
  %398 = landingpad { ptr, i32 }
          cleanup
  %399 = extractvalue { ptr, i32 } %398, 0
  store ptr %399, ptr %24, align 8
  %400 = extractvalue { ptr, i32 } %398, 1
  store i32 %400, ptr %25, align 4
  br label %525

401:                                              ; preds = %448, %445, %442, %425, %384, %364
  %402 = landingpad { ptr, i32 }
          cleanup
  %403 = extractvalue { ptr, i32 } %402, 0
  store ptr %403, ptr %24, align 8
  %404 = extractvalue { ptr, i32 } %402, 1
  store i32 %404, ptr %25, align 4
  br label %453

405:                                              ; preds = %380, %372, %368
  %406 = landingpad { ptr, i32 }
          cleanup
  %407 = extractvalue { ptr, i32 } %406, 0
  store ptr %407, ptr %24, align 8
  %408 = extractvalue { ptr, i32 } %406, 1
  store i32 %408, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #8
  br label %453

409:                                              ; preds = %367
  call void @llvm.lifetime.start.p0(i64 12, ptr %49) #8
  call void @llvm.lifetime.start.p0(i64 3, ptr %50) #8
  %410 = load ptr, ptr %9, align 8, !tbaa !5
  %411 = load i64, ptr %13, align 8, !tbaa !9
  %412 = trunc i64 %411 to i32
  invoke void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %51, i32 noundef %412)
          to label %413 unwind label %434

413:                                              ; preds = %409
  %414 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %51, i32 0, i32 0
  %415 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %414, i32 0, i32 0
  %416 = load i32, ptr %415, align 4
  %417 = load ptr, ptr %410, align 8, !tbaa !13
  %418 = getelementptr inbounds ptr, ptr %417, i64 13
  %419 = load ptr, ptr %418, align 8
  %420 = invoke i24 %419(ptr noundef nonnull align 8 dereferenceable(8) %410, i32 %416)
          to label %421 unwind label %434

421:                                              ; preds = %413
  %422 = getelementptr inbounds %"class.OpenMesh::VectorT.32", ptr %50, i32 0, i32 0
  %423 = getelementptr inbounds %"struct.std::array.33", ptr %422, i32 0, i32 0
  store i24 %420, ptr %423, align 1
  %424 = invoke { <2 x float>, float } @_ZN8OpenMesh10color_castINS_7VectorTIfLi3EEENS1_IhLi3EEEEENS_12color_casterIT_T0_E11return_typeERKS6_(ptr noundef nonnull align 1 dereferenceable(3) %50)
          to label %425 unwind label %434

425:                                              ; preds = %421
  %426 = getelementptr inbounds %"class.OpenMesh::VectorT", ptr %49, i32 0, i32 0
  %427 = getelementptr inbounds %"struct.std::array", ptr %426, i32 0, i32 0
  store { <2 x float>, float } %424, ptr %52, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %427, ptr align 8 %52, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %49, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 3, ptr %50) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %49) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %53, ptr align 4 %23, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %54, ptr align 4 %53, i64 12, i1 false)
  %428 = getelementptr inbounds { <2 x float>, float }, ptr %54, i32 0, i32 0
  %429 = load <2 x float>, ptr %428, align 4
  %430 = getelementptr inbounds { <2 x float>, float }, ptr %54, i32 0, i32 1
  %431 = load float, ptr %430, align 4
  %432 = invoke noundef i64 @_ZNK8OpenMesh2IO11_OBJWriter_11getMaterialENS_7VectorTIfLi3EEE(ptr noundef nonnull align 8 dereferenceable(120) %56, <2 x float> %429, float %431)
          to label %433 unwind label %401

433:                                              ; preds = %425
  store i64 %432, ptr %44, align 8, !tbaa !9
  br label %438

434:                                              ; preds = %421, %413, %409
  %435 = landingpad { ptr, i32 }
          cleanup
  %436 = extractvalue { ptr, i32 } %435, 0
  store ptr %436, ptr %24, align 8
  %437 = extractvalue { ptr, i32 } %435, 1
  store i32 %437, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 3, ptr %50) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %49) #8
  br label %453

438:                                              ; preds = %433, %396
  %439 = load i64, ptr %42, align 8, !tbaa !9
  %440 = load i64, ptr %44, align 8, !tbaa !9
  %441 = icmp ne i64 %439, %440
  br i1 %441, label %442, label %452

442:                                              ; preds = %438
  %443 = load ptr, ptr %8, align 8, !tbaa !5
  %444 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %443, ptr noundef @.str.21)
          to label %445 unwind label %401

445:                                              ; preds = %442
  %446 = load i64, ptr %44, align 8, !tbaa !9
  %447 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %444, i64 noundef %446)
          to label %448 unwind label %401

448:                                              ; preds = %445
  %449 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %447, i8 noundef signext 10)
          to label %450 unwind label %401

450:                                              ; preds = %448
  %451 = load i64, ptr %44, align 8, !tbaa !9
  store i64 %451, ptr %42, align 8, !tbaa !9
  br label %452

452:                                              ; preds = %450, %438
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  br label %454

453:                                              ; preds = %434, %405, %401
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  br label %525

454:                                              ; preds = %452, %363, %358
  %455 = load ptr, ptr %8, align 8, !tbaa !5
  %456 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %455, ptr noundef @.str.22)
          to label %457 unwind label %397

457:                                              ; preds = %454
  %458 = load ptr, ptr %9, align 8, !tbaa !5
  %459 = load i64, ptr %13, align 8, !tbaa !9
  %460 = trunc i64 %459 to i32
  invoke void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %55, i32 noundef %460)
          to label %461 unwind label %397

461:                                              ; preds = %457
  %462 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %55, i32 0, i32 0
  %463 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %462, i32 0, i32 0
  %464 = load i32, ptr %463, align 4
  %465 = load ptr, ptr %458, align 8, !tbaa !13
  %466 = getelementptr inbounds ptr, ptr %465, i64 11
  %467 = load ptr, ptr %466, align 8
  %468 = invoke noundef i32 %467(ptr noundef nonnull align 8 dereferenceable(8) %458, i32 %464, ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %469 unwind label %397

469:                                              ; preds = %461
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %470

470:                                              ; preds = %512, %469
  %471 = load i64, ptr %14, align 8, !tbaa !9
  %472 = call noundef i64 @_ZNKSt6vectorIN8OpenMesh12VertexHandleESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  %473 = icmp ult i64 %471, %472
  br i1 %473, label %474, label %515

474:                                              ; preds = %470
  %475 = load i64, ptr %14, align 8, !tbaa !9
  %476 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %475) #8
  %477 = invoke noundef i32 @_ZNK8OpenMesh10BaseHandle3idxEv(ptr noundef nonnull align 4 dereferenceable(4) %476)
          to label %478 unwind label %397

478:                                              ; preds = %474
  %479 = add nsw i32 %477, 1
  store i32 %479, ptr %12, align 4, !tbaa !25
  %480 = load ptr, ptr %8, align 8, !tbaa !5
  %481 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %480, ptr noundef @.str.18)
          to label %482 unwind label %397

482:                                              ; preds = %478
  %483 = load i32, ptr %12, align 4, !tbaa !25
  %484 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %481, i32 noundef %483)
          to label %485 unwind label %397

485:                                              ; preds = %482
  %486 = load i8, ptr %43, align 1, !tbaa !11, !range !15, !noundef !16
  %487 = trunc i8 %486 to i1
  br i1 %487, label %511, label %488

488:                                              ; preds = %485
  %489 = load ptr, ptr %8, align 8, !tbaa !5
  %490 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %489, ptr noundef @.str.1)
          to label %491 unwind label %397

491:                                              ; preds = %488
  %492 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 64)
          to label %493 unwind label %397

493:                                              ; preds = %491
  br i1 %492, label %494, label %499

494:                                              ; preds = %493
  %495 = load ptr, ptr %8, align 8, !tbaa !5
  %496 = load i32, ptr %12, align 4, !tbaa !25
  %497 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %495, i32 noundef %496)
          to label %498 unwind label %397

498:                                              ; preds = %494
  br label %499

499:                                              ; preds = %498, %493
  %500 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 16)
          to label %501 unwind label %397

501:                                              ; preds = %499
  br i1 %500, label %502, label %510

502:                                              ; preds = %501
  %503 = load ptr, ptr %8, align 8, !tbaa !5
  %504 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %503, ptr noundef @.str.1)
          to label %505 unwind label %397

505:                                              ; preds = %502
  %506 = load ptr, ptr %8, align 8, !tbaa !5
  %507 = load i32, ptr %12, align 4, !tbaa !25
  %508 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %506, i32 noundef %507)
          to label %509 unwind label %397

509:                                              ; preds = %505
  br label %510

510:                                              ; preds = %509, %501
  br label %511

511:                                              ; preds = %510, %485
  br label %512

512:                                              ; preds = %511
  %513 = load i64, ptr %14, align 8, !tbaa !9
  %514 = add i64 %513, 1
  store i64 %514, ptr %14, align 8, !tbaa !9
  br label %470, !llvm.loop !27

515:                                              ; preds = %470
  %516 = load ptr, ptr %8, align 8, !tbaa !5
  %517 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %516, i8 noundef signext 10)
          to label %518 unwind label %397

518:                                              ; preds = %515
  br label %519

519:                                              ; preds = %518
  %520 = load i64, ptr %13, align 8, !tbaa !9
  %521 = add i64 %520, 1
  store i64 %521, ptr %13, align 8, !tbaa !9
  br label %354, !llvm.loop !28

522:                                              ; preds = %354
  %523 = getelementptr inbounds %"class.OpenMesh::IO::_OBJWriter_", ptr %56, i32 0, i32 3
  call void @_ZNSt6vectorIN8OpenMesh7VectorTIfLi3EEESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %523) #8
  %524 = getelementptr inbounds %"class.OpenMesh::IO::_OBJWriter_", ptr %56, i32 0, i32 4
  call void @_ZNSt6vectorIN8OpenMesh7VectorTIfLi4EEESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %524) #8
  store i1 true, ptr %6, align 1
  store i32 1, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  br label %526

525:                                              ; preds = %453, %397
  call void @llvm.lifetime.end.p0(i64 1, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  br label %528

526:                                              ; preds = %522, %95, %76
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #8
  call void @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  %527 = load i1, ptr %6, align 1
  ret i1 %527

528:                                              ; preds = %525, %308, %304, %300, %296, %153, %85, %81
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  br label %529

529:                                              ; preds = %528, %77
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #8
  call void @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %530

530:                                              ; preds = %529
  %531 = load ptr, ptr %24, align 8
  %532 = load i32, ptr %25, align 4
  %533 = insertvalue { ptr, i32 } poison, ptr %531, 0
  %534 = insertvalue { ptr, i32 } %533, i32 %532, 1
  resume { ptr, i32 } %534
}

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

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

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

declare noundef nonnull align 8 dereferenceable(224) ptr @_Z5omlogv() #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO10BaseWriter5checkERNS0_12BaseExporterENS0_7OptionsE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #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) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNSt14numeric_limitsImE3maxEv() #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN8OpenMesh12VertexHandleESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 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) #0 align 2

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{i64 0, i64 12, !18}
!18 = !{!7, !7, i64 0}
!19 = !{i64 0, i64 8, !18}
!20 = !{!21, !21, i64 0}
!21 = !{!"float", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{i64 0, i64 16, !18}
!25 = !{!26, !26, i64 0}
!26 = !{!"int", !7, i64 0}
!27 = distinct !{!27, !23}
!28 = distinct !{!28, !23}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.OpenMesh::VectorT" = type { %"struct.std::array" }
%"struct.std::array" = type { [3 x float] }
%"class.OpenMesh::VectorT.34" = type { %"struct.std::array.35" }
%"struct.std::array.35" = type { [2 x float] }
%"struct.OpenMesh::VertexHandle" = type { %"class.OpenMesh::BaseHandle" }
%"class.OpenMesh::BaseHandle" = type { i32 }
%"class.std::vector.36" = type { %"struct.std::_Vector_base.37" }
%"struct.std::_Vector_base.37" = type { %"struct.std::_Vector_base<OpenMesh::VertexHandle, std::allocator<OpenMesh::VertexHandle>>::_Vector_impl" }
%"struct.std::_Vector_base<OpenMesh::VertexHandle, std::allocator<OpenMesh::VertexHandle>>::_Vector_impl" = type { %"struct.std::_Vector_base<OpenMesh::VertexHandle, std::allocator<OpenMesh::VertexHandle>>::_Vector_impl_data" }
%"struct.std::_Vector_base<OpenMesh::VertexHandle, std::allocator<OpenMesh::VertexHandle>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.OpenMesh::VectorT.28" = type { %"struct.std::array.29" }
%"struct.std::array.29" = type { [4 x float] }
%"class.OpenMesh::IO::Options" = type { i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_fstream" = type { %"class.std::basic_iostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.17 }
%union.anon.17 = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.OpenMesh::VectorT.30" = type { %"struct.std::array.31" }
%"struct.std::array.31" = type { [4 x i8] }
%"struct.OpenMesh::FaceHandle" = type { %"class.OpenMesh::BaseHandle" }
%"class.OpenMesh::VectorT.32" = type { %"struct.std::array.33" }
%"struct.std::array.33" = type { [3 x i8] }

@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [2 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt13basic_fstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef, i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

declare noundef nonnull align 8 dereferenceable(224) ptr @_Z5omerrv() local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt13basic_fstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(264)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK8OpenMesh2IO11_OBJWriter_11getMaterialENS_7VectorTIfLi3EEE(ptr noundef nonnull align 8 dereferenceable(120), <2 x float>, float) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK8OpenMesh2IO11_OBJWriter_11getMaterialENS_7VectorTIfLi4EEE(ptr noundef nonnull align 8 dereferenceable(120), <2 x float>, <2 x float>) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO11_OBJWriter_13writeMaterialERSoRNS0_12BaseExporterENS0_7OptionsE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5 align 2

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

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

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

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

; Function Attrs: mustprogress 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: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZN8OpenMesh10color_castINS_7VectorTIfLi4EEENS1_IhLi4EEEEENS_12color_casterIT_T0_E11return_typeERKS6_(ptr noundef nonnull align 1 dereferenceable(4)) local_unnamed_addr #6

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN8OpenMesh10color_castINS_7VectorTIfLi3EEENS1_IhLi3EEEEENS_12color_casterIT_T0_E11return_typeERKS6_(ptr noundef nonnull align 1 dereferenceable(3)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) 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 #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO11_OBJWriter_5writeERSoRNS0_12BaseExporterENS0_7OptionsEl(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef %3, i64 noundef %4) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.OpenMesh::VectorT", align 8
  %7 = alloca %"class.OpenMesh::VectorT", align 8
  %8 = alloca %"class.OpenMesh::VectorT.34", align 8
  %9 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %10 = alloca %"class.std::vector.36", align 8
  %11 = alloca %"class.OpenMesh::VectorT", align 8
  %12 = alloca %"class.OpenMesh::VectorT.28", align 8
  %13 = alloca %"class.OpenMesh::IO::Options", align 4
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::basic_fstream", align 8
  %17 = alloca %"class.OpenMesh::IO::Options", align 4
  %18 = alloca %"struct.OpenMesh::VertexHandle", align 4
  %19 = alloca %"class.OpenMesh::VectorT.30", align 4
  %20 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %21 = alloca %"class.OpenMesh::VectorT.32", align 4
  %22 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %23 = alloca %"struct.OpenMesh::FaceHandle", align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #7
  call void @_ZN8OpenMesh7VectorTIfLi3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #7
  call void @_ZN8OpenMesh7VectorTIfLi3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %7)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  call void @_ZN8OpenMesh7VectorTIfLi2EEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %8)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  call void @_ZN8OpenMesh12VertexHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #7
  call void @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #7
  call void @_ZN8OpenMesh7VectorTIfLi3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %11)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  call void @_ZN8OpenMesh7VectorTIfLi4EEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %12)
  %24 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_Z5omlogv()
          to label %25 unwind label %.loopexit.split-lp113

25:                                               ; preds = %5
  %26 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull @.str.10)
          to label %27 unwind label %.loopexit.split-lp113

27:                                               ; preds = %25
  %28 = load ptr, ptr %1, align 8, !tbaa !5
  %29 = getelementptr i8, ptr %28, i64 -24
  %30 = load i64, ptr %29, align 8
  %31 = getelementptr inbounds i8, ptr %1, i64 %30
  %32 = call noundef i64 @_ZNSt8ios_base9precisionEl(ptr noundef nonnull align 8 dereferenceable(216) %31, i64 noundef %4)
  call void @_ZN8OpenMesh2IO7OptionsC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %33 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO10BaseWriter5checkERNS0_12BaseExporterENS0_7OptionsE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull %13)
          to label %34 unwind label %35

34:                                               ; preds = %27
  call void @_ZN8OpenMesh2IO7OptionsD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %13) #7
  br i1 %33, label %37, label %309

.loopexit112:                                     ; preds = %139, %141, %145, %147, %151, %153, %157, %161, %163, %167, %169, %173, %175, %179, %189, %191, %195, %197, %201
  %lpad.loopexit114 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.loopexit.split-lp113:                            ; preds = %5, %25, %83, %85, %90, %92, %94, %99, %101, %103, %108, %110, %113, %115, %117
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

35:                                               ; preds = %27
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8OpenMesh2IO7OptionsD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %13) #7
  br label %.loopexit

37:                                               ; preds = %34
  %38 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 1)
  br i1 %38, label %309, label %39

39:                                               ; preds = %37
  %40 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 256)
  br i1 %40, label %309, label %41

41:                                               ; preds = %39
  %42 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 512)
  br i1 %42, label %43, label %83

43:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #7
  %44 = getelementptr inbounds i8, ptr %0, i64 8
  %45 = getelementptr inbounds i8, ptr %0, i64 40
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %15, ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef nonnull align 8 dereferenceable(32) %45)
          to label %46 unwind label %64

46:                                               ; preds = %43
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull @.str.11)
          to label %47 unwind label %66

47:                                               ; preds = %46
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 528, ptr nonnull %16) #7
  %48 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  invoke void @_ZNSt13basic_fstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(264) %16, ptr noundef %48, i32 noundef 16)
          to label %49 unwind label %69

49:                                               ; preds = %47
  %50 = load ptr, ptr %16, align 8, !tbaa !5
  %51 = getelementptr i8, ptr %50, i64 -24
  %52 = load i64, ptr %51, align 8
  %53 = getelementptr inbounds i8, ptr %16, i64 %52
  %54 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %53)
          to label %55 unwind label %71

55:                                               ; preds = %49
  br i1 %54, label %56, label %73

56:                                               ; preds = %55
  %57 = invoke noundef nonnull align 8 dereferenceable(224) ptr @_Z5omerrv()
          to label %58 unwind label %71

58:                                               ; preds = %56
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull @.str.12)
          to label %60 unwind label %71

60:                                               ; preds = %58
  %61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %62 unwind label %71

62:                                               ; preds = %60
  %63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %79 unwind label %71

64:                                               ; preds = %43
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %68

66:                                               ; preds = %46
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  br label %68

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

69:                                               ; preds = %47
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %81

71:                                               ; preds = %76, %62, %60, %58, %56, %49
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %80

73:                                               ; preds = %55
  %74 = getelementptr inbounds i8, ptr %16, i64 16
  call void @_ZN8OpenMesh2IO7OptionsC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %75 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO11_OBJWriter_13writeMaterialERSoRNS0_12BaseExporterENS0_7OptionsE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull %17)
          to label %76 unwind label %77

76:                                               ; preds = %73
  call void @_ZN8OpenMesh2IO7OptionsD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %17) #7
  invoke void @_ZNSt13basic_fstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(264) %16)
          to label %79 unwind label %71

77:                                               ; preds = %73
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8OpenMesh2IO7OptionsD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %17) #7
  br label %80

79:                                               ; preds = %76, %62
  %.081 = phi i1 [ false, %62 ], [ %75, %76 ]
  call void @_ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(264) %16) #7
  call void @llvm.lifetime.end.p0(i64 528, ptr nonnull %16) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #7
  br label %83

80:                                               ; preds = %77, %71
  %.pn97 = phi { ptr, i32 } [ %72, %71 ], [ %78, %77 ]
  call void @_ZNSt13basic_fstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(264) %16) #7
  br label %81

81:                                               ; preds = %80, %69
  %.pn97.pn = phi { ptr, i32 } [ %.pn97, %80 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 528, ptr nonnull %16) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  br label %82

82:                                               ; preds = %81, %68
  %.pn97.pn.pn = phi { ptr, i32 } [ %.pn97.pn, %81 ], [ %.pn, %68 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #7
  br label %.loopexit

83:                                               ; preds = %79, %41
  %.182 = phi i1 [ %.081, %79 ], [ false, %41 ]
  %84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.13)
          to label %85 unwind label %.loopexit.split-lp113

85:                                               ; preds = %83
  %86 = load ptr, ptr %2, align 8, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %86, i64 208
  %88 = load ptr, ptr %87, align 8
  %89 = invoke noundef i64 %88(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %90 unwind label %.loopexit.split-lp113

90:                                               ; preds = %85
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %84, i64 noundef %89)
          to label %92 unwind label %.loopexit.split-lp113

92:                                               ; preds = %90
  %93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %91, ptr noundef nonnull @.str.14)
          to label %94 unwind label %.loopexit.split-lp113

94:                                               ; preds = %92
  %95 = load ptr, ptr %2, align 8, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %95, i64 216
  %97 = load ptr, ptr %96, align 8
  %98 = invoke noundef i64 %97(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %99 unwind label %.loopexit.split-lp113

99:                                               ; preds = %94
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %1, i64 noundef %98)
          to label %101 unwind label %.loopexit.split-lp113

101:                                              ; preds = %99
  %102 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef nonnull @.str.15)
          to label %103 unwind label %.loopexit.split-lp113

103:                                              ; preds = %101
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %102, i8 noundef signext 10)
          to label %105 unwind label %.loopexit.split-lp113

105:                                              ; preds = %103
  br i1 %.182, label %106, label %117

106:                                              ; preds = %105
  %107 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 512)
  br i1 %107, label %108, label %117

108:                                              ; preds = %106
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.16)
          to label %110 unwind label %.loopexit.split-lp113

110:                                              ; preds = %108
  %111 = getelementptr inbounds i8, ptr %0, i64 40
  %112 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef nonnull align 8 dereferenceable(32) %111)
          to label %113 unwind label %.loopexit.split-lp113

113:                                              ; preds = %110
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %112, ptr noundef nonnull @.str.11)
          to label %115 unwind label %.loopexit.split-lp113

115:                                              ; preds = %113
  %116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %114, i8 noundef signext 10)
          to label %117 unwind label %.loopexit.split-lp113

117:                                              ; preds = %115, %106, %105
  %118 = load ptr, ptr %2, align 8, !tbaa !5
  %119 = getelementptr inbounds i8, ptr %118, i64 208
  %120 = load ptr, ptr %119, align 8
  %121 = invoke noundef i64 %120(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %.preheader111 unwind label %.loopexit.split-lp113

.preheader111:                                    ; preds = %117
  %.not125 = icmp eq i64 %121, 0
  br i1 %.not125, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader111
  %.sroa.529.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  %.sroa.522.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  br label %122

122:                                              ; preds = %.lr.ph, %203
  %.079116 = phi i64 [ 0, %.lr.ph ], [ %204, %203 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  %123 = trunc i64 %.079116 to i32
  call void @_ZN8OpenMesh12VertexHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %18, i32 noundef %123)
  %124 = load i32, ptr %18, align 4
  store i32 %124, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  %125 = load ptr, ptr %2, align 8, !tbaa !5
  %126 = getelementptr inbounds i8, ptr %125, i64 16
  %127 = load ptr, ptr %126, align 8
  %128 = invoke { <2 x float>, float } %127(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %124)
          to label %129 unwind label %181

129:                                              ; preds = %122
  %.fca.0.extract23 = extractvalue { <2 x float>, float } %128, 0
  %.fca.1.extract24 = extractvalue { <2 x float>, float } %128, 1
  store <2 x float> %.fca.0.extract23, ptr %6, align 8
  store float %.fca.1.extract24, ptr %.sroa.529.0..sroa_idx, align 8, !tbaa !8
  %.sroa.020.0.copyload = load i32, ptr %9, align 4
  %130 = load ptr, ptr %2, align 8, !tbaa !5
  %131 = getelementptr inbounds i8, ptr %130, i64 24
  %132 = load ptr, ptr %131, align 8
  %133 = invoke { <2 x float>, float } %132(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %.sroa.020.0.copyload)
          to label %134 unwind label %183

134:                                              ; preds = %129
  %.fca.0.extract16 = extractvalue { <2 x float>, float } %133, 0
  %.fca.1.extract17 = extractvalue { <2 x float>, float } %133, 1
  store <2 x float> %.fca.0.extract16, ptr %7, align 8
  store float %.fca.1.extract17, ptr %.sroa.522.0..sroa_idx, align 8, !tbaa !8
  %.sroa.014.0.copyload = load i32, ptr %9, align 4
  %135 = load ptr, ptr %2, align 8, !tbaa !5
  %136 = getelementptr inbounds i8, ptr %135, i64 80
  %137 = load ptr, ptr %136, align 8
  %138 = invoke <2 x float> %137(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %.sroa.014.0.copyload)
          to label %139 unwind label %185

139:                                              ; preds = %134
  store <2 x float> %138, ptr %8, align 8, !tbaa !8
  %140 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.17)
          to label %141 unwind label %.loopexit112

141:                                              ; preds = %139
  %142 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %6, i64 noundef 0)
  %143 = load float, ptr %142, align 4, !tbaa !10
  %144 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %140, float noundef %143)
          to label %145 unwind label %.loopexit112

145:                                              ; preds = %141
  %146 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %144, ptr noundef nonnull @.str.18)
          to label %147 unwind label %.loopexit112

147:                                              ; preds = %145
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %6, i64 noundef 1)
  %149 = load float, ptr %148, align 4, !tbaa !10
  %150 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %146, float noundef %149)
          to label %151 unwind label %.loopexit112

151:                                              ; preds = %147
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %150, ptr noundef nonnull @.str.18)
          to label %153 unwind label %.loopexit112

153:                                              ; preds = %151
  %154 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %6, i64 noundef 2)
  %155 = load float, ptr %154, align 4, !tbaa !10
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %152, float noundef %155)
          to label %157 unwind label %.loopexit112

157:                                              ; preds = %153
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %156, i8 noundef signext 10)
          to label %159 unwind label %.loopexit112

159:                                              ; preds = %157
  %160 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 16)
  br i1 %160, label %161, label %187

161:                                              ; preds = %159
  %162 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.19)
          to label %163 unwind label %.loopexit112

163:                                              ; preds = %161
  %164 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %7, i64 noundef 0)
  %165 = load float, ptr %164, align 4, !tbaa !10
  %166 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %162, float noundef %165)
          to label %167 unwind label %.loopexit112

167:                                              ; preds = %163
  %168 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %166, ptr noundef nonnull @.str.18)
          to label %169 unwind label %.loopexit112

169:                                              ; preds = %167
  %170 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %7, i64 noundef 1)
  %171 = load float, ptr %170, align 4, !tbaa !10
  %172 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %168, float noundef %171)
          to label %173 unwind label %.loopexit112

173:                                              ; preds = %169
  %174 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %172, ptr noundef nonnull @.str.18)
          to label %175 unwind label %.loopexit112

175:                                              ; preds = %173
  %176 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %7, i64 noundef 2)
  %177 = load float, ptr %176, align 4, !tbaa !10
  %178 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %174, float noundef %177)
          to label %179 unwind label %.loopexit112

179:                                              ; preds = %175
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %178, i8 noundef signext 10)
          to label %187 unwind label %.loopexit112

181:                                              ; preds = %122
  %182 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

183:                                              ; preds = %129
  %184 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

185:                                              ; preds = %134
  %186 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

187:                                              ; preds = %179, %159
  %188 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 64)
  br i1 %188, label %189, label %203

189:                                              ; preds = %187
  %190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.20)
          to label %191 unwind label %.loopexit112

191:                                              ; preds = %189
  %192 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %8, i64 noundef 0)
  %193 = load float, ptr %192, align 4, !tbaa !10
  %194 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %190, float noundef %193)
          to label %195 unwind label %.loopexit112

195:                                              ; preds = %191
  %196 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %194, ptr noundef nonnull @.str.18)
          to label %197 unwind label %.loopexit112

197:                                              ; preds = %195
  %198 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %8, i64 noundef 1)
  %199 = load float, ptr %198, align 4, !tbaa !10
  %200 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %196, float noundef %199)
          to label %201 unwind label %.loopexit112

201:                                              ; preds = %197
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %200, i8 noundef signext 10)
          to label %203 unwind label %.loopexit112

203:                                              ; preds = %187, %201
  %204 = add nuw i64 %.079116, 1
  %exitcond.not = icmp eq i64 %204, %121
  br i1 %exitcond.not, label %._crit_edge, label %122, !llvm.loop !12

._crit_edge:                                      ; preds = %203, %.preheader111
  %205 = call noundef i64 @_ZNSt14numeric_limitsImE3maxEv() #7
  %206 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 64)
  br i1 %206, label %210, label %207

207:                                              ; preds = %._crit_edge
  %208 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 16)
  %209 = xor i1 %208, true
  br label %210

210:                                              ; preds = %207, %._crit_edge
  %211 = phi i1 [ false, %._crit_edge ], [ %209, %207 ]
  %212 = load ptr, ptr %2, align 8, !tbaa !5
  %213 = getelementptr inbounds i8, ptr %212, i64 216
  %214 = load ptr, ptr %213, align 8
  %215 = invoke noundef i64 %214(ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %.preheader107 unwind label %.loopexit.split-lp.loopexit.split-lp

.preheader107:                                    ; preds = %210
  %.not126 = icmp eq i64 %215, 0
  br i1 %.not126, label %._crit_edge124, label %.lr.ph123

.lr.ph123:                                        ; preds = %.preheader107
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  %.sroa.59.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  br label %216

216:                                              ; preds = %.lr.ph123, %305
  %.1121 = phi i64 [ 0, %.lr.ph123 ], [ %306, %305 ]
  %.092120 = phi i64 [ %205, %.lr.ph123 ], [ %.294, %305 ]
  br i1 %.182, label %217, label %261

217:                                              ; preds = %216
  %218 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 512)
  br i1 %218, label %219, label %261

219:                                              ; preds = %217
  %220 = call noundef i64 @_ZNSt14numeric_limitsImE3maxEv() #7
  %221 = invoke noundef zeroext i1 @_ZNK8OpenMesh2IO7Options15color_has_alphaEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %222 unwind label %237

222:                                              ; preds = %219
  %223 = trunc i64 %.1121 to i32
  br i1 %221, label %224, label %241

224:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #7
  invoke void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef %223)
          to label %225 unwind label %239

225:                                              ; preds = %224
  %226 = load i32, ptr %20, align 4
  %227 = load ptr, ptr %2, align 8, !tbaa !5
  %228 = getelementptr inbounds i8, ptr %227, i64 112
  %229 = load ptr, ptr %228, align 8
  %230 = invoke i32 %229(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %226)
          to label %231 unwind label %239

231:                                              ; preds = %225
  store i32 %230, ptr %19, align 4
  %232 = invoke { <2 x float>, <2 x float> } @_ZN8OpenMesh10color_castINS_7VectorTIfLi4EEENS1_IhLi4EEEEENS_12color_casterIT_T0_E11return_typeERKS6_(ptr noundef nonnull align 1 dereferenceable(4) %19)
          to label %233 unwind label %239

233:                                              ; preds = %231
  %234 = extractvalue { <2 x float>, <2 x float> } %232, 0
  %235 = extractvalue { <2 x float>, <2 x float> } %232, 1
  store <2 x float> %234, ptr %12, align 8
  store <2 x float> %235, ptr %.sroa.59.0..sroa_idx, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #7
  %236 = invoke noundef i64 @_ZNK8OpenMesh2IO11_OBJWriter_11getMaterialENS_7VectorTIfLi4EEE(ptr noundef nonnull align 8 dereferenceable(120) %0, <2 x float> %234, <2 x float> %235)
          to label %254 unwind label %237

.loopexit.split:                                  ; preds = %.lr.ph118.split, %286, %288, %292, %296, %298
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.loopexit.split-lp.loopexit:                      ; preds = %._crit_edge119, %265, %263, %261
  %lpad.loopexit108 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

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

237:                                              ; preds = %259, %257, %255, %250, %233, %219
  %238 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

239:                                              ; preds = %231, %225, %224
  %240 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #7
  br label %.loopexit

241:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %21) #7
  invoke void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %22, i32 noundef %223)
          to label %242 unwind label %252

242:                                              ; preds = %241
  %243 = load i32, ptr %22, align 4
  %244 = load ptr, ptr %2, align 8, !tbaa !5
  %245 = getelementptr inbounds i8, ptr %244, i64 104
  %246 = load ptr, ptr %245, align 8
  %247 = invoke i24 %246(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %243)
          to label %248 unwind label %252

248:                                              ; preds = %242
  store i24 %247, ptr %21, align 4
  %249 = invoke { <2 x float>, float } @_ZN8OpenMesh10color_castINS_7VectorTIfLi3EEENS1_IhLi3EEEEENS_12color_casterIT_T0_E11return_typeERKS6_(ptr noundef nonnull align 1 dereferenceable(3) %21)
          to label %250 unwind label %252

250:                                              ; preds = %248
  %.fca.0.extract = extractvalue { <2 x float>, float } %249, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %249, 1
  store <2 x float> %.fca.0.extract, ptr %11, align 8
  store float %.fca.1.extract, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %21) #7
  %251 = invoke noundef i64 @_ZNK8OpenMesh2IO11_OBJWriter_11getMaterialENS_7VectorTIfLi3EEE(ptr noundef nonnull align 8 dereferenceable(120) %0, <2 x float> %.fca.0.extract, float %.fca.1.extract)
          to label %254 unwind label %237

252:                                              ; preds = %248, %242, %241
  %253 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %21) #7
  br label %.loopexit

254:                                              ; preds = %250, %233
  %.095 = phi i64 [ %236, %233 ], [ %251, %250 ]
  %.not = icmp eq i64 %.092120, %.095
  br i1 %.not, label %261, label %255

255:                                              ; preds = %254
  %256 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.21)
          to label %257 unwind label %237

257:                                              ; preds = %255
  %258 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %256, i64 noundef %.095)
          to label %259 unwind label %237

259:                                              ; preds = %257
  %260 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %258, i8 noundef signext 10)
          to label %261 unwind label %237

261:                                              ; preds = %254, %259, %217, %216
  %.294 = phi i64 [ %.092120, %217 ], [ %.092120, %216 ], [ %.092120, %254 ], [ %.095, %259 ]
  %262 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.22)
          to label %263 unwind label %.loopexit.split-lp.loopexit

263:                                              ; preds = %261
  %264 = trunc i64 %.1121 to i32
  invoke void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %23, i32 noundef %264)
          to label %265 unwind label %.loopexit.split-lp.loopexit

265:                                              ; preds = %263
  %266 = load i32, ptr %23, align 4
  %267 = load ptr, ptr %2, align 8, !tbaa !5
  %268 = getelementptr inbounds i8, ptr %267, i64 88
  %269 = load ptr, ptr %268, align 8
  %270 = invoke noundef i32 %269(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %266, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %.preheader unwind label %.loopexit.split-lp.loopexit

.preheader:                                       ; preds = %265
  %271 = call noundef i64 @_ZNKSt6vectorIN8OpenMesh12VertexHandleESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  %.not127 = icmp eq i64 %271, 0
  br i1 %.not127, label %._crit_edge119, label %.lr.ph118

.lr.ph118:                                        ; preds = %.preheader
  br i1 %211, label %.lr.ph118.split.us, label %.lr.ph118.split

.lr.ph118.split.us:                               ; preds = %.lr.ph118, %278
  %.080117.us = phi i64 [ %279, %278 ], [ 0, %.lr.ph118 ]
  %272 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %.080117.us) #7
  %273 = call noundef i32 @_ZNK8OpenMesh10BaseHandle3idxEv(ptr noundef nonnull align 4 dereferenceable(4) %272)
  %274 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.18)
          to label %275 unwind label %.loopexit.split.us

275:                                              ; preds = %.lr.ph118.split.us
  %276 = add nsw i32 %273, 1
  %277 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %274, i32 noundef %276)
          to label %278 unwind label %.loopexit.split.us

278:                                              ; preds = %275
  %279 = add nuw i64 %.080117.us, 1
  %280 = call noundef i64 @_ZNKSt6vectorIN8OpenMesh12VertexHandleESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  %281 = icmp ult i64 %279, %280
  br i1 %281, label %.lr.ph118.split.us, label %._crit_edge119, !llvm.loop !14

.loopexit.split.us:                               ; preds = %275, %.lr.ph118.split.us
  %lpad.loopexit.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.lr.ph118.split:                                  ; preds = %.lr.ph118, %300
  %.080117 = phi i64 [ %301, %300 ], [ 0, %.lr.ph118 ]
  %282 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %.080117) #7
  %283 = call noundef i32 @_ZNK8OpenMesh10BaseHandle3idxEv(ptr noundef nonnull align 4 dereferenceable(4) %282)
  %284 = add nsw i32 %283, 1
  %285 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.18)
          to label %286 unwind label %.loopexit.split

286:                                              ; preds = %.lr.ph118.split
  %287 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %285, i32 noundef %284)
          to label %288 unwind label %.loopexit.split

288:                                              ; preds = %286
  %289 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.1)
          to label %290 unwind label %.loopexit.split

290:                                              ; preds = %288
  %291 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 64)
  br i1 %291, label %292, label %294

292:                                              ; preds = %290
  %293 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %284)
          to label %294 unwind label %.loopexit.split

294:                                              ; preds = %292, %290
  %295 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options5checkEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef 16)
  br i1 %295, label %296, label %300

296:                                              ; preds = %294
  %297 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.1)
          to label %298 unwind label %.loopexit.split

298:                                              ; preds = %296
  %299 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %284)
          to label %300 unwind label %.loopexit.split

300:                                              ; preds = %298, %294
  %301 = add nuw i64 %.080117, 1
  %302 = call noundef i64 @_ZNKSt6vectorIN8OpenMesh12VertexHandleESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  %303 = icmp ult i64 %301, %302
  br i1 %303, label %.lr.ph118.split, label %._crit_edge119, !llvm.loop !14

._crit_edge119:                                   ; preds = %300, %278, %.preheader
  %304 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %1, i8 noundef signext 10)
          to label %305 unwind label %.loopexit.split-lp.loopexit

305:                                              ; preds = %._crit_edge119
  %306 = add nuw i64 %.1121, 1
  %exitcond129.not = icmp eq i64 %306, %215
  br i1 %exitcond129.not, label %._crit_edge124, label %216, !llvm.loop !15

._crit_edge124:                                   ; preds = %305, %.preheader107
  %307 = getelementptr inbounds i8, ptr %0, i64 72
  call void @_ZNSt6vectorIN8OpenMesh7VectorTIfLi3EEESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %307) #7
  %308 = getelementptr inbounds i8, ptr %0, i64 96
  call void @_ZNSt6vectorIN8OpenMesh7VectorTIfLi4EEESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %308) #7
  br label %309

309:                                              ; preds = %37, %39, %34, %._crit_edge124
  %.0 = phi i1 [ true, %._crit_edge124 ], [ false, %34 ], [ false, %39 ], [ false, %37 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #7
  call void @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  ret i1 %.0

.loopexit:                                        ; preds = %.loopexit.split.us, %.loopexit.split, %.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit, %.loopexit112, %.loopexit.split-lp113, %252, %239, %237, %185, %183, %181, %82, %35
  %.pn105 = phi { ptr, i32 } [ %186, %185 ], [ %184, %183 ], [ %182, %181 ], [ %.pn97.pn.pn, %82 ], [ %36, %35 ], [ %238, %237 ], [ %240, %239 ], [ %253, %252 ], [ %lpad.loopexit114, %.loopexit112 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp113 ], [ %lpad.loopexit, %.loopexit.split ], [ %lpad.loopexit.us, %.loopexit.split.us ], [ %lpad.loopexit108, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp109, %.loopexit.split-lp.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #7
  call void @_ZNSt6vectorIN8OpenMesh12VertexHandleESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  resume { ptr, i32 } %.pn105
}

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

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

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

declare noundef nonnull align 8 dereferenceable(224) ptr @_Z5omlogv() local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO10BaseWriter5checkERNS0_12BaseExporterENS0_7OptionsE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #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 #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNSt14numeric_limitsImE3maxEv() local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN8OpenMesh12VertexHandleESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 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 #0 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) 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 #0 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"omnipotent char", !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !9, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}


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