; LLVM IR from drohmer/cgp :: library/cgp/20_format_parser/mesh_loader/obj (obj)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.0 = type { i64, [8 x i8] }
%"struct.cgp::mesh" = type { %"struct.cgp::numarray", %"struct.cgp::numarray", %"struct.cgp::numarray", %"struct.cgp::numarray.4", %"struct.cgp::numarray.10" }
%"struct.cgp::numarray" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.cgp::numarray.4" = type { %"class.std::vector.5" }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 2>, std::allocator<cgp::numarray_stack<float, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 2>, std::allocator<cgp::numarray_stack<float, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 2>, std::allocator<cgp::numarray_stack<float, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 2>, std::allocator<cgp::numarray_stack<float, 2>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.cgp::numarray.10" = type { %"class.std::vector.11" }
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<cgp::numarray_stack<unsigned int, 3>, std::allocator<cgp::numarray_stack<unsigned int, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::numarray_stack<unsigned int, 3>, std::allocator<cgp::numarray_stack<unsigned int, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::numarray_stack<unsigned int, 3>, std::allocator<cgp::numarray_stack<unsigned int, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::numarray_stack<unsigned int, 3>, std::allocator<cgp::numarray_stack<unsigned int, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"struct.cgp::numarray.24" = type { %"class.std::vector.25" }
%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = type { %"struct.std::_Vector_base<cgp::numarray_stack<cgp::numarray_stack<int, 3>, 3>, std::allocator<cgp::numarray_stack<cgp::numarray_stack<int, 3>, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::numarray_stack<cgp::numarray_stack<int, 3>, 3>, std::allocator<cgp::numarray_stack<cgp::numarray_stack<int, 3>, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::numarray_stack<cgp::numarray_stack<int, 3>, 3>, std::allocator<cgp::numarray_stack<cgp::numarray_stack<int, 3>, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::numarray_stack<cgp::numarray_stack<int, 3>, 3>, std::allocator<cgp::numarray_stack<cgp::numarray_stack<int, 3>, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.cgp::numarray.30" = type { %"class.std::vector.31" }
%"class.std::vector.31" = type { %"struct.std::_Vector_base.32" }
%"struct.std::_Vector_base.32" = type { %"struct.std::_Vector_base<cgp::numarray<cgp::numarray_stack<int, 3>>, std::allocator<cgp::numarray<cgp::numarray_stack<int, 3>>>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::numarray<cgp::numarray_stack<int, 3>>, std::allocator<cgp::numarray<cgp::numarray_stack<int, 3>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::numarray<cgp::numarray_stack<int, 3>>, std::allocator<cgp::numarray<cgp::numarray_stack<int, 3>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::numarray<cgp::numarray_stack<int, 3>>, std::allocator<cgp::numarray<cgp::numarray_stack<int, 3>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<cgp::numarray_stack<int, 3>, std::pair<const cgp::numarray_stack<int, 3>, int>, std::_Select1st<std::pair<const cgp::numarray_stack<int, 3>, int>>, cgp::comparator_int3>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<cgp::numarray_stack<int, 3>, std::pair<const cgp::numarray_stack<int, 3>, int>, std::_Select1st<std::pair<const cgp::numarray_stack<int, 3>, int>>, cgp::comparator_int3>::_Rb_tree_impl" = type { %"struct.std::_Rb_tree_key_compare", %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_key_compare" = type { %"struct.cgp::comparator_int3" }
%"struct.cgp::comparator_int3" = type { i64 }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::pair" = type { %"struct.cgp::mesh", %"class.std::map" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.39", %"struct.std::_Head_base.40" }
%"struct.std::_Tuple_impl.39" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { ptr }
%"struct.std::_Head_base.40" = type { ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair.41" = type { %"struct.cgp::numarray_stack.43", i32 }
%"struct.cgp::numarray_stack.43" = type { i32, i32, i32 }

@.str.2 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [16 x i8], align 1
@__func__._ZN3cgp18mesh_load_file_objERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_8numarrayINS8_IiEEEE = external hidden unnamed_addr constant [19 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noreturn
declare void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3cgp18mesh_load_file_objERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_8numarrayINS8_IiEEEE(ptr dead_on_unwind noalias writable sret(%"struct.cgp::mesh") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.cgp::numarray", align 8
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"struct.cgp::numarray.4", align 8
  %12 = alloca %"class.std::vector.5", align 8
  %13 = alloca %"struct.cgp::numarray", align 8
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::allocator", align 1
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::allocator", align 1
  %24 = alloca i32, align 4
  %25 = alloca %"struct.cgp::numarray.24", align 8
  %26 = alloca %"struct.cgp::numarray.30", align 8
  %27 = alloca i1, align 1
  %28 = alloca %"class.std::map", align 8
  %29 = alloca %"struct.std::pair", align 8
  %30 = alloca %"class.std::tuple", align 8
  %31 = alloca ptr, align 8
  %32 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %33 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %34 = alloca ptr, align 8
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  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
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3cgp17assert_file_existERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %37)
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #7
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3cgp6loader18obj_read_positionsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %38)
  invoke void @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEEC2ERKSt6vectorIS2_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %39 unwind label %60

39:                                               ; preds = %3
  call void @_ZNSt6vectorIN3cgp14numarray_stackIfLi3EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #7
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN3cgp6loader19obj_read_texture_uvERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::vector.5") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %40)
          to label %41 unwind label %64

41:                                               ; preds = %39
  invoke void @_ZN3cgp8numarrayINS_14numarray_stackIfLi2EEEEC2ERKSt6vectorIS2_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %42 unwind label %68

42:                                               ; preds = %41
  call void @_ZNSt6vectorIN3cgp14numarray_stackIfLi2EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #7
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN3cgp6loader16obj_read_normalsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %14, ptr noundef nonnull align 8 dereferenceable(32) %43)
          to label %44 unwind label %73

44:                                               ; preds = %42
  invoke void @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEEC2ERKSt6vectorIS2_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %45 unwind label %77

45:                                               ; preds = %44
  call void @_ZNSt6vectorIN3cgp14numarray_stackIfLi3EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  %46 = invoke noundef i32 @_ZNK3cgp8numarrayINS_14numarray_stackIfLi3EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %47 unwind label %82

47:                                               ; preds = %45
  %48 = icmp sgt i32 %46, 0
  %49 = zext i1 %48 to i32
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %51, label %120

51:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef @.str.10, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %52 unwind label %86

52:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #7
  invoke void @_ZN3cgp3strB5cxx11EPKc(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef @.str.11)
          to label %53 unwind label %90

53:                                               ; preds = %52
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %18, ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %54)
          to label %55 unwind label %94

55:                                               ; preds = %53
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %17, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str.12)
          to label %56 unwind label %98

56:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %57 unwind label %102

57:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef @__func__._ZN3cgp18mesh_load_file_objERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_8numarrayINS8_IiEEEE, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %58 unwind label %106

58:                                               ; preds = %57
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %22, i32 noundef 115) #8
          to label %59 unwind label %110

59:                                               ; preds = %58
  unreachable

60:                                               ; preds = %3
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %9, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %10, align 4
  call void @_ZNSt6vectorIN3cgp14numarray_stackIfLi3EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #7
  br label %232

64:                                               ; preds = %39
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %9, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %10, align 4
  br label %72

68:                                               ; preds = %41
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %9, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %10, align 4
  call void @_ZNSt6vectorIN3cgp14numarray_stackIfLi2EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  br label %72

72:                                               ; preds = %68, %64
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
  br label %231

73:                                               ; preds = %42
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %9, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %10, align 4
  br label %81

77:                                               ; preds = %44
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %9, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %10, align 4
  call void @_ZNSt6vectorIN3cgp14numarray_stackIfLi3EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  br label %81

81:                                               ; preds = %77, %73
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  br label %230

82:                                               ; preds = %45
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %9, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %10, align 4
  br label %229

86:                                               ; preds = %51
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %9, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %10, align 4
  br label %119

90:                                               ; preds = %52
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %9, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %10, align 4
  br label %118

94:                                               ; preds = %53
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %9, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %10, align 4
  br label %117

98:                                               ; preds = %55
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %9, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %10, align 4
  br label %116

102:                                              ; preds = %56
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %9, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %10, align 4
  br label %115

106:                                              ; preds = %57
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %9, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %10, align 4
  br label %114

110:                                              ; preds = %58
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %9, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #7
  br label %114

114:                                              ; preds = %110, %106
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  br label %115

115:                                              ; preds = %114, %102
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  br label %116

116:                                              ; preds = %115, %98
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  br label %117

117:                                              ; preds = %116, %94
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  br label %118

118:                                              ; preds = %117, %90
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  br label %119

119:                                              ; preds = %118, %86
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  br label %229

120:                                              ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 0, ptr %24, align 4, !tbaa !9
  %121 = invoke noundef i32 @_ZNK3cgp8numarrayINS_14numarray_stackIfLi2EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %122 unwind label %129

122:                                              ; preds = %120
  %123 = icmp sgt i32 %121, 0
  br i1 %123, label %124, label %133

124:                                              ; preds = %122
  %125 = invoke noundef i32 @_ZNK3cgp8numarrayINS_14numarray_stackIfLi3EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %126 unwind label %129

126:                                              ; preds = %124
  %127 = icmp sgt i32 %125, 0
  br i1 %127, label %128, label %133

128:                                              ; preds = %126
  store i32 2, ptr %24, align 4, !tbaa !9
  br label %145

129:                                              ; preds = %138, %133, %124, %120
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %9, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %10, align 4
  br label %228

133:                                              ; preds = %126, %122
  %134 = invoke noundef i32 @_ZNK3cgp8numarrayINS_14numarray_stackIfLi2EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %135 unwind label %129

135:                                              ; preds = %133
  %136 = icmp sgt i32 %134, 0
  br i1 %136, label %137, label %138

137:                                              ; preds = %135
  store i32 1, ptr %24, align 4, !tbaa !9
  br label %144

138:                                              ; preds = %135
  %139 = invoke noundef i32 @_ZNK3cgp8numarrayINS_14numarray_stackIfLi3EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %140 unwind label %129

140:                                              ; preds = %138
  %141 = icmp sgt i32 %139, 0
  br i1 %141, label %142, label %143

142:                                              ; preds = %140
  store i32 3, ptr %24, align 4, !tbaa !9
  br label %143

143:                                              ; preds = %142, %140
  br label %144

144:                                              ; preds = %143, %137
  br label %145

145:                                              ; preds = %144, %128
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #7
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  %147 = load i32, ptr %24, align 4, !tbaa !9
  invoke void @_ZN3cgp6loader14obj_read_facesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_8obj_typeE(ptr dead_on_unwind writable sret(%"struct.cgp::numarray.30") align 8 %26, ptr noundef nonnull align 8 dereferenceable(32) %146, i32 noundef %147)
          to label %148 unwind label %169

148:                                              ; preds = %145
  invoke void @_ZN3cgpL17triangulate_facesENS_8numarrayINS0_INS_14numarray_stackIiLi3EEEEEEE(ptr dead_on_unwind writable sret(%"struct.cgp::numarray.24") align 8 %25, ptr noundef %26)
          to label %149 unwind label %173

149:                                              ; preds = %148
  call void @_ZN3cgp8numarrayINS0_INS_14numarray_stackIiLi3EEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #7
  store i1 false, ptr %27, align 1
  invoke void @_ZN3cgp4meshC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0)
          to label %150 unwind label %177

150:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 48, ptr %28) #7
  invoke void @_ZNSt3mapIN3cgp14numarray_stackIiLi3EEEiNS0_15comparator_int3ESaISt4pairIKS2_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %28)
          to label %151 unwind label %181

151:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 168, ptr %29) #7
  %152 = load i32, ptr %24, align 4, !tbaa !9
  invoke void @_ZN3cgpL31make_unique_parameter_per_valueERKNS_8numarrayINS_14numarray_stackIfLi3EEEEERKNS0_INS1_IfLi2EEEEES5_RKNS0_INS1_INS1_IiLi3EEELi3EEEEENS_6loader8obj_typeE(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %29, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %25, i32 noundef %152)
          to label %153 unwind label %185

153:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #7
  call void @_ZSt3tieIJN3cgp4meshESt3mapINS0_14numarray_stackIiLi3EEEiNS0_15comparator_int3ESaISt4pairIKS4_iEEEEESt5tupleIJDpRT_EESE_(ptr dead_on_unwind writable sret(%"class.std::tuple") align 8 %30, ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(48) %28) #7
  %154 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRN3cgp4meshERSt3mapINS0_14numarray_stackIiLi3EEEiNS0_15comparator_int3ESaISt4pairIKS5_iEEEEEaSIS1_SB_EENSt9enable_ifIXcl12__assignableIT_T0_EEERSD_E4typeEOS7_ISG_SH_E(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(168) %29) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #7
  call void @_ZNSt4pairIN3cgp4meshESt3mapINS0_14numarray_stackIiLi3EEEiNS0_15comparator_int3ESaIS_IKS4_iEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(168) %29) #7
  call void @llvm.lifetime.end.p0(i64 168, ptr %29) #7
  %155 = load ptr, ptr %6, align 8, !tbaa !5
  %156 = invoke noundef i32 @_ZNK3cgp8numarrayINS_14numarray_stackIfLi3EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %157 unwind label %189

157:                                              ; preds = %153
  %158 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS0_IiEEE6resizeEi(ptr noundef nonnull align 8 dereferenceable(24) %155, i32 noundef %156)
          to label %159 unwind label %189

159:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  store ptr %28, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %160 = load ptr, ptr %31, align 8, !tbaa !5
  %161 = call ptr @_ZNSt3mapIN3cgp14numarray_stackIiLi3EEEiNS0_15comparator_int3ESaISt4pairIKS2_iEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %160) #7
  %162 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %32, i32 0, i32 0
  store ptr %161, ptr %162, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %163 = load ptr, ptr %31, align 8, !tbaa !5
  %164 = call ptr @_ZNSt3mapIN3cgp14numarray_stackIiLi3EEEiNS0_15comparator_int3ESaISt4pairIKS2_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %163) #7
  %165 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %33, i32 0, i32 0
  store ptr %164, ptr %165, align 8
  br label %166

166:                                              ; preds = %209, %159
  %167 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKN3cgp14numarray_stackIiLi3EEEiEES8_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33) #7
  br i1 %167, label %193, label %168

168:                                              ; preds = %166
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %220

169:                                              ; preds = %145
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %9, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %10, align 4
  br label %227

173:                                              ; preds = %148
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %9, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %10, align 4
  call void @_ZN3cgp8numarrayINS0_INS_14numarray_stackIiLi3EEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #7
  br label %227

177:                                              ; preds = %149
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %9, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %10, align 4
  br label %226

181:                                              ; preds = %150
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %9, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %10, align 4
  br label %223

185:                                              ; preds = %151
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %9, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 168, ptr %29) #7
  br label %222

189:                                              ; preds = %157, %153
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %9, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %10, align 4
  br label %222

193:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %194 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKN3cgp14numarray_stackIiLi3EEEiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #7
  store ptr %194, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  %195 = load ptr, ptr %34, align 8, !tbaa !5
  %196 = getelementptr inbounds %"struct.std::pair.41", ptr %195, i32 0, i32 0
  %197 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3cgp14numarray_stackIiLi3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %196, i32 noundef 0)
          to label %198 unwind label %211

198:                                              ; preds = %193
  %199 = load i32, ptr %197, align 4, !tbaa !11
  store i32 %199, ptr %35, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  %200 = load ptr, ptr %34, align 8, !tbaa !5
  %201 = getelementptr inbounds %"struct.std::pair.41", ptr %200, i32 0, i32 1
  %202 = load i32, ptr %201, align 4, !tbaa !13
  store i32 %202, ptr %36, align 4, !tbaa !11
  %203 = load ptr, ptr %6, align 8, !tbaa !5
  %204 = load i32, ptr %35, align 4, !tbaa !11
  %205 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS0_IiEEEixEi(ptr noundef nonnull align 8 dereferenceable(24) %203, i32 noundef %204)
          to label %206 unwind label %215

206:                                              ; preds = %198
  %207 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayIiE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %205, ptr noundef nonnull align 4 dereferenceable(4) %36)
          to label %208 unwind label %215

208:                                              ; preds = %206
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  br label %209

209:                                              ; preds = %208
  %210 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKN3cgp14numarray_stackIiLi3EEEiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #7
  br label %166

211:                                              ; preds = %193
  %212 = landingpad { ptr, i32 }
          cleanup
  %213 = extractvalue { ptr, i32 } %212, 0
  store ptr %213, ptr %9, align 8
  %214 = extractvalue { ptr, i32 } %212, 1
  store i32 %214, ptr %10, align 4
  br label %219

215:                                              ; preds = %206, %198
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %9, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  br label %219

219:                                              ; preds = %215, %211
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %222

220:                                              ; preds = %168
  store i1 true, ptr %27, align 1
  call void @_ZNSt3mapIN3cgp14numarray_stackIiLi3EEEiNS0_15comparator_int3ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %28) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %28) #7
  %221 = load i1, ptr %27, align 1
  br i1 %221, label %225, label %224

222:                                              ; preds = %219, %189, %185
  call void @_ZNSt3mapIN3cgp14numarray_stackIiLi3EEEiNS0_15comparator_int3ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %28) #7
  br label %223

223:                                              ; preds = %222, %181
  call void @llvm.lifetime.end.p0(i64 48, ptr %28) #7
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #7
  br label %226

224:                                              ; preds = %220
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #7
  br label %225

225:                                              ; preds = %224, %220
  call void @_ZN3cgp8numarrayINS_14numarray_stackINS1_IiLi3EEELi3EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #7
  call void @_ZN3cgp8numarrayINS_14numarray_stackIfLi2EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #7
  call void @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  ret void

226:                                              ; preds = %223, %177
  call void @_ZN3cgp8numarrayINS_14numarray_stackINS1_IiLi3EEELi3EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  br label %227

227:                                              ; preds = %226, %173, %169
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #7
  br label %228

228:                                              ; preds = %227, %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %229

229:                                              ; preds = %228, %119, %82
  call void @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  br label %230

230:                                              ; preds = %229, %81
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #7
  call void @_ZN3cgp8numarrayINS_14numarray_stackIfLi2EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  br label %231

231:                                              ; preds = %230, %72
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #7
  call void @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  br label %232

232:                                              ; preds = %231, %60
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  br label %233

233:                                              ; preds = %232
  %234 = load ptr, ptr %9, align 8
  %235 = load i32, ptr %10, align 4
  %236 = insertvalue { ptr, i32 } poison, ptr %234, 0
  %237 = insertvalue { ptr, i32 } %236, i32 %235, 1
  resume { ptr, i32 } %237
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #5 align 2

declare void @_ZN3cgp17assert_file_existERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) #6

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

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

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

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

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

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

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

declare void @_ZN3cgp3strB5cxx11EPKc(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef) #6

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3cgpL17triangulate_facesENS_8numarrayINS0_INS_14numarray_stackIiLi3EEEEEEE(ptr dead_on_unwind noalias writable sret(%"struct.cgp::numarray.24") align 8, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3cgp6loader14obj_read_facesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_8obj_typeE(ptr dead_on_unwind noalias writable sret(%"struct.cgp::numarray.30") align 8, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #3

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3cgpL31make_unique_parameter_per_valueERKNS_8numarrayINS_14numarray_stackIfLi3EEEEERKNS0_INS1_IfLi2EEEEES5_RKNS0_INS1_INS1_IiLi3EEELi3EEEEENS_6loader8obj_typeE(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt3tieIJN3cgp4meshESt3mapINS0_14numarray_stackIiLi3EEEiNS0_15comparator_int3ESaISt4pairIKS4_iEEEEESt5tupleIJDpRT_EESE_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 8, ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(48)) #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIN3cgp4meshESt3mapINS0_14numarray_stackIiLi3EEEiNS0_15comparator_int3ESaIS_IKS4_iEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(168)) unnamed_addr #5 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3cgp14numarray_stackIiLi3EEixEi(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) #3 align 2

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

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

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

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

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

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

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

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

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

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

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


; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.0 = type { i64, [8 x i8] }
%"struct.cgp::mesh" = type { %"struct.cgp::numarray", %"struct.cgp::numarray", %"struct.cgp::numarray", %"struct.cgp::numarray.4", %"struct.cgp::numarray.10" }
%"struct.cgp::numarray" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.cgp::numarray.4" = type { %"class.std::vector.5" }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 2>, std::allocator<cgp::numarray_stack<float, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 2>, std::allocator<cgp::numarray_stack<float, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 2>, std::allocator<cgp::numarray_stack<float, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 2>, std::allocator<cgp::numarray_stack<float, 2>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.cgp::numarray.10" = type { %"class.std::vector.11" }
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<cgp::numarray_stack<unsigned int, 3>, std::allocator<cgp::numarray_stack<unsigned int, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::numarray_stack<unsigned int, 3>, std::allocator<cgp::numarray_stack<unsigned int, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::numarray_stack<unsigned int, 3>, std::allocator<cgp::numarray_stack<unsigned int, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::numarray_stack<unsigned int, 3>, std::allocator<cgp::numarray_stack<unsigned int, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"struct.cgp::numarray.24" = type { %"class.std::vector.25" }
%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = type { %"struct.std::_Vector_base<cgp::numarray_stack<cgp::numarray_stack<int, 3>, 3>, std::allocator<cgp::numarray_stack<cgp::numarray_stack<int, 3>, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::numarray_stack<cgp::numarray_stack<int, 3>, 3>, std::allocator<cgp::numarray_stack<cgp::numarray_stack<int, 3>, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::numarray_stack<cgp::numarray_stack<int, 3>, 3>, std::allocator<cgp::numarray_stack<cgp::numarray_stack<int, 3>, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::numarray_stack<cgp::numarray_stack<int, 3>, 3>, std::allocator<cgp::numarray_stack<cgp::numarray_stack<int, 3>, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.cgp::numarray.30" = type { %"class.std::vector.31" }
%"class.std::vector.31" = type { %"struct.std::_Vector_base.32" }
%"struct.std::_Vector_base.32" = type { %"struct.std::_Vector_base<cgp::numarray<cgp::numarray_stack<int, 3>>, std::allocator<cgp::numarray<cgp::numarray_stack<int, 3>>>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::numarray<cgp::numarray_stack<int, 3>>, std::allocator<cgp::numarray<cgp::numarray_stack<int, 3>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::numarray<cgp::numarray_stack<int, 3>>, std::allocator<cgp::numarray<cgp::numarray_stack<int, 3>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::numarray<cgp::numarray_stack<int, 3>>, std::allocator<cgp::numarray<cgp::numarray_stack<int, 3>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<cgp::numarray_stack<int, 3>, std::pair<const cgp::numarray_stack<int, 3>, int>, std::_Select1st<std::pair<const cgp::numarray_stack<int, 3>, int>>, cgp::comparator_int3>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<cgp::numarray_stack<int, 3>, std::pair<const cgp::numarray_stack<int, 3>, int>, std::_Select1st<std::pair<const cgp::numarray_stack<int, 3>, int>>, cgp::comparator_int3>::_Rb_tree_impl" = type { %"struct.std::_Rb_tree_key_compare", %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_key_compare" = type { %"struct.cgp::comparator_int3" }
%"struct.cgp::comparator_int3" = type { i64 }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::pair" = type { %"struct.cgp::mesh", %"class.std::map" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.39", %"struct.std::_Head_base.40" }
%"struct.std::_Tuple_impl.39" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { ptr }
%"struct.std::_Head_base.40" = type { ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }

@.str.2 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [16 x i8], align 1
@__func__._ZN3cgp18mesh_load_file_objERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_8numarrayINS8_IiEEEE = external hidden unnamed_addr constant [19 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noreturn
declare void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

; 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 nounwind uwtable
declare dso_local noundef i32 @_ZNK3cgp8numarrayINS_14numarray_stackIfLi3EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3cgp18mesh_load_file_objERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_8numarrayINS8_IiEEEE(ptr dead_on_unwind noalias writable sret(%"struct.cgp::mesh") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.cgp::numarray", align 8
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"struct.cgp::numarray.4", align 8
  %7 = alloca %"class.std::vector.5", align 8
  %8 = alloca %"struct.cgp::numarray", align 8
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::allocator", align 1
  %19 = alloca %"struct.cgp::numarray.24", align 8
  %20 = alloca %"struct.cgp::numarray.30", align 8
  %21 = alloca %"class.std::map", align 8
  %22 = alloca %"struct.std::pair", align 8
  %23 = alloca %"class.std::tuple", align 8
  %24 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %25 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %26 = alloca i32, align 4
  tail call void @_ZN3cgp17assert_file_existERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  call void @_ZN3cgp6loader18obj_read_positionsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %1)
  invoke void @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEEC2ERKSt6vectorIS2_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %27 unwind label %42

27:                                               ; preds = %3
  call void @_ZNSt6vectorIN3cgp14numarray_stackIfLi3EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  invoke void @_ZN3cgp6loader19obj_read_texture_uvERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.5") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %28 unwind label %44

28:                                               ; preds = %27
  invoke void @_ZN3cgp8numarrayINS_14numarray_stackIfLi2EEEEC2ERKSt6vectorIS2_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %29 unwind label %46

29:                                               ; preds = %28
  call void @_ZNSt6vectorIN3cgp14numarray_stackIfLi2EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #7
  invoke void @_ZN3cgp6loader16obj_read_normalsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %30 unwind label %49

30:                                               ; preds = %29
  invoke void @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEEC2ERKSt6vectorIS2_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %31 unwind label %51

31:                                               ; preds = %30
  call void @_ZNSt6vectorIN3cgp14numarray_stackIfLi3EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  %32 = call noundef i32 @_ZNK3cgp8numarrayINS_14numarray_stackIfLi3EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %33 = icmp slt i32 %32, 1
  br i1 %33, label %34, label %74

34:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.10, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %35 unwind label %54

35:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #7
  invoke void @_ZN3cgp3strB5cxx11EPKc(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull @.str.11)
          to label %36 unwind label %56

36:                                               ; preds = %35
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %37 unwind label %58

37:                                               ; preds = %36
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull @.str.12)
          to label %38 unwind label %60

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %39 unwind label %62

39:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull @__func__._ZN3cgp18mesh_load_file_objERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_8numarrayINS8_IiEEEE, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %40 unwind label %64

40:                                               ; preds = %39
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %17, i32 noundef 115) #8
          to label %41 unwind label %66

41:                                               ; preds = %40
  unreachable

42:                                               ; preds = %3
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3cgp14numarray_stackIfLi3EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  br label %135

44:                                               ; preds = %27
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %48

46:                                               ; preds = %28
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3cgp14numarray_stackIfLi2EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  br label %48

48:                                               ; preds = %46, %44
  %.pn = phi { ptr, i32 } [ %47, %46 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  br label %134

49:                                               ; preds = %29
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %53

51:                                               ; preds = %30
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3cgp14numarray_stackIfLi3EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  br label %53

53:                                               ; preds = %51, %49
  %.pn36 = phi { ptr, i32 } [ %52, %51 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  br label %133

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

56:                                               ; preds = %35
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %72

58:                                               ; preds = %36
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %71

60:                                               ; preds = %37
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %70

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

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

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

68:                                               ; preds = %66, %64
  %.pn44 = phi { ptr, i32 } [ %67, %66 ], [ %65, %64 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  br label %69

69:                                               ; preds = %68, %62
  %.pn44.pn = phi { ptr, i32 } [ %.pn44, %68 ], [ %63, %62 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  br label %70

70:                                               ; preds = %69, %60
  %.pn44.pn.pn = phi { ptr, i32 } [ %.pn44.pn, %69 ], [ %61, %60 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  br label %71

71:                                               ; preds = %70, %58
  %.pn44.pn.pn.pn = phi { ptr, i32 } [ %.pn44.pn.pn, %70 ], [ %59, %58 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  br label %72

72:                                               ; preds = %71, %56
  %.pn44.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn44.pn.pn.pn, %71 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  br label %73

73:                                               ; preds = %72, %54
  %.pn44.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn44.pn.pn.pn.pn, %72 ], [ %55, %54 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  br label %132

74:                                               ; preds = %31
  %75 = call noundef i32 @_ZNK3cgp8numarrayINS_14numarray_stackIfLi2EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %76 = icmp sgt i32 %75, 0
  br i1 %76, label %77, label %80

77:                                               ; preds = %74
  %78 = call noundef i32 @_ZNK3cgp8numarrayINS_14numarray_stackIfLi3EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %79 = icmp sgt i32 %78, 0
  br i1 %79, label %86, label %80

80:                                               ; preds = %77, %74
  %81 = call noundef i32 @_ZNK3cgp8numarrayINS_14numarray_stackIfLi2EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %82 = icmp sgt i32 %81, 0
  br i1 %82, label %86, label %83

83:                                               ; preds = %80
  %84 = call noundef i32 @_ZNK3cgp8numarrayINS_14numarray_stackIfLi3EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %85 = icmp sgt i32 %84, 0
  %spec.select = select i1 %85, i32 3, i32 0
  br label %86

86:                                               ; preds = %83, %80, %77
  %.034 = phi i32 [ 2, %77 ], [ 1, %80 ], [ %spec.select, %83 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #7
  invoke void @_ZN3cgp6loader14obj_read_facesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_8obj_typeE(ptr dead_on_unwind nonnull writable sret(%"struct.cgp::numarray.30") align 8 %20, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %.034)
          to label %87 unwind label %99

87:                                               ; preds = %86
  invoke void @_ZN3cgpL17triangulate_facesENS_8numarrayINS0_INS_14numarray_stackIiLi3EEEEEEE(ptr dead_on_unwind nonnull writable sret(%"struct.cgp::numarray.24") align 8 %19, ptr noundef nonnull %20)
          to label %88 unwind label %101

88:                                               ; preds = %87
  call void @_ZN3cgp8numarrayINS0_INS_14numarray_stackIiLi3EEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  invoke void @_ZN3cgp4meshC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0)
          to label %89 unwind label %103

89:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %21) #7
  invoke void @_ZNSt3mapIN3cgp14numarray_stackIiLi3EEEiNS0_15comparator_int3ESaISt4pairIKS2_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21)
          to label %90 unwind label %105

90:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 168, ptr nonnull %22) #7
  invoke void @_ZN3cgpL31make_unique_parameter_per_valueERKNS_8numarrayINS_14numarray_stackIfLi3EEEEERKNS0_INS1_IfLi2EEEEES5_RKNS0_INS1_INS1_IiLi3EEELi3EEEEENS_6loader8obj_typeE(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %22, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %19, i32 noundef %.034)
          to label %91 unwind label %107

91:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #7
  call void @_ZSt3tieIJN3cgp4meshESt3mapINS0_14numarray_stackIiLi3EEEiNS0_15comparator_int3ESaISt4pairIKS4_iEEEEESt5tupleIJDpRT_EESE_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 8 %23, ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(48) %21) #7
  %92 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRN3cgp4meshERSt3mapINS0_14numarray_stackIiLi3EEEiNS0_15comparator_int3ESaISt4pairIKS5_iEEEEEaSIS1_SB_EENSt9enable_ifIXcl12__assignableIT_T0_EEERSD_E4typeEOS7_ISG_SH_E(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(168) %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #7
  call void @_ZNSt4pairIN3cgp4meshESt3mapINS0_14numarray_stackIiLi3EEEiNS0_15comparator_int3ESaIS_IKS4_iEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(168) %22) #7
  call void @llvm.lifetime.end.p0(i64 168, ptr nonnull %22) #7
  %93 = call noundef i32 @_ZNK3cgp8numarrayINS_14numarray_stackIfLi3EEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %94 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS0_IiEEE6resizeEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %93)
          to label %95 unwind label %109

95:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #7
  %96 = call ptr @_ZNSt3mapIN3cgp14numarray_stackIiLi3EEEiNS0_15comparator_int3ESaISt4pairIKS2_iEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %21) #7
  store ptr %96, ptr %24, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #7
  %97 = call ptr @_ZNSt3mapIN3cgp14numarray_stackIiLi3EEEiNS0_15comparator_int3ESaISt4pairIKS2_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %21) #7
  store ptr %97, ptr %25, align 8
  %98 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKN3cgp14numarray_stackIiLi3EEEiEES8_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  br i1 %98, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %120, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #7
  call void @_ZNSt3mapIN3cgp14numarray_stackIiLi3EEEiNS0_15comparator_int3ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %21) #7
  call void @_ZN3cgp8numarrayINS_14numarray_stackINS1_IiLi3EEELi3EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #7
  call void @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @_ZN3cgp8numarrayINS_14numarray_stackIfLi2EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  call void @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  ret void

99:                                               ; preds = %86
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %131

101:                                              ; preds = %87
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3cgp8numarrayINS0_INS_14numarray_stackIiLi3EEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  br label %131

103:                                              ; preds = %88
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %130

105:                                              ; preds = %89
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %129

107:                                              ; preds = %90
  %108 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 168, ptr nonnull %22) #7
  br label %128

109:                                              ; preds = %91
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %128

.lr.ph:                                           ; preds = %95, %120
  %111 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKN3cgp14numarray_stackIiLi3EEEiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  %112 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3cgp14numarray_stackIiLi3EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %111, i32 noundef 0)
          to label %113 unwind label %123

113:                                              ; preds = %.lr.ph
  %114 = load i32, ptr %112, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #7
  %115 = getelementptr inbounds i8, ptr %111, i64 12
  %116 = load i32, ptr %115, align 4, !tbaa !9
  store i32 %116, ptr %26, align 4, !tbaa !5
  %117 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS0_IiEEEixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %114)
          to label %118 unwind label %125

118:                                              ; preds = %113
  %119 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayIiE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %117, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %120 unwind label %125

120:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #7
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKN3cgp14numarray_stackIiLi3EEEiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  %122 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKN3cgp14numarray_stackIiLi3EEEiEES8_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  br i1 %122, label %.lr.ph, label %._crit_edge

123:                                              ; preds = %.lr.ph
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %127

125:                                              ; preds = %118, %113
  %126 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #7
  br label %127

127:                                              ; preds = %125, %123
  %.pn38 = phi { ptr, i32 } [ %126, %125 ], [ %124, %123 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #7
  br label %128

128:                                              ; preds = %127, %109, %107
  %.pn38.pn = phi { ptr, i32 } [ %.pn38, %127 ], [ %110, %109 ], [ %108, %107 ]
  call void @_ZNSt3mapIN3cgp14numarray_stackIiLi3EEEiNS0_15comparator_int3ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #7
  br label %129

129:                                              ; preds = %128, %105
  %.pn38.pn.pn = phi { ptr, i32 } [ %.pn38.pn, %128 ], [ %106, %105 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %21) #7
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #7
  br label %130

130:                                              ; preds = %129, %103
  %.pn38.pn.pn.pn = phi { ptr, i32 } [ %.pn38.pn.pn, %129 ], [ %104, %103 ]
  call void @_ZN3cgp8numarrayINS_14numarray_stackINS1_IiLi3EEELi3EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  br label %131

131:                                              ; preds = %130, %101, %99
  %.pn38.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn38.pn.pn.pn, %130 ], [ %102, %101 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #7
  br label %132

132:                                              ; preds = %131, %73
  %.pn44.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn44.pn.pn.pn.pn.pn, %73 ], [ %.pn38.pn.pn.pn.pn, %131 ]
  call void @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  br label %133

133:                                              ; preds = %132, %53
  %.pn44.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn44.pn.pn.pn.pn.pn.pn, %132 ], [ %.pn36, %53 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @_ZN3cgp8numarrayINS_14numarray_stackIfLi2EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  br label %134

134:                                              ; preds = %133, %48
  %.pn44.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn44.pn.pn.pn.pn.pn.pn.pn, %133 ], [ %.pn, %48 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  call void @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  br label %135

135:                                              ; preds = %134, %42
  %.pn44.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn44.pn.pn.pn.pn.pn.pn.pn.pn, %134 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  resume { ptr, i32 } %.pn44.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #5 align 2

declare void @_ZN3cgp17assert_file_existERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6

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

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

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

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

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

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

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

declare void @_ZN3cgp3strB5cxx11EPKc(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3cgpL17triangulate_facesENS_8numarrayINS0_INS_14numarray_stackIiLi3EEEEEEE(ptr dead_on_unwind noalias writable sret(%"struct.cgp::numarray.24") align 8, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3cgp6loader14obj_read_facesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_8obj_typeE(ptr dead_on_unwind noalias writable sret(%"struct.cgp::numarray.30") align 8, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3cgpL31make_unique_parameter_per_valueERKNS_8numarrayINS_14numarray_stackIfLi3EEEEERKNS0_INS1_IfLi2EEEEES5_RKNS0_INS1_INS1_IiLi3EEELi3EEEEENS_6loader8obj_typeE(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt3tieIJN3cgp4meshESt3mapINS0_14numarray_stackIiLi3EEEiNS0_15comparator_int3ESaISt4pairIKS4_iEEEEESt5tupleIJDpRT_EESE_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 8, ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIN3cgp4meshESt3mapINS0_14numarray_stackIiLi3EEEiNS0_15comparator_int3ESaIS_IKS4_iEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(168)) unnamed_addr #5 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3cgp14numarray_stackIiLi3EEixEi(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) local_unnamed_addr #3 align 2

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

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

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

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

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

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

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

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

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

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 12}
!10 = !{!"_ZTSSt4pairIKN3cgp14numarray_stackIiLi3EEEiE", !11, i64 0, !6, i64 12}
!11 = !{!"_ZTSN3cgp14numarray_stackIiLi3EEE", !6, i64 0, !6, i64 4, !6, i64 8}


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