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

; 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::Bytecode::Iterator" = type <{ ptr, i32, [4 x i8] }>
%"struct.MeshConverter::Varying" = type { i32, i32, i32, i32 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.std::function" = 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 = type { 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 }
%"struct.std::pair" = type { i32, %"struct.MeshConverter::Varying" }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13MeshConverter15traveseVaryingsEv(ptr noundef nonnull align 8 dereferenceable(425) %0) #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"struct.libspirv::Bytecode::Iterator", align 8
  %5 = alloca { ptr, i32 }, align 8
  %6 = alloca %"struct.libspirv::Bytecode::Iterator", align 8
  %7 = alloca { ptr, i32 }, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"struct.MeshConverter::Varying", align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %13 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.std::function", align 8
  %16 = alloca %class.anon, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca %"struct.libspirv::Bytecode::Iterator", align 8
  %21 = alloca { ptr, i32 }, align 8
  %22 = alloca %"struct.libspirv::Bytecode::Iterator", align 8
  %23 = alloca { ptr, i32 }, align 8
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %28 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %29 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %30 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %31 = getelementptr inbounds %class.MeshConverter, ptr %30, i32 0, i32 2
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  store ptr %32, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #6
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = call { ptr, i32 } @_ZNK8libspirv8Bytecode5beginEv(ptr noundef nonnull align 8 dereferenceable(20) %33)
  store { ptr, i32 } %34, ptr %5, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 %5, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #6
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = call { ptr, i32 } @_ZNK8libspirv8Bytecode3endEv(ptr noundef nonnull align 8 dereferenceable(20) %35)
  store { ptr, i32 } %36, ptr %7, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %7, i64 12, i1 false)
  br label %37

37:                                               ; preds = %68, %1
  %38 = call noundef zeroext i1 @_ZN8libspirvneERKNS_8Bytecode8IteratorES3_(ptr noundef nonnull align 8 dereferenceable(12) %4, ptr noundef nonnull align 8 dereferenceable(12) %6)
  br i1 %38, label %40, label %39

39:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %69

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode8IteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %4)
  store ptr %41, ptr %8, align 8, !tbaa !5
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = call noundef i32 @_ZNK8libspirv8Bytecode6OpCode2opEv(ptr noundef nonnull align 4 dereferenceable(4) %42)
  switch i32 %43, label %66 [
    i32 59, label %44
  ]

44:                                               ; preds = %40
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %45, i16 noundef zeroext 3)
  %47 = load i32, ptr %46, align 4, !tbaa !32
  %48 = icmp eq i32 %47, 3
  br i1 %48, label %49, label %65

49:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %50, i16 noundef zeroext 2)
  %52 = load i32, ptr %51, align 4, !tbaa !32
  store i32 %52, ptr %9, align 4, !tbaa !32
  %53 = load i32, ptr %9, align 4, !tbaa !32
  %54 = getelementptr inbounds %class.MeshConverter, ptr %30, i32 0, i32 13
  %55 = load i32, ptr %54, align 8, !tbaa !33
  %56 = icmp ne i32 %53, %55
  br i1 %56, label %57, label %64

57:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  call void @_ZN13MeshConverter7VaryingC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %10) #6
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %58, i16 noundef zeroext 1)
  %60 = load i32, ptr %59, align 4, !tbaa !32
  %61 = getelementptr inbounds %"struct.MeshConverter::Varying", ptr %10, i32 0, i32 0
  store i32 %60, ptr %61, align 4, !tbaa !34
  %62 = getelementptr inbounds %class.MeshConverter, ptr %30, i32 0, i32 29
  %63 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt13unordered_mapIjN13MeshConverter7VaryingESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56) %62, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %63, ptr align 4 %10, i64 16, i1 false), !tbaa.struct !36
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  br label %64

64:                                               ; preds = %57, %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %65

65:                                               ; preds = %64, %44
  br label %67

66:                                               ; preds = %40
  br label %67

67:                                               ; preds = %66, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %68

68:                                               ; preds = %67
  call void @_ZN8libspirv8Bytecode8IteratorppEv(ptr noundef nonnull align 8 dereferenceable(12) %4)
  br label %37

69:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %70 = getelementptr inbounds %class.MeshConverter, ptr %30, i32 0, i32 29
  store ptr %70, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  %72 = call ptr @_ZNSt13unordered_mapIjN13MeshConverter7VaryingESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %71) #6
  %73 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %12, i32 0, i32 0
  %74 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %73, i32 0, i32 0
  store ptr %72, ptr %74, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = call ptr @_ZNSt13unordered_mapIjN13MeshConverter7VaryingESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %75) #6
  %77 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %13, i32 0, i32 0
  %78 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %77, i32 0, i32 0
  store ptr %76, ptr %78, align 8
  br label %79

79:                                               ; preds = %97, %69
  %80 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjN13MeshConverter7VaryingEELb0EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br i1 %80, label %82, label %81

81:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %103

82:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %83 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjN13MeshConverter7VaryingEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  store ptr %83, ptr %14, align 8, !tbaa !5
  %84 = getelementptr inbounds %class.MeshConverter, ptr %30, i32 0, i32 25
  %85 = load i32, ptr %84, align 8, !tbaa !37
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.std::pair", ptr %86, i32 0, i32 1
  %88 = getelementptr inbounds %"struct.MeshConverter::Varying", ptr %87, i32 0, i32 1
  store i32 %85, ptr %88, align 4, !tbaa !38
  %89 = getelementptr inbounds %class.MeshConverter, ptr %30, i32 0, i32 2
  %90 = load ptr, ptr %89, align 8, !tbaa !9
  %91 = load ptr, ptr %14, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.std::pair", ptr %91, i32 0, i32 1
  %93 = getelementptr inbounds %"struct.MeshConverter::Varying", ptr %92, i32 0, i32 0
  %94 = load i32, ptr %93, align 4, !tbaa !40
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %95 = getelementptr inbounds %class.anon, ptr %16, i32 0, i32 0
  store ptr %30, ptr %95, align 8, !tbaa !41
  call void @"_ZNSt8functionIFvPKN8libspirv8Bytecode11AccessChainEjEEC2IZN13MeshConverter15traveseVaryingsEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  invoke void @_ZN8libspirv8Bytecode12traverseTypeEjSt8functionIFvPKNS0_11AccessChainEjEENS0_12TraverseModeE(ptr noundef nonnull align 8 dereferenceable(20) %90, i32 noundef %94, ptr noundef %15, i8 noundef zeroext 0)
          to label %96 unwind label %99

96:                                               ; preds = %82
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %97

97:                                               ; preds = %96
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKjN13MeshConverter7VaryingEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br label %79

99:                                               ; preds = %82
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %17, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %18, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %163

103:                                              ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %104 = getelementptr inbounds %class.MeshConverter, ptr %30, i32 0, i32 2
  %105 = load ptr, ptr %104, align 8, !tbaa !9
  store ptr %105, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  %106 = load ptr, ptr %19, align 8, !tbaa !5
  %107 = call { ptr, i32 } @_ZNK8libspirv8Bytecode5beginEv(ptr noundef nonnull align 8 dereferenceable(20) %106)
  store { ptr, i32 } %107, ptr %21, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %21, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  %108 = load ptr, ptr %19, align 8, !tbaa !5
  %109 = call { ptr, i32 } @_ZNK8libspirv8Bytecode3endEv(ptr noundef nonnull align 8 dereferenceable(20) %108)
  store { ptr, i32 } %109, ptr %23, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %23, i64 12, i1 false)
  br label %110

110:                                              ; preds = %161, %103
  %111 = call noundef zeroext i1 @_ZN8libspirvneERKNS_8Bytecode8IteratorES3_(ptr noundef nonnull align 8 dereferenceable(12) %20, ptr noundef nonnull align 8 dereferenceable(12) %22)
  br i1 %111, label %113, label %112

112:                                              ; preds = %110
  store i32 7, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %162

113:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %114 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode8IteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %20)
  store ptr %114, ptr %25, align 8, !tbaa !5
  %115 = load ptr, ptr %25, align 8, !tbaa !5
  %116 = call noundef i32 @_ZNK8libspirv8Bytecode6OpCode2opEv(ptr noundef nonnull align 4 dereferenceable(4) %115)
  %117 = icmp eq i32 %116, 71
  br i1 %117, label %118, label %160

118:                                              ; preds = %113
  %119 = load ptr, ptr %25, align 8, !tbaa !5
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %119, i16 noundef zeroext 2)
  %121 = load i32, ptr %120, align 4, !tbaa !32
  %122 = icmp eq i32 %121, 30
  br i1 %122, label %123, label %160

123:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %124 = getelementptr inbounds %class.MeshConverter, ptr %30, i32 0, i32 29
  store ptr %124, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %125 = load ptr, ptr %26, align 8, !tbaa !5
  %126 = call ptr @_ZNSt13unordered_mapIjN13MeshConverter7VaryingESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %125) #6
  %127 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %27, i32 0, i32 0
  %128 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %127, i32 0, i32 0
  store ptr %126, ptr %128, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %129 = load ptr, ptr %26, align 8, !tbaa !5
  %130 = call ptr @_ZNSt13unordered_mapIjN13MeshConverter7VaryingESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %129) #6
  %131 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %28, i32 0, i32 0
  %132 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %131, i32 0, i32 0
  store ptr %130, ptr %132, align 8
  br label %133

133:                                              ; preds = %156, %123
  %134 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjN13MeshConverter7VaryingEELb0EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28) #6
  br i1 %134, label %136, label %135

135:                                              ; preds = %133
  store i32 9, ptr %24, align 4
  br label %158

136:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %137 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjN13MeshConverter7VaryingEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  store ptr %137, ptr %29, align 8, !tbaa !5
  %138 = load ptr, ptr %29, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.std::pair", ptr %138, i32 0, i32 0
  %140 = load i32, ptr %139, align 4, !tbaa !43
  %141 = load ptr, ptr %25, align 8, !tbaa !5
  %142 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %141, i16 noundef zeroext 1)
  %143 = load i32, ptr %142, align 4, !tbaa !32
  %144 = icmp eq i32 %140, %143
  br i1 %144, label %145, label %152

145:                                              ; preds = %136
  %146 = load ptr, ptr %25, align 8, !tbaa !5
  %147 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %146, i16 noundef zeroext 3)
  %148 = load i32, ptr %147, align 4, !tbaa !32
  %149 = load ptr, ptr %29, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.std::pair", ptr %149, i32 0, i32 1
  %151 = getelementptr inbounds %"struct.MeshConverter::Varying", ptr %150, i32 0, i32 3
  store i32 %148, ptr %151, align 4, !tbaa !44
  store i32 9, ptr %24, align 4
  br label %153

152:                                              ; preds = %136
  store i32 0, ptr %24, align 4
  br label %153

153:                                              ; preds = %152, %145
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  %154 = load i32, ptr %24, align 4
  switch i32 %154, label %158 [
    i32 0, label %155
  ]

155:                                              ; preds = %153
  br label %156

156:                                              ; preds = %155
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKjN13MeshConverter7VaryingEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  br label %133

158:                                              ; preds = %153, %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %159

159:                                              ; preds = %158
  br label %160

160:                                              ; preds = %159, %118, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %161

161:                                              ; preds = %160
  call void @_ZN8libspirv8Bytecode8IteratorppEv(ptr noundef nonnull align 8 dereferenceable(12) %20)
  br label %110

162:                                              ; preds = %112
  ret void

163:                                              ; preds = %99
  %164 = load ptr, ptr %17, align 8
  %165 = load i32, ptr %18, align 4
  %166 = insertvalue { ptr, i32 } poison, ptr %164, 0
  %167 = insertvalue { ptr, i32 } %166, i32 %165, 1
  resume { ptr, i32 } %167
}

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

declare { ptr, i32 } @_ZNK8libspirv8Bytecode5beginEv(ptr noundef nonnull align 8 dereferenceable(20)) #2

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

declare { ptr, i32 } @_ZNK8libspirv8Bytecode3endEv(ptr noundef nonnull align 8 dereferenceable(20)) #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4), i16 noundef zeroext) #4 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13MeshConverter7VaryingC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt13unordered_mapIjN13MeshConverter7VaryingESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

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

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

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

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

declare void @_ZN8libspirv8Bytecode12traverseTypeEjSt8functionIFvPKNS0_11AccessChainEjEENS0_12TraverseModeE(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef, ptr noundef, i8 noundef zeroext) #2

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !6, i64 8}
!10 = !{!"_ZTS13MeshConverter", !11, i64 0, !6, i64 8, !13, i64 16, !13, i64 64, !7, i64 112, !16, i64 124, !16, i64 128, !16, i64 132, !16, i64 136, !16, i64 140, !16, i64 144, !16, i64 148, !16, i64 152, !16, i64 156, !16, i64 160, !16, i64 164, !16, i64 168, !16, i64 172, !16, i64 176, !16, i64 180, !16, i64 184, !16, i64 188, !16, i64 192, !16, i64 196, !16, i64 200, !21, i64 208, !21, i64 264, !26, i64 320, !28, i64 376, !16, i64 400, !16, i64 404, !16, i64 408, !16, i64 412, !16, i64 416, !16, i64 420, !12, i64 424}
!11 = !{!"_ZTSN13MeshConverter7OptionsE", !12, i64 0, !12, i64 1}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSN8libspirv15MutableBytecodeE", !14, i64 0, !17, i64 24}
!14 = !{!"_ZTSN8libspirv8BytecodeE", !6, i64 0, !15, i64 8, !16, i64 16}
!15 = !{!"long", !7, i64 0}
!16 = !{!"int", !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", !6, i64 0, !6, i64 8, !6, 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", !6, i64 0, !15, i64 8, !23, i64 16, !15, i64 24, !24, i64 32, !6, i64 48}
!23 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!24 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !25, i64 0, !15, 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", !6, i64 0, !15, i64 8, !23, i64 16, !15, i64 24, !24, i64 32, !6, 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", !6, i64 0, !6, i64 8, !6, i64 16}
!32 = !{!16, !16, i64 0}
!33 = !{!10, !16, i64 152}
!34 = !{!35, !16, i64 0}
!35 = !{!"_ZTSN13MeshConverter7VaryingE", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12}
!36 = !{i64 0, i64 4, !32, i64 4, i64 4, !32, i64 8, i64 4, !32, i64 12, i64 4, !32}
!37 = !{!10, !16, i64 200}
!38 = !{!39, !16, i64 8}
!39 = !{!"_ZTSSt4pairIKjN13MeshConverter7VaryingEE", !16, i64 0, !35, i64 4}
!40 = !{!39, !16, i64 4}
!41 = !{!42, !6, i64 0}
!42 = !{!"_ZTSZN13MeshConverter15traveseVaryingsEvE3$_0", !6, i64 0}
!43 = !{!39, !16, i64 0}
!44 = !{!39, !16, i64 16}


; 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::Bytecode::Iterator" = type <{ ptr, i32, [4 x i8] }>
%"struct.MeshConverter::Varying" = type { i32, i32, i32, i32 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.std::function" = 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 = type { ptr }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13MeshConverter15traveseVaryingsEv(ptr noundef nonnull align 8 dereferenceable(425) %0) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.libspirv::Bytecode::Iterator", align 8
  %3 = alloca %"struct.libspirv::Bytecode::Iterator", align 8
  %4 = alloca i32, align 4
  %5 = alloca %"struct.MeshConverter::Varying", align 4
  %6 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %7 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %8 = alloca %"class.std::function", align 8
  %9 = alloca %class.anon, align 8
  %10 = alloca %"struct.libspirv::Bytecode::Iterator", align 8
  %11 = alloca %"struct.libspirv::Bytecode::Iterator", align 8
  %12 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %13 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %14 = getelementptr inbounds i8, ptr %0, i64 8
  %15 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #6
  %16 = tail call { ptr, i32 } @_ZNK8libspirv8Bytecode5beginEv(ptr noundef nonnull align 8 dereferenceable(20) %15)
  %.fca.0.extract29 = extractvalue { ptr, i32 } %16, 0
  %.fca.1.extract30 = extractvalue { ptr, i32 } %16, 1
  store ptr %.fca.0.extract29, ptr %2, align 8
  %.sroa.232.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  store i32 %.fca.1.extract30, ptr %.sroa.232.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  %17 = tail call { ptr, i32 } @_ZNK8libspirv8Bytecode3endEv(ptr noundef nonnull align 8 dereferenceable(20) %15)
  %.fca.0.extract25 = extractvalue { ptr, i32 } %17, 0
  %.fca.1.extract26 = extractvalue { ptr, i32 } %17, 1
  store ptr %.fca.0.extract25, ptr %3, align 8
  %.sroa.228.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  store i32 %.fca.1.extract26, ptr %.sroa.228.0..sroa_idx, align 8
  %18 = call noundef zeroext i1 @_ZN8libspirvneERKNS_8Bytecode8IteratorES3_(ptr noundef nonnull align 8 dereferenceable(12) %2, ptr noundef nonnull align 8 dereferenceable(12) %3)
  br i1 %18, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %19 = getelementptr inbounds i8, ptr %0, i64 152
  %20 = getelementptr inbounds i8, ptr %0, i64 320
  br label %26

._crit_edge:                                      ; preds = %42, %1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  %21 = getelementptr inbounds i8, ptr %0, i64 320
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %22 = call ptr @_ZNSt13unordered_mapIjN13MeshConverter7VaryingESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %21) #6
  store ptr %22, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %23 = call ptr @_ZNSt13unordered_mapIjN13MeshConverter7VaryingESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %21) #6
  store ptr %23, ptr %7, align 8
  %24 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjN13MeshConverter7VaryingEELb0EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %24, label %.lr.ph38, label %._crit_edge39

.lr.ph38:                                         ; preds = %._crit_edge
  %25 = getelementptr inbounds i8, ptr %0, i64 200
  br label %48

26:                                               ; preds = %.lr.ph, %42
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode8IteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %2)
  %28 = call noundef i32 @_ZNK8libspirv8Bytecode6OpCode2opEv(ptr noundef nonnull align 4 dereferenceable(4) %27)
  %cond1 = icmp eq i32 %28, 59
  br i1 %cond1, label %29, label %42

29:                                               ; preds = %26
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %27, i16 noundef zeroext 3)
  %31 = load i32, ptr %30, align 4, !tbaa !31
  %32 = icmp eq i32 %31, 3
  br i1 %32, label %33, label %42

33:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %27, i16 noundef zeroext 2)
  %35 = load i32, ptr %34, align 4, !tbaa !31
  store i32 %35, ptr %4, align 4, !tbaa !31
  %36 = load i32, ptr %19, align 8, !tbaa !32
  %.not36 = icmp eq i32 %35, %36
  br i1 %.not36, label %41, label %37

37:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @_ZN13MeshConverter7VaryingC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %5) #6
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %27, i16 noundef zeroext 1)
  %39 = load i32, ptr %38, align 4, !tbaa !31
  store i32 %39, ptr %5, align 4, !tbaa !33
  %40 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt13unordered_mapIjN13MeshConverter7VaryingESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56) %20, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %40, ptr noundef nonnull align 4 dereferenceable(16) %5, i64 16, i1 false), !tbaa.struct !35
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %41

41:                                               ; preds = %37, %33
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  br label %42

42:                                               ; preds = %26, %29, %41
  call void @_ZN8libspirv8Bytecode8IteratorppEv(ptr noundef nonnull align 8 dereferenceable(12) %2)
  %43 = call noundef zeroext i1 @_ZN8libspirvneERKNS_8Bytecode8IteratorES3_(ptr noundef nonnull align 8 dereferenceable(12) %2, ptr noundef nonnull align 8 dereferenceable(12) %3)
  br i1 %43, label %26, label %._crit_edge

._crit_edge39:                                    ; preds = %55, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  %44 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  %45 = call { ptr, i32 } @_ZNK8libspirv8Bytecode5beginEv(ptr noundef nonnull align 8 dereferenceable(20) %44)
  %.fca.0.extract9 = extractvalue { ptr, i32 } %45, 0
  %.fca.1.extract10 = extractvalue { ptr, i32 } %45, 1
  store ptr %.fca.0.extract9, ptr %10, align 8
  %.sroa.212.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  store i32 %.fca.1.extract10, ptr %.sroa.212.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  %46 = call { ptr, i32 } @_ZNK8libspirv8Bytecode3endEv(ptr noundef nonnull align 8 dereferenceable(20) %44)
  %.fca.0.extract = extractvalue { ptr, i32 } %46, 0
  %.fca.1.extract = extractvalue { ptr, i32 } %46, 1
  store ptr %.fca.0.extract, ptr %11, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  %47 = call noundef zeroext i1 @_ZN8libspirvneERKNS_8Bytecode8IteratorES3_(ptr noundef nonnull align 8 dereferenceable(12) %10, ptr noundef nonnull align 8 dereferenceable(12) %11)
  br i1 %47, label %.lr.ph43, label %._crit_edge44

48:                                               ; preds = %.lr.ph38, %55
  %49 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjN13MeshConverter7VaryingEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %50 = load i32, ptr %25, align 8, !tbaa !36
  %51 = getelementptr inbounds i8, ptr %49, i64 4
  %52 = getelementptr inbounds i8, ptr %49, i64 8
  store i32 %50, ptr %52, align 4, !tbaa !37
  %53 = load ptr, ptr %14, align 8, !tbaa !5
  %54 = load i32, ptr %51, align 4, !tbaa !39
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  store ptr %0, ptr %9, align 8, !tbaa !40
  call void @"_ZNSt8functionIFvPKN8libspirv8Bytecode11AccessChainEjEEC2IZN13MeshConverter15traveseVaryingsEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  invoke void @_ZN8libspirv8Bytecode12traverseTypeEjSt8functionIFvPKNS0_11AccessChainEjEENS0_12TraverseModeE(ptr noundef nonnull align 8 dereferenceable(20) %53, i32 noundef %54, ptr noundef nonnull %8, i8 noundef zeroext 0)
          to label %55 unwind label %58

55:                                               ; preds = %48
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKjN13MeshConverter7VaryingEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %57 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjN13MeshConverter7VaryingEELb0EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %57, label %48, label %._crit_edge39

58:                                               ; preds = %48
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  resume { ptr, i32 } %59

._crit_edge44:                                    ; preds = %81, %._crit_edge39
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  ret void

.lr.ph43:                                         ; preds = %._crit_edge39, %81
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode8IteratordeEv(ptr noundef nonnull align 8 dereferenceable(12) %10)
  %61 = call noundef i32 @_ZNK8libspirv8Bytecode6OpCode2opEv(ptr noundef nonnull align 4 dereferenceable(4) %60)
  %62 = icmp eq i32 %61, 71
  br i1 %62, label %63, label %81

63:                                               ; preds = %.lr.ph43
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %60, i16 noundef zeroext 2)
  %65 = load i32, ptr %64, align 4, !tbaa !31
  %66 = icmp eq i32 %65, 30
  br i1 %66, label %67, label %81

67:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %68 = call ptr @_ZNSt13unordered_mapIjN13MeshConverter7VaryingESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %21) #6
  store ptr %68, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  %69 = call ptr @_ZNSt13unordered_mapIjN13MeshConverter7VaryingESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %21) #6
  store ptr %69, ptr %13, align 8
  %70 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjN13MeshConverter7VaryingEELb0EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br i1 %70, label %.lr.ph41, label %.loopexit

.lr.ph41:                                         ; preds = %67, %.critedge
  %71 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjN13MeshConverter7VaryingEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  %72 = load i32, ptr %71, align 4, !tbaa !42
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %60, i16 noundef zeroext 1)
  %74 = load i32, ptr %73, align 4, !tbaa !31
  %.not = icmp eq i32 %72, %74
  br i1 %.not, label %75, label %.critedge

75:                                               ; preds = %.lr.ph41
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4) %60, i16 noundef zeroext 3)
  %77 = load i32, ptr %76, align 4, !tbaa !31
  %78 = getelementptr inbounds i8, ptr %71, i64 16
  store i32 %77, ptr %78, align 4, !tbaa !43
  br label %.loopexit

.critedge:                                        ; preds = %.lr.ph41
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKjN13MeshConverter7VaryingEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  %80 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjN13MeshConverter7VaryingEELb0EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br i1 %80, label %.lr.ph41, label %.loopexit

.loopexit:                                        ; preds = %.critedge, %67, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br label %81

81:                                               ; preds = %.loopexit, %63, %.lr.ph43
  call void @_ZN8libspirv8Bytecode8IteratorppEv(ptr noundef nonnull align 8 dereferenceable(12) %10)
  %82 = call noundef zeroext i1 @_ZN8libspirvneERKNS_8Bytecode8IteratorES3_(ptr noundef nonnull align 8 dereferenceable(12) %10, ptr noundef nonnull align 8 dereferenceable(12) %11)
  br i1 %82, label %.lr.ph43, label %._crit_edge44
}

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

declare { ptr, i32 } @_ZNK8libspirv8Bytecode5beginEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #2

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

declare { ptr, i32 } @_ZNK8libspirv8Bytecode3endEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8libspirv8Bytecode6OpCodeixEt(ptr noundef nonnull align 4 dereferenceable(4), i16 noundef zeroext) local_unnamed_addr #4 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13MeshConverter7VaryingC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt13unordered_mapIjN13MeshConverter7VaryingESt4hashIjESt8equal_toIjESaISt4pairIKjS1_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

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

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

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

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

declare void @_ZN8libspirv8Bytecode12traverseTypeEjSt8functionIFvPKNS0_11AccessChainEjEENS0_12TraverseModeE(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef, ptr noundef, i8 noundef zeroext) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKjN13MeshConverter7VaryingEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_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 #4 align 2

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


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