; LLVM IR from Try/Tempest :: Engine/gapi/spirv (meshconverter)

; 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.libspirv::MutableBytecode::Iterator" = type { %"struct.libspirv::Bytecode::Iterator.base", ptr }
%"struct.libspirv::Bytecode::Iterator.base" = type <{ ptr, i32 }>
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::function.32" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.34 = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%class.MeshConverter = type <{ %"struct.MeshConverter::Options", [6 x i8], ptr, %"class.libspirv::MutableBytecode", %"class.libspirv::MutableBytecode", [3 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i8], %"class.std::unordered_map", %"class.std::unordered_map", %"class.std::unordered_map.5", %"class.std::vector.19", i32, i32, i32, i32, i32, i32, i8, [7 x i8] }>
%"struct.MeshConverter::Options" = type { i8, i8 }
%"class.libspirv::MutableBytecode" = type { %"class.libspirv::Bytecode.base", %"class.std::vector" }
%"class.libspirv::Bytecode.base" = type <{ ptr, i64, i32 }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<libspirv::Bytecode::OpCode, std::allocator<libspirv::Bytecode::OpCode>>::_Vector_impl" }
%"struct.std::_Vector_base<libspirv::Bytecode::OpCode, std::allocator<libspirv::Bytecode::OpCode>>::_Vector_impl" = type { %"struct.std::_Vector_base<libspirv::Bytecode::OpCode, std::allocator<libspirv::Bytecode::OpCode>>::_Vector_impl_data" }
%"struct.std::_Vector_base<libspirv::Bytecode::OpCode, std::allocator<libspirv::Bytecode::OpCode>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::unordered_map.5" = type { %"class.std::_Hashtable.6" }
%"class.std::_Hashtable.6" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = 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 }

@.str.42 = external hidden unnamed_addr constant [15 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

declare noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48)) #2

declare void @_ZN8libspirv15MutableBytecode3endEv(ptr dead_on_unwind writable sret(%"struct.libspirv::MutableBytecode::Iterator") align 8, ptr noundef nonnull align 8 dereferenceable(48)) #2

declare void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, ptr, i64) #2

declare void @_ZN8libspirv15MutableBytecode14findSectionEndENS_8Bytecode7SectionE(ptr dead_on_unwind writable sret(%"struct.libspirv::MutableBytecode::Iterator") align 8, ptr noundef nonnull align 8 dereferenceable(48), i8 noundef zeroext) #2

declare noundef i32 @_ZN8libspirv15MutableBytecode9OpTypeIntERNS0_8IteratorEtb(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), i16 noundef zeroext, i1 noundef zeroext) #2

declare noundef i32 @_ZN8libspirv15MutableBytecode13OpTypePointerERNS0_8IteratorEN3spv12StorageClassEj(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) #2

declare noundef i32 @_ZN8libspirv15MutableBytecode10OpTypeVoidERNS0_8IteratorE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24)) #2

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

declare noundef i32 @_ZN8libspirv15MutableBytecode10OpVariableERNS0_8IteratorEjN3spv12StorageClassE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) #2

declare void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpEjPKc(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13MeshConverter13emitTailStoreERN8libspirv15MutableBytecodeEjj(ptr noundef nonnull align 8 dereferenceable(425) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef %2, i32 noundef %3) #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"struct.libspirv::MutableBytecode::Iterator", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"struct.libspirv::MutableBytecode::Iterator", align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::initializer_list", align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"struct.libspirv::MutableBytecode::Iterator", align 8
  %24 = alloca %"class.std::initializer_list", align 8
  %25 = alloca [4 x i32], align 4
  %26 = alloca %"class.std::initializer_list", align 8
  %27 = alloca [1 x i32], align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca %"class.std::initializer_list", align 8
  %31 = alloca [3 x i32], align 4
  %32 = alloca i32, align 4
  %33 = alloca %"class.std::initializer_list", align 8
  %34 = alloca [3 x i32], align 4
  %35 = alloca %"struct.libspirv::MutableBytecode::Iterator", align 8
  %36 = alloca %"class.std::function.32", align 8
  %37 = alloca %class.anon.34, align 8
  %38 = alloca ptr, align 8
  %39 = alloca i32, align 4
  %40 = alloca %"class.std::initializer_list", align 8
  %41 = alloca %"class.std::initializer_list", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  %42 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #5
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN8libspirv15MutableBytecode14findSectionEndENS_8Bytecode7SectionE(ptr dead_on_unwind writable sret(%"struct.libspirv::MutableBytecode::Iterator") align 8 %9, ptr noundef nonnull align 8 dereferenceable(48) %43, i8 noundef zeroext 7)
  %44 = load i32, ptr %7, align 4, !tbaa !9
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpEjPKc(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef 5, i32 noundef %44, ptr noundef @.str.42)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %45 = getelementptr inbounds %class.MeshConverter, ptr %42, i32 0, i32 5
  %46 = getelementptr inbounds [3 x i32], ptr %45, i64 0, i64 0
  %47 = load i32, ptr %46, align 8, !tbaa !9
  %48 = getelementptr inbounds %class.MeshConverter, ptr %42, i32 0, i32 5
  %49 = getelementptr inbounds [3 x i32], ptr %48, i64 0, i64 1
  %50 = load i32, ptr %49, align 4, !tbaa !9
  %51 = mul i32 %47, %50
  %52 = getelementptr inbounds %class.MeshConverter, ptr %42, i32 0, i32 5
  %53 = getelementptr inbounds [3 x i32], ptr %52, i64 0, i64 2
  %54 = load i32, ptr %53, align 8, !tbaa !9
  %55 = mul i32 %51, %54
  store i32 %55, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #5
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN8libspirv15MutableBytecode14findSectionEndENS_8Bytecode7SectionE(ptr dead_on_unwind writable sret(%"struct.libspirv::MutableBytecode::Iterator") align 8 %11, ptr noundef nonnull align 8 dereferenceable(48) %56, i8 noundef zeroext 9)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %11, i64 24, i1 false)
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = call noundef i32 @_ZN8libspirv15MutableBytecode10OpTypeVoidERNS0_8IteratorE(ptr noundef nonnull align 8 dereferenceable(48) %57, ptr noundef nonnull align 8 dereferenceable(24) %9)
  store i32 %58, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = call noundef i32 @_ZN8libspirv15MutableBytecode9OpTypeIntERNS0_8IteratorEtb(ptr noundef nonnull align 8 dereferenceable(48) %59, ptr noundef nonnull align 8 dereferenceable(24) %9, i16 noundef zeroext 32, i1 noundef zeroext false)
  store i32 %60, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = call noundef i32 @_ZN8libspirv15MutableBytecode11OpTypeFloatERNS0_8IteratorEt(ptr noundef nonnull align 8 dereferenceable(48) %61, ptr noundef nonnull align 8 dereferenceable(24) %9, i16 noundef zeroext 32)
  store i32 %62, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = load i32, ptr %12, align 4, !tbaa !9
  call void @_ZNSt16initializer_listIjEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  %65 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 0
  %66 = load ptr, ptr %65, align 8
  %67 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 1
  %68 = load i64, ptr %67, align 8
  %69 = call noundef i32 @_ZN8libspirv15MutableBytecode14OpTypeFunctionERNS0_8IteratorEjSt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(48) %63, ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef %64, ptr %66, i64 %68)
  store i32 %69, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = load i32, ptr %13, align 4, !tbaa !9
  %72 = call noundef i32 @_ZN8libspirv15MutableBytecode13OpTypePointerERNS0_8IteratorEN3spv12StorageClassEj(ptr noundef nonnull align 8 dereferenceable(48) %70, ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef 7, i32 noundef %71)
  store i32 %72, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = load i32, ptr %13, align 4, !tbaa !9
  %75 = call noundef i32 @_ZN8libspirv15MutableBytecode13OpTypePointerERNS0_8IteratorEN3spv12StorageClassEj(ptr noundef nonnull align 8 dereferenceable(48) %73, ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef 12, i32 noundef %74)
  store i32 %75, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = load i32, ptr %13, align 4, !tbaa !9
  %78 = call noundef i32 @_ZN8libspirv15MutableBytecode13OpTypePointerERNS0_8IteratorEN3spv12StorageClassEj(ptr noundef nonnull align 8 dereferenceable(48) %76, ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef 4, i32 noundef %77)
  store i32 %78, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = load i32, ptr %14, align 4, !tbaa !9
  %81 = call noundef i32 @_ZN8libspirv15MutableBytecode13OpTypePointerERNS0_8IteratorEN3spv12StorageClassEj(ptr noundef nonnull align 8 dereferenceable(48) %79, ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef 4, i32 noundef %80)
  store i32 %81, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = load i32, ptr %13, align 4, !tbaa !9
  %84 = load i32, ptr %10, align 4, !tbaa !9
  %85 = call noundef i32 @_ZN8libspirv15MutableBytecode10OpConstantERNS0_8IteratorEjj(ptr noundef nonnull align 8 dereferenceable(48) %82, ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef %83, i32 noundef %84)
  store i32 %85, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %86 = getelementptr inbounds %class.MeshConverter, ptr %42, i32 0, i32 30
  %87 = getelementptr inbounds %class.MeshConverter, ptr %42, i32 0, i32 25
  %88 = load i32, ptr %87, align 8, !tbaa !11
  %89 = zext i32 %88 to i64
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %89) #5
  %91 = load i32, ptr %90, align 4, !tbaa !9
  store i32 %91, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #5
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN8libspirv15MutableBytecode3endEv(ptr dead_on_unwind writable sret(%"struct.libspirv::MutableBytecode::Iterator") align 8 %23, ptr noundef nonnull align 8 dereferenceable(48) %92)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %23, i64 24, i1 false)
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  %93 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %93, ptr %25, align 4, !tbaa !9
  %94 = getelementptr inbounds i32, ptr %25, i64 1
  %95 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %95, ptr %94, align 4, !tbaa !9
  %96 = getelementptr inbounds i32, ptr %25, i64 2
  store i32 0, ptr %96, align 4, !tbaa !9
  %97 = getelementptr inbounds i32, ptr %25, i64 3
  %98 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %98, ptr %97, align 4, !tbaa !9
  %99 = getelementptr inbounds %"class.std::initializer_list", ptr %24, i32 0, i32 0
  store ptr %25, ptr %99, align 8, !tbaa !33
  %100 = getelementptr inbounds %"class.std::initializer_list", ptr %24, i32 0, i32 1
  store i64 4, ptr %100, align 8, !tbaa !35
  %101 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 0
  %102 = load ptr, ptr %101, align 8
  %103 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 1
  %104 = load i64, ptr %103, align 8
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef 54, ptr %102, i64 %104)
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %105)
  store i32 %106, ptr %27, align 4, !tbaa !9
  %107 = getelementptr inbounds %"class.std::initializer_list", ptr %26, i32 0, i32 0
  store ptr %27, ptr %107, align 8, !tbaa !33
  %108 = getelementptr inbounds %"class.std::initializer_list", ptr %26, i32 0, i32 1
  store i64 1, ptr %108, align 8, !tbaa !35
  %109 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8
  %111 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 1
  %112 = load i64, ptr %111, align 8
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef 248, ptr %110, i64 %112)
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = load i32, ptr %17, align 4, !tbaa !9
  %115 = call noundef i32 @_ZN8libspirv15MutableBytecode10OpVariableERNS0_8IteratorEjN3spv12StorageClassE(ptr noundef nonnull align 8 dereferenceable(48) %113, ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef %114, i32 noundef 7)
  store i32 %115, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %116)
  store i32 %117, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %31) #5
  %118 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %118, ptr %31, align 4, !tbaa !9
  %119 = getelementptr inbounds i32, ptr %31, i64 1
  %120 = load i32, ptr %29, align 4, !tbaa !9
  store i32 %120, ptr %119, align 4, !tbaa !9
  %121 = getelementptr inbounds i32, ptr %31, i64 2
  %122 = getelementptr inbounds %class.MeshConverter, ptr %42, i32 0, i32 23
  %123 = load i32, ptr %122, align 8, !tbaa !36
  store i32 %123, ptr %121, align 4, !tbaa !9
  %124 = getelementptr inbounds %"class.std::initializer_list", ptr %30, i32 0, i32 0
  store ptr %31, ptr %124, align 8, !tbaa !33
  %125 = getelementptr inbounds %"class.std::initializer_list", ptr %30, i32 0, i32 1
  store i64 3, ptr %125, align 8, !tbaa !35
  %126 = getelementptr inbounds { ptr, i64 }, ptr %30, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8
  %128 = getelementptr inbounds { ptr, i64 }, ptr %30, i32 0, i32 1
  %129 = load i64, ptr %128, align 8
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef 61, ptr %127, i64 %129)
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %130)
  store i32 %131, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %34) #5
  %132 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %132, ptr %34, align 4, !tbaa !9
  %133 = getelementptr inbounds i32, ptr %34, i64 1
  %134 = load i32, ptr %32, align 4, !tbaa !9
  store i32 %134, ptr %133, align 4, !tbaa !9
  %135 = getelementptr inbounds i32, ptr %34, i64 2
  %136 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %136, ptr %135, align 4, !tbaa !9
  %137 = getelementptr inbounds %"class.std::initializer_list", ptr %33, i32 0, i32 0
  store ptr %34, ptr %137, align 8, !tbaa !33
  %138 = getelementptr inbounds %"class.std::initializer_list", ptr %33, i32 0, i32 1
  store i64 3, ptr %138, align 8, !tbaa !35
  %139 = getelementptr inbounds { ptr, i64 }, ptr %33, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8
  %141 = getelementptr inbounds { ptr, i64 }, ptr %33, i32 0, i32 1
  %142 = load i64, ptr %141, align 8
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef 61, ptr %140, i64 %142)
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #5
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = load i32, ptr %28, align 4, !tbaa !9
  %145 = load i32, ptr %32, align 4, !tbaa !9
  %146 = load i32, ptr %29, align 4, !tbaa !9
  %147 = load i32, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 72, ptr %37) #5
  %148 = getelementptr inbounds %class.anon.34, ptr %37, i32 0, i32 0
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %149, ptr %148, align 8, !tbaa !5
  %150 = getelementptr inbounds %class.anon.34, ptr %37, i32 0, i32 1
  store ptr %13, ptr %150, align 8, !tbaa !5
  %151 = getelementptr inbounds %class.anon.34, ptr %37, i32 0, i32 2
  store ptr %28, ptr %151, align 8, !tbaa !5
  %152 = getelementptr inbounds %class.anon.34, ptr %37, i32 0, i32 3
  store ptr %42, ptr %152, align 8, !tbaa !37
  %153 = getelementptr inbounds %class.anon.34, ptr %37, i32 0, i32 4
  store ptr %22, ptr %153, align 8, !tbaa !5
  %154 = getelementptr inbounds %class.anon.34, ptr %37, i32 0, i32 5
  store ptr %18, ptr %154, align 8, !tbaa !5
  %155 = getelementptr inbounds %class.anon.34, ptr %37, i32 0, i32 6
  store ptr %20, ptr %155, align 8, !tbaa !5
  %156 = getelementptr inbounds %class.anon.34, ptr %37, i32 0, i32 7
  store ptr %14, ptr %156, align 8, !tbaa !5
  %157 = getelementptr inbounds %class.anon.34, ptr %37, i32 0, i32 8
  store ptr %19, ptr %157, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRN8libspirv15MutableBytecode8IteratorEEEC2IZN13MeshConverter13emitTailStoreERS1_jjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 8 dereferenceable(72) %37)
  invoke void @_ZN13MeshConverter8emitLoopERN8libspirv15MutableBytecodeEjjjjSt8functionIFvRNS1_8IteratorEEE(ptr dead_on_unwind writable sret(%"struct.libspirv::MutableBytecode::Iterator") align 8 %35, ptr noundef nonnull align 8 dereferenceable(425) %42, ptr noundef nonnull align 8 dereferenceable(48) %143, i32 noundef %144, i32 noundef %145, i32 noundef %146, i32 noundef %147, ptr noundef %36)
          to label %158 unwind label %167

158:                                              ; preds = %4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %35, i64 24, i1 false)
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #5
  call void @_ZNSt16initializer_listIjEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %40) #5
  %159 = getelementptr inbounds { ptr, i64 }, ptr %40, i32 0, i32 0
  %160 = load ptr, ptr %159, align 8
  %161 = getelementptr inbounds { ptr, i64 }, ptr %40, i32 0, i32 1
  %162 = load i64, ptr %161, align 8
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef 253, ptr %160, i64 %162)
  call void @_ZNSt16initializer_listIjEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %41) #5
  %163 = getelementptr inbounds { ptr, i64 }, ptr %41, i32 0, i32 0
  %164 = load ptr, ptr %163, align 8
  %165 = getelementptr inbounds { ptr, i64 }, ptr %41, i32 0, i32 1
  %166 = load i64, ptr %165, align 8
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef 56, ptr %164, i64 %166)
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #5
  ret void

167:                                              ; preds = %4
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %38, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %39, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #5
  br label %171

171:                                              ; preds = %167
  %172 = load ptr, ptr %38, align 8
  %173 = load i32, ptr %39, align 4
  %174 = insertvalue { ptr, i32 } poison, ptr %172, 0
  %175 = insertvalue { ptr, i32 } %174, i32 %173, 1
  resume { ptr, i32 } %175
}

declare noundef i32 @_ZN8libspirv15MutableBytecode10OpConstantERNS0_8IteratorEjj(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) #2

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

declare noundef i32 @_ZN8libspirv15MutableBytecode14OpTypeFunctionERNS0_8IteratorEjSt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, ptr, i64) #2

declare noundef i32 @_ZN8libspirv15MutableBytecode11OpTypeFloatERNS0_8IteratorEt(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), i16 noundef zeroext) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13MeshConverter8emitLoopERN8libspirv15MutableBytecodeEjjjjSt8functionIFvRNS1_8IteratorEEE(ptr dead_on_unwind noalias writable sret(%"struct.libspirv::MutableBytecode::Iterator") align 8, ptr noundef nonnull align 8 dereferenceable(425), ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvRN8libspirv15MutableBytecode8IteratorEEEC2IZN13MeshConverter13emitTailStoreERS1_jjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #4 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!12, !10, i64 200}
!12 = !{!"_ZTS13MeshConverter", !13, i64 0, !6, i64 8, !15, i64 16, !15, i64 64, !7, i64 112, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !10, i64 192, !10, i64 196, !10, i64 200, !22, i64 208, !22, i64 264, !27, i64 320, !29, i64 376, !10, i64 400, !10, i64 404, !10, i64 408, !10, i64 412, !10, i64 416, !10, i64 420, !14, i64 424}
!13 = !{!"_ZTSN13MeshConverter7OptionsE", !14, i64 0, !14, i64 1}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSN8libspirv15MutableBytecodeE", !16, i64 0, !18, i64 24}
!16 = !{!"_ZTSN8libspirv8BytecodeE", !6, i64 0, !17, i64 8, !10, i64 16}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIN8libspirv8Bytecode6OpCodeESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN8libspirv8Bytecode6OpCodeESaIS2_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN8libspirv8Bytecode6OpCodeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSSt13unordered_mapIjmSt4hashIjESt8equal_toIjESaISt4pairIKjmEEE", !23, i64 0}
!23 = !{!"_ZTSSt10_HashtableIjSt4pairIKjmESaIS2_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !17, i64 8, !24, i64 16, !17, i64 24, !25, i64 32, !6, i64 48}
!24 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!25 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !26, i64 0, !17, i64 8}
!26 = !{!"float", !7, i64 0}
!27 = !{!"_ZTSSt13unordered_mapIjN13MeshConverter7VaryingESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE", !28, i64 0}
!28 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN13MeshConverter7VaryingEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !17, i64 8, !24, i64 16, !17, i64 24, !25, i64 32, !6, i64 48}
!29 = !{!"_ZTSSt6vectorIjSaIjEE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!33 = !{!34, !6, i64 0}
!34 = !{!"_ZTSSt16initializer_listIjE", !6, i64 0, !17, i64 8}
!35 = !{!34, !17, i64 8}
!36 = !{!12, !10, i64 192}
!37 = !{!38, !6, i64 24}
!38 = !{!"_ZTSZN13MeshConverter13emitTailStoreERN8libspirv15MutableBytecodeEjjE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64}


; 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.libspirv::MutableBytecode::Iterator" = type { %"struct.libspirv::Bytecode::Iterator.base", ptr }
%"struct.libspirv::Bytecode::Iterator.base" = type <{ ptr, i32 }>
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::function.32" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.34 = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@.str.42 = external hidden unnamed_addr constant [15 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

declare noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2

declare void @_ZN8libspirv15MutableBytecode3endEv(ptr dead_on_unwind writable sret(%"struct.libspirv::MutableBytecode::Iterator") align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2

declare void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, ptr, i64) local_unnamed_addr #2

declare void @_ZN8libspirv15MutableBytecode14findSectionEndENS_8Bytecode7SectionE(ptr dead_on_unwind writable sret(%"struct.libspirv::MutableBytecode::Iterator") align 8, ptr noundef nonnull align 8 dereferenceable(48), i8 noundef zeroext) local_unnamed_addr #2

declare noundef i32 @_ZN8libspirv15MutableBytecode9OpTypeIntERNS0_8IteratorEtb(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), i16 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #2

declare noundef i32 @_ZN8libspirv15MutableBytecode13OpTypePointerERNS0_8IteratorEN3spv12StorageClassEj(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) local_unnamed_addr #2

declare noundef i32 @_ZN8libspirv15MutableBytecode10OpTypeVoidERNS0_8IteratorE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

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

declare noundef i32 @_ZN8libspirv15MutableBytecode10OpVariableERNS0_8IteratorEjN3spv12StorageClassE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpEjPKc(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13MeshConverter13emitTailStoreERN8libspirv15MutableBytecodeEjj(ptr noundef nonnull align 8 dereferenceable(425) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"struct.libspirv::MutableBytecode::Iterator", align 8
  %6 = alloca %"struct.libspirv::MutableBytecode::Iterator", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::initializer_list", align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"struct.libspirv::MutableBytecode::Iterator", align 8
  %15 = alloca [4 x i32], align 4
  %16 = alloca [1 x i32], align 4
  %17 = alloca i32, align 4
  %18 = alloca [3 x i32], align 4
  %19 = alloca [3 x i32], align 4
  %20 = alloca %"struct.libspirv::MutableBytecode::Iterator", align 8
  %21 = alloca %"class.std::function.32", align 8
  %22 = alloca %class.anon.34, align 8
  %23 = alloca %"class.std::initializer_list", align 8
  %24 = alloca %"class.std::initializer_list", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  call void @_ZN8libspirv15MutableBytecode14findSectionEndENS_8Bytecode7SectionE(ptr dead_on_unwind nonnull writable sret(%"struct.libspirv::MutableBytecode::Iterator") align 8 %5, ptr noundef nonnull align 8 dereferenceable(48) %1, i8 noundef zeroext 7)
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpEjPKc(ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef 5, i32 noundef %2, ptr noundef nonnull @.str.42)
  %25 = getelementptr inbounds i8, ptr %0, i64 112
  %26 = load i32, ptr %25, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %0, i64 116
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = mul i32 %28, %26
  %30 = getelementptr inbounds i8, ptr %0, i64 120
  %31 = load i32, ptr %30, align 8, !tbaa !5
  %32 = mul i32 %29, %31
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  call void @_ZN8libspirv15MutableBytecode14findSectionEndENS_8Bytecode7SectionE(ptr dead_on_unwind nonnull writable sret(%"struct.libspirv::MutableBytecode::Iterator") align 8 %6, ptr noundef nonnull align 8 dereferenceable(48) %1, i8 noundef zeroext 9)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, i64 24, i1 false)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  %33 = call noundef i32 @_ZN8libspirv15MutableBytecode10OpTypeVoidERNS0_8IteratorE(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(24) %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %34 = call noundef i32 @_ZN8libspirv15MutableBytecode9OpTypeIntERNS0_8IteratorEtb(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(24) %5, i16 noundef zeroext 32, i1 noundef zeroext false)
  store i32 %34, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %35 = call noundef i32 @_ZN8libspirv15MutableBytecode11OpTypeFloatERNS0_8IteratorEt(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(24) %5, i16 noundef zeroext 32)
  store i32 %35, ptr %8, align 4, !tbaa !5
  call void @_ZNSt16initializer_listIjEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  %36 = load ptr, ptr %9, align 8
  %37 = getelementptr inbounds i8, ptr %9, i64 8
  %38 = load i64, ptr %37, align 8
  %39 = call noundef i32 @_ZN8libspirv15MutableBytecode14OpTypeFunctionERNS0_8IteratorEjSt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef %33, ptr %36, i64 %38)
  %40 = call noundef i32 @_ZN8libspirv15MutableBytecode13OpTypePointerERNS0_8IteratorEN3spv12StorageClassEj(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef 7, i32 noundef %34)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  %41 = call noundef i32 @_ZN8libspirv15MutableBytecode13OpTypePointerERNS0_8IteratorEN3spv12StorageClassEj(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef 12, i32 noundef %34)
  store i32 %41, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  %42 = call noundef i32 @_ZN8libspirv15MutableBytecode13OpTypePointerERNS0_8IteratorEN3spv12StorageClassEj(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef 4, i32 noundef %34)
  store i32 %42, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  %43 = call noundef i32 @_ZN8libspirv15MutableBytecode13OpTypePointerERNS0_8IteratorEN3spv12StorageClassEj(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef 4, i32 noundef %35)
  store i32 %43, ptr %12, align 4, !tbaa !5
  %44 = call noundef i32 @_ZN8libspirv15MutableBytecode10OpConstantERNS0_8IteratorEjj(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef %34, i32 noundef %32)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #5
  %45 = getelementptr inbounds i8, ptr %0, i64 376
  %46 = getelementptr inbounds i8, ptr %0, i64 200
  %47 = load i32, ptr %46, align 8, !tbaa !9
  %48 = zext i32 %47 to i64
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %48) #5
  %50 = load i32, ptr %49, align 4, !tbaa !5
  store i32 %50, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #5
  call void @_ZN8libspirv15MutableBytecode3endEv(ptr dead_on_unwind nonnull writable sret(%"struct.libspirv::MutableBytecode::Iterator") align 8 %14, ptr noundef nonnull align 8 dereferenceable(48) %1)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %14, i64 24, i1 false)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #5
  store i32 %33, ptr %15, align 4, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %15, i64 4
  store i32 %2, ptr %51, align 4, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %15, i64 8
  store i32 0, ptr %52, align 4, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %15, i64 12
  store i32 %39, ptr %53, align 4, !tbaa !5
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef 54, ptr nonnull %15, i64 4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #5
  %54 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  store i32 %54, ptr %16, align 4, !tbaa !5
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef 248, ptr nonnull %16, i64 1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #5
  %55 = call noundef i32 @_ZN8libspirv15MutableBytecode10OpVariableERNS0_8IteratorEjN3spv12StorageClassE(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef %40, i32 noundef 7)
  store i32 %55, ptr %17, align 4, !tbaa !5
  %56 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #5
  store i32 %34, ptr %18, align 4, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %18, i64 4
  store i32 %56, ptr %57, align 4, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %18, i64 8
  %59 = getelementptr inbounds i8, ptr %0, i64 192
  %60 = load i32, ptr %59, align 8, !tbaa !32
  store i32 %60, ptr %58, align 4, !tbaa !5
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef 61, ptr nonnull %18, i64 3)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #5
  %61 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %19) #5
  store i32 %34, ptr %19, align 4, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %19, i64 4
  store i32 %61, ptr %62, align 4, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %19, i64 8
  store i32 %3, ptr %63, align 4, !tbaa !5
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef 61, ptr nonnull %19, i64 3)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %22) #5
  store ptr %1, ptr %22, align 8, !tbaa !33
  %64 = getelementptr inbounds i8, ptr %22, i64 8
  store ptr %7, ptr %64, align 8, !tbaa !33
  %65 = getelementptr inbounds i8, ptr %22, i64 16
  store ptr %17, ptr %65, align 8, !tbaa !33
  %66 = getelementptr inbounds i8, ptr %22, i64 24
  store ptr %0, ptr %66, align 8, !tbaa !34
  %67 = getelementptr inbounds i8, ptr %22, i64 32
  store ptr %13, ptr %67, align 8, !tbaa !33
  %68 = getelementptr inbounds i8, ptr %22, i64 40
  store ptr %10, ptr %68, align 8, !tbaa !33
  %69 = getelementptr inbounds i8, ptr %22, i64 48
  store ptr %12, ptr %69, align 8, !tbaa !33
  %70 = getelementptr inbounds i8, ptr %22, i64 56
  store ptr %8, ptr %70, align 8, !tbaa !33
  %71 = getelementptr inbounds i8, ptr %22, i64 64
  store ptr %11, ptr %71, align 8, !tbaa !33
  call void @"_ZNSt8functionIFvRN8libspirv15MutableBytecode8IteratorEEEC2IZN13MeshConverter13emitTailStoreERS1_jjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(72) %22)
  invoke void @_ZN13MeshConverter8emitLoopERN8libspirv15MutableBytecodeEjjjjSt8functionIFvRNS1_8IteratorEEE(ptr dead_on_unwind nonnull writable sret(%"struct.libspirv::MutableBytecode::Iterator") align 8 %20, ptr noundef nonnull align 8 dereferenceable(425) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef %55, i32 noundef %61, i32 noundef %56, i32 noundef %44, ptr noundef nonnull %21)
          to label %72 unwind label %79

72:                                               ; preds = %4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %20, i64 24, i1 false)
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #5
  call void @_ZNSt16initializer_listIjEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #5
  %73 = load ptr, ptr %23, align 8
  %74 = getelementptr inbounds i8, ptr %23, i64 8
  %75 = load i64, ptr %74, align 8
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef 253, ptr %73, i64 %75)
  call void @_ZNSt16initializer_listIjEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #5
  %76 = load ptr, ptr %24, align 8
  %77 = getelementptr inbounds i8, ptr %24, i64 8
  %78 = load i64, ptr %77, align 8
  call void @_ZN8libspirv15MutableBytecode8Iterator6insertEN3spv2OpESt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef 56, ptr %76, i64 %78)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  ret void

79:                                               ; preds = %4
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  resume { ptr, i32 } %80
}

declare noundef i32 @_ZN8libspirv15MutableBytecode10OpConstantERNS0_8IteratorEjj(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) local_unnamed_addr #2

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

declare noundef i32 @_ZN8libspirv15MutableBytecode14OpTypeFunctionERNS0_8IteratorEjSt16initializer_listIjE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, ptr, i64) local_unnamed_addr #2

declare noundef i32 @_ZN8libspirv15MutableBytecode11OpTypeFloatERNS0_8IteratorEt(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), i16 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13MeshConverter8emitLoopERN8libspirv15MutableBytecodeEjjjjSt8functionIFvRNS1_8IteratorEEE(ptr dead_on_unwind noalias writable sret(%"struct.libspirv::MutableBytecode::Iterator") align 8, ptr noundef nonnull align 8 dereferenceable(425), ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvRN8libspirv15MutableBytecode8IteratorEEEC2IZN13MeshConverter13emitTailStoreERS1_jjE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #4 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 200}
!10 = !{!"_ZTS13MeshConverter", !11, i64 0, !13, i64 8, !14, i64 16, !14, i64 64, !7, i64 112, !6, i64 124, !6, i64 128, !6, i64 132, !6, i64 136, !6, i64 140, !6, i64 144, !6, i64 148, !6, i64 152, !6, i64 156, !6, i64 160, !6, i64 164, !6, i64 168, !6, i64 172, !6, i64 176, !6, i64 180, !6, i64 184, !6, i64 188, !6, i64 192, !6, i64 196, !6, i64 200, !21, i64 208, !21, i64 264, !26, i64 320, !28, i64 376, !6, i64 400, !6, i64 404, !6, i64 408, !6, i64 412, !6, i64 416, !6, i64 420, !12, i64 424}
!11 = !{!"_ZTSN13MeshConverter7OptionsE", !12, i64 0, !12, i64 1}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"_ZTSN8libspirv15MutableBytecodeE", !15, i64 0, !17, i64 24}
!15 = !{!"_ZTSN8libspirv8BytecodeE", !13, i64 0, !16, i64 8, !6, i64 16}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIN8libspirv8Bytecode6OpCodeESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN8libspirv8Bytecode6OpCodeESaIS2_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN8libspirv8Bytecode6OpCodeESaIS2_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!21 = !{!"_ZTSSt13unordered_mapIjmSt4hashIjESt8equal_toIjESaISt4pairIKjmEEE", !22, i64 0}
!22 = !{!"_ZTSSt10_HashtableIjSt4pairIKjmESaIS2_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !13, i64 0, !16, i64 8, !23, i64 16, !16, i64 24, !24, i64 32, !13, i64 48}
!23 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !13, i64 0}
!24 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !25, i64 0, !16, i64 8}
!25 = !{!"float", !7, i64 0}
!26 = !{!"_ZTSSt13unordered_mapIjN13MeshConverter7VaryingESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE", !27, i64 0}
!27 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN13MeshConverter7VaryingEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb0ELb0ELb1EEEE", !13, i64 0, !16, i64 8, !23, i64 16, !16, i64 24, !24, i64 32, !13, i64 48}
!28 = !{!"_ZTSSt6vectorIjSaIjEE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!32 = !{!10, !6, i64 192}
!33 = !{!13, !13, i64 0}
!34 = !{!35, !13, i64 24}
!35 = !{!"_ZTSZN13MeshConverter13emitTailStoreERN8libspirv15MutableBytecodeEjjE3$_0", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass