; LLVM IR from vectozavr/3dzavr :: engine/objects/Camera.ll (ZN6Camera7projectERK12TriangleMesh)

; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<Triangle, Triangle>, std::allocator<std::pair<Triangle, Triangle>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<Triangle, Triangle>, std::allocator<std::pair<Triangle, Triangle>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<Triangle, Triangle>, std::allocator<std::pair<Triangle, Triangle>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<Triangle, Triangle>, std::allocator<std::pair<Triangle, Triangle>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Matrix4x4 = type { %"struct.std::array.24" }
%"struct.std::array.24" = type { [4 x %"struct.std::array.25"] }
%"struct.std::array.25" = type { [4 x double] }
%"class.std::shared_ptr.26" = type { %"class.std::__shared_ptr.27" }
%"class.std::__shared_ptr.27" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%struct.Bounds = type { %class.Vec3D, %class.Vec3D }
%class.Vec3D = type { %"struct.std::array.37" }
%"struct.std::array.37" = type { [3 x double] }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.38" = type { ptr }
%class.Triangle = type { %"struct.std::array.39", %"struct.std::array.40", %class.Vec3D }
%"struct.std::array.39" = type { [3 x %class.Vec4D] }
%class.Vec4D = type { %"struct.std::array.25" }
%"struct.std::array.40" = type { [3 x %class.Vec3D] }
%"class.__gnu_cxx::__normal_iterator.41" = type { ptr }
%class.Camera = type { %class.Object, %"class.std::vector.14", double, double, double, i8, double, %"class.std::vector.19", %"class.std::vector.19", %class.Matrix4x4, %"class.std::shared_ptr.26" }
%class.Object = type { ptr, %"class.std::enable_shared_from_this", %class.ObjectTag, ptr, double, double, %"class.std::map", %"class.std::vector.9" }
%"class.std::enable_shared_from_this" = type { %"class.std::weak_ptr" }
%"class.std::weak_ptr" = type { %"class.std::__weak_ptr" }
%"class.std::__weak_ptr" = type { ptr, %"class.std::__weak_count" }
%"class.std::__weak_count" = type { ptr }
%class.ObjectTag = type { %"class.std::__cxx11::basic_string" }
%"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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<ObjectTag, std::pair<const ObjectTag, std::shared_ptr<Object>>, std::_Select1st<std::pair<const ObjectTag, std::shared_ptr<Object>>>, std::less<ObjectTag>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<ObjectTag, std::pair<const ObjectTag, std::shared_ptr<Object>>, std::_Select1st<std::pair<const ObjectTag, std::shared_ptr<Object>>>, std::less<ObjectTag>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<std::shared_ptr<Component>, std::allocator<std::shared_ptr<Component>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<Component>, std::allocator<std::shared_ptr<Component>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<Component>, std::allocator<std::shared_ptr<Component>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<Component>, std::allocator<std::shared_ptr<Component>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = type { %"struct.std::_Vector_base<Plane, std::allocator<Plane>>::_Vector_impl" }
%"struct.std::_Vector_base<Plane, std::allocator<Plane>>::_Vector_impl" = type { %"struct.std::_Vector_base<Plane, std::allocator<Plane>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Plane, std::allocator<Plane>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = type { %"struct.std::_Vector_base<std::pair<Vec3D, Vec3D>, std::allocator<std::pair<Vec3D, Vec3D>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<Vec3D, Vec3D>, std::allocator<std::pair<Vec3D, Vec3D>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<Vec3D, Vec3D>, std::allocator<std::pair<Vec3D, Vec3D>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<Vec3D, Vec3D>, std::allocator<std::pair<Vec3D, Vec3D>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Plane = type { %class.Vec3D, double }
%"struct.std::pair" = type { %class.Vec3D, %class.Vec3D }

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Camera7projectERK12TriangleMesh(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(408) %1, ptr noundef nonnull align 8 dereferenceable(121) %2) #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i1, align 1
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %class.Matrix4x4, align 8
  %12 = alloca %class.Matrix4x4, align 8
  %13 = alloca %class.Matrix4x4, align 8
  %14 = alloca %"class.std::shared_ptr.26", align 8
  %15 = alloca %class.Matrix4x4, align 8
  %16 = alloca %struct.Bounds, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca ptr, align 8
  %21 = alloca double, align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.38", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.38", align 8
  %25 = alloca ptr, align 8
  %26 = alloca %class.Triangle, align 8
  %27 = alloca double, align 8
  %28 = alloca %class.Vec3D, align 8
  %29 = alloca %class.Vec3D, align 8
  %30 = alloca %class.Vec3D, align 8
  %31 = alloca %class.Vec3D, align 8
  %32 = alloca %class.Vec3D, align 8
  %33 = alloca ptr, align 8
  %34 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca %"class.__gnu_cxx::__normal_iterator.41", align 8
  %39 = alloca %"class.__gnu_cxx::__normal_iterator.41", align 8
  %40 = alloca ptr, align 8
  %41 = alloca %class.Vec4D, align 8
  %42 = alloca %class.Vec4D, align 8
  %43 = alloca %class.Vec3D, align 8
  %44 = alloca %class.Vec3D, align 8
  %45 = alloca i64, align 8
  %46 = alloca %class.Triangle, align 8
  %47 = alloca %"struct.std::array.39", align 8
  %48 = alloca %"struct.std::array.40", align 8
  %49 = alloca %class.Triangle, align 8
  %50 = alloca %"struct.std::array.39", align 8
  %51 = alloca %class.Vec4D, align 8
  %52 = alloca %class.Vec4D, align 8
  %53 = alloca %class.Vec4D, align 8
  %54 = alloca %"struct.std::array.40", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %55 = load ptr, ptr %5, align 8
  store i1 false, ptr %7, align 1
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorISt4pairI8TriangleS1_ESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  %56 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 5
  %57 = load i8, ptr %56, align 8, !tbaa !9, !range !47, !noundef !48
  %58 = trunc i8 %57 to i1
  br i1 %58, label %65, label %59

59:                                               ; preds = %3
  invoke void @_ZN6Camera4initEiiddd(ptr noundef nonnull align 8 dereferenceable(408) %55, i32 noundef 640, i32 noundef 480, double noundef 9.000000e+01, double noundef 1.000000e-01, double noundef 5.000000e+03)
          to label %60 unwind label %61

60:                                               ; preds = %59
  br label %65

61:                                               ; preds = %65, %59
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %8, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %9, align 4
  br label %489

65:                                               ; preds = %60, %3
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = invoke noundef zeroext i1 @_ZNK12TriangleMesh9isVisibleEv(ptr noundef nonnull align 8 dereferenceable(121) %66)
          to label %68 unwind label %61

68:                                               ; preds = %65
  br i1 %67, label %70, label %69

69:                                               ; preds = %68
  store i1 true, ptr %7, align 1
  store i32 1, ptr %10, align 4
  br label %485

70:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 128, ptr %11) #9
  call void @llvm.lifetime.start.p0(i64 128, ptr %12) #9
  %71 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 10
  %72 = call noundef ptr @_ZNKSt19__shared_ptr_accessI15TransformMatrixLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %71) #9
  invoke void @_ZNK15TransformMatrix12fullInvModelEv(ptr dead_on_unwind writable sret(%class.Matrix4x4) align 8 %12, ptr noundef nonnull align 8 dereferenceable(192) %72)
          to label %73 unwind label %96

73:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 128, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #9
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK9Component12getComponentI15TransformMatrixEESt10shared_ptrIT_Ev(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.26") align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %74)
          to label %75 unwind label %100

75:                                               ; preds = %73
  %76 = call noundef ptr @_ZNKSt19__shared_ptr_accessI15TransformMatrixLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %14) #9
  invoke void @_ZNK15TransformMatrix9fullModelEv(ptr dead_on_unwind writable sret(%class.Matrix4x4) align 8 %13, ptr noundef nonnull align 8 dereferenceable(192) %76)
          to label %77 unwind label %104

77:                                               ; preds = %75
  invoke void @_ZNK9Matrix4x4mlERKS_(ptr dead_on_unwind writable sret(%class.Matrix4x4) align 8 %11, ptr noundef nonnull align 8 dereferenceable(128) %12, ptr noundef nonnull align 8 dereferenceable(128) %13)
          to label %78 unwind label %104

78:                                               ; preds = %77
  call void @_ZNSt12__shared_ptrI15TransformMatrixLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 128, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 128, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 128, ptr %15) #9
  %79 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 10
  %80 = call noundef ptr @_ZNKSt19__shared_ptr_accessI15TransformMatrixLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %79) #9
  invoke void @_ZNK15TransformMatrix9fullModelEv(ptr dead_on_unwind writable sret(%class.Matrix4x4) align 8 %15, ptr noundef nonnull align 8 dereferenceable(192) %80)
          to label %81 unwind label %110

81:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 48, ptr %16) #9
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNK12TriangleMesh6boundsEv(ptr noundef nonnull align 8 dereferenceable(121) %82)
          to label %84 unwind label %114

84:                                               ; preds = %81
  invoke void @_ZNK6BoundsmlERK9Matrix4x4(ptr dead_on_unwind writable sret(%struct.Bounds) align 8 %16, ptr noundef nonnull align 8 dereferenceable(48) %83, ptr noundef nonnull align 8 dereferenceable(128) %11)
          to label %85 unwind label %114

85:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %86 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 1
  store ptr %86, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %87 = load ptr, ptr %17, align 8, !tbaa !5
  %88 = call ptr @_ZNSt6vectorI5PlaneSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #9
  %89 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %88, ptr %89, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %90 = load ptr, ptr %17, align 8, !tbaa !5
  %91 = call ptr @_ZNSt6vectorI5PlaneSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %90) #9
  %92 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %91, ptr %92, align 8
  br label %93

93:                                               ; preds = %175, %85
  %94 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP5PlaneSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  br i1 %94, label %118, label %95

95:                                               ; preds = %93
  store i32 2, ptr %10, align 4
  br label %177

96:                                               ; preds = %70
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %8, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %9, align 4
  br label %109

100:                                              ; preds = %73
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %8, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %9, align 4
  br label %108

104:                                              ; preds = %77, %75
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %8, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %9, align 4
  call void @_ZNSt12__shared_ptrI15TransformMatrixLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #9
  br label %108

108:                                              ; preds = %104, %100
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 128, ptr %13) #9
  br label %109

109:                                              ; preds = %108, %96
  call void @llvm.lifetime.end.p0(i64 128, ptr %12) #9
  br label %484

110:                                              ; preds = %78
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %8, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %9, align 4
  br label %483

114:                                              ; preds = %84, %81
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %8, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %9, align 4
  br label %482

118:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %119 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP5PlaneSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #9
  store ptr %119, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %120 = getelementptr inbounds %struct.Bounds, ptr %16, i32 0, i32 1
  %121 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Vec3D1xEv(ptr noundef nonnull align 8 dereferenceable(24) %120)
          to label %122 unwind label %164

122:                                              ; preds = %118
  %123 = load double, ptr %121, align 8, !tbaa !49
  %124 = load ptr, ptr %20, align 8, !tbaa !5
  %125 = getelementptr inbounds %class.Plane, ptr %124, i32 0, i32 0
  %126 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Vec3D1xEv(ptr noundef nonnull align 8 dereferenceable(24) %125)
          to label %127 unwind label %164

127:                                              ; preds = %122
  %128 = load double, ptr %126, align 8, !tbaa !49
  %129 = invoke noundef double @_ZSt3absd(double noundef %128)
          to label %130 unwind label %164

130:                                              ; preds = %127
  %131 = getelementptr inbounds %struct.Bounds, ptr %16, i32 0, i32 1
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Vec3D1yEv(ptr noundef nonnull align 8 dereferenceable(24) %131)
          to label %133 unwind label %164

133:                                              ; preds = %130
  %134 = load double, ptr %132, align 8, !tbaa !49
  %135 = load ptr, ptr %20, align 8, !tbaa !5
  %136 = getelementptr inbounds %class.Plane, ptr %135, i32 0, i32 0
  %137 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Vec3D1yEv(ptr noundef nonnull align 8 dereferenceable(24) %136)
          to label %138 unwind label %164

138:                                              ; preds = %133
  %139 = load double, ptr %137, align 8, !tbaa !49
  %140 = invoke noundef double @_ZSt3absd(double noundef %139)
          to label %141 unwind label %164

141:                                              ; preds = %138
  %142 = fmul double %134, %140
  %143 = call double @llvm.fmuladd.f64(double %123, double %129, double %142)
  %144 = getelementptr inbounds %struct.Bounds, ptr %16, i32 0, i32 1
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Vec3D1zEv(ptr noundef nonnull align 8 dereferenceable(24) %144)
          to label %146 unwind label %164

146:                                              ; preds = %141
  %147 = load double, ptr %145, align 8, !tbaa !49
  %148 = load ptr, ptr %20, align 8, !tbaa !5
  %149 = getelementptr inbounds %class.Plane, ptr %148, i32 0, i32 0
  %150 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Vec3D1zEv(ptr noundef nonnull align 8 dereferenceable(24) %149)
          to label %151 unwind label %164

151:                                              ; preds = %146
  %152 = load double, ptr %150, align 8, !tbaa !49
  %153 = invoke noundef double @_ZSt3absd(double noundef %152)
          to label %154 unwind label %164

154:                                              ; preds = %151
  %155 = call double @llvm.fmuladd.f64(double %147, double %153, double %143)
  store double %155, ptr %21, align 8, !tbaa !49
  %156 = load ptr, ptr %20, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.Bounds, ptr %16, i32 0, i32 0
  %158 = invoke noundef double @_ZNK5Plane8distanceERK5Vec3D(ptr noundef nonnull align 8 dereferenceable(32) %156, ptr noundef nonnull align 8 dereferenceable(24) %157)
          to label %159 unwind label %164

159:                                              ; preds = %154
  %160 = load double, ptr %21, align 8, !tbaa !49
  %161 = fadd double %158, %160
  %162 = fcmp olt double %161, 0.000000e+00
  br i1 %162, label %163, label %168

163:                                              ; preds = %159
  store i1 true, ptr %7, align 1
  store i32 1, ptr %10, align 4
  br label %169

164:                                              ; preds = %154, %151, %146, %141, %138, %133, %130, %127, %122, %118
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %8, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  br label %482

168:                                              ; preds = %159
  store i32 0, ptr %10, align 4
  br label %169

169:                                              ; preds = %168, %163
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  %170 = load i32, ptr %10, align 4
  switch i32 %170, label %172 [
    i32 0, label %171
  ]

171:                                              ; preds = %169
  store i32 0, ptr %10, align 4
  br label %172

172:                                              ; preds = %171, %169
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  %173 = load i32, ptr %10, align 4
  switch i32 %173, label %177 [
    i32 0, label %174
  ]

174:                                              ; preds = %172
  br label %175

175:                                              ; preds = %174
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP5PlaneSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #9
  br label %93

177:                                              ; preds = %172, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  %178 = load i32, ptr %10, align 4
  switch i32 %178, label %481 [
    i32 2, label %179
  ]

179:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  %181 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK12TriangleMesh9trianglesEv(ptr noundef nonnull align 8 dereferenceable(121) %180)
          to label %182 unwind label %192

182:                                              ; preds = %179
  store ptr %181, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %183 = load ptr, ptr %22, align 8, !tbaa !5
  %184 = call ptr @_ZNKSt6vectorI8TriangleSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %183) #9
  %185 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.38", ptr %23, i32 0, i32 0
  store ptr %184, ptr %185, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %186 = load ptr, ptr %22, align 8, !tbaa !5
  %187 = call ptr @_ZNKSt6vectorI8TriangleSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %186) #9
  %188 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.38", ptr %24, i32 0, i32 0
  store ptr %187, ptr %188, align 8
  br label %189

189:                                              ; preds = %475, %182
  %190 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPK8TriangleSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #9
  br i1 %190, label %196, label %191

191:                                              ; preds = %189
  store i32 4, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  br label %480

192:                                              ; preds = %179
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %8, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %9, align 4
  br label %479

196:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %197 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPK8TriangleSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #9
  store ptr %197, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 192, ptr %26) #9
  %198 = load ptr, ptr %25, align 8, !tbaa !5
  invoke void @_ZNK8TrianglemlERK9Matrix4x4(ptr dead_on_unwind writable sret(%class.Triangle) align 8 %26, ptr noundef nonnull align 8 dereferenceable(192) %198, ptr noundef nonnull align 8 dereferenceable(128) %11)
          to label %199 unwind label %209

199:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #9
  invoke void @_ZNK8Triangle4normEv(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %28, ptr noundef nonnull align 8 dereferenceable(192) %26)
          to label %200 unwind label %213

200:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #9
  %201 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8TriangleixEi(ptr noundef nonnull align 8 dereferenceable(192) %26, i32 noundef 0)
          to label %202 unwind label %217

202:                                              ; preds = %200
  invoke void @_ZN5Vec3DC2ERK5Vec4D(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(32) %201)
          to label %203 unwind label %217

203:                                              ; preds = %202
  %204 = invoke noundef double @_ZNK5Vec3D3dotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %29)
          to label %205 unwind label %217

205:                                              ; preds = %203
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #9
  store double %204, ptr %27, align 8, !tbaa !49
  %206 = load double, ptr %27, align 8, !tbaa !49
  %207 = fcmp ogt double %206, 0.000000e+00
  br i1 %207, label %208, label %222

208:                                              ; preds = %205
  store i32 5, ptr %10, align 4
  br label %469

209:                                              ; preds = %196
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %8, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %9, align 4
  br label %478

213:                                              ; preds = %199
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %8, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %9, align 4
  br label %221

217:                                              ; preds = %203, %202, %200
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %8, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #9
  br label %221

221:                                              ; preds = %217, %213
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #9
  br label %477

222:                                              ; preds = %205
  %223 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #9
  %224 = invoke noundef nonnull align 8 dereferenceable(96) ptr @_ZNK8Triangle6pointsEv(ptr noundef nonnull align 8 dereferenceable(192) %26)
          to label %225 unwind label %263

225:                                              ; preds = %222
  %226 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt5arrayI5Vec4DLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(96) %224, i64 noundef 0) #9
  invoke void @_ZN5Vec3DC2ERK5Vec4D(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(32) %226)
          to label %227 unwind label %263

227:                                              ; preds = %225
  %228 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZNK8Triangle18textureCoordinatesEv(ptr noundef nonnull align 8 dereferenceable(192) %26)
          to label %229 unwind label %263

229:                                              ; preds = %227
  %230 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayI5Vec3DLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(72) %228, i64 noundef 0) #9
  %231 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE12emplace_backIJS1_RKS1_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %223, ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(24) %230)
          to label %232 unwind label %263

232:                                              ; preds = %229
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #9
  %233 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #9
  %234 = invoke noundef nonnull align 8 dereferenceable(96) ptr @_ZNK8Triangle6pointsEv(ptr noundef nonnull align 8 dereferenceable(192) %26)
          to label %235 unwind label %267

235:                                              ; preds = %232
  %236 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt5arrayI5Vec4DLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(96) %234, i64 noundef 1) #9
  invoke void @_ZN5Vec3DC2ERK5Vec4D(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(32) %236)
          to label %237 unwind label %267

237:                                              ; preds = %235
  %238 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZNK8Triangle18textureCoordinatesEv(ptr noundef nonnull align 8 dereferenceable(192) %26)
          to label %239 unwind label %267

239:                                              ; preds = %237
  %240 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayI5Vec3DLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(72) %238, i64 noundef 1) #9
  %241 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE12emplace_backIJS1_RKS1_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %233, ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(24) %240)
          to label %242 unwind label %267

242:                                              ; preds = %239
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #9
  %243 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #9
  %244 = invoke noundef nonnull align 8 dereferenceable(96) ptr @_ZNK8Triangle6pointsEv(ptr noundef nonnull align 8 dereferenceable(192) %26)
          to label %245 unwind label %271

245:                                              ; preds = %242
  %246 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt5arrayI5Vec4DLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(96) %244, i64 noundef 2) #9
  invoke void @_ZN5Vec3DC2ERK5Vec4D(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(32) %246)
          to label %247 unwind label %271

247:                                              ; preds = %245
  %248 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZNK8Triangle18textureCoordinatesEv(ptr noundef nonnull align 8 dereferenceable(192) %26)
          to label %249 unwind label %271

249:                                              ; preds = %247
  %250 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayI5Vec3DLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(72) %248, i64 noundef 2) #9
  %251 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE12emplace_backIJS1_RKS1_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %243, ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(24) %250)
          to label %252 unwind label %271

252:                                              ; preds = %249
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  %253 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 1
  store ptr %253, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #9
  %254 = load ptr, ptr %33, align 8, !tbaa !5
  %255 = call ptr @_ZNSt6vectorI5PlaneSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %254) #9
  %256 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %34, i32 0, i32 0
  store ptr %255, ptr %256, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #9
  %257 = load ptr, ptr %33, align 8, !tbaa !5
  %258 = call ptr @_ZNSt6vectorI5PlaneSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %257) #9
  %259 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %35, i32 0, i32 0
  store ptr %258, ptr %259, align 8
  br label %260

260:                                              ; preds = %284, %252
  %261 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP5PlaneSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %35) #9
  br i1 %261, label %275, label %262

262:                                              ; preds = %260
  store i32 6, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  br label %290

263:                                              ; preds = %229, %227, %225, %222
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %8, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #9
  br label %477

267:                                              ; preds = %239, %237, %235, %232
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %8, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #9
  br label %477

271:                                              ; preds = %249, %247, %245, %242
  %272 = landingpad { ptr, i32 }
          cleanup
  %273 = extractvalue { ptr, i32 } %272, 0
  store ptr %273, ptr %8, align 8
  %274 = extractvalue { ptr, i32 } %272, 1
  store i32 %274, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #9
  br label %477

275:                                              ; preds = %260
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #9
  %276 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP5PlaneSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #9
  store ptr %276, ptr %36, align 8, !tbaa !5
  %277 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 7
  %278 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 8
  call void @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE4swapERS4_(ptr noundef nonnull align 8 dereferenceable(24) %277, ptr noundef nonnull align 8 dereferenceable(24) %278) #9
  %279 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 8
  call void @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %279) #9
  %280 = load ptr, ptr %36, align 8, !tbaa !5
  %281 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 7
  %282 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 8
  invoke void @_ZNK5Plane4clipERSt6vectorISt4pairI5Vec3DS2_ESaIS3_EES6_(ptr noundef nonnull align 8 dereferenceable(32) %280, ptr noundef nonnull align 8 dereferenceable(24) %281, ptr noundef nonnull align 8 dereferenceable(24) %282)
          to label %283 unwind label %286

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

284:                                              ; preds = %283
  %285 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP5PlaneSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #9
  br label %260

286:                                              ; preds = %275
  %287 = landingpad { ptr, i32 }
          cleanup
  %288 = extractvalue { ptr, i32 } %287, 0
  store ptr %288, ptr %8, align 8
  %289 = extractvalue { ptr, i32 } %287, 1
  store i32 %289, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  br label %477

290:                                              ; preds = %262
  %291 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 7
  call void @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %291) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #9
  %292 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 8
  store ptr %292, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #9
  %293 = load ptr, ptr %37, align 8, !tbaa !5
  %294 = call ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %293) #9
  %295 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.41", ptr %38, i32 0, i32 0
  store ptr %294, ptr %295, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #9
  %296 = load ptr, ptr %37, align 8, !tbaa !5
  %297 = call ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %296) #9
  %298 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.41", ptr %39, i32 0, i32 0
  store ptr %297, ptr %298, align 8
  br label %299

299:                                              ; preds = %327, %290
  %300 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairI5Vec3DS2_ESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(8) %39) #9
  br i1 %300, label %302, label %301

301:                                              ; preds = %299
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #9
  br label %347

302:                                              ; preds = %299
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #9
  %303 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairI5Vec3DS2_ESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #9
  store ptr %303, ptr %40, align 8, !tbaa !5
  %304 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 7
  %305 = load ptr, ptr %40, align 8, !tbaa !5
  %306 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE12emplace_backIJRS2_EEES6_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %304, ptr noundef nonnull align 8 dereferenceable(48) %305)
          to label %307 unwind label %329

307:                                              ; preds = %302
  call void @llvm.lifetime.start.p0(i64 32, ptr %41) #9
  %308 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 9
  call void @llvm.lifetime.start.p0(i64 32, ptr %42) #9
  %309 = load ptr, ptr %40, align 8, !tbaa !5
  %310 = getelementptr inbounds %"struct.std::pair", ptr %309, i32 0, i32 0
  invoke void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind writable sret(%class.Vec4D) align 8 %42, ptr noundef nonnull align 8 dereferenceable(24) %310)
          to label %311 unwind label %333

311:                                              ; preds = %307
  invoke void @_ZNK9Matrix4x4mlERK5Vec4D(ptr dead_on_unwind writable sret(%class.Vec4D) align 8 %41, ptr noundef nonnull align 8 dereferenceable(128) %308, ptr noundef nonnull align 8 dereferenceable(32) %42)
          to label %312 unwind label %333

312:                                              ; preds = %311
  call void @llvm.lifetime.end.p0(i64 32, ptr %42) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %43) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %44) #9
  invoke void @_ZN5Vec3DC2ERK5Vec4D(ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 8 dereferenceable(32) %41)
          to label %313 unwind label %337

313:                                              ; preds = %312
  %314 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Vec4D1wEv(ptr noundef nonnull align 8 dereferenceable(32) %41)
          to label %315 unwind label %337

315:                                              ; preds = %313
  %316 = load double, ptr %314, align 8, !tbaa !49
  invoke void @_ZNK5Vec3DdvEd(ptr dead_on_unwind writable sret(%class.Vec3D) align 8 %43, ptr noundef nonnull align 8 dereferenceable(24) %44, double noundef %316)
          to label %317 unwind label %337

317:                                              ; preds = %315
  %318 = load ptr, ptr %40, align 8, !tbaa !5
  %319 = getelementptr inbounds %"struct.std::pair", ptr %318, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %319, ptr align 8 %43, i64 24, i1 false), !tbaa.struct !50
  call void @llvm.lifetime.end.p0(i64 24, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #9
  %320 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Vec4D1wEv(ptr noundef nonnull align 8 dereferenceable(32) %41)
          to label %321 unwind label %341

321:                                              ; preds = %317
  %322 = load double, ptr %320, align 8, !tbaa !49
  %323 = load ptr, ptr %40, align 8, !tbaa !5
  %324 = getelementptr inbounds %"struct.std::pair", ptr %323, i32 0, i32 1
  %325 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5Vec3DdVEd(ptr noundef nonnull align 8 dereferenceable(24) %324, double noundef %322)
          to label %326 unwind label %341

326:                                              ; preds = %321
  call void @llvm.lifetime.end.p0(i64 32, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  br label %327

327:                                              ; preds = %326
  %328 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairI5Vec3DS2_ESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #9
  br label %299

329:                                              ; preds = %302
  %330 = landingpad { ptr, i32 }
          cleanup
  %331 = extractvalue { ptr, i32 } %330, 0
  store ptr %331, ptr %8, align 8
  %332 = extractvalue { ptr, i32 } %330, 1
  store i32 %332, ptr %9, align 4
  br label %346

333:                                              ; preds = %311, %307
  %334 = landingpad { ptr, i32 }
          cleanup
  %335 = extractvalue { ptr, i32 } %334, 0
  store ptr %335, ptr %8, align 8
  %336 = extractvalue { ptr, i32 } %334, 1
  store i32 %336, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %42) #9
  br label %345

337:                                              ; preds = %315, %313, %312
  %338 = landingpad { ptr, i32 }
          cleanup
  %339 = extractvalue { ptr, i32 } %338, 0
  store ptr %339, ptr %8, align 8
  %340 = extractvalue { ptr, i32 } %338, 1
  store i32 %340, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #9
  br label %345

341:                                              ; preds = %321, %317
  %342 = landingpad { ptr, i32 }
          cleanup
  %343 = extractvalue { ptr, i32 } %342, 0
  store ptr %343, ptr %8, align 8
  %344 = extractvalue { ptr, i32 } %342, 1
  store i32 %344, ptr %9, align 4
  br label %345

345:                                              ; preds = %341, %337, %333
  call void @llvm.lifetime.end.p0(i64 32, ptr %41) #9
  br label %346

346:                                              ; preds = %345, %329
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #9
  br label %477

347:                                              ; preds = %301
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #9
  store i64 2, ptr %45, align 8, !tbaa !52
  br label %348

348:                                              ; preds = %434, %347
  %349 = load i64, ptr %45, align 8, !tbaa !52
  %350 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 8
  %351 = call noundef i64 @_ZNKSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %350) #9
  %352 = icmp ult i64 %349, %351
  br i1 %352, label %354, label %353

353:                                              ; preds = %348
  store i32 10, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #9
  br label %466

354:                                              ; preds = %348
  call void @llvm.lifetime.start.p0(i64 192, ptr %46) #9
  call void @llvm.lifetime.start.p0(i64 96, ptr %47) #9
  %355 = getelementptr inbounds %"struct.std::array.39", ptr %47, i32 0, i32 0
  %356 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 8
  %357 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %356, i64 noundef 0) #9
  %358 = getelementptr inbounds %"struct.std::pair", ptr %357, i32 0, i32 0
  invoke void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind writable sret(%class.Vec4D) align 8 %355, ptr noundef nonnull align 8 dereferenceable(24) %358)
          to label %359 unwind label %437

359:                                              ; preds = %354
  %360 = getelementptr inbounds %class.Vec4D, ptr %355, i64 1
  %361 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 8
  %362 = load i64, ptr %45, align 8, !tbaa !52
  %363 = sub i64 %362, 1
  %364 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %361, i64 noundef %363) #9
  %365 = getelementptr inbounds %"struct.std::pair", ptr %364, i32 0, i32 0
  invoke void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind writable sret(%class.Vec4D) align 8 %360, ptr noundef nonnull align 8 dereferenceable(24) %365)
          to label %366 unwind label %437

366:                                              ; preds = %359
  %367 = getelementptr inbounds %class.Vec4D, ptr %355, i64 2
  %368 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 8
  %369 = load i64, ptr %45, align 8, !tbaa !52
  %370 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %368, i64 noundef %369) #9
  %371 = getelementptr inbounds %"struct.std::pair", ptr %370, i32 0, i32 0
  invoke void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind writable sret(%class.Vec4D) align 8 %367, ptr noundef nonnull align 8 dereferenceable(24) %371)
          to label %372 unwind label %437

372:                                              ; preds = %366
  call void @llvm.lifetime.start.p0(i64 72, ptr %48) #9
  %373 = getelementptr inbounds %"struct.std::array.40", ptr %48, i32 0, i32 0
  %374 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 8
  %375 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %374, i64 noundef 0) #9
  %376 = getelementptr inbounds %"struct.std::pair", ptr %375, i32 0, i32 1
  invoke void @_ZN5Vec3DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %373, ptr noundef nonnull align 8 dereferenceable(24) %376)
          to label %377 unwind label %441

377:                                              ; preds = %372
  %378 = getelementptr inbounds %class.Vec3D, ptr %373, i64 1
  %379 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 8
  %380 = load i64, ptr %45, align 8, !tbaa !52
  %381 = sub i64 %380, 1
  %382 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %379, i64 noundef %381) #9
  %383 = getelementptr inbounds %"struct.std::pair", ptr %382, i32 0, i32 1
  invoke void @_ZN5Vec3DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %378, ptr noundef nonnull align 8 dereferenceable(24) %383)
          to label %384 unwind label %441

384:                                              ; preds = %377
  %385 = getelementptr inbounds %class.Vec3D, ptr %373, i64 2
  %386 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 8
  %387 = load i64, ptr %45, align 8, !tbaa !52
  %388 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %386, i64 noundef %387) #9
  %389 = getelementptr inbounds %"struct.std::pair", ptr %388, i32 0, i32 1
  invoke void @_ZN5Vec3DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %385, ptr noundef nonnull align 8 dereferenceable(24) %389)
          to label %390 unwind label %441

390:                                              ; preds = %384
  invoke void @_ZN8TriangleC1ERKSt5arrayI5Vec4DLm3EERKS0_I5Vec3DLm3EE(ptr noundef nonnull align 8 dereferenceable(192) %46, ptr noundef nonnull align 8 dereferenceable(96) %47, ptr noundef nonnull align 8 dereferenceable(72) %48)
          to label %391 unwind label %441

391:                                              ; preds = %390
  call void @llvm.lifetime.start.p0(i64 192, ptr %49) #9
  call void @llvm.lifetime.start.p0(i64 96, ptr %50) #9
  %392 = getelementptr inbounds %"struct.std::array.39", ptr %50, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 32, ptr %51) #9
  %393 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 7
  %394 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %393, i64 noundef 0) #9
  %395 = getelementptr inbounds %"struct.std::pair", ptr %394, i32 0, i32 0
  invoke void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind writable sret(%class.Vec4D) align 8 %51, ptr noundef nonnull align 8 dereferenceable(24) %395)
          to label %396 unwind label %445

396:                                              ; preds = %391
  invoke void @_ZNK9Matrix4x4mlERK5Vec4D(ptr dead_on_unwind writable sret(%class.Vec4D) align 8 %392, ptr noundef nonnull align 8 dereferenceable(128) %15, ptr noundef nonnull align 8 dereferenceable(32) %51)
          to label %397 unwind label %445

397:                                              ; preds = %396
  %398 = getelementptr inbounds %class.Vec4D, ptr %392, i64 1
  call void @llvm.lifetime.start.p0(i64 32, ptr %52) #9
  %399 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 7
  %400 = load i64, ptr %45, align 8, !tbaa !52
  %401 = sub i64 %400, 1
  %402 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %399, i64 noundef %401) #9
  %403 = getelementptr inbounds %"struct.std::pair", ptr %402, i32 0, i32 0
  invoke void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind writable sret(%class.Vec4D) align 8 %52, ptr noundef nonnull align 8 dereferenceable(24) %403)
          to label %404 unwind label %449

404:                                              ; preds = %397
  invoke void @_ZNK9Matrix4x4mlERK5Vec4D(ptr dead_on_unwind writable sret(%class.Vec4D) align 8 %398, ptr noundef nonnull align 8 dereferenceable(128) %15, ptr noundef nonnull align 8 dereferenceable(32) %52)
          to label %405 unwind label %449

405:                                              ; preds = %404
  %406 = getelementptr inbounds %class.Vec4D, ptr %392, i64 2
  call void @llvm.lifetime.start.p0(i64 32, ptr %53) #9
  %407 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 7
  %408 = load i64, ptr %45, align 8, !tbaa !52
  %409 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %407, i64 noundef %408) #9
  %410 = getelementptr inbounds %"struct.std::pair", ptr %409, i32 0, i32 0
  invoke void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind writable sret(%class.Vec4D) align 8 %53, ptr noundef nonnull align 8 dereferenceable(24) %410)
          to label %411 unwind label %453

411:                                              ; preds = %405
  invoke void @_ZNK9Matrix4x4mlERK5Vec4D(ptr dead_on_unwind writable sret(%class.Vec4D) align 8 %406, ptr noundef nonnull align 8 dereferenceable(128) %15, ptr noundef nonnull align 8 dereferenceable(32) %53)
          to label %412 unwind label %453

412:                                              ; preds = %411
  call void @llvm.lifetime.start.p0(i64 72, ptr %54) #9
  %413 = getelementptr inbounds %"struct.std::array.40", ptr %54, i32 0, i32 0
  %414 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 7
  %415 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %414, i64 noundef 0) #9
  %416 = getelementptr inbounds %"struct.std::pair", ptr %415, i32 0, i32 1
  invoke void @_ZN5Vec3DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %413, ptr noundef nonnull align 8 dereferenceable(24) %416)
          to label %417 unwind label %457

417:                                              ; preds = %412
  %418 = getelementptr inbounds %class.Vec3D, ptr %413, i64 1
  %419 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 7
  %420 = load i64, ptr %45, align 8, !tbaa !52
  %421 = sub i64 %420, 1
  %422 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %419, i64 noundef %421) #9
  %423 = getelementptr inbounds %"struct.std::pair", ptr %422, i32 0, i32 1
  invoke void @_ZN5Vec3DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %418, ptr noundef nonnull align 8 dereferenceable(24) %423)
          to label %424 unwind label %457

424:                                              ; preds = %417
  %425 = getelementptr inbounds %class.Vec3D, ptr %413, i64 2
  %426 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 7
  %427 = load i64, ptr %45, align 8, !tbaa !52
  %428 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %426, i64 noundef %427) #9
  %429 = getelementptr inbounds %"struct.std::pair", ptr %428, i32 0, i32 1
  invoke void @_ZN5Vec3DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %425, ptr noundef nonnull align 8 dereferenceable(24) %429)
          to label %430 unwind label %457

430:                                              ; preds = %424
  invoke void @_ZN8TriangleC1ERKSt5arrayI5Vec4DLm3EERKS0_I5Vec3DLm3EE(ptr noundef nonnull align 8 dereferenceable(192) %49, ptr noundef nonnull align 8 dereferenceable(96) %50, ptr noundef nonnull align 8 dereferenceable(72) %54)
          to label %431 unwind label %457

431:                                              ; preds = %430
  %432 = invoke noundef nonnull align 1 ptr @_ZNSt6vectorISt4pairI8TriangleS1_ESaIS2_EE12emplace_backIJS1_S1_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(192) %46, ptr noundef nonnull align 8 dereferenceable(192) %49)
          to label %433 unwind label %457

433:                                              ; preds = %431
  call void @llvm.lifetime.end.p0(i64 72, ptr %54) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %53) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %52) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %51) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr %50) #9
  call void @llvm.lifetime.end.p0(i64 192, ptr %49) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr %48) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr %47) #9
  call void @llvm.lifetime.end.p0(i64 192, ptr %46) #9
  br label %434

434:                                              ; preds = %433
  %435 = load i64, ptr %45, align 8, !tbaa !52
  %436 = add i64 %435, 1
  store i64 %436, ptr %45, align 8, !tbaa !52
  br label %348, !llvm.loop !53

437:                                              ; preds = %366, %359, %354
  %438 = landingpad { ptr, i32 }
          cleanup
  %439 = extractvalue { ptr, i32 } %438, 0
  store ptr %439, ptr %8, align 8
  %440 = extractvalue { ptr, i32 } %438, 1
  store i32 %440, ptr %9, align 4
  br label %465

441:                                              ; preds = %390, %384, %377, %372
  %442 = landingpad { ptr, i32 }
          cleanup
  %443 = extractvalue { ptr, i32 } %442, 0
  store ptr %443, ptr %8, align 8
  %444 = extractvalue { ptr, i32 } %442, 1
  store i32 %444, ptr %9, align 4
  br label %464

445:                                              ; preds = %396, %391
  %446 = landingpad { ptr, i32 }
          cleanup
  %447 = extractvalue { ptr, i32 } %446, 0
  store ptr %447, ptr %8, align 8
  %448 = extractvalue { ptr, i32 } %446, 1
  store i32 %448, ptr %9, align 4
  br label %463

449:                                              ; preds = %404, %397
  %450 = landingpad { ptr, i32 }
          cleanup
  %451 = extractvalue { ptr, i32 } %450, 0
  store ptr %451, ptr %8, align 8
  %452 = extractvalue { ptr, i32 } %450, 1
  store i32 %452, ptr %9, align 4
  br label %462

453:                                              ; preds = %411, %405
  %454 = landingpad { ptr, i32 }
          cleanup
  %455 = extractvalue { ptr, i32 } %454, 0
  store ptr %455, ptr %8, align 8
  %456 = extractvalue { ptr, i32 } %454, 1
  store i32 %456, ptr %9, align 4
  br label %461

457:                                              ; preds = %431, %430, %424, %417, %412
  %458 = landingpad { ptr, i32 }
          cleanup
  %459 = extractvalue { ptr, i32 } %458, 0
  store ptr %459, ptr %8, align 8
  %460 = extractvalue { ptr, i32 } %458, 1
  store i32 %460, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 72, ptr %54) #9
  br label %461

461:                                              ; preds = %457, %453
  call void @llvm.lifetime.end.p0(i64 32, ptr %53) #9
  br label %462

462:                                              ; preds = %461, %449
  call void @llvm.lifetime.end.p0(i64 32, ptr %52) #9
  br label %463

463:                                              ; preds = %462, %445
  call void @llvm.lifetime.end.p0(i64 32, ptr %51) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr %50) #9
  call void @llvm.lifetime.end.p0(i64 192, ptr %49) #9
  br label %464

464:                                              ; preds = %463, %441
  call void @llvm.lifetime.end.p0(i64 72, ptr %48) #9
  br label %465

465:                                              ; preds = %464, %437
  call void @llvm.lifetime.end.p0(i64 96, ptr %47) #9
  call void @llvm.lifetime.end.p0(i64 192, ptr %46) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #9
  br label %477

466:                                              ; preds = %353
  %467 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 7
  call void @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %467) #9
  %468 = getelementptr inbounds %class.Camera, ptr %55, i32 0, i32 8
  call void @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %468) #9
  store i32 0, ptr %10, align 4
  br label %469

469:                                              ; preds = %466, %208
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 192, ptr %26) #9
  %470 = load i32, ptr %10, align 4
  switch i32 %470, label %472 [
    i32 0, label %471
  ]

471:                                              ; preds = %469
  store i32 0, ptr %10, align 4
  br label %472

472:                                              ; preds = %471, %469
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  %473 = load i32, ptr %10, align 4
  switch i32 %473, label %495 [
    i32 0, label %474
    i32 5, label %475
  ]

474:                                              ; preds = %472
  br label %475

475:                                              ; preds = %474, %472
  %476 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPK8TriangleSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #9
  br label %189

477:                                              ; preds = %465, %346, %286, %271, %267, %263, %221
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  br label %478

478:                                              ; preds = %477, %209
  call void @llvm.lifetime.end.p0(i64 192, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  br label %479

479:                                              ; preds = %478, %192
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  br label %482

480:                                              ; preds = %191
  store i1 true, ptr %7, align 1
  store i32 1, ptr %10, align 4
  br label %481

481:                                              ; preds = %480, %177
  call void @llvm.lifetime.end.p0(i64 48, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 128, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 128, ptr %11) #9
  br label %485

482:                                              ; preds = %479, %164, %114
  call void @llvm.lifetime.end.p0(i64 48, ptr %16) #9
  br label %483

483:                                              ; preds = %482, %110
  call void @llvm.lifetime.end.p0(i64 128, ptr %15) #9
  br label %484

484:                                              ; preds = %483, %109
  call void @llvm.lifetime.end.p0(i64 128, ptr %11) #9
  br label %489

485:                                              ; preds = %481, %69
  %486 = load i1, ptr %7, align 1
  br i1 %486, label %488, label %487

487:                                              ; preds = %485
  call void @_ZNSt6vectorISt4pairI8TriangleS1_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  br label %488

488:                                              ; preds = %487, %485
  ret void

489:                                              ; preds = %484, %61
  call void @_ZNSt6vectorISt4pairI8TriangleS1_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  br label %490

490:                                              ; preds = %489
  %491 = load ptr, ptr %8, align 8
  %492 = load i32, ptr %9, align 4
  %493 = insertvalue { ptr, i32 } poison, ptr %491, 0
  %494 = insertvalue { ptr, i32 } %493, i32 %492, 1
  resume { ptr, i32 } %494

495:                                              ; preds = %472
  unreachable
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Camera4initEiiddd(ptr noundef nonnull align 8 dereferenceable(408), i32 noundef, i32 noundef, double noundef, double noundef, double noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK12TriangleMesh9isVisibleEv(ptr noundef nonnull align 8 dereferenceable(121)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessI15TransformMatrixLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK15TransformMatrix12fullInvModelEv(ptr dead_on_unwind noalias writable sret(%class.Matrix4x4) align 8, ptr noundef nonnull align 8 dereferenceable(192)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK9Matrix4x4mlERKS_(ptr dead_on_unwind noalias writable sret(%class.Matrix4x4) align 8, ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(128)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK9Component12getComponentI15TransformMatrixEESt10shared_ptrIT_Ev(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.26") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

declare void @_ZNK15TransformMatrix9fullModelEv(ptr dead_on_unwind writable sret(%class.Matrix4x4) align 8, ptr noundef nonnull align 8 dereferenceable(192)) #5

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK6BoundsmlERK9Matrix4x4(ptr dead_on_unwind noalias writable sret(%struct.Bounds) align 8, ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(128)) #4 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) #6

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #7

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

declare noundef double @_ZNK5Plane8distanceERK5Vec3D(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(24)) #5

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

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

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

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

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

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

declare void @_ZNK8TrianglemlERK9Matrix4x4(ptr dead_on_unwind writable sret(%class.Triangle) align 8, ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(128)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK8Triangle4normEv(ptr dead_on_unwind noalias writable sret(%class.Vec3D) align 8, ptr noundef nonnull align 8 dereferenceable(192)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK5Vec3D3dotERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8TriangleixEi(ptr noundef nonnull align 8 dereferenceable(192), i32 noundef) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Vec3DC2ERK5Vec4D(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE12emplace_backIJS1_RKS1_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(96) ptr @_ZNK8Triangle6pointsEv(ptr noundef nonnull align 8 dereferenceable(192)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt5arrayI5Vec4DLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(96), i64 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZNK8Triangle18textureCoordinatesEv(ptr noundef nonnull align 8 dereferenceable(192)) #6 align 2

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

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

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

declare void @_ZNK5Plane4clipERSt6vectorISt4pairI5Vec3DS2_ESaIS3_EES6_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #5

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE12emplace_backIJRS2_EEES6_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK9Matrix4x4mlERK5Vec4D(ptr dead_on_unwind noalias writable sret(%class.Vec4D) align 8, ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind noalias writable sret(%class.Vec4D) align 8, ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Vec3DdvEd(ptr dead_on_unwind noalias writable sret(%class.Vec3D) align 8, ptr noundef nonnull align 8 dereferenceable(24), double noundef) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Vec4D1wEv(ptr noundef nonnull align 8 dereferenceable(32)) #6 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) #8

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN5Vec3DdVEd(ptr noundef nonnull align 8 dereferenceable(24), double noundef) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 ptr @_ZNSt6vectorISt4pairI8TriangleS1_ESaIS2_EE12emplace_backIJS1_S1_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(192)) #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Vec3DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

declare void @_ZN8TriangleC1ERKSt5arrayI5Vec4DLm3EERKS0_I5Vec3DLm3EE(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #5

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 #5 = { "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 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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { 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, !37, i64 200}
!10 = !{!"_ZTS6Camera", !11, i64 0, !33, i64 152, !20, i64 176, !20, i64 184, !20, i64 192, !37, i64 200, !20, i64 208, !38, i64 216, !38, i64 240, !42, i64 264, !44, i64 392}
!11 = !{!"_ZTS6Object", !12, i64 8, !16, i64 24, !6, i64 56, !20, i64 64, !20, i64 72, !21, i64 80, !29, i64 128}
!12 = !{!"_ZTSSt23enable_shared_from_thisI6ObjectE", !13, i64 0}
!13 = !{!"_ZTSSt8weak_ptrI6ObjectE", !14, i64 0}
!14 = !{!"_ZTSSt10__weak_ptrI6ObjectLN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !15, i64 8}
!15 = !{!"_ZTSSt12__weak_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!16 = !{!"_ZTS9ObjectTag", !17, i64 0}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !19, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = !{!"_ZTSSt3mapI9ObjectTagSt10shared_ptrI6ObjectESt4lessIS0_ESaISt4pairIKS0_S3_EEE", !22, i64 0}
!22 = !{!"_ZTSSt8_Rb_treeI9ObjectTagSt4pairIKS0_St10shared_ptrI6ObjectEESt10_Select1stIS6_ESt4lessIS0_ESaIS6_EE", !23, i64 0}
!23 = !{!"_ZTSNSt8_Rb_treeI9ObjectTagSt4pairIKS0_St10shared_ptrI6ObjectEESt10_Select1stIS6_ESt4lessIS0_ESaIS6_EE13_Rb_tree_implISA_Lb1EEE", !24, i64 0, !26, i64 8}
!24 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessI9ObjectTagEE", !25, i64 0}
!25 = !{!"_ZTSSt4lessI9ObjectTagE"}
!26 = !{!"_ZTSSt15_Rb_tree_header", !27, i64 0, !19, i64 32}
!27 = !{!"_ZTSSt18_Rb_tree_node_base", !28, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!28 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!29 = !{!"_ZTSSt6vectorISt10shared_ptrI9ComponentESaIS2_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrI9ComponentESaIS2_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrI9ComponentESaIS2_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrI9ComponentESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!33 = !{!"_ZTSSt6vectorI5PlaneSaIS0_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseI5PlaneSaIS0_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseI5PlaneSaIS0_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseI5PlaneSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!37 = !{!"bool", !7, i64 0}
!38 = !{!"_ZTSSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseISt4pairI5Vec3DS1_ESaIS2_EE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseISt4pairI5Vec3DS1_ESaIS2_EE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseISt4pairI5Vec3DS1_ESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!42 = !{!"_ZTS9Matrix4x4", !43, i64 0}
!43 = !{!"_ZTSSt5arrayIS_IdLm4EELm4EE", !7, i64 0}
!44 = !{!"_ZTSSt10shared_ptrI15TransformMatrixE", !45, i64 0}
!45 = !{!"_ZTSSt12__shared_ptrI15TransformMatrixLN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !46, i64 8}
!46 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!47 = !{i8 0, i8 2}
!48 = !{}
!49 = !{!20, !20, i64 0}
!50 = !{i64 0, i64 24, !51}
!51 = !{!7, !7, i64 0}
!52 = !{!19, !19, i64 0}
!53 = distinct !{!53, !54}
!54 = !{!"llvm.loop.mustprogress"}


; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<Triangle, Triangle>, std::allocator<std::pair<Triangle, Triangle>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<Triangle, Triangle>, std::allocator<std::pair<Triangle, Triangle>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<Triangle, Triangle>, std::allocator<std::pair<Triangle, Triangle>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<Triangle, Triangle>, std::allocator<std::pair<Triangle, Triangle>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Matrix4x4 = type { %"struct.std::array.24" }
%"struct.std::array.24" = type { [4 x %"struct.std::array.25"] }
%"struct.std::array.25" = type { [4 x double] }
%"class.std::shared_ptr.26" = type { %"class.std::__shared_ptr.27" }
%"class.std::__shared_ptr.27" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%struct.Bounds = type { %class.Vec3D, %class.Vec3D }
%class.Vec3D = type { %"struct.std::array.37" }
%"struct.std::array.37" = type { [3 x double] }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.38" = type { ptr }
%class.Triangle = type { %"struct.std::array.39", %"struct.std::array.40", %class.Vec3D }
%"struct.std::array.39" = type { [3 x %class.Vec4D] }
%class.Vec4D = type { %"struct.std::array.25" }
%"struct.std::array.40" = type { [3 x %class.Vec3D] }
%"class.__gnu_cxx::__normal_iterator.41" = type { ptr }

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Camera7projectERK12TriangleMesh(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(408) %1, ptr noundef nonnull align 8 dereferenceable(121) %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %class.Matrix4x4, align 8
  %5 = alloca %class.Matrix4x4, align 8
  %6 = alloca %class.Matrix4x4, align 8
  %7 = alloca %"class.std::shared_ptr.26", align 8
  %8 = alloca %class.Matrix4x4, align 8
  %9 = alloca %struct.Bounds, align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.38", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.38", align 8
  %14 = alloca %class.Triangle, align 8
  %15 = alloca %class.Vec3D, align 8
  %16 = alloca %class.Vec3D, align 8
  %17 = alloca %class.Vec3D, align 8
  %18 = alloca %class.Vec3D, align 8
  %19 = alloca %class.Vec3D, align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.41", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.41", align 8
  %24 = alloca %class.Vec4D, align 8
  %25 = alloca %class.Vec4D, align 8
  %26 = alloca %class.Vec3D, align 8
  %27 = alloca %class.Vec3D, align 8
  %28 = alloca %class.Triangle, align 8
  %29 = alloca %"struct.std::array.39", align 8
  %30 = alloca %"struct.std::array.40", align 8
  %31 = alloca %class.Triangle, align 8
  %32 = alloca %"struct.std::array.39", align 8
  %33 = alloca %class.Vec4D, align 8
  %34 = alloca %class.Vec4D, align 8
  %35 = alloca %class.Vec4D, align 8
  %36 = alloca %"struct.std::array.40", align 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 0, i64 24, i1 false)
  tail call void @_ZNSt6vectorISt4pairI8TriangleS1_ESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  %37 = getelementptr inbounds i8, ptr %1, i64 200
  %38 = load i8, ptr %37, align 8, !tbaa !5, !range !46, !noundef !47
  %39 = trunc nuw i8 %38 to i1
  br i1 %39, label %43, label %40

40:                                               ; preds = %3
  invoke void @_ZN6Camera4initEiiddd(ptr noundef nonnull align 8 dereferenceable(408) %1, i32 noundef 640, i32 noundef 480, double noundef 9.000000e+01, double noundef 1.000000e-01, double noundef 5.000000e+03)
          to label %43 unwind label %41

41:                                               ; preds = %40
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %267

43:                                               ; preds = %40, %3
  %44 = tail call noundef zeroext i1 @_ZNK12TriangleMesh9isVisibleEv(ptr noundef nonnull align 8 dereferenceable(121) %2)
  br i1 %44, label %45, label %.critedge

45:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %5) #9
  %46 = getelementptr inbounds i8, ptr %1, i64 392
  %47 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessI15TransformMatrixLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %46) #9
  invoke void @_ZNK15TransformMatrix12fullInvModelEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix4x4) align 8 %5, ptr noundef nonnull align 8 dereferenceable(192) %47)
          to label %48 unwind label %62

48:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #9
  invoke void @_ZNK9Component12getComponentI15TransformMatrixEESt10shared_ptrIT_Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.26") align 8 %7, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %49 unwind label %64

49:                                               ; preds = %48
  %50 = call noundef ptr @_ZNKSt19__shared_ptr_accessI15TransformMatrixLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %7) #9
  invoke void @_ZNK15TransformMatrix9fullModelEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix4x4) align 8 %6, ptr noundef nonnull align 8 dereferenceable(192) %50)
          to label %51 unwind label %66

51:                                               ; preds = %49
  invoke void @_ZNK9Matrix4x4mlERKS_(ptr dead_on_unwind nonnull writable sret(%class.Matrix4x4) align 8 %4, ptr noundef nonnull align 8 dereferenceable(128) %5, ptr noundef nonnull align 8 dereferenceable(128) %6)
          to label %52 unwind label %66

52:                                               ; preds = %51
  call void @_ZNSt12__shared_ptrI15TransformMatrixLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %8) #9
  %53 = call noundef ptr @_ZNKSt19__shared_ptr_accessI15TransformMatrixLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %46) #9
  invoke void @_ZNK15TransformMatrix9fullModelEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix4x4) align 8 %8, ptr noundef nonnull align 8 dereferenceable(192) %53)
          to label %54 unwind label %70

54:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #9
  %55 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK12TriangleMesh6boundsEv(ptr noundef nonnull align 8 dereferenceable(121) %2)
  invoke void @_ZNK6BoundsmlERK9Matrix4x4(ptr dead_on_unwind nonnull writable sret(%struct.Bounds) align 8 %9, ptr noundef nonnull align 8 dereferenceable(48) %55, ptr noundef nonnull align 8 dereferenceable(128) %4)
          to label %56 unwind label %72

56:                                               ; preds = %54
  %57 = getelementptr inbounds i8, ptr %1, i64 152
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  %58 = call ptr @_ZNSt6vectorI5PlaneSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %57) #9
  store ptr %58, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %59 = call ptr @_ZNSt6vectorI5PlaneSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %57) #9
  store ptr %59, ptr %11, align 8
  %60 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP5PlaneSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  br i1 %60, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %56
  %61 = getelementptr inbounds i8, ptr %9, i64 24
  br label %74

62:                                               ; preds = %45
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %69

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

66:                                               ; preds = %51, %49
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrI15TransformMatrixLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #9
  br label %68

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

69:                                               ; preds = %68, %62
  %.pn.pn = phi { ptr, i32 } [ %.pn, %68 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %5) #9
  br label %266

70:                                               ; preds = %52
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %265

72:                                               ; preds = %54
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %264

74:                                               ; preds = %.lr.ph, %100
  %75 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP5PlaneSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Vec3D1xEv(ptr noundef nonnull align 8 dereferenceable(24) %61)
  %77 = load double, ptr %76, align 8, !tbaa !48
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Vec3D1xEv(ptr noundef nonnull align 8 dereferenceable(24) %75)
  %79 = load double, ptr %78, align 8, !tbaa !48
  %80 = call noundef double @_ZSt3absd(double noundef %79)
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Vec3D1yEv(ptr noundef nonnull align 8 dereferenceable(24) %61)
  %82 = load double, ptr %81, align 8, !tbaa !48
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Vec3D1yEv(ptr noundef nonnull align 8 dereferenceable(24) %75)
  %84 = load double, ptr %83, align 8, !tbaa !48
  %85 = call noundef double @_ZSt3absd(double noundef %84)
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Vec3D1zEv(ptr noundef nonnull align 8 dereferenceable(24) %61)
  %87 = load double, ptr %86, align 8, !tbaa !48
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Vec3D1zEv(ptr noundef nonnull align 8 dereferenceable(24) %75)
  %89 = load double, ptr %88, align 8, !tbaa !48
  %90 = call noundef double @_ZSt3absd(double noundef %89)
  %91 = invoke noundef double @_ZNK5Plane8distanceERK5Vec3D(ptr noundef nonnull align 8 dereferenceable(32) %75, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %92 unwind label %98

92:                                               ; preds = %74
  %93 = fmul double %82, %85
  %94 = call double @llvm.fmuladd.f64(double %77, double %80, double %93)
  %95 = call double @llvm.fmuladd.f64(double %87, double %90, double %94)
  %96 = fadd double %91, %95
  %97 = fcmp uge double %96, 0.000000e+00
  br i1 %97, label %100, label %263

98:                                               ; preds = %74
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  br label %264

100:                                              ; preds = %92
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP5PlaneSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  %102 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP5PlaneSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  br i1 %102, label %74, label %._crit_edge

._crit_edge:                                      ; preds = %100, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  %103 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK12TriangleMesh9trianglesEv(ptr noundef nonnull align 8 dereferenceable(121) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %104 = call ptr @_ZNKSt6vectorI8TriangleSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %103) #9
  store ptr %104, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  %105 = call ptr @_ZNKSt6vectorI8TriangleSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %103) #9
  store ptr %105, ptr %13, align 8
  %106 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPK8TriangleSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  br i1 %106, label %.lr.ph104, label %.critedge.critedge

.lr.ph104:                                        ; preds = %._crit_edge
  %107 = getelementptr inbounds i8, ptr %1, i64 240
  %108 = getelementptr inbounds i8, ptr %1, i64 216
  %109 = getelementptr inbounds i8, ptr %1, i64 264
  %110 = getelementptr inbounds i8, ptr %29, i64 32
  %111 = getelementptr inbounds i8, ptr %29, i64 64
  %112 = getelementptr inbounds i8, ptr %30, i64 24
  %113 = getelementptr inbounds i8, ptr %30, i64 48
  %114 = getelementptr inbounds i8, ptr %32, i64 32
  %115 = getelementptr inbounds i8, ptr %32, i64 64
  %116 = getelementptr inbounds i8, ptr %36, i64 24
  %117 = getelementptr inbounds i8, ptr %36, i64 48
  br label %118

.critedge.critedge:                               ; preds = %259, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %4) #9
  br label %.critedge

118:                                              ; preds = %.lr.ph104, %259
  %119 = call noundef nonnull align 8 dereferenceable(192) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPK8TriangleSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %14) #9
  invoke void @_ZNK8TrianglemlERK9Matrix4x4(ptr dead_on_unwind nonnull writable sret(%class.Triangle) align 8 %14, ptr noundef nonnull align 8 dereferenceable(192) %119, ptr noundef nonnull align 8 dereferenceable(128) %4)
          to label %120 unwind label %126

120:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #9
  invoke void @_ZNK8Triangle4normEv(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %15, ptr noundef nonnull align 8 dereferenceable(192) %14)
          to label %121 unwind label %128

121:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #9
  %122 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8TriangleixEi(ptr noundef nonnull align 8 dereferenceable(192) %14, i32 noundef 0)
  invoke void @_ZN5Vec3DC2ERK5Vec4D(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(32) %122)
          to label %123 unwind label %130

123:                                              ; preds = %121
  %124 = call noundef double @_ZNK5Vec3D3dotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %16)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #9
  %125 = fcmp ogt double %124, 0.000000e+00
  br i1 %125, label %259, label %133

126:                                              ; preds = %118
  %127 = landingpad { ptr, i32 }
          cleanup
  br label %262

128:                                              ; preds = %120
  %129 = landingpad { ptr, i32 }
          cleanup
  br label %132

130:                                              ; preds = %121
  %131 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #9
  br label %132

132:                                              ; preds = %130, %128
  %.pn72 = phi { ptr, i32 } [ %131, %130 ], [ %129, %128 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #9
  br label %262

133:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #9
  %134 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNK8Triangle6pointsEv(ptr noundef nonnull align 8 dereferenceable(192) %14)
  %135 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt5arrayI5Vec4DLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(96) %134, i64 noundef 0) #9
  invoke void @_ZN5Vec3DC2ERK5Vec4D(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(32) %135)
          to label %136 unwind label %161

136:                                              ; preds = %133
  %137 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK8Triangle18textureCoordinatesEv(ptr noundef nonnull align 8 dereferenceable(192) %14)
  %138 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayI5Vec3DLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(72) %137, i64 noundef 0) #9
  %139 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE12emplace_backIJS1_RKS1_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %107, ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %138)
          to label %140 unwind label %161

140:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #9
  %141 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNK8Triangle6pointsEv(ptr noundef nonnull align 8 dereferenceable(192) %14)
  %142 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt5arrayI5Vec4DLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(96) %141, i64 noundef 1) #9
  invoke void @_ZN5Vec3DC2ERK5Vec4D(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(32) %142)
          to label %143 unwind label %163

143:                                              ; preds = %140
  %144 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK8Triangle18textureCoordinatesEv(ptr noundef nonnull align 8 dereferenceable(192) %14)
  %145 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayI5Vec3DLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(72) %144, i64 noundef 1) #9
  %146 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE12emplace_backIJS1_RKS1_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %107, ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %145)
          to label %147 unwind label %163

147:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #9
  %148 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNK8Triangle6pointsEv(ptr noundef nonnull align 8 dereferenceable(192) %14)
  %149 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt5arrayI5Vec4DLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(96) %148, i64 noundef 2) #9
  invoke void @_ZN5Vec3DC2ERK5Vec4D(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(32) %149)
          to label %150 unwind label %165

150:                                              ; preds = %147
  %151 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK8Triangle18textureCoordinatesEv(ptr noundef nonnull align 8 dereferenceable(192) %14)
  %152 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt5arrayI5Vec3DLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(72) %151, i64 noundef 2) #9
  %153 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE12emplace_backIJS1_RKS1_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %107, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %152)
          to label %154 unwind label %165

154:                                              ; preds = %150
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #9
  %155 = call ptr @_ZNSt6vectorI5PlaneSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %57) #9
  store ptr %155, ptr %20, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #9
  %156 = call ptr @_ZNSt6vectorI5PlaneSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %57) #9
  store ptr %156, ptr %21, align 8
  %157 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP5PlaneSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #9
  br i1 %157, label %.lr.ph94, label %._crit_edge95

._crit_edge95:                                    ; preds = %168, %154
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  call void @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %108) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #9
  %158 = call ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %107) #9
  store ptr %158, ptr %22, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #9
  %159 = call ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %107) #9
  store ptr %159, ptr %23, align 8
  %160 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairI5Vec3DS2_ESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #9
  br i1 %160, label %.lr.ph97, label %._crit_edge98

161:                                              ; preds = %136, %133
  %162 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #9
  br label %262

163:                                              ; preds = %143, %140
  %164 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #9
  br label %262

165:                                              ; preds = %150, %147
  %166 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #9
  br label %262

.lr.ph94:                                         ; preds = %154, %168
  %167 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP5PlaneSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  call void @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE4swapERS4_(ptr noundef nonnull align 8 dereferenceable(24) %108, ptr noundef nonnull align 8 dereferenceable(24) %107) #9
  call void @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %107) #9
  invoke void @_ZNK5Plane4clipERSt6vectorISt4pairI5Vec3DS2_ESaIS3_EES6_(ptr noundef nonnull align 8 dereferenceable(32) %167, ptr noundef nonnull align 8 dereferenceable(24) %108, ptr noundef nonnull align 8 dereferenceable(24) %107)
          to label %168 unwind label %171

168:                                              ; preds = %.lr.ph94
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP5PlaneSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  %170 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP5PlaneSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #9
  br i1 %170, label %.lr.ph94, label %._crit_edge95

171:                                              ; preds = %.lr.ph94
  %172 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  br label %262

._crit_edge98:                                    ; preds = %188, %._crit_edge95
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #9
  %173 = call noundef i64 @_ZNKSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %107) #9
  %174 = icmp ugt i64 %173, 2
  br i1 %174, label %.lr.ph101, label %._crit_edge102

.lr.ph97:                                         ; preds = %._crit_edge95, %188
  %175 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairI5Vec3DS2_ESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  %176 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE12emplace_backIJRS2_EEES6_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %108, ptr noundef nonnull align 8 dereferenceable(48) %175)
          to label %177 unwind label %191

177:                                              ; preds = %.lr.ph97
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %24) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %25) #9
  invoke void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind nonnull writable sret(%class.Vec4D) align 8 %25, ptr noundef nonnull align 8 dereferenceable(24) %175)
          to label %178 unwind label %193

178:                                              ; preds = %177
  invoke void @_ZNK9Matrix4x4mlERK5Vec4D(ptr dead_on_unwind nonnull writable sret(%class.Vec4D) align 8 %24, ptr noundef nonnull align 8 dereferenceable(128) %109, ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %179 unwind label %193

179:                                              ; preds = %178
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %26) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %27) #9
  invoke void @_ZN5Vec3DC2ERK5Vec4D(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %180 unwind label %195

180:                                              ; preds = %179
  %181 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Vec4D1wEv(ptr noundef nonnull align 8 dereferenceable(32) %24)
  %182 = load double, ptr %181, align 8, !tbaa !48
  invoke void @_ZNK5Vec3DdvEd(ptr dead_on_unwind nonnull writable sret(%class.Vec3D) align 8 %26, ptr noundef nonnull align 8 dereferenceable(24) %27, double noundef %182)
          to label %183 unwind label %195

183:                                              ; preds = %180
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %175, ptr noundef nonnull align 8 dereferenceable(24) %26, i64 24, i1 false), !tbaa.struct !49
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %27) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %26) #9
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5Vec4D1wEv(ptr noundef nonnull align 8 dereferenceable(32) %24)
  %185 = load double, ptr %184, align 8, !tbaa !48
  %186 = getelementptr inbounds i8, ptr %175, i64 24
  %187 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5Vec3DdVEd(ptr noundef nonnull align 8 dereferenceable(24) %186, double noundef %185)
          to label %188 unwind label %197

188:                                              ; preds = %183
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #9
  %189 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairI5Vec3DS2_ESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #9
  %190 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairI5Vec3DS2_ESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #9
  br i1 %190, label %.lr.ph97, label %._crit_edge98

191:                                              ; preds = %.lr.ph97
  %192 = landingpad { ptr, i32 }
          cleanup
  br label %200

193:                                              ; preds = %178, %177
  %194 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #9
  br label %199

195:                                              ; preds = %180, %179
  %196 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %27) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %26) #9
  br label %199

197:                                              ; preds = %183
  %198 = landingpad { ptr, i32 }
          cleanup
  br label %199

199:                                              ; preds = %197, %195, %193
  %.pn80 = phi { ptr, i32 } [ %198, %197 ], [ %196, %195 ], [ %194, %193 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #9
  br label %200

200:                                              ; preds = %199, %191
  %.pn80.pn = phi { ptr, i32 } [ %.pn80, %199 ], [ %192, %191 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #9
  br label %262

._crit_edge102:                                   ; preds = %238, %._crit_edge98
  call void @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %108) #9
  call void @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %107) #9
  br label %259

.lr.ph101:                                        ; preds = %._crit_edge98, %238
  %.099 = phi i64 [ %239, %238 ], [ 2, %._crit_edge98 ]
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %28) #9
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %29) #9
  %201 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef 0) #9
  invoke void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind nonnull writable sret(%class.Vec4D) align 8 %29, ptr noundef nonnull align 8 dereferenceable(24) %201)
          to label %202 unwind label %242

202:                                              ; preds = %.lr.ph101
  %203 = add i64 %.099, -1
  %204 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %203) #9
  invoke void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind nonnull writable sret(%class.Vec4D) align 8 %110, ptr noundef nonnull align 8 dereferenceable(24) %204)
          to label %205 unwind label %242

205:                                              ; preds = %202
  %206 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %.099) #9
  invoke void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind nonnull writable sret(%class.Vec4D) align 8 %111, ptr noundef nonnull align 8 dereferenceable(24) %206)
          to label %207 unwind label %242

207:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %30) #9
  %208 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef 0) #9
  %209 = getelementptr inbounds i8, ptr %208, i64 24
  invoke void @_ZN5Vec3DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(24) %209)
          to label %210 unwind label %244

210:                                              ; preds = %207
  %211 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %203) #9
  %212 = getelementptr inbounds i8, ptr %211, i64 24
  invoke void @_ZN5Vec3DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %112, ptr noundef nonnull align 8 dereferenceable(24) %212)
          to label %213 unwind label %244

213:                                              ; preds = %210
  %214 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %.099) #9
  %215 = getelementptr inbounds i8, ptr %214, i64 24
  invoke void @_ZN5Vec3DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %113, ptr noundef nonnull align 8 dereferenceable(24) %215)
          to label %216 unwind label %244

216:                                              ; preds = %213
  invoke void @_ZN8TriangleC1ERKSt5arrayI5Vec4DLm3EERKS0_I5Vec3DLm3EE(ptr noundef nonnull align 8 dereferenceable(192) %28, ptr noundef nonnull align 8 dereferenceable(96) %29, ptr noundef nonnull align 8 dereferenceable(72) %30)
          to label %217 unwind label %244

217:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %31) #9
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %32) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %33) #9
  %218 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef 0) #9
  invoke void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind nonnull writable sret(%class.Vec4D) align 8 %33, ptr noundef nonnull align 8 dereferenceable(24) %218)
          to label %219 unwind label %246

219:                                              ; preds = %217
  invoke void @_ZNK9Matrix4x4mlERK5Vec4D(ptr dead_on_unwind nonnull writable sret(%class.Vec4D) align 8 %32, ptr noundef nonnull align 8 dereferenceable(128) %8, ptr noundef nonnull align 8 dereferenceable(32) %33)
          to label %220 unwind label %246

220:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %34) #9
  %221 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef %203) #9
  invoke void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind nonnull writable sret(%class.Vec4D) align 8 %34, ptr noundef nonnull align 8 dereferenceable(24) %221)
          to label %222 unwind label %248

222:                                              ; preds = %220
  invoke void @_ZNK9Matrix4x4mlERK5Vec4D(ptr dead_on_unwind nonnull writable sret(%class.Vec4D) align 8 %114, ptr noundef nonnull align 8 dereferenceable(128) %8, ptr noundef nonnull align 8 dereferenceable(32) %34)
          to label %223 unwind label %248

223:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %35) #9
  %224 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef %.099) #9
  invoke void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind nonnull writable sret(%class.Vec4D) align 8 %35, ptr noundef nonnull align 8 dereferenceable(24) %224)
          to label %225 unwind label %250

225:                                              ; preds = %223
  invoke void @_ZNK9Matrix4x4mlERK5Vec4D(ptr dead_on_unwind nonnull writable sret(%class.Vec4D) align 8 %115, ptr noundef nonnull align 8 dereferenceable(128) %8, ptr noundef nonnull align 8 dereferenceable(32) %35)
          to label %226 unwind label %250

226:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %36) #9
  %227 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef 0) #9
  %228 = getelementptr inbounds i8, ptr %227, i64 24
  invoke void @_ZN5Vec3DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 8 dereferenceable(24) %228)
          to label %229 unwind label %252

229:                                              ; preds = %226
  %230 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef %203) #9
  %231 = getelementptr inbounds i8, ptr %230, i64 24
  invoke void @_ZN5Vec3DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %116, ptr noundef nonnull align 8 dereferenceable(24) %231)
          to label %232 unwind label %252

232:                                              ; preds = %229
  %233 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef %.099) #9
  %234 = getelementptr inbounds i8, ptr %233, i64 24
  invoke void @_ZN5Vec3DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %117, ptr noundef nonnull align 8 dereferenceable(24) %234)
          to label %235 unwind label %252

235:                                              ; preds = %232
  invoke void @_ZN8TriangleC1ERKSt5arrayI5Vec4DLm3EERKS0_I5Vec3DLm3EE(ptr noundef nonnull align 8 dereferenceable(192) %31, ptr noundef nonnull align 8 dereferenceable(96) %32, ptr noundef nonnull align 8 dereferenceable(72) %36)
          to label %236 unwind label %252

236:                                              ; preds = %235
  %237 = invoke noundef nonnull align 1 ptr @_ZNSt6vectorISt4pairI8TriangleS1_ESaIS2_EE12emplace_backIJS1_S1_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(192) %28, ptr noundef nonnull align 8 dereferenceable(192) %31)
          to label %238 unwind label %252

238:                                              ; preds = %236
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %36) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %35) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %34) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %33) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %32) #9
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %31) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %30) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %29) #9
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %28) #9
  %239 = add nuw i64 %.099, 1
  %240 = call noundef i64 @_ZNKSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %107) #9
  %241 = icmp ult i64 %239, %240
  br i1 %241, label %.lr.ph101, label %._crit_edge102, !llvm.loop !51

242:                                              ; preds = %205, %202, %.lr.ph101
  %243 = landingpad { ptr, i32 }
          cleanup
  br label %258

244:                                              ; preds = %216, %213, %210, %207
  %245 = landingpad { ptr, i32 }
          cleanup
  br label %257

246:                                              ; preds = %219, %217
  %247 = landingpad { ptr, i32 }
          cleanup
  br label %256

248:                                              ; preds = %222, %220
  %249 = landingpad { ptr, i32 }
          cleanup
  br label %255

250:                                              ; preds = %225, %223
  %251 = landingpad { ptr, i32 }
          cleanup
  br label %254

252:                                              ; preds = %236, %235, %232, %229, %226
  %253 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %36) #9
  br label %254

254:                                              ; preds = %252, %250
  %.pn74 = phi { ptr, i32 } [ %253, %252 ], [ %251, %250 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %35) #9
  br label %255

255:                                              ; preds = %254, %248
  %.pn74.pn = phi { ptr, i32 } [ %.pn74, %254 ], [ %249, %248 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %34) #9
  br label %256

256:                                              ; preds = %255, %246
  %.pn74.pn.pn = phi { ptr, i32 } [ %.pn74.pn, %255 ], [ %247, %246 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %33) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %32) #9
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %31) #9
  br label %257

257:                                              ; preds = %256, %244
  %.pn74.pn.pn.pn = phi { ptr, i32 } [ %.pn74.pn.pn, %256 ], [ %245, %244 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %30) #9
  br label %258

258:                                              ; preds = %257, %242
  %.pn74.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn74.pn.pn.pn, %257 ], [ %243, %242 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %29) #9
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %28) #9
  br label %262

259:                                              ; preds = %123, %._crit_edge102
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %14) #9
  %260 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPK8TriangleSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  %261 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPK8TriangleSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  br i1 %261, label %118, label %.critedge.critedge

262:                                              ; preds = %132, %161, %163, %165, %171, %200, %258, %126
  %.pn83.pn = phi { ptr, i32 } [ %127, %126 ], [ %172, %171 ], [ %.pn80.pn, %200 ], [ %.pn74.pn.pn.pn.pn, %258 ], [ %166, %165 ], [ %164, %163 ], [ %162, %161 ], [ %.pn72, %132 ]
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  br label %264

263:                                              ; preds = %92
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %4) #9
  br label %.critedge

264:                                              ; preds = %262, %98, %72
  %.pn83.pn.pn = phi { ptr, i32 } [ %.pn83.pn, %262 ], [ %99, %98 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #9
  br label %265

265:                                              ; preds = %264, %70
  %.pn83.pn.pn.pn = phi { ptr, i32 } [ %.pn83.pn.pn, %264 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %8) #9
  br label %266

266:                                              ; preds = %265, %69
  %.pn83.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn83.pn.pn.pn, %265 ], [ %.pn.pn, %69 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %4) #9
  br label %267

.critedge:                                        ; preds = %263, %.critedge.critedge, %43
  ret void

267:                                              ; preds = %266, %41
  %.pn83.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn83.pn.pn.pn.pn, %266 ], [ %42, %41 ]
  call void @_ZNSt6vectorISt4pairI8TriangleS1_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  resume { ptr, i32 } %.pn83.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Camera4initEiiddd(ptr noundef nonnull align 8 dereferenceable(408), i32 noundef, i32 noundef, double noundef, double noundef, double noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK12TriangleMesh9isVisibleEv(ptr noundef nonnull align 8 dereferenceable(121)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK15TransformMatrix12fullInvModelEv(ptr dead_on_unwind noalias writable sret(%class.Matrix4x4) align 8, ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK9Matrix4x4mlERKS_(ptr dead_on_unwind noalias writable sret(%class.Matrix4x4) align 8, ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK9Component12getComponentI15TransformMatrixEESt10shared_ptrIT_Ev(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.26") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

declare void @_ZNK15TransformMatrix9fullModelEv(ptr dead_on_unwind writable sret(%class.Matrix4x4) align 8, ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #5

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK6BoundsmlERK9Matrix4x4(ptr dead_on_unwind noalias writable sret(%struct.Bounds) align 8, ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #4 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #7

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

declare noundef double @_ZNK5Plane8distanceERK5Vec3D(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5

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

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

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

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

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

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

declare void @_ZNK8TrianglemlERK9Matrix4x4(ptr dead_on_unwind writable sret(%class.Triangle) align 8, ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK8Triangle4normEv(ptr dead_on_unwind noalias writable sret(%class.Vec3D) align 8, ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK5Vec3D3dotERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK8TriangleixEi(ptr noundef nonnull align 8 dereferenceable(192), i32 noundef) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Vec3DC2ERK5Vec4D(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE12emplace_backIJS1_RKS1_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(96) ptr @_ZNK8Triangle6pointsEv(ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt5arrayI5Vec4DLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(96), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZNK8Triangle18textureCoordinatesEv(ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #6 align 2

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

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

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

declare void @_ZNK5Plane4clipERSt6vectorISt4pairI5Vec3DS2_ESaIS3_EES6_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE12emplace_backIJRS2_EEES6_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK9Matrix4x4mlERK5Vec4D(ptr dead_on_unwind noalias writable sret(%class.Vec4D) align 8, ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Vec3D11makePoint4DEv(ptr dead_on_unwind noalias writable sret(%class.Vec4D) align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Vec3DdvEd(ptr dead_on_unwind noalias writable sret(%class.Vec3D) align 8, ptr noundef nonnull align 8 dereferenceable(24), double noundef) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress 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) #8

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN5Vec3DdVEd(ptr noundef nonnull align 8 dereferenceable(24), double noundef) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 ptr @_ZNSt6vectorISt4pairI8TriangleS1_ESaIS2_EE12emplace_backIJS1_S1_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Vec3DC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

declare void @_ZN8TriangleC1ERKSt5arrayI5Vec4DLm3EERKS0_I5Vec3DLm3EE(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #5

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 #5 = { "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 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 #7 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { 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, !36, i64 200}
!6 = !{!"_ZTS6Camera", !7, i64 0, !32, i64 152, !19, i64 176, !19, i64 184, !19, i64 192, !36, i64 200, !19, i64 208, !37, i64 216, !37, i64 240, !41, i64 264, !43, i64 392}
!7 = !{!"_ZTS6Object", !8, i64 8, !15, i64 24, !11, i64 56, !19, i64 64, !19, i64 72, !20, i64 80, !28, i64 128}
!8 = !{!"_ZTSSt23enable_shared_from_thisI6ObjectE", !9, i64 0}
!9 = !{!"_ZTSSt8weak_ptrI6ObjectE", !10, i64 0}
!10 = !{!"_ZTSSt10__weak_ptrI6ObjectLN9__gnu_cxx12_Lock_policyE2EE", !11, i64 0, !14, i64 8}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSSt12__weak_countILN9__gnu_cxx12_Lock_policyE2EE", !11, i64 0}
!15 = !{!"_ZTS9ObjectTag", !16, i64 0}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !18, i64 8, !12, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !11, i64 0}
!18 = !{!"long", !12, i64 0}
!19 = !{!"double", !12, i64 0}
!20 = !{!"_ZTSSt3mapI9ObjectTagSt10shared_ptrI6ObjectESt4lessIS0_ESaISt4pairIKS0_S3_EEE", !21, i64 0}
!21 = !{!"_ZTSSt8_Rb_treeI9ObjectTagSt4pairIKS0_St10shared_ptrI6ObjectEESt10_Select1stIS6_ESt4lessIS0_ESaIS6_EE", !22, i64 0}
!22 = !{!"_ZTSNSt8_Rb_treeI9ObjectTagSt4pairIKS0_St10shared_ptrI6ObjectEESt10_Select1stIS6_ESt4lessIS0_ESaIS6_EE13_Rb_tree_implISA_Lb1EEE", !23, i64 0, !25, i64 8}
!23 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessI9ObjectTagEE", !24, i64 0}
!24 = !{!"_ZTSSt4lessI9ObjectTagE"}
!25 = !{!"_ZTSSt15_Rb_tree_header", !26, i64 0, !18, i64 32}
!26 = !{!"_ZTSSt18_Rb_tree_node_base", !27, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!27 = !{!"_ZTSSt14_Rb_tree_color", !12, i64 0}
!28 = !{!"_ZTSSt6vectorISt10shared_ptrI9ComponentESaIS2_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrI9ComponentESaIS2_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrI9ComponentESaIS2_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrI9ComponentESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!32 = !{!"_ZTSSt6vectorI5PlaneSaIS0_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseI5PlaneSaIS0_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseI5PlaneSaIS0_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseI5PlaneSaIS0_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!36 = !{!"bool", !12, i64 0}
!37 = !{!"_ZTSSt6vectorISt4pairI5Vec3DS1_ESaIS2_EE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseISt4pairI5Vec3DS1_ESaIS2_EE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseISt4pairI5Vec3DS1_ESaIS2_EE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseISt4pairI5Vec3DS1_ESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!41 = !{!"_ZTS9Matrix4x4", !42, i64 0}
!42 = !{!"_ZTSSt5arrayIS_IdLm4EELm4EE", !12, i64 0}
!43 = !{!"_ZTSSt10shared_ptrI15TransformMatrixE", !44, i64 0}
!44 = !{!"_ZTSSt12__shared_ptrI15TransformMatrixLN9__gnu_cxx12_Lock_policyE2EE", !11, i64 0, !45, i64 8}
!45 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !11, i64 0}
!46 = !{i8 0, i8 2}
!47 = !{}
!48 = !{!19, !19, i64 0}
!49 = !{i64 0, i64 24, !50}
!50 = !{!12, !12, i64 0}
!51 = distinct !{!51, !52}
!52 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass