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

; 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"

%"struct.cgp::opengl_texture_image_structure" = type { i32, i32, i32, i32, i32 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector.112" = type { %"struct.std::_Vector_base.113" }
%"struct.std::_Vector_base.113" = type { %"struct.std::_Vector_base<cgp::mesh_obj_advanced_loader::shape_element_node, std::allocator<cgp::mesh_obj_advanced_loader::shape_element_node>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::mesh_obj_advanced_loader::shape_element_node, std::allocator<cgp::mesh_obj_advanced_loader::shape_element_node>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::mesh_obj_advanced_loader::shape_element_node, std::allocator<cgp::mesh_obj_advanced_loader::shape_element_node>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::mesh_obj_advanced_loader::shape_element_node, std::allocator<cgp::mesh_obj_advanced_loader::shape_element_node>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.tinyobj::ObjReaderConfig" = type { i8, %"class.std::__cxx11::basic_string", i8, %"class.std::__cxx11::basic_string" }
%"class.tinyobj::ObjReader" = type { i8, %"struct.tinyobj::attrib_t", %"class.std::vector.36", %"class.std::vector", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%"struct.tinyobj::attrib_t" = type { %"class.std::vector.26", %"class.std::vector.26", %"class.std::vector.26", %"class.std::vector.26", %"class.std::vector.26", %"class.std::vector.26", %"class.std::vector.31" }
%"class.std::vector.26" = type { %"struct.std::_Vector_base.27" }
%"struct.std::_Vector_base.27" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.31" = type { %"struct.std::_Vector_base.32" }
%"struct.std::_Vector_base.32" = type { %"struct.std::_Vector_base<tinyobj::skin_weight_t, std::allocator<tinyobj::skin_weight_t>>::_Vector_impl" }
%"struct.std::_Vector_base<tinyobj::skin_weight_t, std::allocator<tinyobj::skin_weight_t>>::_Vector_impl" = type { %"struct.std::_Vector_base<tinyobj::skin_weight_t, std::allocator<tinyobj::skin_weight_t>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tinyobj::skin_weight_t, std::allocator<tinyobj::skin_weight_t>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.36" = type { %"struct.std::_Vector_base.37" }
%"struct.std::_Vector_base.37" = type { %"struct.std::_Vector_base<tinyobj::shape_t, std::allocator<tinyobj::shape_t>>::_Vector_impl" }
%"struct.std::_Vector_base<tinyobj::shape_t, std::allocator<tinyobj::shape_t>>::_Vector_impl" = type { %"struct.std::_Vector_base<tinyobj::shape_t, std::allocator<tinyobj::shape_t>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tinyobj::shape_t, std::allocator<tinyobj::shape_t>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<tinyobj::material_t, std::allocator<tinyobj::material_t>>::_Vector_impl" }
%"struct.std::_Vector_base<tinyobj::material_t, std::allocator<tinyobj::material_t>>::_Vector_impl" = type { %"struct.std::_Vector_base<tinyobj::material_t, std::allocator<tinyobj::material_t>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tinyobj::material_t, std::allocator<tinyobj::material_t>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.146" = type { %"struct.std::_Vector_base.147" }
%"struct.std::_Vector_base.147" = type { %"struct.std::_Vector_base<cgp::opengl_texture_image_structure, std::allocator<cgp::opengl_texture_image_structure>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::opengl_texture_image_structure, std::allocator<cgp::opengl_texture_image_structure>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::opengl_texture_image_structure, std::allocator<cgp::opengl_texture_image_structure>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::opengl_texture_image_structure, std::allocator<cgp::opengl_texture_image_structure>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.cgp::mesh" = type { %"struct.cgp::numarray", %"struct.cgp::numarray", %"struct.cgp::numarray", %"struct.cgp::numarray.122", %"struct.cgp::numarray.128" }
%"struct.cgp::numarray" = type { %"class.std::vector.117" }
%"class.std::vector.117" = type { %"struct.std::_Vector_base.118" }
%"struct.std::_Vector_base.118" = 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.122" = type { %"class.std::vector.123" }
%"class.std::vector.123" = type { %"struct.std::_Vector_base.124" }
%"struct.std::_Vector_base.124" = 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.128" = type { %"class.std::vector.129" }
%"class.std::vector.129" = type { %"struct.std::_Vector_base.130" }
%"struct.std::_Vector_base.130" = 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 }
%"struct.cgp::mesh_obj_advanced_loader::shape_element_node" = type <{ %"struct.cgp::mesh", %"struct.cgp::opengl_texture_image_structure", [4 x i8] }>
%"struct.tinyobj::index_t" = type { i32, i32, i32 }
%"struct.cgp::numarray_stack.144" = type { float, float, float }
%"struct.cgp::numarray_stack.151" = type { float, float }
%"struct.cgp::numarray_stack.152" = type { i32, i32, i32 }
%"struct.tinyobj::material_t" = type { %"class.std::__cxx11::basic_string", [3 x float], [3 x float], [3 x float], [3 x float], [3 x float], float, float, float, i32, i32, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"struct.tinyobj::texture_option_t", %"struct.tinyobj::texture_option_t", %"struct.tinyobj::texture_option_t", %"struct.tinyobj::texture_option_t", %"struct.tinyobj::texture_option_t", %"struct.tinyobj::texture_option_t", %"struct.tinyobj::texture_option_t", %"struct.tinyobj::texture_option_t", float, float, float, float, float, float, float, float, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"struct.tinyobj::texture_option_t", %"struct.tinyobj::texture_option_t", %"struct.tinyobj::texture_option_t", %"struct.tinyobj::texture_option_t", %"struct.tinyobj::texture_option_t", i32, %"class.std::map" }
%"struct.tinyobj::texture_option_t" = type { i32, float, float, float, [3 x float], [3 x float], [3 x float], i32, i8, i8, i8, i8, float, %"class.std::__cxx11::basic_string" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.tinyobj::shape_t" = type { %"class.std::__cxx11::basic_string", %"struct.tinyobj::mesh_t", %"struct.tinyobj::lines_t", %"struct.tinyobj::points_t" }
%"struct.tinyobj::mesh_t" = type { %"class.std::vector.65", %"class.std::vector.70", %"class.std::vector.75", %"class.std::vector.80", %"class.std::vector.41" }
%"class.std::vector.65" = type { %"struct.std::_Vector_base.66" }
%"struct.std::_Vector_base.66" = type { %"struct.std::_Vector_base<tinyobj::index_t, std::allocator<tinyobj::index_t>>::_Vector_impl" }
%"struct.std::_Vector_base<tinyobj::index_t, std::allocator<tinyobj::index_t>>::_Vector_impl" = type { %"struct.std::_Vector_base<tinyobj::index_t, std::allocator<tinyobj::index_t>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tinyobj::index_t, std::allocator<tinyobj::index_t>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.70" = type { %"struct.std::_Vector_base.71" }
%"struct.std::_Vector_base.71" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.75" = type { %"struct.std::_Vector_base.76" }
%"struct.std::_Vector_base.76" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.80" = type { %"struct.std::_Vector_base.81" }
%"struct.std::_Vector_base.81" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.41" = type { %"struct.std::_Vector_base.42" }
%"struct.std::_Vector_base.42" = type { %"struct.std::_Vector_base<tinyobj::tag_t, std::allocator<tinyobj::tag_t>>::_Vector_impl" }
%"struct.std::_Vector_base<tinyobj::tag_t, std::allocator<tinyobj::tag_t>>::_Vector_impl" = type { %"struct.std::_Vector_base<tinyobj::tag_t, std::allocator<tinyobj::tag_t>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tinyobj::tag_t, std::allocator<tinyobj::tag_t>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.tinyobj::lines_t" = type { %"class.std::vector.65", %"class.std::vector.75" }
%"struct.tinyobj::points_t" = type { %"class.std::vector.65" }

@.str.49 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZN3cgp13mesh_drawable15default_textureE = external global %"struct.cgp::opengl_texture_image_structure", align 4
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.73 = external hidden unnamed_addr constant [16 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7tinyobj9ObjReader13ParseFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_15ObjReaderConfigE(ptr noundef nonnull align 8 dereferenceable(288), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(80)) #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3cgp27mesh_load_file_obj_advancedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_(ptr dead_on_unwind noalias writable sret(%"class.std::vector.112") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %2) #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i1, align 1
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"struct.tinyobj::ObjReaderConfig", align 8
  %12 = alloca %"class.tinyobj::ObjReader", align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::vector.146", align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i64, align 8
  %25 = alloca i32, align 4
  %26 = alloca %"struct.cgp::mesh", align 8
  %27 = alloca i64, align 8
  %28 = alloca i32, align 4
  %29 = alloca %"struct.cgp::mesh_obj_advanced_loader::shape_element_node", align 8
  %30 = alloca %"struct.cgp::mesh", align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca %"struct.tinyobj::index_t", align 4
  %34 = alloca float, align 4
  %35 = alloca float, align 4
  %36 = alloca float, align 4
  %37 = alloca %"struct.cgp::numarray_stack.144", align 4
  %38 = alloca float, align 4
  %39 = alloca float, align 4
  %40 = alloca float, align 4
  %41 = alloca %"struct.cgp::numarray_stack.144", align 4
  %42 = alloca float, align 4
  %43 = alloca float, align 4
  %44 = alloca %"struct.cgp::numarray_stack.151", align 4
  %45 = alloca %"struct.cgp::numarray_stack.152", align 4
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca %"struct.cgp::mesh_obj_advanced_loader::shape_element_node", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  store i1 false, ptr %7, align 1
  call void @_ZNSt6vectorIN3cgp24mesh_obj_advanced_loader18shape_element_nodeESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #9
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %49, ptr noundef nonnull align 8 dereferenceable(32) %50)
          to label %51 unwind label %67

51:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 80, ptr %11) #9
  invoke void @_ZN7tinyobj15ObjReaderConfigC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %11)
          to label %52 unwind label %71

52:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 288, ptr %12) #9
  invoke void @_ZN7tinyobj9ObjReaderC2Ev(ptr noundef nonnull align 8 dereferenceable(288) %12)
          to label %53 unwind label %75

53:                                               ; preds = %52
  %54 = invoke noundef zeroext i1 @_ZN7tinyobj9ObjReader13ParseFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_15ObjReaderConfigE(ptr noundef nonnull align 8 dereferenceable(288) %12, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(80) %11)
          to label %55 unwind label %79

55:                                               ; preds = %53
  br i1 %54, label %84, label %56

56:                                               ; preds = %55
  %57 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7tinyobj9ObjReader5ErrorB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(288) %12)
          to label %58 unwind label %79

58:                                               ; preds = %56
  %59 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %57) #9
  br i1 %59, label %83, label %60

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

62:                                               ; preds = %60
  %63 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7tinyobj9ObjReader5ErrorB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(288) %12)
          to label %64 unwind label %79

64:                                               ; preds = %62
  %65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef nonnull align 8 dereferenceable(32) %63)
          to label %66 unwind label %79

66:                                               ; preds = %64
  br label %83

67:                                               ; preds = %3
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %9, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %10, align 4
  br label %445

71:                                               ; preds = %51
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %9, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %10, align 4
  br label %444

75:                                               ; preds = %52
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %9, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %10, align 4
  br label %443

79:                                               ; preds = %92, %90, %88, %84, %64, %62, %60, %56, %53
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %9, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %10, align 4
  br label %442

83:                                               ; preds = %66, %58
  call void @exit(i32 noundef 1) #10
  unreachable

84:                                               ; preds = %55
  %85 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7tinyobj9ObjReader7WarningB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(288) %12)
          to label %86 unwind label %79

86:                                               ; preds = %84
  %87 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %85) #9
  br i1 %87, label %95, label %88

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

90:                                               ; preds = %88
  %91 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7tinyobj9ObjReader7WarningB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(288) %12)
          to label %92 unwind label %79

92:                                               ; preds = %90
  %93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %89, ptr noundef nonnull align 8 dereferenceable(32) %91)
          to label %94 unwind label %79

94:                                               ; preds = %92
  br label %95

95:                                               ; preds = %94, %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %96 = invoke noundef nonnull align 8 dereferenceable(168) ptr @_ZNK7tinyobj9ObjReader9GetAttribEv(ptr noundef nonnull align 8 dereferenceable(288) %12)
          to label %97 unwind label %113

97:                                               ; preds = %95
  store ptr %96, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %98 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7tinyobj9ObjReader9GetShapesEv(ptr noundef nonnull align 8 dereferenceable(288) %12)
          to label %99 unwind label %117

99:                                               ; preds = %97
  store ptr %98, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %100 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7tinyobj9ObjReader12GetMaterialsEv(ptr noundef nonnull align 8 dereferenceable(288) %12)
          to label %101 unwind label %121

101:                                              ; preds = %99
  store ptr %100, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  %102 = load ptr, ptr %15, align 8, !tbaa !5
  %103 = call noundef i64 @_ZNKSt6vectorIN7tinyobj10material_tESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %102) #9
  %104 = trunc i64 %103 to i32
  store i32 %104, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #9
  call void @_ZNSt6vectorIN3cgp30opengl_texture_image_structureESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #9
  %105 = load i32, ptr %16, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  invoke void @_ZNSt6vectorIN3cgp30opengl_texture_image_structureESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %106)
          to label %107 unwind label %125

107:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %108

108:                                              ; preds = %167, %107
  %109 = load i32, ptr %18, align 4, !tbaa !9
  %110 = load i32, ptr %16, align 4, !tbaa !9
  %111 = icmp slt i32 %109, %110
  br i1 %111, label %129, label %112

112:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  br label %172

113:                                              ; preds = %95
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %9, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %10, align 4
  br label %441

117:                                              ; preds = %97
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %9, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %10, align 4
  br label %440

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

125:                                              ; preds = %101
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %9, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %10, align 4
  br label %438

129:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #9
  %130 = load ptr, ptr %15, align 8, !tbaa !5
  %131 = load i32, ptr %18, align 4, !tbaa !9
  %132 = sext i32 %131 to i64
  %133 = call noundef nonnull align 8 dereferenceable(1864) ptr @_ZNKSt6vectorIN7tinyobj10material_tESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %130, i64 noundef %132) #9
  %134 = getelementptr inbounds %"struct.tinyobj::material_t", ptr %133, i32 0, i32 12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %134)
          to label %135 unwind label %145

135:                                              ; preds = %129
  %136 = invoke noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef @.str.49)
          to label %137 unwind label %149

137:                                              ; preds = %135
  br i1 %136, label %138, label %162

138:                                              ; preds = %137
  %139 = load i32, ptr %18, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorIN3cgp30opengl_texture_image_structureESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %140) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #9
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %20, ptr noundef nonnull align 8 dereferenceable(32) %142, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %143 unwind label %153

143:                                              ; preds = %138
  invoke void @_ZN3cgp30opengl_texture_image_structure37load_and_initialize_texture_2d_on_gpuERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiibii(ptr noundef nonnull align 4 dereferenceable(20) %141, ptr noundef nonnull align 8 dereferenceable(32) %20, i32 noundef 10497, i32 noundef 10497, i1 noundef zeroext true, i32 noundef 9729, i32 noundef 9987)
          to label %144 unwind label %157

144:                                              ; preds = %143
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #9
  br label %166

145:                                              ; preds = %129
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %9, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %10, align 4
  br label %171

149:                                              ; preds = %135
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %9, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %10, align 4
  br label %170

153:                                              ; preds = %138
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %9, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %10, align 4
  br label %161

157:                                              ; preds = %143
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %9, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #9
  br label %161

161:                                              ; preds = %157, %153
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #9
  br label %170

162:                                              ; preds = %137
  %163 = load i32, ptr %18, align 4, !tbaa !9
  %164 = sext i32 %163 to i64
  %165 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorIN3cgp30opengl_texture_image_structureESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %164) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %165, ptr align 4 @_ZN3cgp13mesh_drawable15default_textureE, i64 20, i1 false), !tbaa.struct !11
  br label %166

166:                                              ; preds = %162, %144
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #9
  br label %167

167:                                              ; preds = %166
  %168 = load i32, ptr %18, align 4, !tbaa !9
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %18, align 4, !tbaa !9
  br label %108, !llvm.loop !12

170:                                              ; preds = %161, %149
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  br label %171

171:                                              ; preds = %170, %145
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  br label %438

172:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %173

173:                                              ; preds = %432, %172
  %174 = load i32, ptr %21, align 4, !tbaa !9
  %175 = sext i32 %174 to i64
  %176 = load ptr, ptr %14, align 8, !tbaa !5
  %177 = call noundef i64 @_ZNKSt6vectorIN7tinyobj7shape_tESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %176) #9
  %178 = icmp ult i64 %175, %177
  br i1 %178, label %180, label %179

179:                                              ; preds = %173
  store i32 5, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %436

180:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  store i32 0, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  store i64 0, ptr %24, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  store i32 -1, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 120, ptr %26) #9
  invoke void @_ZN3cgp4meshC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %26)
          to label %181 unwind label %193

181:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  store i64 0, ptr %27, align 8, !tbaa !14
  br label %182

182:                                              ; preds = %426, %181
  %183 = load i64, ptr %27, align 8, !tbaa !14
  %184 = load ptr, ptr %14, align 8, !tbaa !5
  %185 = load i32, ptr %21, align 4, !tbaa !9
  %186 = sext i32 %185 to i64
  %187 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNKSt6vectorIN7tinyobj7shape_tESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %184, i64 noundef %186) #9
  %188 = getelementptr inbounds %"struct.tinyobj::shape_t", ptr %187, i32 0, i32 1
  %189 = getelementptr inbounds %"struct.tinyobj::mesh_t", ptr %188, i32 0, i32 1
  %190 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %189) #9
  %191 = icmp ult i64 %183, %190
  br i1 %191, label %197, label %192

192:                                              ; preds = %182
  store i32 8, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  br label %431

193:                                              ; preds = %180
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %9, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %10, align 4
  br label %435

197:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  %198 = load ptr, ptr %14, align 8, !tbaa !5
  %199 = load i32, ptr %21, align 4, !tbaa !9
  %200 = sext i32 %199 to i64
  %201 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNKSt6vectorIN7tinyobj7shape_tESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %198, i64 noundef %200) #9
  %202 = getelementptr inbounds %"struct.tinyobj::shape_t", ptr %201, i32 0, i32 1
  %203 = getelementptr inbounds %"struct.tinyobj::mesh_t", ptr %202, i32 0, i32 2
  %204 = load i64, ptr %27, align 8, !tbaa !14
  %205 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %203, i64 noundef %204) #9
  %206 = load i32, ptr %205, align 4, !tbaa !9
  store i32 %206, ptr %28, align 4, !tbaa !9
  %207 = load i32, ptr %28, align 4, !tbaa !9
  %208 = load i32, ptr %25, align 4, !tbaa !9
  %209 = icmp ne i32 %207, %208
  br i1 %209, label %210, label %241

210:                                              ; preds = %197
  %211 = load i32, ptr %25, align 4, !tbaa !9
  %212 = icmp ne i32 %211, -1
  br i1 %212, label %213, label %239

213:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 144, ptr %29) #9
  invoke void @_ZN3cgp24mesh_obj_advanced_loader18shape_element_nodeC2Ev(ptr noundef nonnull align 8 dereferenceable(140) %29)
          to label %214 unwind label %225

214:                                              ; preds = %213
  %215 = getelementptr inbounds %"struct.cgp::mesh_obj_advanced_loader::shape_element_node", ptr %29, i32 0, i32 0
  %216 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4meshaSERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %215, ptr noundef nonnull align 8 dereferenceable(120) %26)
          to label %217 unwind label %229

217:                                              ; preds = %214
  %218 = load i32, ptr %25, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorIN3cgp30opengl_texture_image_structureESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %219) #9
  %221 = getelementptr inbounds %"struct.cgp::mesh_obj_advanced_loader::shape_element_node", ptr %29, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %221, ptr align 4 %220, i64 20, i1 false), !tbaa.struct !11
  invoke void @_ZNSt6vectorIN3cgp24mesh_obj_advanced_loader18shape_element_nodeESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(140) %29)
          to label %222 unwind label %229

222:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 120, ptr %30) #9
  call void @llvm.memset.p0.i64(ptr align 8 %30, i8 0, i64 120, i1 false)
  invoke void @_ZN3cgp4meshC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %30)
          to label %223 unwind label %233

223:                                              ; preds = %222
  %224 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4meshaSEOS0_(ptr noundef nonnull align 8 dereferenceable(120) %26, ptr noundef nonnull align 8 dereferenceable(120) %30) #9
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %30) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %30) #9
  store i32 0, ptr %23, align 4, !tbaa !9
  call void @_ZN3cgp24mesh_obj_advanced_loader18shape_element_nodeD2Ev(ptr noundef nonnull align 8 dereferenceable(140) %29) #9
  call void @llvm.lifetime.end.p0(i64 144, ptr %29) #9
  br label %239

225:                                              ; preds = %213
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %9, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %10, align 4
  br label %238

229:                                              ; preds = %217, %214
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %9, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %10, align 4
  br label %237

233:                                              ; preds = %222
  %234 = landingpad { ptr, i32 }
          cleanup
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %9, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %30) #9
  br label %237

237:                                              ; preds = %233, %229
  call void @_ZN3cgp24mesh_obj_advanced_loader18shape_element_nodeD2Ev(ptr noundef nonnull align 8 dereferenceable(140) %29) #9
  br label %238

238:                                              ; preds = %237, %225
  call void @llvm.lifetime.end.p0(i64 144, ptr %29) #9
  br label %430

239:                                              ; preds = %223, %210
  %240 = load i32, ptr %28, align 4, !tbaa !9
  store i32 %240, ptr %25, align 4, !tbaa !9
  br label %241

241:                                              ; preds = %239, %197
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  %242 = load ptr, ptr %14, align 8, !tbaa !5
  %243 = load i32, ptr %21, align 4, !tbaa !9
  %244 = sext i32 %243 to i64
  %245 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNKSt6vectorIN7tinyobj7shape_tESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %242, i64 noundef %244) #9
  %246 = getelementptr inbounds %"struct.tinyobj::shape_t", ptr %245, i32 0, i32 1
  %247 = getelementptr inbounds %"struct.tinyobj::mesh_t", ptr %246, i32 0, i32 1
  %248 = load i64, ptr %27, align 8, !tbaa !14
  %249 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %247, i64 noundef %248) #9
  %250 = load i8, ptr %249, align 1, !tbaa !16
  %251 = zext i8 %250 to i64
  store i64 %251, ptr %31, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #9
  store i64 0, ptr %32, align 8, !tbaa !14
  br label %252

252:                                              ; preds = %374, %241
  %253 = load i64, ptr %32, align 8, !tbaa !14
  %254 = load i64, ptr %31, align 8, !tbaa !14
  %255 = icmp ult i64 %253, %254
  br i1 %255, label %257, label %256

256:                                              ; preds = %252
  store i32 11, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  br label %378

257:                                              ; preds = %252
  call void @llvm.lifetime.start.p0(i64 12, ptr %33) #9
  %258 = load ptr, ptr %14, align 8, !tbaa !5
  %259 = load i32, ptr %21, align 4, !tbaa !9
  %260 = sext i32 %259 to i64
  %261 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNKSt6vectorIN7tinyobj7shape_tESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %258, i64 noundef %260) #9
  %262 = getelementptr inbounds %"struct.tinyobj::shape_t", ptr %261, i32 0, i32 1
  %263 = getelementptr inbounds %"struct.tinyobj::mesh_t", ptr %262, i32 0, i32 0
  %264 = load i64, ptr %24, align 8, !tbaa !14
  %265 = load i64, ptr %32, align 8, !tbaa !14
  %266 = add i64 %264, %265
  %267 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN7tinyobj7index_tESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %263, i64 noundef %266) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %267, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #9
  %268 = load ptr, ptr %13, align 8, !tbaa !5
  %269 = getelementptr inbounds %"struct.tinyobj::attrib_t", ptr %268, i32 0, i32 0
  %270 = getelementptr inbounds %"struct.tinyobj::index_t", ptr %33, i32 0, i32 0
  %271 = load i32, ptr %270, align 4, !tbaa !18
  %272 = sext i32 %271 to i64
  %273 = mul i64 3, %272
  %274 = add i64 %273, 0
  %275 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %269, i64 noundef %274) #9
  %276 = load float, ptr %275, align 4, !tbaa !20
  store float %276, ptr %34, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #9
  %277 = load ptr, ptr %13, align 8, !tbaa !5
  %278 = getelementptr inbounds %"struct.tinyobj::attrib_t", ptr %277, i32 0, i32 0
  %279 = getelementptr inbounds %"struct.tinyobj::index_t", ptr %33, i32 0, i32 0
  %280 = load i32, ptr %279, align 4, !tbaa !18
  %281 = sext i32 %280 to i64
  %282 = mul i64 3, %281
  %283 = add i64 %282, 1
  %284 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %278, i64 noundef %283) #9
  %285 = load float, ptr %284, align 4, !tbaa !20
  store float %285, ptr %35, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #9
  %286 = load ptr, ptr %13, align 8, !tbaa !5
  %287 = getelementptr inbounds %"struct.tinyobj::attrib_t", ptr %286, i32 0, i32 0
  %288 = getelementptr inbounds %"struct.tinyobj::index_t", ptr %33, i32 0, i32 0
  %289 = load i32, ptr %288, align 4, !tbaa !18
  %290 = sext i32 %289 to i64
  %291 = mul i64 3, %290
  %292 = add i64 %291, 2
  %293 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %287, i64 noundef %292) #9
  %294 = load float, ptr %293, align 4, !tbaa !20
  store float %294, ptr %36, align 4, !tbaa !20
  %295 = getelementptr inbounds %"struct.cgp::mesh", ptr %26, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 12, ptr %37) #9
  invoke void @_ZN3cgp14numarray_stackIfLi3EEC2ERKfS3_S3_(ptr noundef nonnull align 4 dereferenceable(12) %37, ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 4 dereferenceable(4) %36)
          to label %296 unwind label %334

296:                                              ; preds = %257
  %297 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %295, ptr noundef nonnull align 4 dereferenceable(12) %37)
          to label %298 unwind label %334

298:                                              ; preds = %296
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #9
  %299 = getelementptr inbounds %"struct.tinyobj::index_t", ptr %33, i32 0, i32 1
  %300 = load i32, ptr %299, align 4, !tbaa !22
  %301 = icmp sge i32 %300, 0
  br i1 %301, label %302, label %342

302:                                              ; preds = %298
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #9
  %303 = load ptr, ptr %13, align 8, !tbaa !5
  %304 = getelementptr inbounds %"struct.tinyobj::attrib_t", ptr %303, i32 0, i32 2
  %305 = getelementptr inbounds %"struct.tinyobj::index_t", ptr %33, i32 0, i32 1
  %306 = load i32, ptr %305, align 4, !tbaa !22
  %307 = sext i32 %306 to i64
  %308 = mul i64 3, %307
  %309 = add i64 %308, 0
  %310 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %304, i64 noundef %309) #9
  %311 = load float, ptr %310, align 4, !tbaa !20
  store float %311, ptr %38, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #9
  %312 = load ptr, ptr %13, align 8, !tbaa !5
  %313 = getelementptr inbounds %"struct.tinyobj::attrib_t", ptr %312, i32 0, i32 2
  %314 = getelementptr inbounds %"struct.tinyobj::index_t", ptr %33, i32 0, i32 1
  %315 = load i32, ptr %314, align 4, !tbaa !22
  %316 = sext i32 %315 to i64
  %317 = mul i64 3, %316
  %318 = add i64 %317, 1
  %319 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %313, i64 noundef %318) #9
  %320 = load float, ptr %319, align 4, !tbaa !20
  store float %320, ptr %39, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #9
  %321 = load ptr, ptr %13, align 8, !tbaa !5
  %322 = getelementptr inbounds %"struct.tinyobj::attrib_t", ptr %321, i32 0, i32 2
  %323 = getelementptr inbounds %"struct.tinyobj::index_t", ptr %33, i32 0, i32 1
  %324 = load i32, ptr %323, align 4, !tbaa !22
  %325 = sext i32 %324 to i64
  %326 = mul i64 3, %325
  %327 = add i64 %326, 2
  %328 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %322, i64 noundef %327) #9
  %329 = load float, ptr %328, align 4, !tbaa !20
  store float %329, ptr %40, align 4, !tbaa !20
  %330 = getelementptr inbounds %"struct.cgp::mesh", ptr %26, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 12, ptr %41) #9
  invoke void @_ZN3cgp14numarray_stackIfLi3EEC2ERKfS3_S3_(ptr noundef nonnull align 4 dereferenceable(12) %41, ptr noundef nonnull align 4 dereferenceable(4) %38, ptr noundef nonnull align 4 dereferenceable(4) %39, ptr noundef nonnull align 4 dereferenceable(4) %40)
          to label %331 unwind label %338

331:                                              ; preds = %302
  %332 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %330, ptr noundef nonnull align 4 dereferenceable(12) %41)
          to label %333 unwind label %338

333:                                              ; preds = %331
  call void @llvm.lifetime.end.p0(i64 12, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  br label %342

334:                                              ; preds = %296, %257
  %335 = landingpad { ptr, i32 }
          cleanup
  %336 = extractvalue { ptr, i32 } %335, 0
  store ptr %336, ptr %9, align 8
  %337 = extractvalue { ptr, i32 } %335, 1
  store i32 %337, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #9
  br label %377

338:                                              ; preds = %331, %302
  %339 = landingpad { ptr, i32 }
          cleanup
  %340 = extractvalue { ptr, i32 } %339, 0
  store ptr %340, ptr %9, align 8
  %341 = extractvalue { ptr, i32 } %339, 1
  store i32 %341, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  br label %377

342:                                              ; preds = %333, %298
  %343 = getelementptr inbounds %"struct.tinyobj::index_t", ptr %33, i32 0, i32 2
  %344 = load i32, ptr %343, align 4, !tbaa !23
  %345 = icmp sge i32 %344, 0
  br i1 %345, label %346, label %373

346:                                              ; preds = %342
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #9
  %347 = load ptr, ptr %13, align 8, !tbaa !5
  %348 = getelementptr inbounds %"struct.tinyobj::attrib_t", ptr %347, i32 0, i32 3
  %349 = getelementptr inbounds %"struct.tinyobj::index_t", ptr %33, i32 0, i32 2
  %350 = load i32, ptr %349, align 4, !tbaa !23
  %351 = sext i32 %350 to i64
  %352 = mul i64 2, %351
  %353 = add i64 %352, 0
  %354 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %348, i64 noundef %353) #9
  %355 = load float, ptr %354, align 4, !tbaa !20
  store float %355, ptr %42, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #9
  %356 = load ptr, ptr %13, align 8, !tbaa !5
  %357 = getelementptr inbounds %"struct.tinyobj::attrib_t", ptr %356, i32 0, i32 3
  %358 = getelementptr inbounds %"struct.tinyobj::index_t", ptr %33, i32 0, i32 2
  %359 = load i32, ptr %358, align 4, !tbaa !23
  %360 = sext i32 %359 to i64
  %361 = mul i64 2, %360
  %362 = add i64 %361, 1
  %363 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %357, i64 noundef %362) #9
  %364 = load float, ptr %363, align 4, !tbaa !20
  store float %364, ptr %43, align 4, !tbaa !20
  %365 = getelementptr inbounds %"struct.cgp::mesh", ptr %26, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #9
  invoke void @_ZN3cgp14numarray_stackIfLi2EEC2ERKfS3_(ptr noundef nonnull align 4 dereferenceable(8) %44, ptr noundef nonnull align 4 dereferenceable(4) %42, ptr noundef nonnull align 4 dereferenceable(4) %43)
          to label %366 unwind label %369

366:                                              ; preds = %346
  %367 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi2EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %365, ptr noundef nonnull align 4 dereferenceable(8) %44)
          to label %368 unwind label %369

368:                                              ; preds = %366
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #9
  br label %373

369:                                              ; preds = %366, %346
  %370 = landingpad { ptr, i32 }
          cleanup
  %371 = extractvalue { ptr, i32 } %370, 0
  store ptr %371, ptr %9, align 8
  %372 = extractvalue { ptr, i32 } %370, 1
  store i32 %372, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #9
  br label %377

373:                                              ; preds = %368, %342
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #9
  br label %374

374:                                              ; preds = %373
  %375 = load i64, ptr %32, align 8, !tbaa !14
  %376 = add i64 %375, 1
  store i64 %376, ptr %32, align 8, !tbaa !14
  br label %252, !llvm.loop !24

377:                                              ; preds = %369, %338, %334
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  br label %429

378:                                              ; preds = %256
  %379 = load i64, ptr %31, align 8, !tbaa !14
  %380 = load i64, ptr %24, align 8, !tbaa !14
  %381 = add i64 %380, %379
  store i64 %381, ptr %24, align 8, !tbaa !14
  %382 = getelementptr inbounds %"struct.cgp::mesh", ptr %26, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 12, ptr %45) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #9
  %383 = load i32, ptr %23, align 4, !tbaa !9
  %384 = add nsw i32 %383, 1
  store i32 %384, ptr %46, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #9
  %385 = load i32, ptr %23, align 4, !tbaa !9
  %386 = add nsw i32 %385, 2
  store i32 %386, ptr %47, align 4, !tbaa !9
  invoke void @_ZN3cgp14numarray_stackIjLi3EEC2IiiiEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %45, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %46, ptr noundef nonnull align 4 dereferenceable(4) %47)
          to label %387 unwind label %412

387:                                              ; preds = %378
  %388 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIjLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %382, ptr noundef nonnull align 4 dereferenceable(12) %45)
          to label %389 unwind label %412

389:                                              ; preds = %387
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %45) #9
  %390 = load i32, ptr %23, align 4, !tbaa !9
  %391 = add nsw i32 %390, 3
  store i32 %391, ptr %23, align 4, !tbaa !9
  %392 = load i64, ptr %27, align 8, !tbaa !14
  %393 = load ptr, ptr %14, align 8, !tbaa !5
  %394 = load i32, ptr %21, align 4, !tbaa !9
  %395 = sext i32 %394 to i64
  %396 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNKSt6vectorIN7tinyobj7shape_tESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %393, i64 noundef %395) #9
  %397 = getelementptr inbounds %"struct.tinyobj::shape_t", ptr %396, i32 0, i32 1
  %398 = getelementptr inbounds %"struct.tinyobj::mesh_t", ptr %397, i32 0, i32 1
  %399 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %398) #9
  %400 = sub i64 %399, 1
  %401 = icmp eq i64 %392, %400
  br i1 %401, label %402, label %425

402:                                              ; preds = %389
  call void @llvm.lifetime.start.p0(i64 144, ptr %48) #9
  invoke void @_ZN3cgp24mesh_obj_advanced_loader18shape_element_nodeC2Ev(ptr noundef nonnull align 8 dereferenceable(140) %48)
          to label %403 unwind label %416

403:                                              ; preds = %402
  %404 = getelementptr inbounds %"struct.cgp::mesh_obj_advanced_loader::shape_element_node", ptr %48, i32 0, i32 0
  %405 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4meshaSERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %404, ptr noundef nonnull align 8 dereferenceable(120) %26)
          to label %406 unwind label %420

406:                                              ; preds = %403
  %407 = load i32, ptr %28, align 4, !tbaa !9
  %408 = sext i32 %407 to i64
  %409 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorIN3cgp30opengl_texture_image_structureESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %408) #9
  %410 = getelementptr inbounds %"struct.cgp::mesh_obj_advanced_loader::shape_element_node", ptr %48, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %410, ptr align 4 %409, i64 20, i1 false), !tbaa.struct !11
  invoke void @_ZNSt6vectorIN3cgp24mesh_obj_advanced_loader18shape_element_nodeESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(140) %48)
          to label %411 unwind label %420

411:                                              ; preds = %406
  call void @_ZN3cgp24mesh_obj_advanced_loader18shape_element_nodeD2Ev(ptr noundef nonnull align 8 dereferenceable(140) %48) #9
  call void @llvm.lifetime.end.p0(i64 144, ptr %48) #9
  br label %425

412:                                              ; preds = %387, %378
  %413 = landingpad { ptr, i32 }
          cleanup
  %414 = extractvalue { ptr, i32 } %413, 0
  store ptr %414, ptr %9, align 8
  %415 = extractvalue { ptr, i32 } %413, 1
  store i32 %415, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr %45) #9
  br label %429

416:                                              ; preds = %402
  %417 = landingpad { ptr, i32 }
          cleanup
  %418 = extractvalue { ptr, i32 } %417, 0
  store ptr %418, ptr %9, align 8
  %419 = extractvalue { ptr, i32 } %417, 1
  store i32 %419, ptr %10, align 4
  br label %424

420:                                              ; preds = %406, %403
  %421 = landingpad { ptr, i32 }
          cleanup
  %422 = extractvalue { ptr, i32 } %421, 0
  store ptr %422, ptr %9, align 8
  %423 = extractvalue { ptr, i32 } %421, 1
  store i32 %423, ptr %10, align 4
  call void @_ZN3cgp24mesh_obj_advanced_loader18shape_element_nodeD2Ev(ptr noundef nonnull align 8 dereferenceable(140) %48) #9
  br label %424

424:                                              ; preds = %420, %416
  call void @llvm.lifetime.end.p0(i64 144, ptr %48) #9
  br label %429

425:                                              ; preds = %411, %389
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  br label %426

426:                                              ; preds = %425
  %427 = load i64, ptr %27, align 8, !tbaa !14
  %428 = add i64 %427, 1
  store i64 %428, ptr %27, align 8, !tbaa !14
  br label %182, !llvm.loop !25

429:                                              ; preds = %424, %412, %377
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  br label %430

430:                                              ; preds = %429, %238
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %26) #9
  br label %435

431:                                              ; preds = %192
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %26) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  br label %432

432:                                              ; preds = %431
  %433 = load i32, ptr %21, align 4, !tbaa !9
  %434 = add nsw i32 %433, 1
  store i32 %434, ptr %21, align 4, !tbaa !9
  br label %173, !llvm.loop !26

435:                                              ; preds = %430, %193
  call void @llvm.lifetime.end.p0(i64 120, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %438

436:                                              ; preds = %179
  store i1 true, ptr %7, align 1
  store i32 1, ptr %22, align 4
  call void @_ZNSt6vectorIN3cgp30opengl_texture_image_structureESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @_ZN7tinyobj9ObjReaderD2Ev(ptr noundef nonnull align 8 dereferenceable(288) %12) #9
  call void @llvm.lifetime.end.p0(i64 288, ptr %12) #9
  call void @_ZN7tinyobj15ObjReaderConfigD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %11) #9
  call void @llvm.lifetime.end.p0(i64 80, ptr %11) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #9
  %437 = load i1, ptr %7, align 1
  br i1 %437, label %447, label %446

438:                                              ; preds = %435, %171, %125
  call void @_ZNSt6vectorIN3cgp30opengl_texture_image_structureESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %439

439:                                              ; preds = %438, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %440

440:                                              ; preds = %439, %117
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %441

441:                                              ; preds = %440, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  br label %442

442:                                              ; preds = %441, %79
  call void @_ZN7tinyobj9ObjReaderD2Ev(ptr noundef nonnull align 8 dereferenceable(288) %12) #9
  br label %443

443:                                              ; preds = %442, %75
  call void @llvm.lifetime.end.p0(i64 288, ptr %12) #9
  call void @_ZN7tinyobj15ObjReaderConfigD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %11) #9
  br label %444

444:                                              ; preds = %443, %71
  call void @llvm.lifetime.end.p0(i64 80, ptr %11) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  br label %445

445:                                              ; preds = %444, %67
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #9
  call void @_ZNSt6vectorIN3cgp24mesh_obj_advanced_loader18shape_element_nodeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  br label %448

446:                                              ; preds = %436
  call void @_ZNSt6vectorIN3cgp24mesh_obj_advanced_loader18shape_element_nodeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  br label %447

447:                                              ; preds = %446, %436
  ret void

448:                                              ; preds = %445
  %449 = load ptr, ptr %9, align 8
  %450 = load i32, ptr %10, align 4
  %451 = insertvalue { ptr, i32 } poison, ptr %449, 0
  %452 = insertvalue { ptr, i32 } %451, i32 %450, 1
  resume { ptr, i32 } %452
}

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

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #7

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(1864) ptr @_ZNKSt6vectorIN7tinyobj10material_tESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

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

declare void @_ZN3cgp30opengl_texture_image_structure37load_and_initialize_texture_2d_on_gpuERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiibii(ptr noundef nonnull align 4 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i1 noundef zeroext, i32 noundef, i32 noundef) #8

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(224) ptr @_ZNKSt6vectorIN7tinyobj7shape_tESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4meshaSERKS0_(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) #2 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp24mesh_obj_advanced_loader18shape_element_nodeD2Ev(ptr noundef nonnull align 8 dereferenceable(140)) unnamed_addr #6 align 2

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7tinyobj9ObjReaderD2Ev(ptr noundef nonnull align 8 dereferenceable(288)) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7tinyobj15ObjReaderConfigD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #6 align 2

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

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

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

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


; 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"

%"struct.cgp::opengl_texture_image_structure" = type { i32, i32, i32, i32, i32 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector.112" = type { %"struct.std::_Vector_base.113" }
%"struct.std::_Vector_base.113" = type { %"struct.std::_Vector_base<cgp::mesh_obj_advanced_loader::shape_element_node, std::allocator<cgp::mesh_obj_advanced_loader::shape_element_node>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::mesh_obj_advanced_loader::shape_element_node, std::allocator<cgp::mesh_obj_advanced_loader::shape_element_node>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::mesh_obj_advanced_loader::shape_element_node, std::allocator<cgp::mesh_obj_advanced_loader::shape_element_node>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::mesh_obj_advanced_loader::shape_element_node, std::allocator<cgp::mesh_obj_advanced_loader::shape_element_node>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.tinyobj::ObjReaderConfig" = type { i8, %"class.std::__cxx11::basic_string", i8, %"class.std::__cxx11::basic_string" }
%"class.tinyobj::ObjReader" = type { i8, %"struct.tinyobj::attrib_t", %"class.std::vector.36", %"class.std::vector", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%"struct.tinyobj::attrib_t" = type { %"class.std::vector.26", %"class.std::vector.26", %"class.std::vector.26", %"class.std::vector.26", %"class.std::vector.26", %"class.std::vector.26", %"class.std::vector.31" }
%"class.std::vector.26" = type { %"struct.std::_Vector_base.27" }
%"struct.std::_Vector_base.27" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.31" = type { %"struct.std::_Vector_base.32" }
%"struct.std::_Vector_base.32" = type { %"struct.std::_Vector_base<tinyobj::skin_weight_t, std::allocator<tinyobj::skin_weight_t>>::_Vector_impl" }
%"struct.std::_Vector_base<tinyobj::skin_weight_t, std::allocator<tinyobj::skin_weight_t>>::_Vector_impl" = type { %"struct.std::_Vector_base<tinyobj::skin_weight_t, std::allocator<tinyobj::skin_weight_t>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tinyobj::skin_weight_t, std::allocator<tinyobj::skin_weight_t>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.36" = type { %"struct.std::_Vector_base.37" }
%"struct.std::_Vector_base.37" = type { %"struct.std::_Vector_base<tinyobj::shape_t, std::allocator<tinyobj::shape_t>>::_Vector_impl" }
%"struct.std::_Vector_base<tinyobj::shape_t, std::allocator<tinyobj::shape_t>>::_Vector_impl" = type { %"struct.std::_Vector_base<tinyobj::shape_t, std::allocator<tinyobj::shape_t>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tinyobj::shape_t, std::allocator<tinyobj::shape_t>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<tinyobj::material_t, std::allocator<tinyobj::material_t>>::_Vector_impl" }
%"struct.std::_Vector_base<tinyobj::material_t, std::allocator<tinyobj::material_t>>::_Vector_impl" = type { %"struct.std::_Vector_base<tinyobj::material_t, std::allocator<tinyobj::material_t>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tinyobj::material_t, std::allocator<tinyobj::material_t>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.146" = type { %"struct.std::_Vector_base.147" }
%"struct.std::_Vector_base.147" = type { %"struct.std::_Vector_base<cgp::opengl_texture_image_structure, std::allocator<cgp::opengl_texture_image_structure>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::opengl_texture_image_structure, std::allocator<cgp::opengl_texture_image_structure>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::opengl_texture_image_structure, std::allocator<cgp::opengl_texture_image_structure>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::opengl_texture_image_structure, std::allocator<cgp::opengl_texture_image_structure>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.cgp::mesh" = type { %"struct.cgp::numarray", %"struct.cgp::numarray", %"struct.cgp::numarray", %"struct.cgp::numarray.122", %"struct.cgp::numarray.128" }
%"struct.cgp::numarray" = type { %"class.std::vector.117" }
%"class.std::vector.117" = type { %"struct.std::_Vector_base.118" }
%"struct.std::_Vector_base.118" = 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.122" = type { %"class.std::vector.123" }
%"class.std::vector.123" = type { %"struct.std::_Vector_base.124" }
%"struct.std::_Vector_base.124" = 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.128" = type { %"class.std::vector.129" }
%"class.std::vector.129" = type { %"struct.std::_Vector_base.130" }
%"struct.std::_Vector_base.130" = 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 }
%"struct.cgp::mesh_obj_advanced_loader::shape_element_node" = type <{ %"struct.cgp::mesh", %"struct.cgp::opengl_texture_image_structure", [4 x i8] }>
%"struct.cgp::numarray_stack.144" = type { float, float, float }
%"struct.cgp::numarray_stack.151" = type { float, float }
%"struct.cgp::numarray_stack.152" = type { i32, i32, i32 }

@.str.49 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZN3cgp13mesh_drawable15default_textureE = external local_unnamed_addr global %"struct.cgp::opengl_texture_image_structure", align 4
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.73 = external hidden unnamed_addr constant [16 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7tinyobj9ObjReader13ParseFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_15ObjReaderConfigE(ptr noundef nonnull align 8 dereferenceable(288), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3cgp27mesh_load_file_obj_advancedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::vector.112") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %2) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"struct.tinyobj::ObjReaderConfig", align 8
  %6 = alloca %"class.tinyobj::ObjReader", align 8
  %7 = alloca %"class.std::vector.146", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"struct.cgp::mesh", align 8
  %12 = alloca %"struct.cgp::mesh_obj_advanced_loader::shape_element_node", align 8
  %13 = alloca %"struct.cgp::mesh", align 8
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca %"struct.cgp::numarray_stack.144", align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca %"struct.cgp::numarray_stack.144", align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca %"struct.cgp::numarray_stack.151", align 4
  %25 = alloca %"struct.cgp::numarray_stack.152", align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca %"struct.cgp::mesh_obj_advanced_loader::shape_element_node", align 8
  tail call void @_ZNSt6vectorIN3cgp24mesh_obj_advanced_loader18shape_element_nodeESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #9
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %29 unwind label %42

29:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %5) #9
  invoke void @_ZN7tinyobj15ObjReaderConfigC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %30 unwind label %44

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 288, ptr nonnull %6) #9
  invoke void @_ZN7tinyobj9ObjReaderC2Ev(ptr noundef nonnull align 8 dereferenceable(288) %6)
          to label %31 unwind label %46

31:                                               ; preds = %30
  %32 = invoke noundef zeroext i1 @_ZN7tinyobj9ObjReader13ParseFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_15ObjReaderConfigE(ptr noundef nonnull align 8 dereferenceable(288) %6, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %33 unwind label %48

33:                                               ; preds = %31
  br i1 %32, label %51, label %34

34:                                               ; preds = %33
  %35 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7tinyobj9ObjReader5ErrorB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(288) %6)
  %36 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %35) #9
  br i1 %36, label %50, label %37

37:                                               ; preds = %34
  %38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.73)
          to label %39 unwind label %48

39:                                               ; preds = %37
  %40 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7tinyobj9ObjReader5ErrorB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(288) %6)
  %41 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(32) %40)
          to label %50 unwind label %48

42:                                               ; preds = %3
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %225

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

46:                                               ; preds = %30
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %223

48:                                               ; preds = %56, %54, %39, %37, %31
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %222

50:                                               ; preds = %39, %34
  call void @exit(i32 noundef 1) #10
  unreachable

51:                                               ; preds = %33
  %52 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7tinyobj9ObjReader7WarningB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(288) %6)
  %53 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %52) #9
  br i1 %53, label %59, label %54

54:                                               ; preds = %51
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.73)
          to label %56 unwind label %48

56:                                               ; preds = %54
  %57 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7tinyobj9ObjReader7WarningB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(288) %6)
  %58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull align 8 dereferenceable(32) %57)
          to label %59 unwind label %48

59:                                               ; preds = %56, %51
  %60 = call noundef nonnull align 8 dereferenceable(168) ptr @_ZNK7tinyobj9ObjReader9GetAttribEv(ptr noundef nonnull align 8 dereferenceable(288) %6)
  %61 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7tinyobj9ObjReader9GetShapesEv(ptr noundef nonnull align 8 dereferenceable(288) %6)
  %62 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7tinyobj9ObjReader12GetMaterialsEv(ptr noundef nonnull align 8 dereferenceable(288) %6)
  %63 = call noundef i64 @_ZNKSt6vectorIN7tinyobj10material_tESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %62) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #9
  call void @_ZNSt6vectorIN3cgp30opengl_texture_image_structureESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  %sext = shl i64 %63, 32
  %64 = ashr exact i64 %sext, 32
  invoke void @_ZNSt6vectorIN3cgp30opengl_texture_image_structureESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %64)
          to label %.preheader105 unwind label %75

.preheader105:                                    ; preds = %59
  %65 = trunc i64 %63 to i32
  %66 = icmp sgt i32 %65, 0
  br i1 %66, label %.lr.ph.preheader, label %.preheader104

.lr.ph.preheader:                                 ; preds = %.preheader105
  %wide.trip.count = and i64 %63, 2147483647
  br label %.lr.ph

.preheader104:                                    ; preds = %96, %.preheader105
  %67 = call noundef i64 @_ZNKSt6vectorIN7tinyobj7shape_tESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #9
  %.not117 = icmp eq i64 %67, 0
  br i1 %.not117, label %._crit_edge116, label %.lr.ph115

.lr.ph115:                                        ; preds = %.preheader104
  %68 = getelementptr inbounds i8, ptr %12, i64 120
  %69 = getelementptr inbounds i8, ptr %60, i64 48
  %70 = getelementptr inbounds i8, ptr %11, i64 24
  %71 = getelementptr inbounds i8, ptr %60, i64 72
  %72 = getelementptr inbounds i8, ptr %11, i64 72
  %73 = getelementptr inbounds i8, ptr %11, i64 96
  %74 = getelementptr inbounds i8, ptr %28, i64 120
  br label %99

75:                                               ; preds = %59
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %221

.lr.ph:                                           ; preds = %.lr.ph.preheader, %96
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %96 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #9
  %77 = call noundef nonnull align 8 dereferenceable(1864) ptr @_ZNKSt6vectorIN7tinyobj10material_tESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %indvars.iv) #9
  %78 = getelementptr inbounds i8, ptr %77, i64 144
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %78)
          to label %79 unwind label %86

79:                                               ; preds = %.lr.ph
  %80 = invoke noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @.str.49)
          to label %81 unwind label %88

81:                                               ; preds = %79
  %82 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorIN3cgp30opengl_texture_image_structureESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv) #9
  br i1 %80, label %83, label %95

83:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #9
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %84 unwind label %90

84:                                               ; preds = %83
  invoke void @_ZN3cgp30opengl_texture_image_structure37load_and_initialize_texture_2d_on_gpuERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiibii(ptr noundef nonnull align 4 dereferenceable(20) %82, ptr noundef nonnull align 8 dereferenceable(32) %9, i32 noundef 10497, i32 noundef 10497, i1 noundef zeroext true, i32 noundef 9729, i32 noundef 9987)
          to label %85 unwind label %92

85:                                               ; preds = %84
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #9
  br label %96

86:                                               ; preds = %.lr.ph
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %98

88:                                               ; preds = %79
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %97

90:                                               ; preds = %83
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %94

92:                                               ; preds = %84
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  br label %94

94:                                               ; preds = %92, %90
  %.pn95 = phi { ptr, i32 } [ %93, %92 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #9
  br label %97

95:                                               ; preds = %81
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %82, ptr noundef nonnull align 4 dereferenceable(20) @_ZN3cgp13mesh_drawable15default_textureE, i64 20, i1 false), !tbaa.struct !5
  br label %96

96:                                               ; preds = %95, %85
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader104, label %.lr.ph, !llvm.loop !10

97:                                               ; preds = %94, %88
  %.pn95.pn = phi { ptr, i32 } [ %.pn95, %94 ], [ %89, %88 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  br label %98

98:                                               ; preds = %97, %86
  %.pn95.pn.pn = phi { ptr, i32 } [ %.pn95.pn, %97 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  br label %221

._crit_edge116:                                   ; preds = %._crit_edge113, %.preheader104
  call void @_ZNSt6vectorIN3cgp30opengl_texture_image_structureESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  call void @_ZN7tinyobj9ObjReaderD2Ev(ptr noundef nonnull align 8 dereferenceable(288) %6) #9
  call void @llvm.lifetime.end.p0(i64 288, ptr nonnull %6) #9
  call void @_ZN7tinyobj15ObjReaderConfigD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #9
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #9
  ret void

99:                                               ; preds = %.lr.ph115, %._crit_edge113
  %indvars.iv122 = phi i64 [ 0, %.lr.ph115 ], [ %indvars.iv.next123, %._crit_edge113 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #9
  store i32 0, ptr %10, align 4, !tbaa !6
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %11) #9
  invoke void @_ZN3cgp4meshC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %11)
          to label %.preheader unwind label %105

.preheader:                                       ; preds = %99
  %100 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNKSt6vectorIN7tinyobj7shape_tESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %indvars.iv122) #9
  %101 = getelementptr inbounds i8, ptr %100, i64 56
  %102 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %101) #9
  %.not118 = icmp eq i64 %102, 0
  br i1 %.not118, label %._crit_edge113, label %.lr.ph112

._crit_edge113:                                   ; preds = %213, %.preheader
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %11) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %103 = call noundef i64 @_ZNKSt6vectorIN7tinyobj7shape_tESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #9
  %104 = icmp ugt i64 %103, %indvars.iv.next123
  br i1 %104, label %99, label %._crit_edge116, !llvm.loop !12

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

.lr.ph112:                                        ; preds = %.preheader, %213
  %.078111 = phi i64 [ %214, %213 ], [ 0, %.preheader ]
  %.079110 = phi i32 [ %.180, %213 ], [ -1, %.preheader ]
  %.081109 = phi i64 [ %135, %213 ], [ 0, %.preheader ]
  %107 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNKSt6vectorIN7tinyobj7shape_tESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %indvars.iv122) #9
  %108 = getelementptr inbounds i8, ptr %107, i64 80
  %109 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef %.078111) #9
  %110 = load i32, ptr %109, align 4, !tbaa !6
  %.not = icmp eq i32 %110, %.079110
  br i1 %.not, label %129, label %111

111:                                              ; preds = %.lr.ph112
  %.not85 = icmp eq i32 %.079110, -1
  br i1 %.not85, label %129, label %112

112:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %12) #9
  invoke void @_ZN3cgp24mesh_obj_advanced_loader18shape_element_nodeC2Ev(ptr noundef nonnull align 8 dereferenceable(140) %12)
          to label %113 unwind label %121

113:                                              ; preds = %112
  %114 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4meshaSERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %12, ptr noundef nonnull align 8 dereferenceable(120) %11)
          to label %115 unwind label %123

115:                                              ; preds = %113
  %116 = sext i32 %.079110 to i64
  %117 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorIN3cgp30opengl_texture_image_structureESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %116) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %68, ptr noundef nonnull align 4 dereferenceable(20) %117, i64 20, i1 false), !tbaa.struct !5
  invoke void @_ZNSt6vectorIN3cgp24mesh_obj_advanced_loader18shape_element_nodeESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(140) %12)
          to label %118 unwind label %123

118:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %13) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %13, i8 0, i64 120, i1 false)
  invoke void @_ZN3cgp4meshC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %13)
          to label %119 unwind label %125

119:                                              ; preds = %118
  %120 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4meshaSEOS0_(ptr noundef nonnull align 8 dereferenceable(120) %11, ptr noundef nonnull align 8 dereferenceable(120) %13) #9
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %13) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %13) #9
  store i32 0, ptr %10, align 4, !tbaa !6
  call void @_ZN3cgp24mesh_obj_advanced_loader18shape_element_nodeD2Ev(ptr noundef nonnull align 8 dereferenceable(140) %12) #9
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %12) #9
  br label %129

121:                                              ; preds = %112
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %128

123:                                              ; preds = %115, %113
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %127

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

127:                                              ; preds = %125, %123
  %.pn = phi { ptr, i32 } [ %126, %125 ], [ %124, %123 ]
  call void @_ZN3cgp24mesh_obj_advanced_loader18shape_element_nodeD2Ev(ptr noundef nonnull align 8 dereferenceable(140) %12) #9
  br label %128

128:                                              ; preds = %127, %121
  %.pn.pn = phi { ptr, i32 } [ %.pn, %127 ], [ %122, %121 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %12) #9
  br label %219

129:                                              ; preds = %111, %119, %.lr.ph112
  %.180 = phi i32 [ %.079110, %.lr.ph112 ], [ %110, %119 ], [ %110, %111 ]
  %130 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNKSt6vectorIN7tinyobj7shape_tESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %indvars.iv122) #9
  %131 = getelementptr inbounds i8, ptr %130, i64 56
  %132 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %131, i64 noundef %.078111) #9
  %133 = load i8, ptr %132, align 1, !tbaa !13
  %134 = zext i8 %133 to i64
  %.not119 = icmp eq i8 %133, 0
  br i1 %.not119, label %._crit_edge, label %.lr.ph108

._crit_edge:                                      ; preds = %188, %129
  %135 = add i64 %.081109, %134
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %25) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #9
  %136 = load i32, ptr %10, align 4, !tbaa !6
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %26, align 4, !tbaa !6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #9
  %138 = add nsw i32 %136, 2
  store i32 %138, ptr %27, align 4, !tbaa !6
  call void @_ZN3cgp14numarray_stackIjLi3EEC2IiiiEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %27)
  %139 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIjLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %73, ptr noundef nonnull align 4 dereferenceable(12) %25)
          to label %191 unwind label %206

.lr.ph108:                                        ; preds = %129, %188
  %.075107 = phi i64 [ %189, %188 ], [ 0, %129 ]
  %140 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNKSt6vectorIN7tinyobj7shape_tESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %indvars.iv122) #9
  %141 = getelementptr inbounds i8, ptr %140, i64 32
  %142 = add i64 %.075107, %.081109
  %143 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN7tinyobj7index_tESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %141, i64 noundef %142) #9
  %.sroa.0.0.copyload = load i32, ptr %143, align 4, !tbaa !6
  %.sroa.7.0..sroa_idx = getelementptr inbounds i8, ptr %143, i64 4
  %.sroa.7.0.copyload = load i32, ptr %.sroa.7.0..sroa_idx, align 4, !tbaa !6
  %.sroa.11.0..sroa_idx = getelementptr inbounds i8, ptr %143, i64 8
  %.sroa.11.0.copyload = load i32, ptr %.sroa.11.0..sroa_idx, align 4, !tbaa !6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #9
  %144 = sext i32 %.sroa.0.0.copyload to i64
  %145 = mul nsw i64 %144, 3
  %146 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %145) #9
  %147 = load float, ptr %146, align 4, !tbaa !14
  store float %147, ptr %14, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #9
  %148 = add nsw i64 %145, 1
  %149 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %148) #9
  %150 = load float, ptr %149, align 4, !tbaa !14
  store float %150, ptr %15, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #9
  %151 = add nsw i64 %145, 2
  %152 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %151) #9
  %153 = load float, ptr %152, align 4, !tbaa !14
  store float %153, ptr %16, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #9
  call void @_ZN3cgp14numarray_stackIfLi3EEC2ERKfS3_S3_(ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %154 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 4 dereferenceable(12) %17)
          to label %155 unwind label %170

155:                                              ; preds = %.lr.ph108
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #9
  %156 = icmp sgt i32 %.sroa.7.0.copyload, -1
  br i1 %156, label %157, label %174

157:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #9
  %158 = zext nneg i32 %.sroa.7.0.copyload to i64
  %159 = mul nuw nsw i64 %158, 3
  %160 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef %159) #9
  %161 = load float, ptr %160, align 4, !tbaa !14
  store float %161, ptr %18, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #9
  %162 = add nuw nsw i64 %159, 1
  %163 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef %162) #9
  %164 = load float, ptr %163, align 4, !tbaa !14
  store float %164, ptr %19, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #9
  %165 = add nuw nsw i64 %159, 2
  %166 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef %165) #9
  %167 = load float, ptr %166, align 4, !tbaa !14
  store float %167, ptr %20, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %21) #9
  call void @_ZN3cgp14numarray_stackIfLi3EEC2ERKfS3_S3_(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %168 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %70, ptr noundef nonnull align 4 dereferenceable(12) %21)
          to label %169 unwind label %172

169:                                              ; preds = %157
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #9
  br label %174

170:                                              ; preds = %.lr.ph108
  %171 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #9
  br label %190

172:                                              ; preds = %157
  %173 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #9
  br label %190

174:                                              ; preds = %169, %155
  %175 = icmp sgt i32 %.sroa.11.0.copyload, -1
  br i1 %175, label %176, label %188

176:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #9
  %177 = shl nuw i32 %.sroa.11.0.copyload, 1
  %178 = zext i32 %177 to i64
  %179 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %178) #9
  %180 = load float, ptr %179, align 4, !tbaa !14
  store float %180, ptr %22, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #9
  %181 = or disjoint i64 %178, 1
  %182 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %181) #9
  %183 = load float, ptr %182, align 4, !tbaa !14
  store float %183, ptr %23, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #9
  call void @_ZN3cgp14numarray_stackIfLi2EEC2ERKfS3_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %184 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi2EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %72, ptr noundef nonnull align 4 dereferenceable(8) %24)
          to label %185 unwind label %186

185:                                              ; preds = %176
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #9
  br label %188

186:                                              ; preds = %176
  %187 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #9
  br label %190

188:                                              ; preds = %185, %174
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #9
  %189 = add nuw nsw i64 %.075107, 1
  %exitcond121.not = icmp eq i64 %189, %134
  br i1 %exitcond121.not, label %._crit_edge, label %.lr.ph108, !llvm.loop !16

190:                                              ; preds = %186, %172, %170
  %.pn90 = phi { ptr, i32 } [ %187, %186 ], [ %173, %172 ], [ %171, %170 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #9
  br label %219

191:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %25) #9
  %192 = load i32, ptr %10, align 4, !tbaa !6
  %193 = add nsw i32 %192, 3
  store i32 %193, ptr %10, align 4, !tbaa !6
  %194 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNKSt6vectorIN7tinyobj7shape_tESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %indvars.iv122) #9
  %195 = getelementptr inbounds i8, ptr %194, i64 56
  %196 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %195) #9
  %197 = add i64 %196, -1
  %198 = icmp eq i64 %.078111, %197
  br i1 %198, label %199, label %213

199:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %28) #9
  invoke void @_ZN3cgp24mesh_obj_advanced_loader18shape_element_nodeC2Ev(ptr noundef nonnull align 8 dereferenceable(140) %28)
          to label %200 unwind label %208

200:                                              ; preds = %199
  %201 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4meshaSERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %28, ptr noundef nonnull align 8 dereferenceable(120) %11)
          to label %202 unwind label %210

202:                                              ; preds = %200
  %203 = sext i32 %110 to i64
  %204 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorIN3cgp30opengl_texture_image_structureESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %203) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %74, ptr noundef nonnull align 4 dereferenceable(20) %204, i64 20, i1 false), !tbaa.struct !5
  invoke void @_ZNSt6vectorIN3cgp24mesh_obj_advanced_loader18shape_element_nodeESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(140) %28)
          to label %205 unwind label %210

205:                                              ; preds = %202
  call void @_ZN3cgp24mesh_obj_advanced_loader18shape_element_nodeD2Ev(ptr noundef nonnull align 8 dereferenceable(140) %28) #9
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %28) #9
  br label %213

206:                                              ; preds = %._crit_edge
  %207 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %25) #9
  br label %219

208:                                              ; preds = %199
  %209 = landingpad { ptr, i32 }
          cleanup
  br label %212

210:                                              ; preds = %202, %200
  %211 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3cgp24mesh_obj_advanced_loader18shape_element_nodeD2Ev(ptr noundef nonnull align 8 dereferenceable(140) %28) #9
  br label %212

212:                                              ; preds = %210, %208
  %.pn88 = phi { ptr, i32 } [ %211, %210 ], [ %209, %208 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %28) #9
  br label %219

213:                                              ; preds = %205, %191
  %214 = add nuw i64 %.078111, 1
  %215 = call noundef nonnull align 8 dereferenceable(224) ptr @_ZNKSt6vectorIN7tinyobj7shape_tESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %indvars.iv122) #9
  %216 = getelementptr inbounds i8, ptr %215, i64 56
  %217 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %216) #9
  %218 = icmp ult i64 %214, %217
  br i1 %218, label %.lr.ph112, label %._crit_edge113, !llvm.loop !17

219:                                              ; preds = %190, %206, %212, %128
  %.pn90.pn.pn = phi { ptr, i32 } [ %.pn.pn, %128 ], [ %.pn90, %190 ], [ %.pn88, %212 ], [ %207, %206 ]
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %11) #9
  br label %220

220:                                              ; preds = %219, %105
  %.pn90.pn.pn.pn = phi { ptr, i32 } [ %.pn90.pn.pn, %219 ], [ %106, %105 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  br label %221

221:                                              ; preds = %220, %98, %75
  %.pn95.pn.pn.pn = phi { ptr, i32 } [ %.pn95.pn.pn, %98 ], [ %.pn90.pn.pn.pn, %220 ], [ %76, %75 ]
  call void @_ZNSt6vectorIN3cgp30opengl_texture_image_structureESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  br label %222

222:                                              ; preds = %221, %48
  %.pn95.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn95.pn.pn.pn, %221 ], [ %49, %48 ]
  call void @_ZN7tinyobj9ObjReaderD2Ev(ptr noundef nonnull align 8 dereferenceable(288) %6) #9
  br label %223

223:                                              ; preds = %222, %46
  %.pn95.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn95.pn.pn.pn.pn, %222 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 288, ptr nonnull %6) #9
  call void @_ZN7tinyobj15ObjReaderConfigD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #9
  br label %224

224:                                              ; preds = %223, %44
  %.pn95.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn95.pn.pn.pn.pn.pn, %223 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #9
  br label %225

225:                                              ; preds = %224, %42
  %.pn95.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn95.pn.pn.pn.pn.pn.pn, %224 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #9
  call void @_ZNSt6vectorIN3cgp24mesh_obj_advanced_loader18shape_element_nodeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  resume { ptr, i32 } %.pn95.pn.pn.pn.pn.pn.pn.pn
}

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

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #7

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

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

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

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

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

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

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

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

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

declare void @_ZN3cgp30opengl_texture_image_structure37load_and_initialize_texture_2d_on_gpuERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiibii(ptr noundef nonnull align 4 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i1 noundef zeroext, i32 noundef, i32 noundef) local_unnamed_addr #8

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp24mesh_obj_advanced_loader18shape_element_nodeD2Ev(ptr noundef nonnull align 8 dereferenceable(140)) unnamed_addr #6 align 2

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7tinyobj9ObjReaderD2Ev(ptr noundef nonnull align 8 dereferenceable(288)) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7tinyobj15ObjReaderConfigD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #6 align 2

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

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

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

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


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