; 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.28" = type { %"struct.std::array.29" }
%"struct.std::array.29" = type { [4 x float] }
%"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::BaseHandle" = type { i32 }
%"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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<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.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1

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

; 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) #1

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO11_OBJWriter_13writeMaterialERSoRNS0_12BaseExporterENS0_7OptionsE(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) #2 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.OpenMesh::VectorT", align 4
  %10 = alloca %"class.OpenMesh::VectorT.28", align 4
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca %"class.OpenMesh::VectorT.28", align 4
  %14 = alloca %"class.OpenMesh::VectorT.30", align 1
  %15 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %16 = alloca %"class.OpenMesh::VectorT.28", align 4
  %17 = alloca %"class.OpenMesh::VectorT", align 4
  %18 = alloca %"class.OpenMesh::VectorT.32", align 1
  %19 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %20 = alloca { <2 x float>, float }, align 8
  %21 = alloca %"class.OpenMesh::VectorT", align 4
  %22 = alloca { <2 x float>, float }, align 4
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %25 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #7
  call void @_ZN8OpenMesh7VectorTIfLi3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %9)
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  call void @_ZN8OpenMesh7VectorTIfLi4EEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %10)
  %26 = getelementptr inbounds %"class.OpenMesh::IO::_OBJWriter_", ptr %25, i32 0, i32 3
  call void @_ZNSt6vectorIN8OpenMesh7VectorTIfLi3EEESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #7
  %27 = getelementptr inbounds %"class.OpenMesh::IO::_OBJWriter_", ptr %25, i32 0, i32 4
  call void @_ZNSt6vectorIN8OpenMesh7VectorTIfLi4EEESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store i64 0, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = load ptr, ptr %28, align 8, !tbaa !11
  %30 = getelementptr inbounds ptr, ptr %29, i64 27
  %31 = load ptr, ptr %30, align 8
  %32 = call noundef i64 %31(ptr noundef nonnull align 8 dereferenceable(8) %28)
  store i64 %32, ptr %12, align 8, !tbaa !9
  br label %33

33:                                               ; preds = %87, %4
  %34 = load i64, ptr %11, align 8, !tbaa !9
  %35 = load i64, ptr %12, align 8, !tbaa !9
  %36 = icmp ult i64 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %90

38:                                               ; preds = %33
  %39 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options15color_has_alphaEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %39, label %40, label %65

40:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = load i64, ptr %11, align 8, !tbaa !9
  %43 = trunc i64 %42 to i32
  call void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef %43)
  %44 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %15, i32 0, i32 0
  %45 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %44, i32 0, i32 0
  %46 = load i32, ptr %45, align 4
  %47 = load ptr, ptr %41, align 8, !tbaa !11
  %48 = getelementptr inbounds ptr, ptr %47, i64 14
  %49 = load ptr, ptr %48, align 8
  %50 = call i32 %49(ptr noundef nonnull align 8 dereferenceable(8) %41, i32 %46)
  %51 = getelementptr inbounds %"class.OpenMesh::VectorT.30", ptr %14, i32 0, i32 0
  %52 = getelementptr inbounds %"struct.std::array.31", ptr %51, i32 0, i32 0
  store i32 %50, ptr %52, align 1
  %53 = call { <2 x float>, <2 x float> } @_ZN8OpenMesh10color_castINS_7VectorTIfLi4EEENS1_IhLi4EEEEENS_12color_casterIT_T0_E11return_typeERKS6_(ptr noundef nonnull align 1 dereferenceable(4) %14)
  %54 = getelementptr inbounds %"class.OpenMesh::VectorT.28", ptr %13, i32 0, i32 0
  %55 = getelementptr inbounds %"struct.std::array.29", ptr %54, i32 0, i32 0
  %56 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %55, i32 0, i32 0
  %57 = extractvalue { <2 x float>, <2 x float> } %53, 0
  store <2 x float> %57, ptr %56, align 4
  %58 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %55, i32 0, i32 1
  %59 = extractvalue { <2 x float>, <2 x float> } %53, 1
  store <2 x float> %59, ptr %58, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %13, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %10, i64 16, i1 false), !tbaa.struct !13
  %60 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 0
  %61 = load <2 x float>, ptr %60, align 4
  %62 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 1
  %63 = load <2 x float>, ptr %62, align 4
  %64 = call noundef i64 @_ZNK8OpenMesh2IO11_OBJWriter_11getMaterialENS_7VectorTIfLi4EEE(ptr noundef nonnull align 8 dereferenceable(120) %25, <2 x float> %61, <2 x float> %63)
  br label %86

65:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 3, ptr %18) #7
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = load i64, ptr %11, align 8, !tbaa !9
  %68 = trunc i64 %67 to i32
  call void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %19, i32 noundef %68)
  %69 = getelementptr inbounds %"struct.OpenMesh::FaceHandle", ptr %19, i32 0, i32 0
  %70 = getelementptr inbounds %"class.OpenMesh::BaseHandle", ptr %69, i32 0, i32 0
  %71 = load i32, ptr %70, align 4
  %72 = load ptr, ptr %66, align 8, !tbaa !11
  %73 = getelementptr inbounds ptr, ptr %72, i64 13
  %74 = load ptr, ptr %73, align 8
  %75 = call i24 %74(ptr noundef nonnull align 8 dereferenceable(8) %66, i32 %71)
  %76 = getelementptr inbounds %"class.OpenMesh::VectorT.32", ptr %18, i32 0, i32 0
  %77 = getelementptr inbounds %"struct.std::array.33", ptr %76, i32 0, i32 0
  store i24 %75, ptr %77, align 1
  %78 = call { <2 x float>, float } @_ZN8OpenMesh10color_castINS_7VectorTIfLi3EEENS1_IhLi3EEEEENS_12color_casterIT_T0_E11return_typeERKS6_(ptr noundef nonnull align 1 dereferenceable(3) %18)
  %79 = getelementptr inbounds %"class.OpenMesh::VectorT", ptr %17, i32 0, i32 0
  %80 = getelementptr inbounds %"struct.std::array", ptr %79, i32 0, i32 0
  store { <2 x float>, float } %78, ptr %20, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %80, ptr align 8 %20, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %17, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 3, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %9, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %21, i64 12, i1 false)
  %81 = getelementptr inbounds { <2 x float>, float }, ptr %22, i32 0, i32 0
  %82 = load <2 x float>, ptr %81, align 4
  %83 = getelementptr inbounds { <2 x float>, float }, ptr %22, i32 0, i32 1
  %84 = load float, ptr %83, align 4
  %85 = call noundef i64 @_ZNK8OpenMesh2IO11_OBJWriter_11getMaterialENS_7VectorTIfLi3EEE(ptr noundef nonnull align 8 dereferenceable(120) %25, <2 x float> %82, float %84)
  br label %86

86:                                               ; preds = %65, %40
  br label %87

87:                                               ; preds = %86
  %88 = load i64, ptr %11, align 8, !tbaa !9
  %89 = add i64 %88, 1
  store i64 %89, ptr %11, align 8, !tbaa !9
  br label %33, !llvm.loop !16

90:                                               ; preds = %37
  %91 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options15color_has_alphaEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %91, label %92, label %148

92:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %93

93:                                               ; preds = %144, %92
  %94 = load i64, ptr %23, align 8, !tbaa !9
  %95 = getelementptr inbounds %"class.OpenMesh::IO::_OBJWriter_", ptr %25, i32 0, i32 4
  %96 = call noundef i64 @_ZNKSt6vectorIN8OpenMesh7VectorTIfLi4EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #7
  %97 = icmp ult i64 %94, %96
  br i1 %97, label %99, label %98

98:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %147

99:                                               ; preds = %93
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef @.str.4)
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %101, ptr noundef @.str.5)
  %103 = load i64, ptr %23, align 8, !tbaa !9
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %102, i64 noundef %103)
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %104, i8 noundef signext 10)
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %106, ptr noundef @.str.6)
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %107, i8 noundef signext 10)
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef @.str.7)
  %111 = getelementptr inbounds %"class.OpenMesh::IO::_OBJWriter_", ptr %25, i32 0, i32 4
  %112 = load i64, ptr %23, align 8, !tbaa !9
  %113 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN8OpenMesh7VectorTIfLi4EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %112) #7
  %114 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %113, i64 noundef 0)
  %115 = load float, ptr %114, align 4, !tbaa !18
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %110, float noundef %115)
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %116, i8 noundef signext 32)
  %118 = getelementptr inbounds %"class.OpenMesh::IO::_OBJWriter_", ptr %25, i32 0, i32 4
  %119 = load i64, ptr %23, align 8, !tbaa !9
  %120 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN8OpenMesh7VectorTIfLi4EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %118, i64 noundef %119) #7
  %121 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %120, i64 noundef 1)
  %122 = load float, ptr %121, align 4, !tbaa !18
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %117, float noundef %122)
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %123, i8 noundef signext 32)
  %125 = getelementptr inbounds %"class.OpenMesh::IO::_OBJWriter_", ptr %25, i32 0, i32 4
  %126 = load i64, ptr %23, align 8, !tbaa !9
  %127 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN8OpenMesh7VectorTIfLi4EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %125, i64 noundef %126) #7
  %128 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %127, i64 noundef 2)
  %129 = load float, ptr %128, align 4, !tbaa !18
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %124, float noundef %129)
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %130, i8 noundef signext 10)
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef @.str.8)
  %134 = getelementptr inbounds %"class.OpenMesh::IO::_OBJWriter_", ptr %25, i32 0, i32 4
  %135 = load i64, ptr %23, align 8, !tbaa !9
  %136 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN8OpenMesh7VectorTIfLi4EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %134, i64 noundef %135) #7
  %137 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %136, i64 noundef 3)
  %138 = load float, ptr %137, align 4, !tbaa !18
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %133, float noundef %138)
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %139, i8 noundef signext 10)
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %141, ptr noundef @.str.9)
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %142, i8 noundef signext 10)
  br label %144

144:                                              ; preds = %99
  %145 = load i64, ptr %23, align 8, !tbaa !9
  %146 = add i64 %145, 1
  store i64 %146, ptr %23, align 8, !tbaa !9
  br label %93, !llvm.loop !20

147:                                              ; preds = %98
  br label %195

148:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %149

149:                                              ; preds = %191, %148
  %150 = load i64, ptr %24, align 8, !tbaa !9
  %151 = getelementptr inbounds %"class.OpenMesh::IO::_OBJWriter_", ptr %25, i32 0, i32 3
  %152 = call noundef i64 @_ZNKSt6vectorIN8OpenMesh7VectorTIfLi3EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %151) #7
  %153 = icmp ult i64 %150, %152
  br i1 %153, label %155, label %154

154:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %194

155:                                              ; preds = %149
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %156, ptr noundef @.str.4)
  %158 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %157, ptr noundef @.str.5)
  %159 = load i64, ptr %24, align 8, !tbaa !9
  %160 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %158, i64 noundef %159)
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %160, i8 noundef signext 10)
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %162, ptr noundef @.str.6)
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %163, i8 noundef signext 10)
  %165 = load ptr, ptr %6, align 8, !tbaa !5
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %165, ptr noundef @.str.7)
  %167 = getelementptr inbounds %"class.OpenMesh::IO::_OBJWriter_", ptr %25, i32 0, i32 3
  %168 = load i64, ptr %24, align 8, !tbaa !9
  %169 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN8OpenMesh7VectorTIfLi3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %167, i64 noundef %168) #7
  %170 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %169, i64 noundef 0)
  %171 = load float, ptr %170, align 4, !tbaa !18
  %172 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %166, float noundef %171)
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %172, i8 noundef signext 32)
  %174 = getelementptr inbounds %"class.OpenMesh::IO::_OBJWriter_", ptr %25, i32 0, i32 3
  %175 = load i64, ptr %24, align 8, !tbaa !9
  %176 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN8OpenMesh7VectorTIfLi3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %174, i64 noundef %175) #7
  %177 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %176, i64 noundef 1)
  %178 = load float, ptr %177, align 4, !tbaa !18
  %179 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %173, float noundef %178)
  %180 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %179, i8 noundef signext 32)
  %181 = getelementptr inbounds %"class.OpenMesh::IO::_OBJWriter_", ptr %25, i32 0, i32 3
  %182 = load i64, ptr %24, align 8, !tbaa !9
  %183 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN8OpenMesh7VectorTIfLi3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %181, i64 noundef %182) #7
  %184 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %183, i64 noundef 2)
  %185 = load float, ptr %184, align 4, !tbaa !18
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %180, float noundef %185)
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %186, i8 noundef signext 10)
  %188 = load ptr, ptr %6, align 8, !tbaa !5
  %189 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %188, ptr noundef @.str.9)
  %190 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %189, i8 noundef signext 10)
  br label %191

191:                                              ; preds = %155
  %192 = load i64, ptr %24, align 8, !tbaa !9
  %193 = add i64 %192, 1
  store i64 %193, ptr %24, align 8, !tbaa !9
  br label %149, !llvm.loop !21

194:                                              ; preds = %154
  br label %195

195:                                              ; preds = %194, %147
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #7
  ret i1 true
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO7Options15color_has_alphaEv(ptr noundef nonnull align 4 dereferenceable(4)) #5 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)) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #5 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)) #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) #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16), i64 noundef) #4 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) #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #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 = !{!"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 = !{!"vtable pointer", !8, i64 0}
!13 = !{i64 0, i64 16, !14}
!14 = !{!7, !7, i64 0}
!15 = !{i64 0, i64 12, !14}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !19, i64 0}
!19 = !{!"float", !7, i64 0}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}


; 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.28" = type { %"struct.std::array.29" }
%"struct.std::array.29" = type { [4 x float] }
%"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::BaseHandle" = type { i32 }
%"class.OpenMesh::VectorT.32" = type { %"struct.std::array.33" }
%"struct.std::array.33" = type { [3 x i8] }

@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1

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

; 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 #1

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK8OpenMesh2IO11_OBJWriter_13writeMaterialERSoRNS0_12BaseExporterENS0_7OptionsE(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) local_unnamed_addr #2 align 2 {
  %5 = alloca %"class.OpenMesh::VectorT", align 8
  %6 = alloca %"class.OpenMesh::VectorT.28", align 8
  %7 = alloca %"class.OpenMesh::VectorT.30", align 4
  %8 = alloca %"struct.OpenMesh::FaceHandle", align 4
  %9 = alloca %"class.OpenMesh::VectorT.32", align 4
  %10 = alloca %"struct.OpenMesh::FaceHandle", align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #6
  call void @_ZN8OpenMesh7VectorTIfLi3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @_ZN8OpenMesh7VectorTIfLi4EEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6)
  %11 = getelementptr inbounds i8, ptr %0, i64 72
  call void @_ZNSt6vectorIN8OpenMesh7VectorTIfLi3EEESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  %12 = getelementptr inbounds i8, ptr %0, i64 96
  call void @_ZNSt6vectorIN8OpenMesh7VectorTIfLi4EEESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  %13 = load ptr, ptr %2, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %13, i64 216
  %15 = load ptr, ptr %14, align 8
  %16 = call noundef i64 %15(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %.not = icmp eq i64 %16, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %4
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  %.sroa.421.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  br label %20

._crit_edge:                                      ; preds = %41, %4
  %17 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options15color_has_alphaEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %17, label %.preheader, label %.preheader41

.preheader41:                                     ; preds = %._crit_edge
  %18 = call noundef i64 @_ZNKSt6vectorIN8OpenMesh7VectorTIfLi3EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  %.not48 = icmp eq i64 %18, 0
  br i1 %.not48, label %.loopexit, label %.lr.ph45

.preheader:                                       ; preds = %._crit_edge
  %19 = call noundef i64 @_ZNKSt6vectorIN8OpenMesh7VectorTIfLi4EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  %.not49 = icmp eq i64 %19, 0
  br i1 %.not49, label %.loopexit, label %.lr.ph47

20:                                               ; preds = %.lr.ph, %41
  %.04043 = phi i64 [ 0, %.lr.ph ], [ %42, %41 ]
  %21 = call noundef zeroext i1 @_ZNK8OpenMesh2IO7Options15color_has_alphaEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  %22 = trunc i64 %.04043 to i32
  br i1 %21, label %23, label %33

23:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  call void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef %22)
  %24 = load i32, ptr %8, align 4
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %25, i64 112
  %27 = load ptr, ptr %26, align 8
  %28 = call i32 %27(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %24)
  store i32 %28, ptr %7, align 4
  %29 = call { <2 x float>, <2 x float> } @_ZN8OpenMesh10color_castINS_7VectorTIfLi4EEENS1_IhLi4EEEEENS_12color_casterIT_T0_E11return_typeERKS6_(ptr noundef nonnull align 1 dereferenceable(4) %7)
  %30 = extractvalue { <2 x float>, <2 x float> } %29, 0
  %31 = extractvalue { <2 x float>, <2 x float> } %29, 1
  store <2 x float> %30, ptr %6, align 8
  store <2 x float> %31, ptr %.sroa.421.0..sroa_idx, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  %32 = call noundef i64 @_ZNK8OpenMesh2IO11_OBJWriter_11getMaterialENS_7VectorTIfLi4EEE(ptr noundef nonnull align 8 dereferenceable(120) %0, <2 x float> %30, <2 x float> %31)
  br label %41

33:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %9) #6
  call void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %10, i32 noundef %22)
  %34 = load i32, ptr %10, align 4
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %35, i64 104
  %37 = load ptr, ptr %36, align 8
  %38 = call i24 %37(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 %34)
  store i24 %38, ptr %9, align 4
  %39 = call { <2 x float>, float } @_ZN8OpenMesh10color_castINS_7VectorTIfLi3EEENS1_IhLi3EEEEENS_12color_casterIT_T0_E11return_typeERKS6_(ptr noundef nonnull align 1 dereferenceable(3) %9)
  %.fca.0.extract = extractvalue { <2 x float>, float } %39, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %39, 1
  store <2 x float> %.fca.0.extract, ptr %5, align 8
  store float %.fca.1.extract, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %9) #6
  %40 = call noundef i64 @_ZNK8OpenMesh2IO11_OBJWriter_11getMaterialENS_7VectorTIfLi3EEE(ptr noundef nonnull align 8 dereferenceable(120) %0, <2 x float> %.fca.0.extract, float %.fca.1.extract)
  br label %41

41:                                               ; preds = %23, %33
  %42 = add nuw i64 %.04043, 1
  %exitcond.not = icmp eq i64 %42, %16
  br i1 %exitcond.not, label %._crit_edge, label %20, !llvm.loop !10

.lr.ph47:                                         ; preds = %.preheader, %.lr.ph47
  %.03946 = phi i64 [ %73, %.lr.ph47 ], [ 0, %.preheader ]
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.4)
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull @.str.5)
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %44, i64 noundef %.03946)
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %45, i8 noundef signext 10)
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.6)
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %47, i8 noundef signext 10)
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.7)
  %50 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN8OpenMesh7VectorTIfLi4EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.03946) #6
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %50, i64 noundef 0)
  %52 = load float, ptr %51, align 4, !tbaa !12
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %49, float noundef %52)
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %53, i8 noundef signext 32)
  %55 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN8OpenMesh7VectorTIfLi4EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.03946) #6
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %55, i64 noundef 1)
  %57 = load float, ptr %56, align 4, !tbaa !12
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %54, float noundef %57)
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %58, i8 noundef signext 32)
  %60 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN8OpenMesh7VectorTIfLi4EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.03946) #6
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %60, i64 noundef 2)
  %62 = load float, ptr %61, align 4, !tbaa !12
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %59, float noundef %62)
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %63, i8 noundef signext 10)
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.8)
  %66 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN8OpenMesh7VectorTIfLi4EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.03946) #6
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %66, i64 noundef 3)
  %68 = load float, ptr %67, align 4, !tbaa !12
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %65, float noundef %68)
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %69, i8 noundef signext 10)
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.9)
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %71, i8 noundef signext 10)
  %73 = add nuw i64 %.03946, 1
  %74 = call noundef i64 @_ZNKSt6vectorIN8OpenMesh7VectorTIfLi4EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  %75 = icmp ult i64 %73, %74
  br i1 %75, label %.lr.ph47, label %.loopexit, !llvm.loop !14

.lr.ph45:                                         ; preds = %.preheader41, %.lr.ph45
  %.044 = phi i64 [ %100, %.lr.ph45 ], [ 0, %.preheader41 ]
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.4)
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %76, ptr noundef nonnull @.str.5)
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %77, i64 noundef %.044)
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %78, i8 noundef signext 10)
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.6)
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %80, i8 noundef signext 10)
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.7)
  %83 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN8OpenMesh7VectorTIfLi3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %.044) #6
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %83, i64 noundef 0)
  %85 = load float, ptr %84, align 4, !tbaa !12
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %82, float noundef %85)
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %86, i8 noundef signext 32)
  %88 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN8OpenMesh7VectorTIfLi3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %.044) #6
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %88, i64 noundef 1)
  %90 = load float, ptr %89, align 4, !tbaa !12
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %87, float noundef %90)
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %91, i8 noundef signext 32)
  %93 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN8OpenMesh7VectorTIfLi3EEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %.044) #6
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi3EEixEm(ptr noundef nonnull align 4 dereferenceable(12) %93, i64 noundef 2)
  %95 = load float, ptr %94, align 4, !tbaa !12
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %92, float noundef %95)
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %96, i8 noundef signext 10)
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.9)
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %98, i8 noundef signext 10)
  %100 = add nuw i64 %.044, 1
  %101 = call noundef i64 @_ZNKSt6vectorIN8OpenMesh7VectorTIfLi3EEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  %102 = icmp ult i64 %100, %101
  br i1 %102, label %.lr.ph45, label %.loopexit, !llvm.loop !15

.loopexit:                                        ; preds = %.lr.ph45, %.lr.ph47, %.preheader41, %.preheader
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #6
  ret i1 true
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN8OpenMesh7VectorTIfLi4EEESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 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 #4 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 #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8OpenMesh10FaceHandleC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #4 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 #5

; 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 #1

; 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 #4 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 #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN8OpenMesh7VectorTIfLi4EEixEm(ptr noundef nonnull align 4 dereferenceable(16), i64 noundef) local_unnamed_addr #3 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 #3 align 2

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

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

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


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