; LLVM IR from hbatagelo/abcg :: abcg/external/glslang/SPIRV/SPVRemapper.ll (ZN3spv10spirvbin_t11mapFnBodiesEv)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.anon.88 = type { i8 }
%"class.spv::InstructionParameters" = type <{ ptr, i32, [4 x i8], %"class.spv::OperandParameters", i8, [7 x i8] }>
%"class.spv::OperandParameters" = type { %"class.std::vector.93", %"class.std::vector.98", %"class.std::vector.103" }
%"class.std::vector.93" = type { %"struct.std::_Vector_base.94" }
%"struct.std::_Vector_base.94" = type { %"struct.std::_Vector_base<spv::OperandClass, std::allocator<spv::OperandClass>>::_Vector_impl" }
%"struct.std::_Vector_base<spv::OperandClass, std::allocator<spv::OperandClass>>::_Vector_impl" = type { %"struct.std::_Vector_base<spv::OperandClass, std::allocator<spv::OperandClass>>::_Vector_impl_data" }
%"struct.std::_Vector_base<spv::OperandClass, std::allocator<spv::OperandClass>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.98" = type { %"struct.std::_Vector_base.99" }
%"struct.std::_Vector_base.99" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.103" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::function.78" = 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.108 = type { ptr }
%"class.std::function.81" = type { %"class.std::_Function_base", ptr }
%"class.std::unordered_map.109" = type { %"class.std::_Hashtable.110" }
%"class.std::_Hashtable.110" = 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.anon.129 = type { ptr, ptr, ptr, ptr, ptr }
%class.anon.130 = type { ptr, ptr, ptr, ptr, ptr }
%"class.spv::spirvbin_t" = type <{ ptr, %"class.std::vector", %"class.std::vector.2", %"class.std::unordered_map", %"class.std::vector.12", %"class.std::unordered_map.17", %"class.std::unordered_map.37", %"class.std::set", %"class.std::unordered_map.37", %"class.std::unordered_map.54", %"class.std::vector", i32, i32, %"class.std::vector.68", i32, i32, i8, [7 x i8] }>
%"class.std::vector.2" = type { %"struct.std::_Vector_base.3" }
%"struct.std::_Vector_base.3" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_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 }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map.17" = type { %"class.std::_Hashtable.18" }
%"class.std::_Hashtable.18" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::unordered_map.37" = type { %"class.std::_Hashtable.38" }
%"class.std::_Hashtable.38" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.54" = type { %"class.std::_Hashtable.55" }
%"class.std::_Hashtable.55" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::vector.68" = type { %"struct.std::_Vector_base.69" }
%"struct.std::_Vector_base.69" = type { %"struct.std::_Vector_base<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZN3spvL9op_fn_nopE = external hidden constant %class.anon.88, align 1
@_ZN3spv15InstructionDescE = external global [0 x %"class.spv::InstructionParameters"], align 8

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3spv10spirvbin_t12asOpCodeHashEj(ptr noundef nonnull align 8 dereferenceable(473), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK3spv10spirvbin_t8asOpCodeEj(ptr noundef nonnull align 8 dereferenceable(473), i32 noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(473) ptr @_ZN3spv10spirvbin_t7processESt8functionIFbNS_2OpEjEES1_IFvRjEEjj(ptr noundef nonnull align 8 dereferenceable(473), ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3spv10spirvbin_t15isOldIdUnmappedEj(ptr noundef nonnull align 8 dereferenceable(473), i32 noundef) #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3spv10spirvbin_t11mapFnBodiesEv(ptr noundef nonnull align 8 dereferenceable(473) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::function.78", align 8
  %8 = alloca %class.anon.108, align 8
  %9 = alloca %"class.std::function.81", align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::unordered_map.109", align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.std::function.78", align 8
  %23 = alloca %class.anon.129, align 8
  %24 = alloca %"class.std::function.81", align 8
  %25 = alloca %class.anon.130, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %26 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #5
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %27 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %26, i32 0, i32 1
  %28 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #5
  %29 = trunc i64 %28 to i32
  %30 = udiv i32 %29, 16
  %31 = zext i32 %30 to i64
  invoke void @_ZNSt6vectorIjSaIjEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %31)
          to label %32 unwind label %40

32:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %33 = getelementptr inbounds %class.anon.108, ptr %8, i32 0, i32 0
  store ptr %4, ptr %33, align 8, !tbaa !5
  call void @"_ZNSt8functionIFbN3spv2OpEjEEC2IZNS0_10spirvbin_t11mapFnBodiesEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @"_ZNSt8functionIFvRjEEC2IRKN3spv3$_5EvEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 1 dereferenceable(1) @_ZN3spvL9op_fn_nopE) #5
  %34 = invoke noundef nonnull align 8 dereferenceable(473) ptr @_ZN3spv10spirvbin_t7processESt8functionIFbNS_2OpEjEES1_IFvRjEEjj(ptr noundef nonnull align 8 dereferenceable(473) %26, ptr noundef %7, ptr noundef %9, i32 noundef 0, i32 noundef 0)
          to label %35 unwind label %44

35:                                               ; preds = %32
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %36 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %26, i32 0, i32 16
  %37 = load i8, ptr %36, align 8, !tbaa !11, !range !50, !noundef !51
  %38 = trunc i8 %37 to i1
  br i1 %38, label %39, label %48

39:                                               ; preds = %35
  store i32 1, ptr %10, align 4
  br label %237

40:                                               ; preds = %1
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %5, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %6, align 4
  br label %254

44:                                               ; preds = %32
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %5, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %6, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %254

48:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %216, %48
  %50 = load i32, ptr %11, align 4, !tbaa !9
  %51 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %52 = trunc i64 %51 to i32
  %53 = icmp ult i32 %50, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %49
  store i32 2, ptr %10, align 4
  br label %220

55:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %56 = load i32, ptr %11, align 4, !tbaa !9
  %57 = zext i32 %56 to i64
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %57) #5
  %59 = load i32, ptr %58, align 4, !tbaa !9
  store i32 %59, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %60 = load i32, ptr %12, align 4, !tbaa !9
  %61 = invoke noundef i32 @_ZNK3spv10spirvbin_t8asOpCodeEj(ptr noundef nonnull align 8 dereferenceable(473) %26, i32 noundef %60)
          to label %62 unwind label %71

62:                                               ; preds = %55
  store i32 %61, ptr %13, align 4, !tbaa !52
  %63 = load i32, ptr %13, align 4, !tbaa !52
  %64 = icmp eq i32 %63, 54
  br i1 %64, label %65, label %75

65:                                               ; preds = %62
  %66 = load i32, ptr %12, align 4, !tbaa !9
  %67 = add i32 %66, 2
  %68 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3spv10spirvbin_t4asIdEj(ptr noundef nonnull align 8 dereferenceable(473) %26, i32 noundef %67)
          to label %69 unwind label %71

69:                                               ; preds = %65
  %70 = load i32, ptr %68, align 4, !tbaa !9
  store i32 %70, ptr %3, align 4, !tbaa !9
  br label %75

71:                                               ; preds = %82, %65, %55
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %5, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %6, align 4
  br label %219

75:                                               ; preds = %69, %62
  %76 = load i32, ptr %13, align 4, !tbaa !52
  %77 = icmp eq i32 %76, 56
  br i1 %77, label %78, label %79

78:                                               ; preds = %75
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %78, %75
  %80 = load i32, ptr %3, align 4, !tbaa !9
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %212

82:                                               ; preds = %79
  %83 = load i32, ptr %13, align 4, !tbaa !52
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds [0 x %"class.spv::InstructionParameters"], ptr @_ZN3spv15InstructionDescE, i64 0, i64 %84
  %86 = invoke noundef zeroext i1 @_ZNK3spv21InstructionParameters9hasResultEv(ptr noundef nonnull align 8 dereferenceable(105) %85)
          to label %87 unwind label %71

87:                                               ; preds = %82
  br i1 %86, label %88, label %211

88:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %89 = load i32, ptr %12, align 4, !tbaa !9
  %90 = load i32, ptr %13, align 4, !tbaa !52
  %91 = zext i32 %90 to i64
  %92 = getelementptr inbounds [0 x %"class.spv::InstructionParameters"], ptr @_ZN3spv15InstructionDescE, i64 0, i64 %91
  %93 = invoke noundef zeroext i1 @_ZNK3spv21InstructionParameters7hasTypeEv(ptr noundef nonnull align 8 dereferenceable(105) %92)
          to label %94 unwind label %112

94:                                               ; preds = %88
  %95 = zext i1 %93 to i64
  %96 = select i1 %93, i32 2, i32 1
  %97 = add i32 %89, %96
  store i32 %97, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %98 = load i32, ptr %14, align 4, !tbaa !9
  %99 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3spv10spirvbin_t4asIdEj(ptr noundef nonnull align 8 dereferenceable(473) %26, i32 noundef %98)
          to label %100 unwind label %116

100:                                              ; preds = %94
  %101 = load i32, ptr %99, align 4, !tbaa !9
  store i32 %101, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %102 = load i32, ptr %3, align 4, !tbaa !9
  %103 = mul i32 %102, 17
  store i32 %103, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %104 = load i32, ptr %11, align 4, !tbaa !9
  %105 = sub i32 %104, 1
  store i32 %105, ptr %17, align 4, !tbaa !9
  br label %106

106:                                              ; preds = %143, %100
  %107 = load i32, ptr %17, align 4, !tbaa !9
  %108 = load i32, ptr %11, align 4, !tbaa !9
  %109 = sub i32 %108, 2
  %110 = icmp uge i32 %107, %109
  br i1 %110, label %120, label %111

111:                                              ; preds = %106
  store i32 5, ptr %10, align 4
  br label %146

112:                                              ; preds = %88
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %5, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %6, align 4
  br label %210

116:                                              ; preds = %94
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %5, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %6, align 4
  br label %209

120:                                              ; preds = %106
  %121 = load i32, ptr %17, align 4, !tbaa !9
  %122 = zext i32 %121 to i64
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %122) #5
  %124 = load i32, ptr %123, align 4, !tbaa !9
  %125 = invoke noundef i32 @_ZNK3spv10spirvbin_t8asOpCodeEj(ptr noundef nonnull align 8 dereferenceable(473) %26, i32 noundef %124)
          to label %126 unwind label %129

126:                                              ; preds = %120
  %127 = icmp eq i32 %125, 54
  br i1 %127, label %128, label %133

128:                                              ; preds = %126
  store i32 5, ptr %10, align 4
  br label %146

129:                                              ; preds = %133, %120
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %5, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %208

133:                                              ; preds = %126
  %134 = load i32, ptr %16, align 4, !tbaa !9
  %135 = mul i32 %134, 30103
  %136 = load i32, ptr %17, align 4, !tbaa !9
  %137 = zext i32 %136 to i64
  %138 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %137) #5
  %139 = load i32, ptr %138, align 4, !tbaa !9
  %140 = invoke noundef i32 @_ZN3spv10spirvbin_t12asOpCodeHashEj(ptr noundef nonnull align 8 dereferenceable(473) %26, i32 noundef %139)
          to label %141 unwind label %129

141:                                              ; preds = %133
  %142 = add i32 %135, %140
  store i32 %142, ptr %16, align 4, !tbaa !9
  br label %143

143:                                              ; preds = %141
  %144 = load i32, ptr %17, align 4, !tbaa !9
  %145 = add i32 %144, -1
  store i32 %145, ptr %17, align 4, !tbaa !9
  br label %106, !llvm.loop !54

146:                                              ; preds = %128, %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %147

147:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %148 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %148, ptr %18, align 4, !tbaa !9
  br label %149

149:                                              ; preds = %178, %147
  %150 = load i32, ptr %18, align 4, !tbaa !9
  %151 = load i32, ptr %11, align 4, !tbaa !9
  %152 = add i32 %151, 2
  %153 = icmp ule i32 %150, %152
  br i1 %153, label %155, label %154

154:                                              ; preds = %149
  store i32 8, ptr %10, align 4
  br label %181

155:                                              ; preds = %149
  %156 = load i32, ptr %18, align 4, !tbaa !9
  %157 = zext i32 %156 to i64
  %158 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %157) #5
  %159 = load i32, ptr %158, align 4, !tbaa !9
  %160 = invoke noundef i32 @_ZNK3spv10spirvbin_t8asOpCodeEj(ptr noundef nonnull align 8 dereferenceable(473) %26, i32 noundef %159)
          to label %161 unwind label %164

161:                                              ; preds = %155
  %162 = icmp eq i32 %160, 56
  br i1 %162, label %163, label %168

163:                                              ; preds = %161
  store i32 8, ptr %10, align 4
  br label %181

164:                                              ; preds = %168, %155
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %5, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %208

168:                                              ; preds = %161
  %169 = load i32, ptr %16, align 4, !tbaa !9
  %170 = mul i32 %169, 30103
  %171 = load i32, ptr %18, align 4, !tbaa !9
  %172 = zext i32 %171 to i64
  %173 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %172) #5
  %174 = load i32, ptr %173, align 4, !tbaa !9
  %175 = invoke noundef i32 @_ZN3spv10spirvbin_t12asOpCodeHashEj(ptr noundef nonnull align 8 dereferenceable(473) %26, i32 noundef %174)
          to label %176 unwind label %164

176:                                              ; preds = %168
  %177 = add i32 %170, %175
  store i32 %177, ptr %16, align 4, !tbaa !9
  br label %178

178:                                              ; preds = %176
  %179 = load i32, ptr %18, align 4, !tbaa !9
  %180 = add i32 %179, 1
  store i32 %180, ptr %18, align 4, !tbaa !9
  br label %149, !llvm.loop !56

181:                                              ; preds = %163, %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %182

182:                                              ; preds = %181
  %183 = load i32, ptr %15, align 4, !tbaa !9
  %184 = invoke noundef zeroext i1 @_ZNK3spv10spirvbin_t15isOldIdUnmappedEj(ptr noundef nonnull align 8 dereferenceable(473) %26, i32 noundef %183)
          to label %185 unwind label %199

185:                                              ; preds = %182
  br i1 %184, label %186, label %204

186:                                              ; preds = %185
  %187 = load i32, ptr %15, align 4, !tbaa !9
  %188 = load i32, ptr %16, align 4, !tbaa !9
  %189 = urem i32 %188, 19071
  %190 = add i32 %189, 6203
  %191 = invoke noundef i32 @_ZN3spv10spirvbin_t12nextUnusedIdEj(ptr noundef nonnull align 8 dereferenceable(473) %26, i32 noundef %190)
          to label %192 unwind label %199

192:                                              ; preds = %186
  %193 = invoke noundef i32 @_ZN3spv10spirvbin_t7localIdEjj(ptr noundef nonnull align 8 dereferenceable(473) %26, i32 noundef %187, i32 noundef %191)
          to label %194 unwind label %199

194:                                              ; preds = %192
  %195 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %26, i32 0, i32 16
  %196 = load i8, ptr %195, align 8, !tbaa !11, !range !50, !noundef !51
  %197 = trunc i8 %196 to i1
  br i1 %197, label %198, label %203

198:                                              ; preds = %194
  store i32 1, ptr %10, align 4
  br label %205

199:                                              ; preds = %192, %186, %182
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %5, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %6, align 4
  br label %208

203:                                              ; preds = %194
  br label %204

204:                                              ; preds = %203, %185
  store i32 0, ptr %10, align 4
  br label %205

205:                                              ; preds = %204, %198
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  %206 = load i32, ptr %10, align 4
  switch i32 %206, label %213 [
    i32 0, label %207
  ]

207:                                              ; preds = %205
  br label %211

208:                                              ; preds = %199, %164, %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %209

209:                                              ; preds = %208, %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %210

210:                                              ; preds = %209, %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %219

211:                                              ; preds = %207, %87
  br label %212

212:                                              ; preds = %211, %79
  store i32 0, ptr %10, align 4
  br label %213

213:                                              ; preds = %212, %205
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  %214 = load i32, ptr %10, align 4
  switch i32 %214, label %220 [
    i32 0, label %215
  ]

215:                                              ; preds = %213
  br label %216

216:                                              ; preds = %215
  %217 = load i32, ptr %11, align 4, !tbaa !9
  %218 = add i32 %217, 1
  store i32 %218, ptr %11, align 4, !tbaa !9
  br label %49, !llvm.loop !57

219:                                              ; preds = %210, %71
  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 %11) #5
  br label %254

220:                                              ; preds = %213, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  %221 = load i32, ptr %10, align 4
  switch i32 %221, label %237 [
    i32 2, label %222
  ]

222:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !52
  call void @llvm.lifetime.start.p0(i64 56, ptr %20) #5
  call void @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !9
  store i32 0, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr %23) #5
  %223 = getelementptr inbounds %class.anon.129, ptr %23, i32 0, i32 0
  store ptr %21, ptr %223, align 8, !tbaa !5
  %224 = getelementptr inbounds %class.anon.129, ptr %23, i32 0, i32 1
  store ptr %20, ptr %224, align 8, !tbaa !5
  %225 = getelementptr inbounds %class.anon.129, ptr %23, i32 0, i32 2
  store ptr %3, ptr %225, align 8, !tbaa !5
  %226 = getelementptr inbounds %class.anon.129, ptr %23, i32 0, i32 3
  store ptr %26, ptr %226, align 8, !tbaa !58
  %227 = getelementptr inbounds %class.anon.129, ptr %23, i32 0, i32 4
  store ptr %19, ptr %227, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFbN3spv2OpEjEEC2IZNS0_10spirvbin_t11mapFnBodiesEvE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(40) %23)
          to label %228 unwind label %240

228:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 40, ptr %25) #5
  %229 = getelementptr inbounds %class.anon.130, ptr %25, i32 0, i32 0
  store ptr %19, ptr %229, align 8, !tbaa !5
  %230 = getelementptr inbounds %class.anon.130, ptr %25, i32 0, i32 1
  store ptr %21, ptr %230, align 8, !tbaa !5
  %231 = getelementptr inbounds %class.anon.130, ptr %25, i32 0, i32 2
  store ptr %20, ptr %231, align 8, !tbaa !5
  %232 = getelementptr inbounds %class.anon.130, ptr %25, i32 0, i32 3
  store ptr %3, ptr %232, align 8, !tbaa !5
  %233 = getelementptr inbounds %class.anon.130, ptr %25, i32 0, i32 4
  store ptr %26, ptr %233, align 8, !tbaa !60
  invoke void @"_ZNSt8functionIFvRjEEC2IZN3spv10spirvbin_t11mapFnBodiesEvE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(40) %25)
          to label %234 unwind label %244

234:                                              ; preds = %228
  %235 = invoke noundef nonnull align 8 dereferenceable(473) ptr @_ZN3spv10spirvbin_t7processESt8functionIFbNS_2OpEjEES1_IFvRjEEjj(ptr noundef nonnull align 8 dereferenceable(473) %26, ptr noundef %22, ptr noundef %24, i32 noundef 0, i32 noundef 0)
          to label %236 unwind label %248

236:                                              ; preds = %234
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %25) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %20) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  store i32 0, ptr %10, align 4
  br label %237

237:                                              ; preds = %236, %220, %39
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  %238 = load i32, ptr %10, align 4
  switch i32 %238, label %260 [
    i32 0, label %239
    i32 1, label %239
  ]

239:                                              ; preds = %237, %237
  ret void

240:                                              ; preds = %222
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %5, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %6, align 4
  br label %253

244:                                              ; preds = %228
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %5, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %6, align 4
  br label %252

248:                                              ; preds = %234
  %249 = landingpad { ptr, i32 }
          cleanup
  %250 = extractvalue { ptr, i32 } %249, 0
  store ptr %250, ptr %5, align 8
  %251 = extractvalue { ptr, i32 } %249, 1
  store i32 %251, ptr %6, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #5
  br label %252

252:                                              ; preds = %248, %244
  call void @llvm.lifetime.end.p0(i64 40, ptr %25) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  br label %253

253:                                              ; preds = %252, %240
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %20) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %254

254:                                              ; preds = %253, %219, %44, %40
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %255

255:                                              ; preds = %254
  %256 = load ptr, ptr %5, align 8
  %257 = load i32, ptr %6, align 4
  %258 = insertvalue { ptr, i32 } poison, ptr %256, 0
  %259 = insertvalue { ptr, i32 } %258, i32 %257, 1
  resume { ptr, i32 } %259

260:                                              ; preds = %237
  unreachable
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFbN3spv2OpEjEEC2IZNS0_10spirvbin_t11mapFnBodiesEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 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) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFbN3spv2OpEjEEC2IZNS0_10spirvbin_t11mapFnBodiesEvE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvRjEEC2IZN3spv10spirvbin_t11mapFnBodiesEvE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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, !49, i64 472}
!12 = !{!"_ZTSN3spv10spirvbin_tE", !13, i64 8, !17, i64 32, !21, i64 56, !27, i64 112, !31, i64 136, !33, i64 192, !35, i64 248, !33, i64 296, !43, i64 352, !13, i64 408, !10, i64 432, !10, i64 436, !45, i64 440, !10, i64 464, !10, i64 468, !49, i64 472}
!13 = !{!"_ZTSSt6vectorIjSaIjEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_jEEE", !22, i64 0}
!22 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_jESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !23, i64 8, !24, i64 16, !23, i64 24, !25, i64 32, !6, i64 48}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!25 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !26, i64 0, !23, i64 8}
!26 = !{!"float", !7, i64 0}
!27 = !{!"_ZTSSt6vectorImSaImEE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseImSaImEE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!"_ZTSSt13unordered_mapIjSt4pairIjjESt4hashIjESt8equal_toIjESaIS0_IKjS1_EEE", !32, i64 0}
!32 = !{!"_ZTSSt10_HashtableIjSt4pairIKjS0_IjjEESaIS3_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !23, i64 8, !24, i64 16, !23, i64 24, !25, i64 32, !6, i64 48}
!33 = !{!"_ZTSSt13unordered_mapIjiSt4hashIjESt8equal_toIjESaISt4pairIKjiEEE", !34, i64 0}
!34 = !{!"_ZTSSt10_HashtableIjSt4pairIKjiESaIS2_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !23, i64 8, !24, i64 16, !23, i64 24, !25, i64 32, !6, i64 48}
!35 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !36, i64 0}
!36 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !37, i64 0}
!37 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !38, i64 0, !40, i64 8}
!38 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !39, i64 0}
!39 = !{!"_ZTSSt4lessIiE"}
!40 = !{!"_ZTSSt15_Rb_tree_header", !41, i64 0, !23, i64 32}
!41 = !{!"_ZTSSt18_Rb_tree_node_base", !42, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!42 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!43 = !{!"_ZTSSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE", !44, i64 0}
!44 = !{!"_ZTSSt10_HashtableIjSt4pairIKjjESaIS2_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !23, i64 8, !24, i64 16, !23, i64 24, !25, i64 32, !6, i64 48}
!45 = !{!"_ZTSSt6vectorISt4pairIjjESaIS1_EE", !46, i64 0}
!46 = !{!"_ZTSSt12_Vector_baseISt4pairIjjESaIS1_EE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseISt4pairIjjESaIS1_EE12_Vector_implE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseISt4pairIjjESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!49 = !{!"bool", !7, i64 0}
!50 = !{i8 0, i8 2}
!51 = !{}
!52 = !{!53, !53, i64 0}
!53 = !{!"_ZTSN3spv2OpE", !7, i64 0}
!54 = distinct !{!54, !55}
!55 = !{!"llvm.loop.mustprogress"}
!56 = distinct !{!56, !55}
!57 = distinct !{!57, !55}
!58 = !{!59, !6, i64 24}
!59 = !{!"_ZTSZN3spv10spirvbin_t11mapFnBodiesEvE3$_1", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!60 = !{!61, !6, i64 32}
!61 = !{!"_ZTSZN3spv10spirvbin_t11mapFnBodiesEvE3$_2", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.anon.88 = type { i8 }
%"class.spv::InstructionParameters" = type <{ ptr, i32, [4 x i8], %"class.spv::OperandParameters", i8, [7 x i8] }>
%"class.spv::OperandParameters" = type { %"class.std::vector.93", %"class.std::vector.98", %"class.std::vector.103" }
%"class.std::vector.93" = type { %"struct.std::_Vector_base.94" }
%"struct.std::_Vector_base.94" = type { %"struct.std::_Vector_base<spv::OperandClass, std::allocator<spv::OperandClass>>::_Vector_impl" }
%"struct.std::_Vector_base<spv::OperandClass, std::allocator<spv::OperandClass>>::_Vector_impl" = type { %"struct.std::_Vector_base<spv::OperandClass, std::allocator<spv::OperandClass>>::_Vector_impl_data" }
%"struct.std::_Vector_base<spv::OperandClass, std::allocator<spv::OperandClass>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.98" = type { %"struct.std::_Vector_base.99" }
%"struct.std::_Vector_base.99" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.103" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::function.78" = 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.108 = type { ptr }
%"class.std::function.81" = type { %"class.std::_Function_base", ptr }
%"class.std::unordered_map.109" = type { %"class.std::_Hashtable.110" }
%"class.std::_Hashtable.110" = 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.anon.129 = type { ptr, ptr, ptr, ptr, ptr }
%class.anon.130 = type { ptr, ptr, ptr, ptr, ptr }

@_ZN3spvL9op_fn_nopE = external hidden constant %class.anon.88, align 1
@_ZN3spv15InstructionDescE = external global [0 x %"class.spv::InstructionParameters"], align 8

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3spv10spirvbin_t12asOpCodeHashEj(ptr noundef nonnull align 8 dereferenceable(473), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK3spv10spirvbin_t8asOpCodeEj(ptr noundef nonnull align 8 dereferenceable(473), i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(473) ptr @_ZN3spv10spirvbin_t7processESt8functionIFbNS_2OpEjEES1_IFvRjEEjj(ptr noundef nonnull align 8 dereferenceable(473), ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3spv10spirvbin_t15isOldIdUnmappedEj(ptr noundef nonnull align 8 dereferenceable(473), i32 noundef) local_unnamed_addr #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3spv10spirvbin_t11mapFnBodiesEv(ptr noundef nonnull align 8 dereferenceable(473) %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::function.78", align 8
  %5 = alloca %class.anon.108, align 8
  %6 = alloca %"class.std::function.81", align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::unordered_map.109", align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::function.78", align 8
  %11 = alloca %class.anon.129, align 8
  %12 = alloca %"class.std::function.81", align 8
  %13 = alloca %class.anon.130, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %14 = getelementptr inbounds i8, ptr %0, i64 8
  %15 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  %16 = lshr i64 %15, 4
  %17 = and i64 %16, 268435455
  invoke void @_ZNSt6vectorIjSaIjEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %17)
          to label %18 unwind label %26

18:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  store ptr %3, ptr %5, align 8, !tbaa !9
  call void @"_ZNSt8functionIFbN3spv2OpEjEEC2IZNS0_10spirvbin_t11mapFnBodiesEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @"_ZNSt8functionIFvRjEEC2IRKN3spv3$_5EvEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 1 dereferenceable(1) @_ZN3spvL9op_fn_nopE) #5
  %19 = invoke noundef nonnull align 8 dereferenceable(473) ptr @_ZN3spv10spirvbin_t7processESt8functionIFbNS_2OpEjEES1_IFvRjEEjj(ptr noundef nonnull align 8 dereferenceable(473) %0, ptr noundef nonnull %4, ptr noundef nonnull %6, i32 noundef 0, i32 noundef 0)
          to label %20 unwind label %28

20:                                               ; preds = %18
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  %21 = getelementptr inbounds i8, ptr %0, i64 472
  %22 = load i8, ptr %21, align 8, !tbaa !11, !range !50, !noundef !51
  %23 = trunc nuw i8 %22 to i1
  br i1 %23, label %.critedge58, label %.preheader

.preheader:                                       ; preds = %20
  %24 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %25 = and i64 %24, 4294967295
  %.not5278.not = icmp eq i64 %25, 0
  br i1 %.not5278.not, label %.critedge59, label %.lr.ph81

26:                                               ; preds = %1
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %122

28:                                               ; preds = %18
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %122

.lr.ph81:                                         ; preds = %.preheader, %.critedge
  %30 = phi i32 [ %99, %.critedge ], [ 0, %.preheader ]
  %.pr = phi i32 [ %.pr85, %.critedge ], [ 0, %.preheader ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %.critedge ], [ 0, %.preheader ]
  %indvars82 = trunc i64 %indvars.iv to i32
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #5
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = invoke noundef i32 @_ZNK3spv10spirvbin_t8asOpCodeEj(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %32)
          to label %34 unwind label %39

34:                                               ; preds = %.lr.ph81
  switch i32 %33, label %thread-pre-split [
    i32 54, label %35
    i32 56, label %.thread
  ]

35:                                               ; preds = %34
  %36 = add i32 %32, 2
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3spv10spirvbin_t4asIdEj(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %36)
  %38 = load i32, ptr %37, align 4, !tbaa !5
  store i32 %38, ptr %2, align 4, !tbaa !5
  br label %thread-pre-split

39:                                               ; preds = %.lr.ph81
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %122

.thread:                                          ; preds = %34
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %.critedge

thread-pre-split:                                 ; preds = %34, %35
  %41 = phi i32 [ %38, %35 ], [ %30, %34 ]
  %.pr83 = phi i32 [ %38, %35 ], [ %.pr, %34 ]
  %.not = icmp eq i32 %.pr83, 0
  br i1 %.not, label %.critedge, label %42

42:                                               ; preds = %thread-pre-split
  %43 = zext i32 %33 to i64
  %44 = getelementptr inbounds [0 x %"class.spv::InstructionParameters"], ptr @_ZN3spv15InstructionDescE, i64 0, i64 %43
  %45 = call noundef zeroext i1 @_ZNK3spv21InstructionParameters9hasResultEv(ptr noundef nonnull align 8 dereferenceable(105) %44)
  br i1 %45, label %46, label %.critedge

46:                                               ; preds = %42
  %47 = call noundef zeroext i1 @_ZNK3spv21InstructionParameters7hasTypeEv(ptr noundef nonnull align 8 dereferenceable(105) %44)
  %48 = select i1 %47, i32 2, i32 1
  %49 = add i32 %48, %32
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3spv10spirvbin_t4asIdEj(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %49)
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = mul i32 %41, 17
  %53 = add i32 %indvars82, -2
  %.03563 = add i32 %indvars82, -1
  %.not4864 = icmp ult i32 %.03563, %53
  br i1 %.not4864, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %46, %66
  %.03566 = phi i32 [ %.035, %66 ], [ %.03563, %46 ]
  %.03665 = phi i32 [ %68, %66 ], [ %52, %46 ]
  %54 = zext i32 %.03566 to i64
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %54) #5
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = invoke noundef i32 @_ZNK3spv10spirvbin_t8asOpCodeEj(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %56)
          to label %58 unwind label %60

58:                                               ; preds = %.lr.ph
  %59 = icmp eq i32 %57, 54
  br i1 %59, label %._crit_edge, label %62

60:                                               ; preds = %62, %.lr.ph
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %122

62:                                               ; preds = %58
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %54) #5
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = invoke noundef i32 @_ZN3spv10spirvbin_t12asOpCodeHashEj(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %64)
          to label %66 unwind label %60

66:                                               ; preds = %62
  %67 = mul i32 %.03665, 30103
  %68 = add i32 %65, %67
  %.035 = add i32 %.03566, -1
  %.not48 = icmp ult i32 %.035, %53
  br i1 %.not48, label %._crit_edge, label %.lr.ph, !llvm.loop !52

._crit_edge:                                      ; preds = %66, %58, %46
  %.036.lcssa = phi i32 [ %52, %46 ], [ %.03665, %58 ], [ %68, %66 ]
  %69 = add i32 %indvars82, 2
  %.not4969 = icmp ugt i64 %indvars.iv, 4294967293
  br i1 %.not4969, label %._crit_edge74, label %.lr.ph73

.lr.ph73:                                         ; preds = %._crit_edge, %82
  %.071 = phi i32 [ %85, %82 ], [ %indvars82, %._crit_edge ]
  %.170 = phi i32 [ %84, %82 ], [ %.036.lcssa, %._crit_edge ]
  %70 = zext i32 %.071 to i64
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %70) #5
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = invoke noundef i32 @_ZNK3spv10spirvbin_t8asOpCodeEj(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %72)
          to label %74 unwind label %76

74:                                               ; preds = %.lr.ph73
  %75 = icmp eq i32 %73, 56
  br i1 %75, label %._crit_edge74, label %78

76:                                               ; preds = %78, %.lr.ph73
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %122

78:                                               ; preds = %74
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %70) #5
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = invoke noundef i32 @_ZN3spv10spirvbin_t12asOpCodeHashEj(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %80)
          to label %82 unwind label %76

82:                                               ; preds = %78
  %83 = mul i32 %.170, 30103
  %84 = add i32 %81, %83
  %85 = add i32 %.071, 1
  %.not49 = icmp ugt i32 %85, %69
  br i1 %.not49, label %._crit_edge74, label %.lr.ph73, !llvm.loop !54

._crit_edge74:                                    ; preds = %82, %74, %._crit_edge
  %.1.lcssa = phi i32 [ %.036.lcssa, %._crit_edge ], [ %.170, %74 ], [ %84, %82 ]
  %86 = invoke noundef zeroext i1 @_ZNK3spv10spirvbin_t15isOldIdUnmappedEj(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %51)
          to label %87 unwind label %97

87:                                               ; preds = %._crit_edge74
  br i1 %86, label %88, label %.critedge

88:                                               ; preds = %87
  %89 = urem i32 %.1.lcssa, 19071
  %90 = add nuw nsw i32 %89, 6203
  %91 = invoke noundef i32 @_ZN3spv10spirvbin_t12nextUnusedIdEj(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %90)
          to label %92 unwind label %97

92:                                               ; preds = %88
  %93 = invoke noundef i32 @_ZN3spv10spirvbin_t7localIdEjj(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %51, i32 noundef %91)
          to label %94 unwind label %97

94:                                               ; preds = %92
  %95 = load i8, ptr %21, align 8, !tbaa !11, !range !50, !noundef !51
  %96 = trunc nuw i8 %95 to i1
  br i1 %96, label %.critedge58, label %.critedge

97:                                               ; preds = %92, %88, %._crit_edge74
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %122

.critedge:                                        ; preds = %.thread, %87, %94, %42, %thread-pre-split
  %99 = phi i32 [ 0, %.thread ], [ %41, %87 ], [ %41, %94 ], [ %41, %42 ], [ %41, %thread-pre-split ]
  %.pr85 = phi i32 [ 0, %.thread ], [ %41, %87 ], [ %41, %94 ], [ %.pr83, %42 ], [ 0, %thread-pre-split ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %100 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %101 = and i64 %100, 4294967295
  %.not52 = icmp ult i64 %indvars.iv.next, %101
  br i1 %.not52, label %.lr.ph81, label %.critedge59, !llvm.loop !55

.critedge59:                                      ; preds = %.critedge, %.preheader
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  store i32 0, ptr %7, align 4, !tbaa !56
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #5
  call void @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  store i32 0, ptr %9, align 4, !tbaa !5
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #5
  store ptr %9, ptr %11, align 8, !tbaa !9
  %102 = getelementptr inbounds i8, ptr %11, i64 8
  store ptr %8, ptr %102, align 8, !tbaa !9
  %103 = getelementptr inbounds i8, ptr %11, i64 16
  store ptr %2, ptr %103, align 8, !tbaa !9
  %104 = getelementptr inbounds i8, ptr %11, i64 24
  store ptr %0, ptr %104, align 8, !tbaa !58
  %105 = getelementptr inbounds i8, ptr %11, i64 32
  store ptr %7, ptr %105, align 8, !tbaa !9
  invoke void @"_ZNSt8functionIFbN3spv2OpEjEEC2IZNS0_10spirvbin_t11mapFnBodiesEvE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(40) %11)
          to label %106 unwind label %114

106:                                              ; preds = %.critedge59
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %13) #5
  store ptr %7, ptr %13, align 8, !tbaa !9
  %107 = getelementptr inbounds i8, ptr %13, i64 8
  store ptr %9, ptr %107, align 8, !tbaa !9
  %108 = getelementptr inbounds i8, ptr %13, i64 16
  store ptr %8, ptr %108, align 8, !tbaa !9
  %109 = getelementptr inbounds i8, ptr %13, i64 24
  store ptr %2, ptr %109, align 8, !tbaa !9
  %110 = getelementptr inbounds i8, ptr %13, i64 32
  store ptr %0, ptr %110, align 8, !tbaa !60
  invoke void @"_ZNSt8functionIFvRjEEC2IZN3spv10spirvbin_t11mapFnBodiesEvE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(40) %13)
          to label %111 unwind label %116

111:                                              ; preds = %106
  %112 = invoke noundef nonnull align 8 dereferenceable(473) ptr @_ZN3spv10spirvbin_t7processESt8functionIFbNS_2OpEjEES1_IFvRjEEjj(ptr noundef nonnull align 8 dereferenceable(473) %0, ptr noundef nonnull %10, ptr noundef nonnull %12, i32 noundef 0, i32 noundef 0)
          to label %113 unwind label %118

113:                                              ; preds = %111
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  br label %.critedge58

.critedge58:                                      ; preds = %94, %20, %113
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  ret void

114:                                              ; preds = %.critedge59
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %121

116:                                              ; preds = %106
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %120

118:                                              ; preds = %111
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  br label %120

120:                                              ; preds = %118, %116
  %.pn53 = phi { ptr, i32 } [ %119, %118 ], [ %117, %116 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  br label %121

121:                                              ; preds = %120, %114
  %.pn53.pn = phi { ptr, i32 } [ %.pn53, %120 ], [ %115, %114 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @_ZNSt13unordered_mapIiiSt4hashIiESt8equal_toIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  br label %122

122:                                              ; preds = %39, %97, %76, %60, %121, %28, %26
  %.pn53.pn.pn = phi { ptr, i32 } [ %.pn53.pn, %121 ], [ %29, %28 ], [ %27, %26 ], [ %40, %39 ], [ %98, %97 ], [ %77, %76 ], [ %61, %60 ]
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  resume { ptr, i32 } %.pn53.pn.pn
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFbN3spv2OpEjEEC2IZNS0_10spirvbin_t11mapFnBodiesEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 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 #2 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFbN3spv2OpEjEEC2IZNS0_10spirvbin_t11mapFnBodiesEvE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvRjEEC2IZN3spv10spirvbin_t11mapFnBodiesEvE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !49, i64 472}
!12 = !{!"_ZTSN3spv10spirvbin_tE", !13, i64 8, !17, i64 32, !21, i64 56, !27, i64 112, !31, i64 136, !33, i64 192, !35, i64 248, !33, i64 296, !43, i64 352, !13, i64 408, !6, i64 432, !6, i64 436, !45, i64 440, !6, i64 464, !6, i64 468, !49, i64 472}
!13 = !{!"_ZTSSt6vectorIjSaIjEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!17 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!21 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_jEEE", !22, i64 0}
!22 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_jESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE", !10, i64 0, !23, i64 8, !24, i64 16, !23, i64 24, !25, i64 32, !10, i64 48}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !10, i64 0}
!25 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !26, i64 0, !23, i64 8}
!26 = !{!"float", !7, i64 0}
!27 = !{!"_ZTSSt6vectorImSaImEE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseImSaImEE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!31 = !{!"_ZTSSt13unordered_mapIjSt4pairIjjESt4hashIjESt8equal_toIjESaIS0_IKjS1_EEE", !32, i64 0}
!32 = !{!"_ZTSSt10_HashtableIjSt4pairIKjS0_IjjEESaIS3_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb0ELb1EEEE", !10, i64 0, !23, i64 8, !24, i64 16, !23, i64 24, !25, i64 32, !10, i64 48}
!33 = !{!"_ZTSSt13unordered_mapIjiSt4hashIjESt8equal_toIjESaISt4pairIKjiEEE", !34, i64 0}
!34 = !{!"_ZTSSt10_HashtableIjSt4pairIKjiESaIS2_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !10, i64 0, !23, i64 8, !24, i64 16, !23, i64 24, !25, i64 32, !10, i64 48}
!35 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !36, i64 0}
!36 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !37, i64 0}
!37 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !38, i64 0, !40, i64 8}
!38 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !39, i64 0}
!39 = !{!"_ZTSSt4lessIiE"}
!40 = !{!"_ZTSSt15_Rb_tree_header", !41, i64 0, !23, i64 32}
!41 = !{!"_ZTSSt18_Rb_tree_node_base", !42, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!42 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!43 = !{!"_ZTSSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE", !44, i64 0}
!44 = !{!"_ZTSSt10_HashtableIjSt4pairIKjjESaIS2_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !10, i64 0, !23, i64 8, !24, i64 16, !23, i64 24, !25, i64 32, !10, i64 48}
!45 = !{!"_ZTSSt6vectorISt4pairIjjESaIS1_EE", !46, i64 0}
!46 = !{!"_ZTSSt12_Vector_baseISt4pairIjjESaIS1_EE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseISt4pairIjjESaIS1_EE12_Vector_implE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseISt4pairIjjESaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!49 = !{!"bool", !7, i64 0}
!50 = !{i8 0, i8 2}
!51 = !{}
!52 = distinct !{!52, !53}
!53 = !{!"llvm.loop.mustprogress"}
!54 = distinct !{!54, !53}
!55 = distinct !{!55, !53}
!56 = !{!57, !57, i64 0}
!57 = !{!"_ZTSN3spv2OpE", !7, i64 0}
!58 = !{!59, !10, i64 24}
!59 = !{!"_ZTSZN3spv10spirvbin_t11mapFnBodiesEvE3$_1", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!60 = !{!61, !10, i64 32}
!61 = !{!"_ZTSZN3spv10spirvbin_t11mapFnBodiesEvE3$_2", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}


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