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

; 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.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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.73" = type { i8 }
%"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 }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"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" = 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::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 }

@.str.13 = external hidden unnamed_addr constant [38 x i8], align 1
@_ZN3spv15InstructionDescE = external global [0 x %"class.spv::InstructionParameters"], align 8
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [92 x i8], align 1
@__PRETTY_FUNCTION__._ZN3spv10spirvbin_t18processInstructionEjSt8functionIFbNS_2OpEjEES1_IFvRjEE = external hidden unnamed_addr constant [72 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [31 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK3spv10spirvbin_t8asOpCodeEj(ptr noundef nonnull align 8 dereferenceable(473), i32 noundef) #2 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) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3spv10spirvbin_t5errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(473), ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN3spv10spirvbin_t18processInstructionEjSt8functionIFbNS_2OpEjEES1_IFvRjEE(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::allocator.73", align 1
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca [4 x i32], align 16
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %31 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %32 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %32, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %33 = load i32, ptr %10, align 4, !tbaa !9
  %34 = call noundef i32 @_ZNK3spv10spirvbin_t11asWordCountEj(ptr noundef nonnull align 8 dereferenceable(473) %31, i32 noundef %33)
  store i32 %34, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %35 = load i32, ptr %7, align 4, !tbaa !9
  %36 = add i32 %35, 1
  store i32 %36, ptr %7, align 4, !tbaa !9
  %37 = load i32, ptr %11, align 4, !tbaa !9
  %38 = add i32 %35, %37
  store i32 %38, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %39 = load i32, ptr %10, align 4, !tbaa !9
  %40 = call noundef i32 @_ZNK3spv10spirvbin_t8asOpCodeEj(ptr noundef nonnull align 8 dereferenceable(473) %31, i32 noundef %39)
  store i32 %40, ptr %13, align 4, !tbaa !11
  %41 = load i32, ptr %12, align 4, !tbaa !9
  %42 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %31, i32 0, i32 1
  %43 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #4
  %44 = trunc i64 %43 to i32
  %45 = icmp sgt i32 %41, %44
  br i1 %45, label %46, label %58

46:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef @.str.13, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %47 unwind label %49

47:                                               ; preds = %46
  invoke void @_ZNK3spv10spirvbin_t5errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(473) %31, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %48 unwind label %53

48:                                               ; preds = %47
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #4
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %18, align 4
  br label %248

49:                                               ; preds = %46
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %16, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %17, align 4
  br label %57

53:                                               ; preds = %47
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %16, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %17, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #4
  br label %57

57:                                               ; preds = %53, %49
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #4
  br label %250

58:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %59 = load i32, ptr %11, align 4, !tbaa !9
  %60 = sub i32 %59, 1
  store i32 %60, ptr %19, align 4, !tbaa !9
  %61 = load i32, ptr %13, align 4, !tbaa !11
  %62 = load i32, ptr %10, align 4, !tbaa !9
  %63 = call noundef zeroext i1 @_ZNKSt8functionIFbN3spv2OpEjEEclES1_j(ptr noundef nonnull align 8 dereferenceable(32) %2, i32 noundef %61, i32 noundef %62)
  br i1 %63, label %64, label %66

64:                                               ; preds = %58
  %65 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %65, ptr %5, align 4
  store i32 1, ptr %18, align 4
  br label %247

66:                                               ; preds = %58
  %67 = load i32, ptr %13, align 4, !tbaa !11
  %68 = zext i32 %67 to i64
  %69 = getelementptr inbounds [0 x %"class.spv::InstructionParameters"], ptr @_ZN3spv15InstructionDescE, i64 0, i64 %68
  %70 = call noundef zeroext i1 @_ZNK3spv21InstructionParameters7hasTypeEv(ptr noundef nonnull align 8 dereferenceable(105) %69)
  br i1 %70, label %71, label %77

71:                                               ; preds = %66
  %72 = load i32, ptr %7, align 4, !tbaa !9
  %73 = add i32 %72, 1
  store i32 %73, ptr %7, align 4, !tbaa !9
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3spv10spirvbin_t4asIdEj(ptr noundef nonnull align 8 dereferenceable(473) %31, i32 noundef %72)
  call void @_ZNKSt8functionIFvRjEEclES0_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 4 dereferenceable(4) %74)
  %75 = load i32, ptr %19, align 4, !tbaa !9
  %76 = add i32 %75, -1
  store i32 %76, ptr %19, align 4, !tbaa !9
  br label %77

77:                                               ; preds = %71, %66
  %78 = load i32, ptr %13, align 4, !tbaa !11
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds [0 x %"class.spv::InstructionParameters"], ptr @_ZN3spv15InstructionDescE, i64 0, i64 %79
  %81 = call noundef zeroext i1 @_ZNK3spv21InstructionParameters9hasResultEv(ptr noundef nonnull align 8 dereferenceable(105) %80)
  br i1 %81, label %82, label %88

82:                                               ; preds = %77
  %83 = load i32, ptr %7, align 4, !tbaa !9
  %84 = add i32 %83, 1
  store i32 %84, ptr %7, align 4, !tbaa !9
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3spv10spirvbin_t4asIdEj(ptr noundef nonnull align 8 dereferenceable(473) %31, i32 noundef %83)
  call void @_ZNKSt8functionIFvRjEEclES0_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 4 dereferenceable(4) %85)
  %86 = load i32, ptr %19, align 4, !tbaa !9
  %87 = add i32 %86, -1
  store i32 %87, ptr %19, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %82, %77
  %89 = load i32, ptr %13, align 4, !tbaa !11
  %90 = icmp eq i32 %89, 12
  br i1 %90, label %91, label %112

91:                                               ; preds = %88
  %92 = load i32, ptr %7, align 4, !tbaa !9
  %93 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3spv10spirvbin_t4asIdEj(ptr noundef nonnull align 8 dereferenceable(473) %31, i32 noundef %92)
  call void @_ZNKSt8functionIFvRjEEclES0_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 4 dereferenceable(4) %93)
  %94 = load i32, ptr %7, align 4, !tbaa !9
  %95 = add i32 %94, 2
  store i32 %95, ptr %7, align 4, !tbaa !9
  %96 = load i32, ptr %19, align 4, !tbaa !9
  %97 = sub i32 %96, 2
  store i32 %97, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %98

98:                                               ; preds = %107, %91
  %99 = load i32, ptr %20, align 4, !tbaa !9
  %100 = load i32, ptr %19, align 4, !tbaa !9
  %101 = icmp ult i32 %99, %100
  br i1 %101, label %103, label %102

102:                                              ; preds = %98
  store i32 2, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %110

103:                                              ; preds = %98
  %104 = load i32, ptr %7, align 4, !tbaa !9
  %105 = add i32 %104, 1
  store i32 %105, ptr %7, align 4, !tbaa !9
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3spv10spirvbin_t4asIdEj(ptr noundef nonnull align 8 dereferenceable(473) %31, i32 noundef %104)
  call void @_ZNKSt8functionIFvRjEEclES0_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 4 dereferenceable(4) %106)
  br label %107

107:                                              ; preds = %103
  %108 = load i32, ptr %20, align 4, !tbaa !9
  %109 = add i32 %108, 1
  store i32 %109, ptr %20, align 4, !tbaa !9
  br label %98, !llvm.loop !13

110:                                              ; preds = %102
  %111 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %111, ptr %5, align 4
  store i32 1, ptr %18, align 4
  br label %247

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

113:                                              ; preds = %237, %112
  %114 = load i32, ptr %19, align 4, !tbaa !9
  %115 = icmp ugt i32 %114, 0
  br i1 %115, label %117, label %116

116:                                              ; preds = %113
  store i32 5, ptr %18, align 4
  br label %242

117:                                              ; preds = %113
  %118 = load i32, ptr %13, align 4, !tbaa !11
  %119 = icmp eq i32 %118, 52
  br i1 %119, label %120, label %130

120:                                              ; preds = %117
  %121 = load i32, ptr %23, align 4, !tbaa !9
  %122 = icmp eq i32 %121, 0
  br i1 %122, label %123, label %129

123:                                              ; preds = %120
  %124 = load i32, ptr %7, align 4, !tbaa !9
  %125 = add i32 %124, 1
  store i32 %125, ptr %7, align 4, !tbaa !9
  %126 = call noundef i32 @_ZNK3spv10spirvbin_t8asOpCodeEj(ptr noundef nonnull align 8 dereferenceable(473) %31, i32 noundef %124)
  store i32 %126, ptr %13, align 4, !tbaa !11
  %127 = load i32, ptr %19, align 4, !tbaa !9
  %128 = add i32 %127, -1
  store i32 %128, ptr %19, align 4, !tbaa !9
  br label %129

129:                                              ; preds = %123, %120
  br label %130

130:                                              ; preds = %129, %117
  %131 = load i32, ptr %13, align 4, !tbaa !11
  %132 = zext i32 %131 to i64
  %133 = getelementptr inbounds [0 x %"class.spv::InstructionParameters"], ptr @_ZN3spv15InstructionDescE, i64 0, i64 %132
  %134 = getelementptr inbounds %"class.spv::InstructionParameters", ptr %133, i32 0, i32 3
  %135 = load i32, ptr %23, align 4, !tbaa !9
  %136 = call noundef i32 @_ZNK3spv17OperandParameters8getClassEi(ptr noundef nonnull align 8 dereferenceable(88) %134, i32 noundef %135)
  switch i32 %136, label %235 [
    i32 1, label %137
    i32 36, label %137
    i32 34, label %137
    i32 2, label %150
    i32 5, label %165
    i32 7, label %167
    i32 9, label %213
    i32 10, label %228
    i32 15, label %230
    i32 8, label %232
    i32 11, label %232
    i32 12, label %232
    i32 13, label %232
    i32 14, label %232
    i32 16, label %232
    i32 17, label %232
    i32 18, label %232
    i32 19, label %232
    i32 20, label %232
    i32 21, label %232
    i32 22, label %232
    i32 23, label %232
    i32 24, label %232
    i32 25, label %232
    i32 26, label %232
    i32 27, label %232
    i32 28, label %232
    i32 29, label %232
    i32 30, label %232
    i32 31, label %232
    i32 32, label %232
    i32 33, label %232
    i32 35, label %232
    i32 37, label %232
    i32 38, label %232
    i32 39, label %232
    i32 40, label %232
  ]

137:                                              ; preds = %130, %130, %130
  %138 = load i32, ptr %7, align 4, !tbaa !9
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3spv10spirvbin_t4asIdEj(ptr noundef nonnull align 8 dereferenceable(473) %31, i32 noundef %138)
  %140 = load i32, ptr %139, align 4, !tbaa !9
  %141 = load i32, ptr %22, align 4, !tbaa !9
  %142 = zext i32 %141 to i64
  %143 = getelementptr inbounds [4 x i32], ptr %21, i64 0, i64 %142
  store i32 %140, ptr %143, align 4, !tbaa !9
  %144 = load i32, ptr %22, align 4, !tbaa !9
  %145 = add i32 %144, 1
  %146 = urem i32 %145, 4
  store i32 %146, ptr %22, align 4, !tbaa !9
  %147 = load i32, ptr %7, align 4, !tbaa !9
  %148 = add i32 %147, 1
  store i32 %148, ptr %7, align 4, !tbaa !9
  %149 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3spv10spirvbin_t4asIdEj(ptr noundef nonnull align 8 dereferenceable(473) %31, i32 noundef %147)
  call void @_ZNKSt8functionIFvRjEEclES0_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 4 dereferenceable(4) %149)
  br label %236

150:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %151

151:                                              ; preds = %160, %150
  %152 = load i32, ptr %24, align 4, !tbaa !9
  %153 = load i32, ptr %19, align 4, !tbaa !9
  %154 = icmp ult i32 %152, %153
  br i1 %154, label %156, label %155

155:                                              ; preds = %151
  store i32 9, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %163

156:                                              ; preds = %151
  %157 = load i32, ptr %7, align 4, !tbaa !9
  %158 = add i32 %157, 1
  store i32 %158, ptr %7, align 4, !tbaa !9
  %159 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3spv10spirvbin_t4asIdEj(ptr noundef nonnull align 8 dereferenceable(473) %31, i32 noundef %157)
  call void @_ZNKSt8functionIFvRjEEclES0_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 4 dereferenceable(4) %159)
  br label %160

160:                                              ; preds = %156
  %161 = load i32, ptr %24, align 4, !tbaa !9
  %162 = add i32 %161, 1
  store i32 %162, ptr %24, align 4, !tbaa !9
  br label %151, !llvm.loop !15

163:                                              ; preds = %155
  %164 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %164, ptr %5, align 4
  store i32 1, ptr %18, align 4
  br label %242

165:                                              ; preds = %130
  %166 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %166, ptr %5, align 4
  store i32 1, ptr %18, align 4
  br label %242

167:                                              ; preds = %130
  %168 = load i32, ptr %13, align 4, !tbaa !11
  %169 = icmp eq i32 %168, 251
  br i1 %169, label %170, label %210

170:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  %171 = load i32, ptr %22, align 4, !tbaa !9
  %172 = add i32 %171, 4
  %173 = sub i32 %172, 2
  %174 = urem i32 %173, 4
  store i32 %174, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  %175 = load i32, ptr %25, align 4, !tbaa !9
  %176 = zext i32 %175 to i64
  %177 = getelementptr inbounds [4 x i32], ptr %21, i64 0, i64 %176
  %178 = load i32, ptr %177, align 4, !tbaa !9
  %179 = call noundef i32 @_ZNK3spv10spirvbin_t17idTypeSizeInWordsEj(ptr noundef nonnull align 8 dereferenceable(473) %31, i32 noundef %178)
  store i32 %179, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  %180 = load i32, ptr %12, align 4, !tbaa !9
  %181 = load i32, ptr %7, align 4, !tbaa !9
  %182 = sub i32 %180, %181
  %183 = load i32, ptr %26, align 4, !tbaa !9
  %184 = add i32 1, %183
  %185 = udiv i32 %182, %184
  store i32 %185, ptr %27, align 4, !tbaa !9
  %186 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %31, i32 0, i32 16
  %187 = load i8, ptr %186, align 8, !tbaa !16, !range !55, !noundef !56
  %188 = trunc i8 %187 to i1
  br i1 %188, label %189, label %190

189:                                              ; preds = %170
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %18, align 4
  br label %207

190:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %191

191:                                              ; preds = %203, %190
  %192 = load i32, ptr %28, align 4, !tbaa !9
  %193 = load i32, ptr %27, align 4, !tbaa !9
  %194 = icmp ult i32 %192, %193
  br i1 %194, label %196, label %195

195:                                              ; preds = %191
  store i32 12, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  br label %206

196:                                              ; preds = %191
  %197 = load i32, ptr %26, align 4, !tbaa !9
  %198 = load i32, ptr %7, align 4, !tbaa !9
  %199 = add i32 %198, %197
  store i32 %199, ptr %7, align 4, !tbaa !9
  %200 = load i32, ptr %7, align 4, !tbaa !9
  %201 = add i32 %200, 1
  store i32 %201, ptr %7, align 4, !tbaa !9
  %202 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3spv10spirvbin_t4asIdEj(ptr noundef nonnull align 8 dereferenceable(473) %31, i32 noundef %200)
  call void @_ZNKSt8functionIFvRjEEclES0_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 4 dereferenceable(4) %202)
  br label %203

203:                                              ; preds = %196
  %204 = load i32, ptr %28, align 4, !tbaa !9
  %205 = add i32 %204, 1
  store i32 %205, ptr %28, align 4, !tbaa !9
  br label %191, !llvm.loop !57

206:                                              ; preds = %195
  store i32 0, ptr %18, align 4
  br label %207

207:                                              ; preds = %206, %189
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  %208 = load i32, ptr %18, align 4
  switch i32 %208, label %242 [
    i32 0, label %209
  ]

209:                                              ; preds = %207
  br label %211

210:                                              ; preds = %167
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.15, i32 noundef 638, ptr noundef @__PRETTY_FUNCTION__._ZN3spv10spirvbin_t18processInstructionEjSt8functionIFbNS_2OpEjEES1_IFvRjEE) #5
  unreachable

211:                                              ; preds = %209
  %212 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %212, ptr %5, align 4
  store i32 1, ptr %18, align 4
  br label %242

213:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %30) #4
  %214 = load i32, ptr %7, align 4, !tbaa !9
  call void @_ZNK3spv10spirvbin_t13literalStringB5cxx11Ej(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %30, ptr noundef nonnull align 8 dereferenceable(473) %31, i32 noundef %214)
  %215 = invoke noundef i32 @_ZNK3spv10spirvbin_t18literalStringWordsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(473) %31, ptr noundef nonnull align 8 dereferenceable(32) %30)
          to label %216 unwind label %224

216:                                              ; preds = %213
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #4
  store i32 %215, ptr %29, align 4, !tbaa !9
  %217 = load i32, ptr %29, align 4, !tbaa !9
  %218 = load i32, ptr %7, align 4, !tbaa !9
  %219 = add i32 %218, %217
  store i32 %219, ptr %7, align 4, !tbaa !9
  %220 = load i32, ptr %29, align 4, !tbaa !9
  %221 = sub nsw i32 %220, 1
  %222 = load i32, ptr %19, align 4, !tbaa !9
  %223 = sub i32 %222, %221
  store i32 %223, ptr %19, align 4, !tbaa !9
  store i32 8, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  br label %236

224:                                              ; preds = %213
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %16, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %17, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %250

228:                                              ; preds = %130
  %229 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %229, ptr %5, align 4
  store i32 1, ptr %18, align 4
  br label %242

230:                                              ; preds = %130
  %231 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %231, ptr %5, align 4
  store i32 1, ptr %18, align 4
  br label %242

232:                                              ; preds = %130, %130, %130, %130, %130, %130, %130, %130, %130, %130, %130, %130, %130, %130, %130, %130, %130, %130, %130, %130, %130, %130, %130, %130, %130, %130, %130, %130
  %233 = load i32, ptr %7, align 4, !tbaa !9
  %234 = add i32 %233, 1
  store i32 %234, ptr %7, align 4, !tbaa !9
  br label %236

235:                                              ; preds = %130
  call void @__assert_fail(ptr noundef @.str.16, ptr noundef @.str.15, i32 noundef 691, ptr noundef @__PRETTY_FUNCTION__._ZN3spv10spirvbin_t18processInstructionEjSt8functionIFbNS_2OpEjEES1_IFvRjEE) #5
  unreachable

236:                                              ; preds = %232, %216, %137
  br label %237

237:                                              ; preds = %236
  %238 = load i32, ptr %23, align 4, !tbaa !9
  %239 = add nsw i32 %238, 1
  store i32 %239, ptr %23, align 4, !tbaa !9
  %240 = load i32, ptr %19, align 4, !tbaa !9
  %241 = add i32 %240, -1
  store i32 %241, ptr %19, align 4, !tbaa !9
  br label %113, !llvm.loop !58

242:                                              ; preds = %230, %228, %211, %207, %165, %163, %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  %243 = load i32, ptr %18, align 4
  switch i32 %243, label %246 [
    i32 5, label %244
  ]

244:                                              ; preds = %242
  %245 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %245, ptr %5, align 4
  store i32 1, ptr %18, align 4
  br label %246

246:                                              ; preds = %244, %242
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  br label %247

247:                                              ; preds = %246, %110, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %248

248:                                              ; preds = %247, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  %249 = load i32, ptr %5, align 4
  ret i32 %249

250:                                              ; preds = %224, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %251

251:                                              ; preds = %250
  %252 = load ptr, ptr %16, align 8
  %253 = load i32, ptr %17, align 4
  %254 = insertvalue { ptr, i32 } poison, ptr %252, 0
  %255 = insertvalue { ptr, i32 } %254, i32 %253, 1
  resume { ptr, i32 } %255
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFvRjEEclES0_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN3spv2OpE", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !54, i64 472}
!17 = !{!"_ZTSN3spv10spirvbin_tE", !18, i64 8, !22, i64 32, !26, i64 56, !32, i64 112, !36, i64 136, !38, i64 192, !40, i64 248, !38, i64 296, !48, i64 352, !18, i64 408, !10, i64 432, !10, i64 436, !50, i64 440, !10, i64 464, !10, i64 468, !54, i64 472}
!18 = !{!"_ZTSSt6vectorIjSaIjEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_jEEE", !27, i64 0}
!27 = !{!"_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, !28, i64 8, !29, i64 16, !28, i64 24, !30, i64 32, !6, i64 48}
!28 = !{!"long", !7, i64 0}
!29 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!30 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !31, i64 0, !28, i64 8}
!31 = !{!"float", !7, i64 0}
!32 = !{!"_ZTSSt6vectorImSaImEE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseImSaImEE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!"_ZTSSt13unordered_mapIjSt4pairIjjESt4hashIjESt8equal_toIjESaIS0_IKjS1_EEE", !37, i64 0}
!37 = !{!"_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, !28, i64 8, !29, i64 16, !28, i64 24, !30, i64 32, !6, i64 48}
!38 = !{!"_ZTSSt13unordered_mapIjiSt4hashIjESt8equal_toIjESaISt4pairIKjiEEE", !39, i64 0}
!39 = !{!"_ZTSSt10_HashtableIjSt4pairIKjiESaIS2_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !28, i64 8, !29, i64 16, !28, i64 24, !30, i64 32, !6, i64 48}
!40 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !41, i64 0}
!41 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !42, i64 0}
!42 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !43, i64 0, !45, i64 8}
!43 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !44, i64 0}
!44 = !{!"_ZTSSt4lessIiE"}
!45 = !{!"_ZTSSt15_Rb_tree_header", !46, i64 0, !28, i64 32}
!46 = !{!"_ZTSSt18_Rb_tree_node_base", !47, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!47 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!48 = !{!"_ZTSSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE", !49, i64 0}
!49 = !{!"_ZTSSt10_HashtableIjSt4pairIKjjESaIS2_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !28, i64 8, !29, i64 16, !28, i64 24, !30, i64 32, !6, i64 48}
!50 = !{!"_ZTSSt6vectorISt4pairIjjESaIS1_EE", !51, i64 0}
!51 = !{!"_ZTSSt12_Vector_baseISt4pairIjjESaIS1_EE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseISt4pairIjjESaIS1_EE12_Vector_implE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseISt4pairIjjESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!54 = !{!"bool", !7, i64 0}
!55 = !{i8 0, i8 2}
!56 = !{}
!57 = distinct !{!57, !14}
!58 = distinct !{!58, !14}


; 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.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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.73" = type { i8 }

@.str.13 = external hidden unnamed_addr constant [38 x i8], align 1
@_ZN3spv15InstructionDescE = external global [0 x %"class.spv::InstructionParameters"], align 8
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [92 x i8], align 1
@__PRETTY_FUNCTION__._ZN3spv10spirvbin_t18processInstructionEjSt8functionIFbNS_2OpEjEES1_IFvRjEE = external hidden unnamed_addr constant [72 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [31 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK3spv10spirvbin_t8asOpCodeEj(ptr noundef nonnull align 8 dereferenceable(473), i32 noundef) local_unnamed_addr #2 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 #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3spv10spirvbin_t5errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(473), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3spv10spirvbin_t13literalStringB5cxx11Ej(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(473), i32 noundef) local_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 #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN3spv10spirvbin_t18processInstructionEjSt8functionIFbNS_2OpEjEES1_IFvRjEE(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator.73", align 1
  %7 = alloca [4 x i32], align 16
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = tail call noundef i32 @_ZNK3spv10spirvbin_t11asWordCountEj(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %1)
  %10 = add i32 %1, 1
  %11 = add i32 %9, %1
  %12 = tail call noundef i32 @_ZNK3spv10spirvbin_t8asOpCodeEj(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %1)
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  %14 = tail call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  %15 = trunc i64 %14 to i32
  %16 = icmp sgt i32 %11, %15
  br i1 %16, label %17, label %25

17:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str.13, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %18 unwind label %20

18:                                               ; preds = %17
  invoke void @_ZNK3spv10spirvbin_t5errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(473) %0, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %19 unwind label %22

19:                                               ; preds = %18
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  br label %.loopexit

20:                                               ; preds = %17
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %24

22:                                               ; preds = %18
  %23 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  br label %24

24:                                               ; preds = %22, %20
  %.pn = phi { ptr, i32 } [ %23, %22 ], [ %21, %20 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  resume { ptr, i32 } %.pn

25:                                               ; preds = %4
  %26 = tail call noundef zeroext i1 @_ZNKSt8functionIFbN3spv2OpEjEEclES1_j(ptr noundef nonnull align 8 dereferenceable(32) %2, i32 noundef %12, i32 noundef %1)
  br i1 %26, label %.loopexit, label %27

27:                                               ; preds = %25
  %28 = add i32 %9, -1
  %29 = zext i32 %12 to i64
  %30 = getelementptr inbounds [0 x %"class.spv::InstructionParameters"], ptr @_ZN3spv15InstructionDescE, i64 0, i64 %29
  %31 = tail call noundef zeroext i1 @_ZNK3spv21InstructionParameters7hasTypeEv(ptr noundef nonnull align 8 dereferenceable(105) %30)
  br i1 %31, label %32, label %36

32:                                               ; preds = %27
  %33 = add i32 %1, 2
  %34 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3spv10spirvbin_t4asIdEj(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %10)
  tail call void @_ZNKSt8functionIFvRjEEclES0_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 4 dereferenceable(4) %34)
  %35 = add i32 %9, -2
  br label %36

36:                                               ; preds = %32, %27
  %.087 = phi i32 [ %35, %32 ], [ %28, %27 ]
  %.074 = phi i32 [ %33, %32 ], [ %10, %27 ]
  %37 = tail call noundef zeroext i1 @_ZNK3spv21InstructionParameters9hasResultEv(ptr noundef nonnull align 8 dereferenceable(105) %30)
  br i1 %37, label %38, label %42

38:                                               ; preds = %36
  %39 = add i32 %.074, 1
  %40 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3spv10spirvbin_t4asIdEj(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %.074)
  tail call void @_ZNKSt8functionIFvRjEEclES0_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 4 dereferenceable(4) %40)
  %41 = add i32 %.087, -1
  br label %42

42:                                               ; preds = %38, %36
  %.188 = phi i32 [ %41, %38 ], [ %.087, %36 ]
  %.175 = phi i32 [ %39, %38 ], [ %.074, %36 ]
  %43 = icmp eq i32 %12, 12
  br i1 %43, label %44, label %51

44:                                               ; preds = %42
  %45 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3spv10spirvbin_t4asIdEj(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %.175)
  tail call void @_ZNKSt8functionIFvRjEEclES0_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 4 dereferenceable(4) %45)
  %46 = add i32 %.188, -2
  %.not132 = icmp eq i32 %46, 0
  br i1 %.not132, label %.loopexit, label %.lr.ph129.preheader

.lr.ph129.preheader:                              ; preds = %44
  %47 = add i32 %.175, 2
  br label %.lr.ph129

.lr.ph129:                                        ; preds = %.lr.ph129.preheader, %.lr.ph129
  %.276128 = phi i32 [ %48, %.lr.ph129 ], [ %47, %.lr.ph129.preheader ]
  %.086127 = phi i32 [ %50, %.lr.ph129 ], [ 0, %.lr.ph129.preheader ]
  %48 = add i32 %.276128, 1
  %49 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3spv10spirvbin_t4asIdEj(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %.276128)
  tail call void @_ZNKSt8functionIFvRjEEclES0_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 4 dereferenceable(4) %49)
  %50 = add nuw i32 %.086127, 1
  %exitcond147.not = icmp eq i32 %50, %46
  br i1 %exitcond147.not, label %.loopexit, label %.lr.ph129, !llvm.loop !5

51:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  %.not112 = icmp eq i32 %.188, 0
  br i1 %.not112, label %.loopexit99, label %.lr.ph

.lr.ph:                                           ; preds = %51, %102
  %.377117 = phi i32 [ %.7, %102 ], [ %.175, %51 ]
  %.079116 = phi i32 [ %.180, %102 ], [ %12, %51 ]
  %.083115 = phi i32 [ %103, %102 ], [ 0, %51 ]
  %.084114 = phi i32 [ %.185, %102 ], [ 0, %51 ]
  %.289113 = phi i32 [ %104, %102 ], [ %.188, %51 ]
  %52 = icmp eq i32 %.079116, 52
  %53 = icmp eq i32 %.083115, 0
  %or.cond = select i1 %52, i1 %53, i1 false
  br i1 %or.cond, label %54, label %58

54:                                               ; preds = %.lr.ph
  %55 = add i32 %.377117, 1
  %56 = call noundef i32 @_ZNK3spv10spirvbin_t8asOpCodeEj(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %.377117)
  %57 = add i32 %.289113, -1
  br label %58

58:                                               ; preds = %54, %.lr.ph
  %.390 = phi i32 [ %57, %54 ], [ %.289113, %.lr.ph ]
  %.180 = phi i32 [ %56, %54 ], [ %.079116, %.lr.ph ]
  %.478 = phi i32 [ %55, %54 ], [ %.377117, %.lr.ph ]
  %59 = zext i32 %.180 to i64
  %60 = getelementptr inbounds [0 x %"class.spv::InstructionParameters"], ptr @_ZN3spv15InstructionDescE, i64 0, i64 %59, i32 3
  %61 = call noundef i32 @_ZNK3spv17OperandParameters8getClassEi(ptr noundef nonnull align 8 dereferenceable(88) %60, i32 noundef %.083115)
  switch i32 %61, label %101 [
    i32 1, label %62
    i32 36, label %62
    i32 34, label %62
    i32 2, label %.preheader
    i32 5, label %.loopexit99
    i32 7, label %74
    i32 9, label %95
    i32 10, label %.loopexit99
    i32 15, label %.loopexit99
    i32 8, label %99
    i32 11, label %99
    i32 12, label %99
    i32 13, label %99
    i32 14, label %99
    i32 16, label %99
    i32 17, label %99
    i32 18, label %99
    i32 19, label %99
    i32 20, label %99
    i32 21, label %99
    i32 22, label %99
    i32 23, label %99
    i32 24, label %99
    i32 25, label %99
    i32 26, label %99
    i32 27, label %99
    i32 28, label %99
    i32 29, label %99
    i32 30, label %99
    i32 31, label %99
    i32 32, label %99
    i32 33, label %99
    i32 35, label %99
    i32 37, label %99
    i32 38, label %99
    i32 39, label %99
    i32 40, label %99
  ]

.preheader:                                       ; preds = %58
  %.not131 = icmp eq i32 %.390, 0
  br i1 %.not131, label %.loopexit99, label %.lr.ph126

62:                                               ; preds = %58, %58, %58
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3spv10spirvbin_t4asIdEj(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %.478)
  %64 = load i32, ptr %63, align 4, !tbaa !7
  %65 = zext i32 %.084114 to i64
  %66 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 %65
  store i32 %64, ptr %66, align 4, !tbaa !7
  %67 = add i32 %.084114, 1
  %68 = and i32 %67, 3
  %69 = add i32 %.478, 1
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3spv10spirvbin_t4asIdEj(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %.478)
  call void @_ZNKSt8functionIFvRjEEclES0_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 4 dereferenceable(4) %70)
  br label %102

.lr.ph126:                                        ; preds = %.preheader, %.lr.ph126
  %.5125 = phi i32 [ %71, %.lr.ph126 ], [ %.478, %.preheader ]
  %.082124 = phi i32 [ %73, %.lr.ph126 ], [ 0, %.preheader ]
  %71 = add i32 %.5125, 1
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3spv10spirvbin_t4asIdEj(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %.5125)
  call void @_ZNKSt8functionIFvRjEEclES0_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 4 dereferenceable(4) %72)
  %73 = add nuw i32 %.082124, 1
  %exitcond.not = icmp eq i32 %73, %.390
  br i1 %exitcond.not, label %.loopexit99, label %.lr.ph126, !llvm.loop !11

74:                                               ; preds = %58
  %75 = icmp eq i32 %.180, 251
  br i1 %75, label %76, label %94

76:                                               ; preds = %74
  %77 = and i32 %.084114, 3
  %78 = xor i32 %77, 2
  %79 = zext nneg i32 %78 to i64
  %80 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !7
  %82 = call noundef i32 @_ZNK3spv10spirvbin_t17idTypeSizeInWordsEj(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %81)
  %83 = sub i32 %11, %.478
  %84 = add i32 %82, 1
  %85 = udiv i32 %83, %84
  %86 = getelementptr inbounds i8, ptr %0, i64 472
  %87 = load i8, ptr %86, align 8, !tbaa !12, !range !52, !noundef !53
  %88 = trunc nuw i8 %87 to i1
  br i1 %88, label %.loopexit99, label %.preheader100

.preheader100:                                    ; preds = %76
  %.not130 = icmp ugt i32 %84, %83
  br i1 %.not130, label %.loopexit99, label %.lr.ph123

.lr.ph123:                                        ; preds = %.preheader100, %.lr.ph123
  %.073122 = phi i32 [ %92, %.lr.ph123 ], [ 0, %.preheader100 ]
  %.6121 = phi i32 [ %90, %.lr.ph123 ], [ %.478, %.preheader100 ]
  %89 = add i32 %.6121, %82
  %90 = add i32 %89, 1
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3spv10spirvbin_t4asIdEj(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %89)
  call void @_ZNKSt8functionIFvRjEEclES0_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 4 dereferenceable(4) %91)
  %92 = add nuw i32 %.073122, 1
  %93 = icmp ult i32 %92, %85
  br i1 %93, label %.lr.ph123, label %.loopexit99, !llvm.loop !54

94:                                               ; preds = %74
  call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.15, i32 noundef 638, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3spv10spirvbin_t18processInstructionEjSt8functionIFbNS_2OpEjEES1_IFvRjEE) #5
  unreachable

95:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #4
  call void @_ZNK3spv10spirvbin_t13literalStringB5cxx11Ej(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %.478)
  %96 = call noundef i32 @_ZNK3spv10spirvbin_t18literalStringWordsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(473) %0, ptr noundef nonnull align 8 dereferenceable(32) %8)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  %97 = add i32 %96, %.478
  %.neg98 = add i32 %.390, 1
  %98 = sub i32 %.neg98, %96
  br label %102

99:                                               ; preds = %58, %58, %58, %58, %58, %58, %58, %58, %58, %58, %58, %58, %58, %58, %58, %58, %58, %58, %58, %58, %58, %58, %58, %58, %58, %58, %58, %58
  %100 = add i32 %.478, 1
  br label %102

101:                                              ; preds = %58
  call void @__assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.15, i32 noundef 691, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3spv10spirvbin_t18processInstructionEjSt8functionIFbNS_2OpEjEES1_IFvRjEE) #5
  unreachable

102:                                              ; preds = %62, %95, %99
  %.491 = phi i32 [ %.390, %99 ], [ %98, %95 ], [ %.390, %62 ]
  %.185 = phi i32 [ %.084114, %99 ], [ %.084114, %95 ], [ %68, %62 ]
  %.7 = phi i32 [ %100, %99 ], [ %97, %95 ], [ %69, %62 ]
  %103 = add nuw nsw i32 %.083115, 1
  %104 = add i32 %.491, -1
  %.not = icmp eq i32 %104, 0
  br i1 %.not, label %.loopexit99, label %.lr.ph, !llvm.loop !55

.loopexit99:                                      ; preds = %102, %58, %58, %58, %.lr.ph123, %.lr.ph126, %51, %.preheader100, %.preheader, %76
  %spec.select97 = phi i32 [ -1, %76 ], [ %11, %.preheader ], [ %11, %.preheader100 ], [ %11, %51 ], [ %11, %.lr.ph126 ], [ %11, %.lr.ph123 ], [ %11, %58 ], [ %11, %58 ], [ %11, %58 ], [ %11, %102 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph129, %44, %.loopexit99, %25, %19
  %.4 = phi i32 [ -1, %19 ], [ %spec.select97, %.loopexit99 ], [ %11, %25 ], [ %11, %44 ], [ %11, %.lr.ph129 ]
  ret i32 %.4
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8functionIFbN3spv2OpEjEEclES1_j(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef) local_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 #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFvRjEEclES0_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(4)) 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 #1 align 2

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = distinct !{!11, !6}
!12 = !{!13, !51, i64 472}
!13 = !{!"_ZTSN3spv10spirvbin_tE", !14, i64 8, !19, i64 32, !23, i64 56, !29, i64 112, !33, i64 136, !35, i64 192, !37, i64 248, !35, i64 296, !45, i64 352, !14, i64 408, !8, i64 432, !8, i64 436, !47, i64 440, !8, i64 464, !8, i64 468, !51, i64 472}
!14 = !{!"_ZTSSt6vectorIjSaIjEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!18 = !{!"any pointer", !9, i64 0}
!19 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!23 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_jEEE", !24, i64 0}
!24 = !{!"_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", !18, i64 0, !25, i64 8, !26, i64 16, !25, i64 24, !27, i64 32, !18, i64 48}
!25 = !{!"long", !9, i64 0}
!26 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !18, i64 0}
!27 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !28, i64 0, !25, i64 8}
!28 = !{!"float", !9, i64 0}
!29 = !{!"_ZTSSt6vectorImSaImEE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseImSaImEE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!33 = !{!"_ZTSSt13unordered_mapIjSt4pairIjjESt4hashIjESt8equal_toIjESaIS0_IKjS1_EEE", !34, i64 0}
!34 = !{!"_ZTSSt10_HashtableIjSt4pairIKjS0_IjjEESaIS3_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb0ELb1EEEE", !18, i64 0, !25, i64 8, !26, i64 16, !25, i64 24, !27, i64 32, !18, i64 48}
!35 = !{!"_ZTSSt13unordered_mapIjiSt4hashIjESt8equal_toIjESaISt4pairIKjiEEE", !36, i64 0}
!36 = !{!"_ZTSSt10_HashtableIjSt4pairIKjiESaIS2_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !18, i64 0, !25, i64 8, !26, i64 16, !25, i64 24, !27, i64 32, !18, i64 48}
!37 = !{!"_ZTSSt3setIiSt4lessIiESaIiEE", !38, i64 0}
!38 = !{!"_ZTSSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE", !39, i64 0}
!39 = !{!"_ZTSNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE13_Rb_tree_implIS3_Lb1EEE", !40, i64 0, !42, i64 8}
!40 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !41, i64 0}
!41 = !{!"_ZTSSt4lessIiE"}
!42 = !{!"_ZTSSt15_Rb_tree_header", !43, i64 0, !25, i64 32}
!43 = !{!"_ZTSSt18_Rb_tree_node_base", !44, i64 0, !18, i64 8, !18, i64 16, !18, i64 24}
!44 = !{!"_ZTSSt14_Rb_tree_color", !9, i64 0}
!45 = !{!"_ZTSSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE", !46, i64 0}
!46 = !{!"_ZTSSt10_HashtableIjSt4pairIKjjESaIS2_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !18, i64 0, !25, i64 8, !26, i64 16, !25, i64 24, !27, i64 32, !18, i64 48}
!47 = !{!"_ZTSSt6vectorISt4pairIjjESaIS1_EE", !48, i64 0}
!48 = !{!"_ZTSSt12_Vector_baseISt4pairIjjESaIS1_EE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseISt4pairIjjESaIS1_EE12_Vector_implE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseISt4pairIjjESaIS1_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!51 = !{!"bool", !9, i64 0}
!52 = !{i8 0, i8 2}
!53 = !{}
!54 = distinct !{!54, !6}
!55 = distinct !{!55, !6}


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