; LLVM IR from ThePhysicsGuys/Physics3D :: engine/io (export)

; 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.P3D::IteratorFactory" = type { %"struct.P3D::ShapeVertexIter", %"struct.P3D::ShapeVertexIter" }
%"struct.P3D::ShapeVertexIter" = type { ptr, i64 }
%"class.P3D::IteratorFactory.15" = type { %"struct.P3D::ShapeTriangleIter", %"struct.P3D::ShapeTriangleIter" }
%"struct.P3D::ShapeTriangleIter" = type { ptr, i64 }
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"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.4 }
%union.anon.4 = 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 }
%"struct.P3D::Vector.9" = type { %union.anon.10 }
%union.anon.10 = type { [3 x float] }
%"struct.P3D::Vector" = type { %union.anon.0 }
%union.anon.0 = type { [3 x double] }
%"struct.P3D::Vector.18" = type { %union.anon.19 }
%union.anon.19 = type { [2 x double] }
%"struct.P3D::Triangle" = type { %union.anon.16 }
%union.anon.16 = type { %struct.anon.17 }
%struct.anon.17 = type { i32, i32, i32 }
%struct.anon.11 = type { float, float, float }
%"struct.P3D::Graphics::ExtendedTriangleMesh" = type { %"class.P3D::TriangleMesh", %"class.std::shared_ptr", %"class.std::shared_ptr.6", %"class.std::shared_ptr", %"class.std::shared_ptr" }
%"class.P3D::TriangleMesh" = type { %"class.P3D::MeshPrototype" }
%"class.P3D::MeshPrototype" = type { %"class.P3D::UniqueAlignedPointer", %"class.P3D::UniqueAlignedPointer.5", i32, i32 }
%"class.P3D::UniqueAlignedPointer" = type { ptr }
%"class.P3D::UniqueAlignedPointer.5" = type { ptr }
%"class.std::shared_ptr.6" = type { %"class.std::__shared_ptr.7" }
%"class.std::__shared_ptr.7" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%struct.anon = type { double, double, double }
%"struct.P3D::Vector.12" = type { %union.anon.13 }
%union.anon.13 = type { [2 x float] }
%struct.anon.20 = type { double, double }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 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: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #2 align 2

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN4Util16warnIfFileExistsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #2 align 2

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

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

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

declare void @_ZNK3P3D12TriangleMesh12iterVerticesEv(ptr dead_on_unwind writable sret(%"class.P3D::IteratorFactory") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZNK3P3D15IteratorFactoryINS_15ShapeVertexIterES1_E5beginEv(ptr noundef nonnull align 8 dereferenceable(32)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZNK3P3D15IteratorFactoryINS_15ShapeVertexIterES1_E3endEv(ptr noundef nonnull align 8 dereferenceable(32)) #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK3P3D15ShapeVertexIterdeEv(ptr noundef nonnull align 8 dereferenceable(16)) #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 nounwind uwtable
declare dso_local void @_ZN3P3D15ShapeVertexIterppEv(ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

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

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

declare void @_ZNK3P3D12TriangleMesh13iterTrianglesEv(ptr dead_on_unwind writable sret(%"class.P3D::IteratorFactory.15") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZNK3P3D15IteratorFactoryINS_17ShapeTriangleIterES1_E5beginEv(ptr noundef nonnull align 8 dereferenceable(32)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZNK3P3D15IteratorFactoryINS_17ShapeTriangleIterES1_E3endEv(ptr noundef nonnull align 8 dereferenceable(32)) #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i64, i32 } @_ZNK3P3D17ShapeTriangleIterdeEv(ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D16saveNonBinaryObjERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_8Graphics20ExtendedTriangleMeshE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(88) %1) #7 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::basic_ofstream", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %"class.P3D::IteratorFactory", align 8
  %10 = alloca %"struct.P3D::ShapeVertexIter", align 8
  %11 = alloca %"struct.P3D::ShapeVertexIter", align 8
  %12 = alloca %"struct.P3D::Vector.9", align 4
  %13 = alloca { <2 x float>, float }, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"struct.P3D::Vector", align 8
  %16 = alloca i32, align 4
  %17 = alloca %"struct.P3D::Vector.18", align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"class.P3D::IteratorFactory.15", align 8
  %20 = alloca %"struct.P3D::ShapeTriangleIter", align 8
  %21 = alloca %"struct.P3D::ShapeTriangleIter", align 8
  %22 = alloca i32, align 4
  %23 = alloca %"struct.P3D::Triangle", align 4
  %24 = alloca { i64, i32 }, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN4Util16warnIfFileExistsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %29)
  call void @llvm.lifetime.start.p0(i64 512, ptr %5) #8
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248) %5)
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %5, ptr noundef nonnull align 8 dereferenceable(32) %30, i32 noundef 16)
          to label %31 unwind label %52

31:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #8
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK3P3D12TriangleMesh12iterVerticesEv(ptr dead_on_unwind writable sret(%"class.P3D::IteratorFactory") align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %32)
          to label %33 unwind label %56

33:                                               ; preds = %31
  store ptr %9, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = invoke { ptr, i64 } @_ZNK3P3D15IteratorFactoryINS_15ShapeVertexIterES1_E5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %34)
          to label %36 unwind label %60

36:                                               ; preds = %33
  %37 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 0
  %38 = extractvalue { ptr, i64 } %35, 0
  store ptr %38, ptr %37, align 8
  %39 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 1
  %40 = extractvalue { ptr, i64 } %35, 1
  store i64 %40, ptr %39, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #8
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = invoke { ptr, i64 } @_ZNK3P3D15IteratorFactoryINS_15ShapeVertexIterES1_E3endEv(ptr noundef nonnull align 8 dereferenceable(32) %41)
          to label %43 unwind label %64

43:                                               ; preds = %36
  %44 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 0
  %45 = extractvalue { ptr, i64 } %42, 0
  store ptr %45, ptr %44, align 8
  %46 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 1
  %47 = extractvalue { ptr, i64 } %42, 1
  store i64 %47, ptr %46, align 8
  br label %48

48:                                               ; preds = %97, %43
  %49 = invoke noundef zeroext i1 @_ZNK3P3D15ShapeVertexIterneERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %50 unwind label %64

50:                                               ; preds = %48
  br i1 %49, label %68, label %51

51:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %105

52:                                               ; preds = %343, %2
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %6, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %7, align 4
  br label %345

56:                                               ; preds = %31
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %6, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %7, align 4
  br label %104

60:                                               ; preds = %33
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %6, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %7, align 4
  br label %103

64:                                               ; preds = %96, %48, %36
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %6, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %7, align 4
  br label %102

68:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #8
  %69 = invoke { <2 x float>, float } @_ZNK3P3D15ShapeVertexIterdeEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %70 unwind label %98

70:                                               ; preds = %68
  %71 = getelementptr inbounds %"struct.P3D::Vector.9", ptr %12, i32 0, i32 0
  %72 = getelementptr inbounds %union.anon.10, ptr %71, i32 0, i32 0
  store { <2 x float>, float } %69, ptr %13, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %72, ptr align 8 %13, i64 12, i1 false)
  %73 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef @.str.1)
          to label %74 unwind label %98

74:                                               ; preds = %70
  %75 = getelementptr inbounds %"struct.P3D::Vector.9", ptr %12, i32 0, i32 0
  %76 = getelementptr inbounds %struct.anon.11, ptr %75, i32 0, i32 0
  %77 = load float, ptr %76, align 4, !tbaa !9
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %73, float noundef %77)
          to label %79 unwind label %98

79:                                               ; preds = %74
  %80 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef @.str)
          to label %81 unwind label %98

81:                                               ; preds = %79
  %82 = getelementptr inbounds %"struct.P3D::Vector.9", ptr %12, i32 0, i32 0
  %83 = getelementptr inbounds %struct.anon.11, ptr %82, i32 0, i32 1
  %84 = load float, ptr %83, align 4, !tbaa !9
  %85 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %80, float noundef %84)
          to label %86 unwind label %98

86:                                               ; preds = %81
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef @.str)
          to label %88 unwind label %98

88:                                               ; preds = %86
  %89 = getelementptr inbounds %"struct.P3D::Vector.9", ptr %12, i32 0, i32 0
  %90 = getelementptr inbounds %struct.anon.11, ptr %89, i32 0, i32 2
  %91 = load float, ptr %90, align 4, !tbaa !9
  %92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %87, float noundef %91)
          to label %93 unwind label %98

93:                                               ; preds = %88
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %95 unwind label %98

95:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #8
  br label %96

96:                                               ; preds = %95
  invoke void @_ZN3P3D15ShapeVertexIterppEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %97 unwind label %64

97:                                               ; preds = %96
  br label %48

98:                                               ; preds = %93, %88, %86, %81, %79, %74, %70, %68
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %6, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #8
  br label %102

102:                                              ; preds = %98, %64
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  br label %103

103:                                              ; preds = %102, %60
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #8
  br label %104

104:                                              ; preds = %103, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %345

105:                                              ; preds = %51
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.P3D::Graphics::ExtendedTriangleMesh", ptr %106, i32 0, i32 1
  %108 = call noundef zeroext i1 @_ZStneIA_KN3P3D6VectorIfLm3EEEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %107, ptr null) #8
  br i1 %108, label %109, label %155

109:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !10
  br label %110

110:                                              ; preds = %147, %109
  %111 = load i32, ptr %14, align 4, !tbaa !10
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %"class.P3D::MeshPrototype", ptr %112, i32 0, i32 2
  %114 = load i32, ptr %113, align 8, !tbaa !12
  %115 = icmp slt i32 %111, %114
  br i1 %115, label %117, label %116

116:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %154

117:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #8
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.P3D::Graphics::ExtendedTriangleMesh", ptr %118, i32 0, i32 1
  %120 = call noundef ptr @_ZNKSt12__shared_ptrIA_KN3P3D6VectorIfLm3EEELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %119) #8
  %121 = load i32, ptr %14, align 4, !tbaa !10
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds %"struct.P3D::Vector.9", ptr %120, i64 %122
  call void @_ZNK3P3D6VectorIfLm3EEcvNS0_IT_Lm3EEEIdEEv(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %15, ptr noundef nonnull align 4 dereferenceable(12) %123) #8
  %124 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef @.str.2)
          to label %125 unwind label %150

125:                                              ; preds = %117
  %126 = getelementptr inbounds %"struct.P3D::Vector", ptr %15, i32 0, i32 0
  %127 = getelementptr inbounds %struct.anon, ptr %126, i32 0, i32 0
  %128 = load double, ptr %127, align 8, !tbaa !9
  %129 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %124, double noundef %128)
          to label %130 unwind label %150

130:                                              ; preds = %125
  %131 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %129, ptr noundef @.str)
          to label %132 unwind label %150

132:                                              ; preds = %130
  %133 = getelementptr inbounds %"struct.P3D::Vector", ptr %15, i32 0, i32 0
  %134 = getelementptr inbounds %struct.anon, ptr %133, i32 0, i32 1
  %135 = load double, ptr %134, align 8, !tbaa !9
  %136 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %131, double noundef %135)
          to label %137 unwind label %150

137:                                              ; preds = %132
  %138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef @.str)
          to label %139 unwind label %150

139:                                              ; preds = %137
  %140 = getelementptr inbounds %"struct.P3D::Vector", ptr %15, i32 0, i32 0
  %141 = getelementptr inbounds %struct.anon, ptr %140, i32 0, i32 2
  %142 = load double, ptr %141, align 8, !tbaa !9
  %143 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %138, double noundef %142)
          to label %144 unwind label %150

144:                                              ; preds = %139
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %143, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %146 unwind label %150

146:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  br label %147

147:                                              ; preds = %146
  %148 = load i32, ptr %14, align 4, !tbaa !10
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %14, align 4, !tbaa !10
  br label %110, !llvm.loop !16

150:                                              ; preds = %144, %139, %137, %132, %130, %125, %117
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %6, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %345

154:                                              ; preds = %116
  br label %155

155:                                              ; preds = %154, %105
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.P3D::Graphics::ExtendedTriangleMesh", ptr %156, i32 0, i32 2
  %158 = call noundef zeroext i1 @_ZStneIA_KN3P3D6VectorIfLm2EEEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %157, ptr null) #8
  br i1 %158, label %159, label %205

159:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !10
  br label %160

160:                                              ; preds = %197, %159
  %161 = load i32, ptr %16, align 4, !tbaa !10
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = getelementptr inbounds %"class.P3D::MeshPrototype", ptr %162, i32 0, i32 2
  %164 = load i32, ptr %163, align 8, !tbaa !12
  %165 = icmp slt i32 %161, %164
  br i1 %165, label %167, label %166

166:                                              ; preds = %160
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %204

167:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #8
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = getelementptr inbounds %"struct.P3D::Graphics::ExtendedTriangleMesh", ptr %168, i32 0, i32 2
  %170 = call noundef ptr @_ZNKSt12__shared_ptrIA_KN3P3D6VectorIfLm2EEELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %169) #8
  %171 = load i32, ptr %16, align 4, !tbaa !10
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds %"struct.P3D::Vector.12", ptr %170, i64 %172
  %174 = call { double, double } @_ZNK3P3D6VectorIfLm2EEcvNS0_IT_Lm2EEEIdEEv(ptr noundef nonnull align 4 dereferenceable(8) %173) #8
  %175 = getelementptr inbounds %"struct.P3D::Vector.18", ptr %17, i32 0, i32 0
  %176 = getelementptr inbounds %union.anon.19, ptr %175, i32 0, i32 0
  %177 = getelementptr inbounds { double, double }, ptr %176, i32 0, i32 0
  %178 = extractvalue { double, double } %174, 0
  store double %178, ptr %177, align 8
  %179 = getelementptr inbounds { double, double }, ptr %176, i32 0, i32 1
  %180 = extractvalue { double, double } %174, 1
  store double %180, ptr %179, align 8
  %181 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef @.str.3)
          to label %182 unwind label %200

182:                                              ; preds = %167
  %183 = getelementptr inbounds %"struct.P3D::Vector.18", ptr %17, i32 0, i32 0
  %184 = getelementptr inbounds %struct.anon.20, ptr %183, i32 0, i32 0
  %185 = load double, ptr %184, align 8, !tbaa !9
  %186 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %181, double noundef %185)
          to label %187 unwind label %200

187:                                              ; preds = %182
  %188 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %186, ptr noundef @.str)
          to label %189 unwind label %200

189:                                              ; preds = %187
  %190 = getelementptr inbounds %"struct.P3D::Vector.18", ptr %17, i32 0, i32 0
  %191 = getelementptr inbounds %struct.anon.20, ptr %190, i32 0, i32 1
  %192 = load double, ptr %191, align 8, !tbaa !9
  %193 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %188, double noundef %192)
          to label %194 unwind label %200

194:                                              ; preds = %189
  %195 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %193, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %196 unwind label %200

196:                                              ; preds = %194
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  br label %197

197:                                              ; preds = %196
  %198 = load i32, ptr %16, align 4, !tbaa !10
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %16, align 4, !tbaa !10
  br label %160, !llvm.loop !18

200:                                              ; preds = %194, %189, %187, %182, %167
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %6, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %345

204:                                              ; preds = %166
  br label %205

205:                                              ; preds = %204, %155
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #8
  %206 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK3P3D12TriangleMesh13iterTrianglesEv(ptr dead_on_unwind writable sret(%"class.P3D::IteratorFactory.15") align 8 %19, ptr noundef nonnull align 8 dereferenceable(24) %206)
          to label %207 unwind label %226

207:                                              ; preds = %205
  store ptr %19, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  %208 = load ptr, ptr %18, align 8, !tbaa !5
  %209 = invoke { ptr, i64 } @_ZNK3P3D15IteratorFactoryINS_17ShapeTriangleIterES1_E5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %208)
          to label %210 unwind label %230

210:                                              ; preds = %207
  %211 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 0
  %212 = extractvalue { ptr, i64 } %209, 0
  store ptr %212, ptr %211, align 8
  %213 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 1
  %214 = extractvalue { ptr, i64 } %209, 1
  store i64 %214, ptr %213, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #8
  %215 = load ptr, ptr %18, align 8, !tbaa !5
  %216 = invoke { ptr, i64 } @_ZNK3P3D15IteratorFactoryINS_17ShapeTriangleIterES1_E3endEv(ptr noundef nonnull align 8 dereferenceable(32) %215)
          to label %217 unwind label %234

217:                                              ; preds = %210
  %218 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 0
  %219 = extractvalue { ptr, i64 } %216, 0
  store ptr %219, ptr %218, align 8
  %220 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 1
  %221 = extractvalue { ptr, i64 } %216, 1
  store i64 %221, ptr %220, align 8
  br label %222

222:                                              ; preds = %338, %217
  %223 = invoke noundef zeroext i1 @_ZNK3P3D17ShapeTriangleIterneERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %224 unwind label %234

224:                                              ; preds = %222
  br i1 %223, label %238, label %225

225:                                              ; preds = %224
  store i32 10, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %343

226:                                              ; preds = %205
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %6, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %7, align 4
  br label %342

230:                                              ; preds = %207
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %6, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %7, align 4
  br label %341

234:                                              ; preds = %337, %222, %210
  %235 = landingpad { ptr, i32 }
          cleanup
  %236 = extractvalue { ptr, i32 } %235, 0
  store ptr %236, ptr %6, align 8
  %237 = extractvalue { ptr, i32 } %235, 1
  store i32 %237, ptr %7, align 4
  br label %340

238:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #8
  %239 = invoke { i64, i32 } @_ZNK3P3D17ShapeTriangleIterdeEv(ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %240 unwind label %256

240:                                              ; preds = %238
  %241 = getelementptr inbounds %"struct.P3D::Triangle", ptr %23, i32 0, i32 0
  %242 = getelementptr inbounds %union.anon.16, ptr %241, i32 0, i32 0
  store { i64, i32 } %239, ptr %24, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %242, ptr align 8 %24, i64 12, i1 false)
  %243 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef @.str.4)
          to label %244 unwind label %256

244:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %245 = getelementptr inbounds %"struct.P3D::Triangle", ptr %23, i32 0, i32 0
  store ptr %245, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %246 = load ptr, ptr %25, align 8, !tbaa !5
  %247 = getelementptr inbounds [3 x i32], ptr %246, i64 0, i64 0
  store ptr %247, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %248 = load ptr, ptr %25, align 8, !tbaa !5
  %249 = getelementptr inbounds [3 x i32], ptr %248, i64 0, i64 0
  %250 = getelementptr inbounds i32, ptr %249, i64 3
  store ptr %250, ptr %27, align 8, !tbaa !5
  br label %251

251:                                              ; preds = %331, %244
  %252 = load ptr, ptr %26, align 8, !tbaa !5
  %253 = load ptr, ptr %27, align 8, !tbaa !5
  %254 = icmp ne ptr %252, %253
  br i1 %254, label %260, label %255

255:                                              ; preds = %251
  store i32 12, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %334

256:                                              ; preds = %334, %240, %238
  %257 = landingpad { ptr, i32 }
          cleanup
  %258 = extractvalue { ptr, i32 } %257, 0
  store ptr %258, ptr %6, align 8
  %259 = extractvalue { ptr, i32 } %257, 1
  store i32 %259, ptr %7, align 4
  br label %339

260:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %261 = load ptr, ptr %26, align 8, !tbaa !5
  %262 = load i32, ptr %261, align 4, !tbaa !10
  store i32 %262, ptr %28, align 4, !tbaa !10
  %263 = load i32, ptr %28, align 4, !tbaa !10
  %264 = add nsw i32 %263, 1
  store i32 %264, ptr %28, align 4, !tbaa !10
  %265 = load ptr, ptr %4, align 8, !tbaa !5
  %266 = getelementptr inbounds %"struct.P3D::Graphics::ExtendedTriangleMesh", ptr %265, i32 0, i32 1
  %267 = call noundef zeroext i1 @_ZStneIA_KN3P3D6VectorIfLm3EEEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %266, ptr null) #8
  br i1 %267, label %268, label %292

268:                                              ; preds = %260
  %269 = load ptr, ptr %4, align 8, !tbaa !5
  %270 = getelementptr inbounds %"struct.P3D::Graphics::ExtendedTriangleMesh", ptr %269, i32 0, i32 2
  %271 = call noundef zeroext i1 @_ZStneIA_KN3P3D6VectorIfLm2EEEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %270, ptr null) #8
  br i1 %271, label %272, label %292

272:                                              ; preds = %268
  %273 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef @.str)
          to label %274 unwind label %288

274:                                              ; preds = %272
  %275 = load i32, ptr %28, align 4, !tbaa !10
  %276 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %273, i32 noundef %275)
          to label %277 unwind label %288

277:                                              ; preds = %274
  %278 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %276, ptr noundef @.str.5)
          to label %279 unwind label %288

279:                                              ; preds = %277
  %280 = load i32, ptr %28, align 4, !tbaa !10
  %281 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %278, i32 noundef %280)
          to label %282 unwind label %288

282:                                              ; preds = %279
  %283 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %281, ptr noundef @.str.5)
          to label %284 unwind label %288

284:                                              ; preds = %282
  %285 = load i32, ptr %28, align 4, !tbaa !10
  %286 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %283, i32 noundef %285)
          to label %287 unwind label %288

287:                                              ; preds = %284
  br label %330

288:                                              ; preds = %324, %322, %318, %316, %313, %311, %303, %301, %298, %296, %284, %282, %279, %277, %274, %272
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %6, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %339

292:                                              ; preds = %268, %260
  %293 = load ptr, ptr %4, align 8, !tbaa !5
  %294 = getelementptr inbounds %"struct.P3D::Graphics::ExtendedTriangleMesh", ptr %293, i32 0, i32 2
  %295 = call noundef zeroext i1 @_ZStneIA_KN3P3D6VectorIfLm2EEEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %294, ptr null) #8
  br i1 %295, label %296, label %307

296:                                              ; preds = %292
  %297 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef @.str)
          to label %298 unwind label %288

298:                                              ; preds = %296
  %299 = load i32, ptr %28, align 4, !tbaa !10
  %300 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %297, i32 noundef %299)
          to label %301 unwind label %288

301:                                              ; preds = %298
  %302 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %300, ptr noundef @.str.6)
          to label %303 unwind label %288

303:                                              ; preds = %301
  %304 = load i32, ptr %28, align 4, !tbaa !10
  %305 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %302, i32 noundef %304)
          to label %306 unwind label %288

306:                                              ; preds = %303
  br label %329

307:                                              ; preds = %292
  %308 = load ptr, ptr %4, align 8, !tbaa !5
  %309 = getelementptr inbounds %"struct.P3D::Graphics::ExtendedTriangleMesh", ptr %308, i32 0, i32 1
  %310 = call noundef zeroext i1 @_ZStneIA_KN3P3D6VectorIfLm3EEEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %309, ptr null) #8
  br i1 %310, label %311, label %322

311:                                              ; preds = %307
  %312 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef @.str)
          to label %313 unwind label %288

313:                                              ; preds = %311
  %314 = load i32, ptr %28, align 4, !tbaa !10
  %315 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %312, i32 noundef %314)
          to label %316 unwind label %288

316:                                              ; preds = %313
  %317 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %315, ptr noundef @.str.5)
          to label %318 unwind label %288

318:                                              ; preds = %316
  %319 = load i32, ptr %28, align 4, !tbaa !10
  %320 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %317, i32 noundef %319)
          to label %321 unwind label %288

321:                                              ; preds = %318
  br label %328

322:                                              ; preds = %307
  %323 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef @.str)
          to label %324 unwind label %288

324:                                              ; preds = %322
  %325 = load i32, ptr %28, align 4, !tbaa !10
  %326 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %323, i32 noundef %325)
          to label %327 unwind label %288

327:                                              ; preds = %324
  br label %328

328:                                              ; preds = %327, %321
  br label %329

329:                                              ; preds = %328, %306
  br label %330

330:                                              ; preds = %329, %287
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %331

331:                                              ; preds = %330
  %332 = load ptr, ptr %26, align 8, !tbaa !5
  %333 = getelementptr inbounds i32, ptr %332, i32 1
  store ptr %333, ptr %26, align 8, !tbaa !5
  br label %251

334:                                              ; preds = %255
  %335 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %336 unwind label %256

336:                                              ; preds = %334
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #8
  br label %337

337:                                              ; preds = %336
  invoke void @_ZN3P3D17ShapeTriangleIterppEv(ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %338 unwind label %234

338:                                              ; preds = %337
  br label %222

339:                                              ; preds = %288, %256
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #8
  br label %340

340:                                              ; preds = %339, %234
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  br label %341

341:                                              ; preds = %340, %230
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #8
  br label %342

342:                                              ; preds = %341, %226
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %345

343:                                              ; preds = %225
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %5)
          to label %344 unwind label %52

344:                                              ; preds = %343
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %5) #8
  call void @llvm.lifetime.end.p0(i64 512, ptr %5) #8
  ret void

345:                                              ; preds = %342, %200, %150, %104, %52
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %5) #8
  call void @llvm.lifetime.end.p0(i64 512, ptr %5) #8
  br label %346

346:                                              ; preds = %345
  %347 = load ptr, ptr %6, align 8
  %348 = load i32, ptr %7, align 4
  %349 = insertvalue { ptr, i32 } poison, ptr %347, 0
  %350 = insertvalue { ptr, i32 } %349, i32 %348, 1
  resume { ptr, i32 } %350
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK3P3D6VectorIfLm3EEcvNS0_IT_Lm3EEEIdEEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 4 dereferenceable(12)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK3P3D6VectorIfLm2EEcvNS0_IT_Lm2EEEIdEEv(ptr noundef nonnull align 4 dereferenceable(8)) #5 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

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"="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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 16}
!13 = !{!"_ZTSN3P3D13MeshPrototypeE", !14, i64 0, !15, i64 8, !11, i64 16, !11, i64 20}
!14 = !{!"_ZTSN3P3D20UniqueAlignedPointerIfEE", !6, i64 0}
!15 = !{!"_ZTSN3P3D20UniqueAlignedPointerIiEE", !6, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !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.P3D::IteratorFactory" = type { %"struct.P3D::ShapeVertexIter", %"struct.P3D::ShapeVertexIter" }
%"struct.P3D::ShapeVertexIter" = type { ptr, i64 }
%"class.P3D::IteratorFactory.15" = type { %"struct.P3D::ShapeTriangleIter", %"struct.P3D::ShapeTriangleIter" }
%"struct.P3D::ShapeTriangleIter" = type { ptr, i64 }
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"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.4 }
%union.anon.4 = 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 }
%"struct.P3D::Vector" = type { %union.anon.0 }
%union.anon.0 = type { [3 x double] }
%"struct.P3D::Vector.9" = type { %union.anon.10 }
%union.anon.10 = type { [3 x float] }
%"struct.P3D::Vector.12" = type { %union.anon.13 }
%union.anon.13 = type { [2 x float] }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 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 uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN4Util16warnIfFileExistsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #2 align 2

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

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

declare void @_ZNK3P3D12TriangleMesh12iterVerticesEv(ptr dead_on_unwind writable sret(%"class.P3D::IteratorFactory") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZNK3P3D15IteratorFactoryINS_15ShapeVertexIterES1_E5beginEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZNK3P3D15IteratorFactoryINS_15ShapeVertexIterES1_E3endEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK3P3D15ShapeVertexIterdeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

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

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

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

declare void @_ZNK3P3D12TriangleMesh13iterTrianglesEv(ptr dead_on_unwind writable sret(%"class.P3D::IteratorFactory.15") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZNK3P3D15IteratorFactoryINS_17ShapeTriangleIterES1_E5beginEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZNK3P3D15IteratorFactoryINS_17ShapeTriangleIterES1_E3endEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i64, i32 } @_ZNK3P3D17ShapeTriangleIterdeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D16saveNonBinaryObjERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_8Graphics20ExtendedTriangleMeshE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(88) %1) local_unnamed_addr #6 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::basic_ofstream", align 8
  %4 = alloca %"class.P3D::IteratorFactory", align 8
  %5 = alloca %"struct.P3D::ShapeVertexIter", align 8
  %6 = alloca %"struct.P3D::ShapeVertexIter", align 8
  %7 = alloca %"struct.P3D::Vector", align 8
  %8 = alloca %"class.P3D::IteratorFactory.15", align 8
  %9 = alloca %"struct.P3D::ShapeTriangleIter", align 8
  %10 = alloca %"struct.P3D::ShapeTriangleIter", align 8
  tail call void @_ZN4Util16warnIfFileExistsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %3) #7
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248) %3)
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %3, ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef 16)
          to label %11 unwind label %29

11:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #7
  invoke void @_ZNK3P3D12TriangleMesh12iterVerticesEv(ptr dead_on_unwind nonnull writable sret(%"class.P3D::IteratorFactory") align 8 %4, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %12 unwind label %31

12:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  %13 = call { ptr, i64 } @_ZNK3P3D15IteratorFactoryINS_15ShapeVertexIterES1_E5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
  %14 = extractvalue { ptr, i64 } %13, 0
  store ptr %14, ptr %5, align 8
  %15 = getelementptr inbounds i8, ptr %5, i64 8
  %16 = extractvalue { ptr, i64 } %13, 1
  store i64 %16, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  %17 = call { ptr, i64 } @_ZNK3P3D15IteratorFactoryINS_15ShapeVertexIterES1_E3endEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
  %18 = extractvalue { ptr, i64 } %17, 0
  store ptr %18, ptr %6, align 8
  %19 = getelementptr inbounds i8, ptr %6, i64 8
  %20 = extractvalue { ptr, i64 } %17, 1
  store i64 %20, ptr %19, align 8
  %21 = call noundef zeroext i1 @_ZNK3P3D15ShapeVertexIterneERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %6)
  br i1 %21, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %47, %12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #7
  %22 = getelementptr inbounds i8, ptr %1, i64 24
  %23 = call noundef zeroext i1 @_ZStneIA_KN3P3D6VectorIfLm3EEEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr null) #7
  br i1 %23, label %.preheader59, label %.loopexit60

.preheader59:                                     ; preds = %._crit_edge
  %24 = getelementptr inbounds i8, ptr %1, i64 16
  %25 = load i32, ptr %24, align 8, !tbaa !5
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %.lr.ph62, label %.loopexit60

.lr.ph62:                                         ; preds = %.preheader59
  %27 = getelementptr inbounds i8, ptr %7, i64 8
  %28 = getelementptr inbounds i8, ptr %7, i64 16
  br label %51

29:                                               ; preds = %._crit_edge68, %2
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %197

31:                                               ; preds = %11
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %197

.lr.ph:                                           ; preds = %12, %47
  %33 = call { <2 x float>, float } @_ZNK3P3D15ShapeVertexIterdeEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %.fca.0.extract23 = extractvalue { <2 x float>, float } %33, 0
  %.fca.1.extract24 = extractvalue { <2 x float>, float } %33, 1
  %34 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull @.str.1)
          to label %35 unwind label %49

35:                                               ; preds = %.lr.ph
  %.sroa.027.0.vec.extract = extractelement <2 x float> %.fca.0.extract23, i64 0
  %36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %34, float noundef %.sroa.027.0.vec.extract)
          to label %37 unwind label %49

37:                                               ; preds = %35
  %38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull @.str)
          to label %39 unwind label %49

39:                                               ; preds = %37
  %.sroa.027.4.vec.extract = extractelement <2 x float> %.fca.0.extract23, i64 1
  %40 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %38, float noundef %.sroa.027.4.vec.extract)
          to label %41 unwind label %49

41:                                               ; preds = %39
  %42 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull @.str)
          to label %43 unwind label %49

43:                                               ; preds = %41
  %44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %42, float noundef %.fca.1.extract24)
          to label %45 unwind label %49

45:                                               ; preds = %43
  %46 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %47 unwind label %49

47:                                               ; preds = %45
  call void @_ZN3P3D15ShapeVertexIterppEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %48 = call noundef zeroext i1 @_ZNK3P3D15ShapeVertexIterneERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %6)
  br i1 %48, label %.lr.ph, label %._crit_edge

49:                                               ; preds = %45, %43, %41, %39, %37, %35, %.lr.ph
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #7
  br label %197

51:                                               ; preds = %.lr.ph62, %70
  %indvars.iv = phi i64 [ 0, %.lr.ph62 ], [ %indvars.iv.next, %70 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  %52 = call noundef ptr @_ZNKSt12__shared_ptrIA_KN3P3D6VectorIfLm3EEELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %22) #7
  %53 = getelementptr inbounds %"struct.P3D::Vector.9", ptr %52, i64 %indvars.iv
  call void @_ZNK3P3D6VectorIfLm3EEcvNS0_IT_Lm3EEEIdEEv(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %7, ptr noundef nonnull align 4 dereferenceable(12) %53) #7
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull @.str.2)
          to label %55 unwind label %74

55:                                               ; preds = %51
  %56 = load double, ptr %7, align 8, !tbaa !13
  %57 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %54, double noundef %56)
          to label %58 unwind label %74

58:                                               ; preds = %55
  %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)
          to label %60 unwind label %74

60:                                               ; preds = %58
  %61 = load double, ptr %27, align 8, !tbaa !13
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %59, double noundef %61)
          to label %63 unwind label %74

63:                                               ; preds = %60
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull @.str)
          to label %65 unwind label %74

65:                                               ; preds = %63
  %66 = load double, ptr %28, align 8, !tbaa !13
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %64, double noundef %66)
          to label %68 unwind label %74

68:                                               ; preds = %65
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %70 unwind label %74

70:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %71 = load i32, ptr %24, align 8, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = icmp slt i64 %indvars.iv.next, %72
  br i1 %73, label %51, label %.loopexit60, !llvm.loop !14

74:                                               ; preds = %68, %65, %63, %60, %58, %55, %51
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  br label %197

.loopexit60:                                      ; preds = %70, %.preheader59, %._crit_edge
  %76 = getelementptr inbounds i8, ptr %1, i64 40
  %77 = call noundef zeroext i1 @_ZStneIA_KN3P3D6VectorIfLm2EEEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %76, ptr null) #7
  br i1 %77, label %.preheader58, label %.loopexit

.preheader58:                                     ; preds = %.loopexit60
  %78 = getelementptr inbounds i8, ptr %1, i64 16
  %79 = load i32, ptr %78, align 8, !tbaa !5
  %80 = icmp sgt i32 %79, 0
  br i1 %80, label %.lr.ph64, label %.loopexit

.lr.ph64:                                         ; preds = %.preheader58, %95
  %indvars.iv70 = phi i64 [ %indvars.iv.next71, %95 ], [ 0, %.preheader58 ]
  %81 = call noundef ptr @_ZNKSt12__shared_ptrIA_KN3P3D6VectorIfLm2EEELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %76) #7
  %82 = getelementptr inbounds %"struct.P3D::Vector.12", ptr %81, i64 %indvars.iv70
  %83 = call { double, double } @_ZNK3P3D6VectorIfLm2EEcvNS0_IT_Lm2EEEIdEEv(ptr noundef nonnull align 4 dereferenceable(8) %82) #7
  %84 = extractvalue { double, double } %83, 1
  %85 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull @.str.3)
          to label %86 unwind label %99

86:                                               ; preds = %.lr.ph64
  %87 = extractvalue { double, double } %83, 0
  %88 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %85, double noundef %87)
          to label %89 unwind label %99

89:                                               ; preds = %86
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef nonnull @.str)
          to label %91 unwind label %99

91:                                               ; preds = %89
  %92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %90, double noundef %84)
          to label %93 unwind label %99

93:                                               ; preds = %91
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %95 unwind label %99

95:                                               ; preds = %93
  %indvars.iv.next71 = add nuw nsw i64 %indvars.iv70, 1
  %96 = load i32, ptr %78, align 8, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = icmp slt i64 %indvars.iv.next71, %97
  br i1 %98, label %.lr.ph64, label %.loopexit, !llvm.loop !16

99:                                               ; preds = %93, %91, %89, %86, %.lr.ph64
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %197

.loopexit:                                        ; preds = %95, %.preheader58, %.loopexit60
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  invoke void @_ZNK3P3D12TriangleMesh13iterTrianglesEv(ptr dead_on_unwind nonnull writable sret(%"class.P3D::IteratorFactory.15") align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %101 unwind label %111

101:                                              ; preds = %.loopexit
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  %102 = call { ptr, i64 } @_ZNK3P3D15IteratorFactoryINS_17ShapeTriangleIterES1_E5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  %103 = extractvalue { ptr, i64 } %102, 0
  store ptr %103, ptr %9, align 8
  %104 = getelementptr inbounds i8, ptr %9, i64 8
  %105 = extractvalue { ptr, i64 } %102, 1
  store i64 %105, ptr %104, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  %106 = call { ptr, i64 } @_ZNK3P3D15IteratorFactoryINS_17ShapeTriangleIterES1_E3endEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  %107 = extractvalue { ptr, i64 } %106, 0
  store ptr %107, ptr %10, align 8
  %108 = getelementptr inbounds i8, ptr %10, i64 8
  %109 = extractvalue { ptr, i64 } %106, 1
  store i64 %109, ptr %108, align 8
  %110 = call noundef zeroext i1 @_ZNK3P3D17ShapeTriangleIterneERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %10)
  br i1 %110, label %.lr.ph67, label %._crit_edge68

._crit_edge68:                                    ; preds = %193, %101
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %3)
          to label %196 unwind label %29

111:                                              ; preds = %.loopexit
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %197

.lr.ph67:                                         ; preds = %101, %193
  %113 = call { i64, i32 } @_ZNK3P3D17ShapeTriangleIterdeEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
  %.fca.0.extract = extractvalue { i64, i32 } %113, 0
  %.fca.1.extract = extractvalue { i64, i32 } %113, 1
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull @.str.4)
          to label %.preheader.preheader unwind label %117

.preheader.preheader:                             ; preds = %.lr.ph67
  %.sroa.0.0.extract.trunc = trunc i64 %.fca.0.extract to i32
  %115 = add nsw i32 %.sroa.0.0.extract.trunc, 1
  %116 = call noundef zeroext i1 @_ZStneIA_KN3P3D6VectorIfLm3EEEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr null) #7
  br i1 %116, label %119, label %127

117:                                              ; preds = %191, %.lr.ph67
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %195

119:                                              ; preds = %.preheader.preheader
  %120 = call noundef zeroext i1 @_ZStneIA_KN3P3D6VectorIfLm2EEEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %76, ptr null) #7
  br i1 %120, label %121, label %127

121:                                              ; preds = %119
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull @.str)
          to label %123 unwind label %125

123:                                              ; preds = %121
  %124 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %122, i32 noundef %115)
          to label %.invoke83 unwind label %125

125:                                              ; preds = %.invoke83, %.invoke82, %.invoke81, %.invoke80, %.invoke79, %.invoke78, %.invoke77, %.invoke76, %.invoke75, %.invoke74, %.invoke73, %.invoke, %181, %179, %177, %175, %157, %155, %153, %151, %131, %129, %123, %121
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %195

127:                                              ; preds = %119, %.preheader.preheader
  %128 = call noundef zeroext i1 @_ZStneIA_KN3P3D6VectorIfLm2EEEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %76, ptr null) #7
  br i1 %128, label %129, label %133

129:                                              ; preds = %127
  %130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull @.str)
          to label %131 unwind label %125

131:                                              ; preds = %129
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %130, i32 noundef %115)
          to label %.invoke77 unwind label %125

133:                                              ; preds = %127
  %134 = call noundef zeroext i1 @_ZStneIA_KN3P3D6VectorIfLm3EEEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr null) #7
  br i1 %134, label %.invoke83, label %.invoke77

.invoke83:                                        ; preds = %123, %133
  %135 = phi ptr [ %3, %133 ], [ %124, %123 ]
  %136 = phi ptr [ @.str, %133 ], [ @.str.5, %123 ]
  %137 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %135, ptr noundef nonnull %136)
          to label %.invoke80 unwind label %125

.invoke80:                                        ; preds = %.invoke83
  %138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %137, i32 noundef %115)
          to label %.invoke77 unwind label %125

.invoke77:                                        ; preds = %.invoke80, %133, %131
  %139 = phi ptr [ %132, %131 ], [ %3, %133 ], [ %138, %.invoke80 ]
  %140 = phi ptr [ @.str.6, %131 ], [ @.str, %133 ], [ @.str.5, %.invoke80 ]
  %141 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %139, ptr noundef nonnull %140)
          to label %.invoke74 unwind label %125

.invoke74:                                        ; preds = %.invoke77
  %142 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %141, i32 noundef %115)
          to label %.preheader.1 unwind label %125

.preheader.1:                                     ; preds = %.invoke74
  %.sroa.0.4.extract.shift = lshr i64 %.fca.0.extract, 32
  %.sroa.0.4.extract.trunc = trunc nuw i64 %.sroa.0.4.extract.shift to i32
  %143 = add nsw i32 %.sroa.0.4.extract.trunc, 1
  %144 = call noundef zeroext i1 @_ZStneIA_KN3P3D6VectorIfLm3EEEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr null) #7
  br i1 %144, label %145, label %147

145:                                              ; preds = %.preheader.1
  %146 = call noundef zeroext i1 @_ZStneIA_KN3P3D6VectorIfLm2EEEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %76, ptr null) #7
  br i1 %146, label %155, label %147

147:                                              ; preds = %145, %.preheader.1
  %148 = call noundef zeroext i1 @_ZStneIA_KN3P3D6VectorIfLm2EEEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %76, ptr null) #7
  br i1 %148, label %151, label %149

149:                                              ; preds = %147
  %150 = call noundef zeroext i1 @_ZStneIA_KN3P3D6VectorIfLm3EEEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr null) #7
  br i1 %150, label %.invoke82, label %.invoke76

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

153:                                              ; preds = %151
  %154 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %152, i32 noundef %143)
          to label %.invoke76 unwind label %125

155:                                              ; preds = %145
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull @.str)
          to label %157 unwind label %125

157:                                              ; preds = %155
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %156, i32 noundef %143)
          to label %.invoke82 unwind label %125

.invoke82:                                        ; preds = %157, %149
  %159 = phi ptr [ %3, %149 ], [ %158, %157 ]
  %160 = phi ptr [ @.str, %149 ], [ @.str.5, %157 ]
  %161 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %159, ptr noundef nonnull %160)
          to label %.invoke79 unwind label %125

.invoke79:                                        ; preds = %.invoke82
  %162 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %161, i32 noundef %143)
          to label %.invoke76 unwind label %125

.invoke76:                                        ; preds = %.invoke79, %153, %149
  %163 = phi ptr [ %3, %149 ], [ %154, %153 ], [ %162, %.invoke79 ]
  %164 = phi ptr [ @.str, %149 ], [ @.str.6, %153 ], [ @.str.5, %.invoke79 ]
  %165 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %163, ptr noundef nonnull %164)
          to label %.invoke73 unwind label %125

.invoke73:                                        ; preds = %.invoke76
  %166 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %165, i32 noundef %143)
          to label %.preheader.2 unwind label %125

.preheader.2:                                     ; preds = %.invoke73
  %167 = add nsw i32 %.fca.1.extract, 1
  %168 = call noundef zeroext i1 @_ZStneIA_KN3P3D6VectorIfLm3EEEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr null) #7
  br i1 %168, label %169, label %171

169:                                              ; preds = %.preheader.2
  %170 = call noundef zeroext i1 @_ZStneIA_KN3P3D6VectorIfLm2EEEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %76, ptr null) #7
  br i1 %170, label %179, label %171

171:                                              ; preds = %169, %.preheader.2
  %172 = call noundef zeroext i1 @_ZStneIA_KN3P3D6VectorIfLm2EEEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %76, ptr null) #7
  br i1 %172, label %175, label %173

173:                                              ; preds = %171
  %174 = call noundef zeroext i1 @_ZStneIA_KN3P3D6VectorIfLm3EEEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr null) #7
  br i1 %174, label %.invoke81, label %.invoke75

175:                                              ; preds = %171
  %176 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull @.str)
          to label %177 unwind label %125

177:                                              ; preds = %175
  %178 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %176, i32 noundef %167)
          to label %.invoke75 unwind label %125

179:                                              ; preds = %169
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull @.str)
          to label %181 unwind label %125

181:                                              ; preds = %179
  %182 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %180, i32 noundef %167)
          to label %.invoke81 unwind label %125

.invoke81:                                        ; preds = %181, %173
  %183 = phi ptr [ %3, %173 ], [ %182, %181 ]
  %184 = phi ptr [ @.str, %173 ], [ @.str.5, %181 ]
  %185 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %183, ptr noundef nonnull %184)
          to label %.invoke78 unwind label %125

.invoke78:                                        ; preds = %.invoke81
  %186 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %185, i32 noundef %167)
          to label %.invoke75 unwind label %125

.invoke75:                                        ; preds = %.invoke78, %177, %173
  %187 = phi ptr [ %3, %173 ], [ %178, %177 ], [ %186, %.invoke78 ]
  %188 = phi ptr [ @.str, %173 ], [ @.str.6, %177 ], [ @.str.5, %.invoke78 ]
  %189 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %187, ptr noundef nonnull %188)
          to label %.invoke unwind label %125

.invoke:                                          ; preds = %.invoke75
  %190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %189, i32 noundef %167)
          to label %191 unwind label %125

191:                                              ; preds = %.invoke
  %192 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %193 unwind label %117

193:                                              ; preds = %191
  call void @_ZN3P3D17ShapeTriangleIterppEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
  %194 = call noundef zeroext i1 @_ZNK3P3D17ShapeTriangleIterneERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %10)
  br i1 %194, label %.lr.ph67, label %._crit_edge68

195:                                              ; preds = %125, %117
  %.pn = phi { ptr, i32 } [ %126, %125 ], [ %118, %117 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %197

196:                                              ; preds = %._crit_edge68
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %3) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %3) #7
  ret void

197:                                              ; preds = %111, %195, %31, %49, %99, %74, %29
  %.pn55.pn = phi { ptr, i32 } [ %75, %74 ], [ %100, %99 ], [ %30, %29 ], [ %50, %49 ], [ %32, %31 ], [ %.pn, %195 ], [ %112, %111 ]
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %3) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn55.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK3P3D6VectorIfLm3EEcvNS0_IT_Lm3EEEIdEEv(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK3P3D6VectorIfLm2EEcvNS0_IT_Lm2EEEIdEEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #5 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

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"="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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !12, i64 16}
!6 = !{!"_ZTSN3P3D13MeshPrototypeE", !7, i64 0, !11, i64 8, !12, i64 16, !12, i64 20}
!7 = !{!"_ZTSN3P3D20UniqueAlignedPointerIfEE", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN3P3D20UniqueAlignedPointerIiEE", !8, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!9, !9, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass