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

; 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.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.22 = external hidden unnamed_addr constant [11 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 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 @_ZN3spv10spirvbin_t8applyMapEv(ptr noundef nonnull align 8 dereferenceable(473)) #2 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx119to_stringEj(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) #4

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3spv10spirvbin_t5remapEj(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator.73", align 1
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %11 = load ptr, ptr %3, align 8
  %12 = load i32, ptr %4, align 4, !tbaa !9
  %13 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %11, i32 0, i32 14
  store i32 %12, ptr %13, align 8, !tbaa !11
  call void @_ZN3spv12ParameterizeEv()
  call void @_ZNK3spv10spirvbin_t8validateEv(ptr noundef nonnull align 8 dereferenceable(473) %11)
  call void @_ZN3spv10spirvbin_t14buildLocalMapsEv(ptr noundef nonnull align 8 dereferenceable(473) %11)
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef @.str.22, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %14 unwind label %27

14:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #6
  %15 = invoke noundef i32 @_ZNK3spv10spirvbin_t5boundEv(ptr noundef nonnull align 8 dereferenceable(473) %11)
          to label %16 unwind label %31

16:                                               ; preds = %14
  call void @_ZNSt7__cxx119to_stringEj(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %10, i32 noundef %15) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %17 unwind label %35

17:                                               ; preds = %16
  %18 = load ptr, ptr %11, align 8, !tbaa !50
  %19 = getelementptr inbounds ptr, ptr %18, i64 2
  %20 = load ptr, ptr %19, align 8
  invoke void %20(ptr noundef nonnull align 8 dereferenceable(473) %11, i32 noundef 3, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %21 unwind label %39

21:                                               ; preds = %17
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  %22 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %11, i32 0, i32 14
  %23 = load i32, ptr %22, align 8, !tbaa !11
  %24 = and i32 %23, 1
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %26, label %46

26:                                               ; preds = %21
  call void @_ZN3spv10spirvbin_t10stripDebugEv(ptr noundef nonnull align 8 dereferenceable(473) %11)
  br label %46

27:                                               ; preds = %2
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %8, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %9, align 4
  br label %45

31:                                               ; preds = %14
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %8, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %9, align 4
  br label %44

35:                                               ; preds = %16
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %8, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %9, align 4
  br label %43

39:                                               ; preds = %17
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %8, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %43

43:                                               ; preds = %39, %35
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  br label %44

44:                                               ; preds = %43, %31
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  br label %45

45:                                               ; preds = %44, %27
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  br label %171

46:                                               ; preds = %26, %21
  %47 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %11, i32 0, i32 16
  %48 = load i8, ptr %47, align 8, !tbaa !52, !range !53, !noundef !54
  %49 = trunc i8 %48 to i1
  br i1 %49, label %50, label %51

50:                                               ; preds = %46
  br label %170

51:                                               ; preds = %46
  call void @_ZN3spv10spirvbin_t5stripEv(ptr noundef nonnull align 8 dereferenceable(473) %11)
  %52 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %11, i32 0, i32 16
  %53 = load i8, ptr %52, align 8, !tbaa !52, !range !53, !noundef !54
  %54 = trunc i8 %53 to i1
  br i1 %54, label %55, label %56

55:                                               ; preds = %51
  br label %170

56:                                               ; preds = %51
  %57 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %11, i32 0, i32 14
  %58 = load i32, ptr %57, align 8, !tbaa !11
  %59 = and i32 %58, 128
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %62

61:                                               ; preds = %56
  call void @_ZN3spv10spirvbin_t12optLoadStoreEv(ptr noundef nonnull align 8 dereferenceable(473) %11)
  br label %62

62:                                               ; preds = %61, %56
  %63 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %11, i32 0, i32 16
  %64 = load i8, ptr %63, align 8, !tbaa !52, !range !53, !noundef !54
  %65 = trunc i8 %64 to i1
  br i1 %65, label %66, label %67

66:                                               ; preds = %62
  br label %170

67:                                               ; preds = %62
  %68 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %11, i32 0, i32 14
  %69 = load i32, ptr %68, align 8, !tbaa !11
  %70 = and i32 %69, 256
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %73

72:                                               ; preds = %67
  call void @_ZN3spv10spirvbin_t17forwardLoadStoresEv(ptr noundef nonnull align 8 dereferenceable(473) %11)
  br label %73

73:                                               ; preds = %72, %67
  %74 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %11, i32 0, i32 16
  %75 = load i8, ptr %74, align 8, !tbaa !52, !range !53, !noundef !54
  %76 = trunc i8 %75 to i1
  br i1 %76, label %77, label %78

77:                                               ; preds = %73
  br label %170

78:                                               ; preds = %73
  %79 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %11, i32 0, i32 14
  %80 = load i32, ptr %79, align 8, !tbaa !11
  %81 = and i32 %80, 16
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %83, label %84

83:                                               ; preds = %78
  call void @_ZN3spv10spirvbin_t8dceFuncsEv(ptr noundef nonnull align 8 dereferenceable(473) %11)
  br label %84

84:                                               ; preds = %83, %78
  %85 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %11, i32 0, i32 16
  %86 = load i8, ptr %85, align 8, !tbaa !52, !range !53, !noundef !54
  %87 = trunc i8 %86 to i1
  br i1 %87, label %88, label %89

88:                                               ; preds = %84
  br label %170

89:                                               ; preds = %84
  %90 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %11, i32 0, i32 14
  %91 = load i32, ptr %90, align 8, !tbaa !11
  %92 = and i32 %91, 32
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %95

94:                                               ; preds = %89
  call void @_ZN3spv10spirvbin_t7dceVarsEv(ptr noundef nonnull align 8 dereferenceable(473) %11)
  br label %95

95:                                               ; preds = %94, %89
  %96 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %11, i32 0, i32 16
  %97 = load i8, ptr %96, align 8, !tbaa !52, !range !53, !noundef !54
  %98 = trunc i8 %97 to i1
  br i1 %98, label %99, label %100

99:                                               ; preds = %95
  br label %170

100:                                              ; preds = %95
  %101 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %11, i32 0, i32 14
  %102 = load i32, ptr %101, align 8, !tbaa !11
  %103 = and i32 %102, 64
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %106

105:                                              ; preds = %100
  call void @_ZN3spv10spirvbin_t8dceTypesEv(ptr noundef nonnull align 8 dereferenceable(473) %11)
  br label %106

106:                                              ; preds = %105, %100
  %107 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %11, i32 0, i32 16
  %108 = load i8, ptr %107, align 8, !tbaa !52, !range !53, !noundef !54
  %109 = trunc i8 %108 to i1
  br i1 %109, label %110, label %111

110:                                              ; preds = %106
  br label %170

111:                                              ; preds = %106
  call void @_ZN3spv10spirvbin_t5stripEv(ptr noundef nonnull align 8 dereferenceable(473) %11)
  %112 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %11, i32 0, i32 16
  %113 = load i8, ptr %112, align 8, !tbaa !52, !range !53, !noundef !54
  %114 = trunc i8 %113 to i1
  br i1 %114, label %115, label %116

115:                                              ; preds = %111
  br label %170

116:                                              ; preds = %111
  call void @_ZN3spv10spirvbin_t13stripDeadRefsEv(ptr noundef nonnull align 8 dereferenceable(473) %11)
  %117 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %11, i32 0, i32 16
  %118 = load i8, ptr %117, align 8, !tbaa !52, !range !53, !noundef !54
  %119 = trunc i8 %118 to i1
  br i1 %119, label %120, label %121

120:                                              ; preds = %116
  br label %170

121:                                              ; preds = %116
  %122 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %11, i32 0, i32 14
  %123 = load i32, ptr %122, align 8, !tbaa !11
  %124 = and i32 %123, 2
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %126, label %127

126:                                              ; preds = %121
  call void @_ZN3spv10spirvbin_t12mapTypeConstEv(ptr noundef nonnull align 8 dereferenceable(473) %11)
  br label %127

127:                                              ; preds = %126, %121
  %128 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %11, i32 0, i32 16
  %129 = load i8, ptr %128, align 8, !tbaa !52, !range !53, !noundef !54
  %130 = trunc i8 %129 to i1
  br i1 %130, label %131, label %132

131:                                              ; preds = %127
  br label %170

132:                                              ; preds = %127
  %133 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %11, i32 0, i32 14
  %134 = load i32, ptr %133, align 8, !tbaa !11
  %135 = and i32 %134, 4
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %137, label %138

137:                                              ; preds = %132
  call void @_ZN3spv10spirvbin_t8mapNamesEv(ptr noundef nonnull align 8 dereferenceable(473) %11)
  br label %138

138:                                              ; preds = %137, %132
  %139 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %11, i32 0, i32 16
  %140 = load i8, ptr %139, align 8, !tbaa !52, !range !53, !noundef !54
  %141 = trunc i8 %140 to i1
  br i1 %141, label %142, label %143

142:                                              ; preds = %138
  br label %170

143:                                              ; preds = %138
  %144 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %11, i32 0, i32 14
  %145 = load i32, ptr %144, align 8, !tbaa !11
  %146 = and i32 %145, 8
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %148, label %149

148:                                              ; preds = %143
  call void @_ZN3spv10spirvbin_t11mapFnBodiesEv(ptr noundef nonnull align 8 dereferenceable(473) %11)
  br label %149

149:                                              ; preds = %148, %143
  %150 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %11, i32 0, i32 16
  %151 = load i8, ptr %150, align 8, !tbaa !52, !range !53, !noundef !54
  %152 = trunc i8 %151 to i1
  br i1 %152, label %153, label %154

153:                                              ; preds = %149
  br label %170

154:                                              ; preds = %149
  %155 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %11, i32 0, i32 14
  %156 = load i32, ptr %155, align 8, !tbaa !11
  %157 = and i32 %156, 14
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %159, label %170

159:                                              ; preds = %154
  call void @_ZN3spv10spirvbin_t12mapRemainderEv(ptr noundef nonnull align 8 dereferenceable(473) %11)
  %160 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %11, i32 0, i32 16
  %161 = load i8, ptr %160, align 8, !tbaa !52, !range !53, !noundef !54
  %162 = trunc i8 %161 to i1
  br i1 %162, label %163, label %164

163:                                              ; preds = %159
  br label %170

164:                                              ; preds = %159
  call void @_ZN3spv10spirvbin_t8applyMapEv(ptr noundef nonnull align 8 dereferenceable(473) %11)
  %165 = getelementptr inbounds %"class.spv::spirvbin_t", ptr %11, i32 0, i32 16
  %166 = load i8, ptr %165, align 8, !tbaa !52, !range !53, !noundef !54
  %167 = trunc i8 %166 to i1
  br i1 %167, label %168, label %169

168:                                              ; preds = %164
  br label %170

169:                                              ; preds = %164
  br label %170

170:                                              ; preds = %169, %168, %163, %154, %153, %142, %131, %120, %115, %110, %99, %88, %77, %66, %55, %50
  ret void

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

declare void @_ZN3spv12ParameterizeEv() #5

; 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 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 464}
!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 = !{!51, !51, i64 0}
!51 = !{!"vtable pointer", !8, i64 0}
!52 = !{!12, !49, i64 472}
!53 = !{i8 0, i8 2}
!54 = !{}


; 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.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.22 = external hidden unnamed_addr constant [11 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 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 @_ZN3spv10spirvbin_t8applyMapEv(ptr noundef nonnull align 8 dereferenceable(473)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx119to_stringEj(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) local_unnamed_addr #4

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3spv10spirvbin_t5remapEj(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator.73", align 1
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = getelementptr inbounds i8, ptr %0, i64 464
  store i32 %1, ptr %7, align 8, !tbaa !5
  tail call void @_ZN3spv12ParameterizeEv()
  tail call void @_ZNK3spv10spirvbin_t8validateEv(ptr noundef nonnull align 8 dereferenceable(473) %0)
  tail call void @_ZN3spv10spirvbin_t14buildLocalMapsEv(ptr noundef nonnull align 8 dereferenceable(473) %0)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str.22, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %8 unwind label %18

8:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  %9 = call noundef i32 @_ZNK3spv10spirvbin_t5boundEv(ptr noundef nonnull align 8 dereferenceable(473) %0)
  call void @_ZNSt7__cxx119to_stringEj(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, i32 noundef %9) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %10 unwind label %20

10:                                               ; preds = %8
  %11 = load ptr, ptr %0, align 8, !tbaa !48
  %12 = getelementptr inbounds i8, ptr %11, i64 16
  %13 = load ptr, ptr %12, align 8
  invoke void %13(ptr noundef nonnull align 8 dereferenceable(473) %0, i32 noundef 3, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %14 unwind label %22

14:                                               ; preds = %10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  %15 = load i32, ptr %7, align 8, !tbaa !5
  %16 = and i32 %15, 1
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %26, label %17

17:                                               ; preds = %14
  call void @_ZN3spv10spirvbin_t10stripDebugEv(ptr noundef nonnull align 8 dereferenceable(473) %0)
  br label %26

18:                                               ; preds = %2
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %25

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

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

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

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

26:                                               ; preds = %17, %14
  %27 = getelementptr inbounds i8, ptr %0, i64 472
  %28 = load i8, ptr %27, align 8, !tbaa !50, !range !51, !noundef !52
  %29 = trunc nuw i8 %28 to i1
  br i1 %29, label %102, label %30

30:                                               ; preds = %26
  call void @_ZN3spv10spirvbin_t5stripEv(ptr noundef nonnull align 8 dereferenceable(473) %0)
  %31 = load i8, ptr %27, align 8, !tbaa !50, !range !51, !noundef !52
  %32 = trunc nuw i8 %31 to i1
  br i1 %32, label %102, label %33

33:                                               ; preds = %30
  %34 = load i32, ptr %7, align 8, !tbaa !5
  %35 = and i32 %34, 128
  %.not7 = icmp eq i32 %35, 0
  br i1 %.not7, label %37, label %36

36:                                               ; preds = %33
  call void @_ZN3spv10spirvbin_t12optLoadStoreEv(ptr noundef nonnull align 8 dereferenceable(473) %0)
  %.pre = load i8, ptr %27, align 8, !tbaa !50, !range !51
  br label %37

37:                                               ; preds = %36, %33
  %38 = phi i8 [ %.pre, %36 ], [ %31, %33 ]
  %39 = trunc nuw i8 %38 to i1
  br i1 %39, label %102, label %40

40:                                               ; preds = %37
  %41 = load i32, ptr %7, align 8, !tbaa !5
  %42 = and i32 %41, 256
  %.not8 = icmp eq i32 %42, 0
  br i1 %.not8, label %44, label %43

43:                                               ; preds = %40
  call void @_ZN3spv10spirvbin_t17forwardLoadStoresEv(ptr noundef nonnull align 8 dereferenceable(473) %0)
  %.pre16 = load i8, ptr %27, align 8, !tbaa !50, !range !51
  br label %44

44:                                               ; preds = %43, %40
  %45 = phi i8 [ %.pre16, %43 ], [ %38, %40 ]
  %46 = trunc nuw i8 %45 to i1
  br i1 %46, label %102, label %47

47:                                               ; preds = %44
  %48 = load i32, ptr %7, align 8, !tbaa !5
  %49 = and i32 %48, 16
  %.not9 = icmp eq i32 %49, 0
  br i1 %.not9, label %51, label %50

50:                                               ; preds = %47
  call void @_ZN3spv10spirvbin_t8dceFuncsEv(ptr noundef nonnull align 8 dereferenceable(473) %0)
  %.pre17 = load i8, ptr %27, align 8, !tbaa !50, !range !51
  br label %51

51:                                               ; preds = %50, %47
  %52 = phi i8 [ %.pre17, %50 ], [ %45, %47 ]
  %53 = trunc nuw i8 %52 to i1
  br i1 %53, label %102, label %54

54:                                               ; preds = %51
  %55 = load i32, ptr %7, align 8, !tbaa !5
  %56 = and i32 %55, 32
  %.not10 = icmp eq i32 %56, 0
  br i1 %.not10, label %58, label %57

57:                                               ; preds = %54
  call void @_ZN3spv10spirvbin_t7dceVarsEv(ptr noundef nonnull align 8 dereferenceable(473) %0)
  %.pre18 = load i8, ptr %27, align 8, !tbaa !50, !range !51
  br label %58

58:                                               ; preds = %57, %54
  %59 = phi i8 [ %.pre18, %57 ], [ %52, %54 ]
  %60 = trunc nuw i8 %59 to i1
  br i1 %60, label %102, label %61

61:                                               ; preds = %58
  %62 = load i32, ptr %7, align 8, !tbaa !5
  %63 = and i32 %62, 64
  %.not11 = icmp eq i32 %63, 0
  br i1 %.not11, label %65, label %64

64:                                               ; preds = %61
  call void @_ZN3spv10spirvbin_t8dceTypesEv(ptr noundef nonnull align 8 dereferenceable(473) %0)
  %.pre19 = load i8, ptr %27, align 8, !tbaa !50, !range !51
  br label %65

65:                                               ; preds = %64, %61
  %66 = phi i8 [ %.pre19, %64 ], [ %59, %61 ]
  %67 = trunc nuw i8 %66 to i1
  br i1 %67, label %102, label %68

68:                                               ; preds = %65
  call void @_ZN3spv10spirvbin_t5stripEv(ptr noundef nonnull align 8 dereferenceable(473) %0)
  %69 = load i8, ptr %27, align 8, !tbaa !50, !range !51, !noundef !52
  %70 = trunc nuw i8 %69 to i1
  br i1 %70, label %102, label %71

71:                                               ; preds = %68
  call void @_ZN3spv10spirvbin_t13stripDeadRefsEv(ptr noundef nonnull align 8 dereferenceable(473) %0)
  %72 = load i8, ptr %27, align 8, !tbaa !50, !range !51, !noundef !52
  %73 = trunc nuw i8 %72 to i1
  br i1 %73, label %102, label %74

74:                                               ; preds = %71
  %75 = load i32, ptr %7, align 8, !tbaa !5
  %76 = and i32 %75, 2
  %.not12 = icmp eq i32 %76, 0
  br i1 %.not12, label %78, label %77

77:                                               ; preds = %74
  call void @_ZN3spv10spirvbin_t12mapTypeConstEv(ptr noundef nonnull align 8 dereferenceable(473) %0)
  %.pre20 = load i8, ptr %27, align 8, !tbaa !50, !range !51
  br label %78

78:                                               ; preds = %77, %74
  %79 = phi i8 [ %.pre20, %77 ], [ %72, %74 ]
  %80 = trunc nuw i8 %79 to i1
  br i1 %80, label %102, label %81

81:                                               ; preds = %78
  %82 = load i32, ptr %7, align 8, !tbaa !5
  %83 = and i32 %82, 4
  %.not13 = icmp eq i32 %83, 0
  br i1 %.not13, label %85, label %84

84:                                               ; preds = %81
  call void @_ZN3spv10spirvbin_t8mapNamesEv(ptr noundef nonnull align 8 dereferenceable(473) %0)
  %.pre21 = load i8, ptr %27, align 8, !tbaa !50, !range !51
  br label %85

85:                                               ; preds = %84, %81
  %86 = phi i8 [ %.pre21, %84 ], [ %79, %81 ]
  %87 = trunc nuw i8 %86 to i1
  br i1 %87, label %102, label %88

88:                                               ; preds = %85
  %89 = load i32, ptr %7, align 8, !tbaa !5
  %90 = and i32 %89, 8
  %.not14 = icmp eq i32 %90, 0
  br i1 %.not14, label %92, label %91

91:                                               ; preds = %88
  call void @_ZN3spv10spirvbin_t11mapFnBodiesEv(ptr noundef nonnull align 8 dereferenceable(473) %0)
  %.pre22 = load i8, ptr %27, align 8, !tbaa !50, !range !51
  br label %92

92:                                               ; preds = %91, %88
  %93 = phi i8 [ %.pre22, %91 ], [ %86, %88 ]
  %94 = trunc nuw i8 %93 to i1
  br i1 %94, label %102, label %95

95:                                               ; preds = %92
  %96 = load i32, ptr %7, align 8, !tbaa !5
  %97 = and i32 %96, 14
  %.not15 = icmp eq i32 %97, 0
  br i1 %.not15, label %102, label %98

98:                                               ; preds = %95
  call void @_ZN3spv10spirvbin_t12mapRemainderEv(ptr noundef nonnull align 8 dereferenceable(473) %0)
  %99 = load i8, ptr %27, align 8, !tbaa !50, !range !51, !noundef !52
  %100 = trunc nuw i8 %99 to i1
  br i1 %100, label %102, label %101

101:                                              ; preds = %98
  call void @_ZN3spv10spirvbin_t8applyMapEv(ptr noundef nonnull align 8 dereferenceable(473) %0)
  br label %102

102:                                              ; preds = %101, %98, %92, %85, %78, %71, %68, %65, %58, %51, %44, %37, %30, %26, %95
  ret void
}

declare void @_ZN3spv12ParameterizeEv() local_unnamed_addr #5

; 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 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

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


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