; LLVM IR from hbatagelo/abcg :: abcg/external/glslang/glslang/MachineIndependent (iomapper)

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

%"struct.std::_Rb_tree_iterator" = type { ptr }
%"class.std::map.115" = type { %"class.std::_Rb_tree.116" }
%"class.std::_Rb_tree.116" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, int>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, int>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>>>::_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 }
%"struct.glslang::TVarEntryInfo" = type { i64, ptr, i8, i32, i32, i32, i32, i32, i32 }
%"class.glslang::TQualifier" = type <{ ptr, i64, i8, [3 x i8], i32, i32, i64, i64, i8, i8, i8, i8, i8, [3 x i8], i32, i8, [3 x i8], i32, ptr }>
%"struct.glslang::TDefaultIoResolverBase" = type { %"class.glslang::TIoMapResolver", %"class.std::unordered_map", i8, ptr, i32, i32, i32, [15 x i8], [14 x ptr] }
%"class.glslang::TIoMapResolver" = type { 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 }
%"struct.glslang::SpvVersion" = type <{ i32, i32, i32, i32, i8, [3 x i8] }>
%"struct.glslang::TTypeLoc" = type { ptr, %"struct.glslang::TSourceLoc" }
%"struct.glslang::TSourceLoc" = type { ptr, i32, i32, i32 }
%"struct.glslang::TDefaultGlslIoResolver" = type { %"struct.glslang::TDefaultIoResolverBase", i32, i32, %"class.std::map.110", %"class.std::map.110" }
%"class.std::map.110" = type { %"class.std::_Rb_tree.111" }
%"class.std::_Rb_tree.111" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, int>>, std::_Select1st<std::pair<const int, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, int>>, std::_Select1st<std::pair<const int, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::pair" = type <{ %"class.std::__cxx11::basic_string.105", i32, [4 x i8] }>
%"class.std::__cxx11::basic_string.105" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>::_Alloc_hider", i64, %union.anon.106 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>::_Alloc_hider" = type { %"class.glslang::pool_allocator", ptr }
%"class.glslang::pool_allocator" = type { ptr }
%union.anon.106 = type { i64, [8 x i8] }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK7glslang22TDefaultIoResolverBase21doAutoLocationMappingEv(ptr noundef nonnull align 8 dereferenceable(224)) #0 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK7glslang5TType11isSpirvTypeEv(ptr noundef nonnull align 8 dereferenceable(144)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7glslang5TType9getStructEv(ptr noundef nonnull align 8 dereferenceable(144)) #0 align 2

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

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

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

declare noundef i32 @_ZN7glslang13TIntermediate30computeTypeUniformLocationSizeERKNS_5TTypeE(ptr noundef nonnull align 8 dereferenceable(144)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7glslang22TDefaultIoResolverBase23computeTypeLocationSizeERKNS_5TTypeE11EShLanguage(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef nonnull align 8 dereferenceable(144), i32 noundef) #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEE4findERSB_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEEixERSB_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEEaSERKSE_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7glslang22TDefaultGlslIoResolver22resolveUniformLocationE11EShLanguageRNS_13TVarEntryInfoE(ptr noundef nonnull align 8 dereferenceable(328) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(48) %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %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 i8, align 1
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %17 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %18 = alloca %"class.std::map.115", align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  %21 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = getelementptr inbounds %"struct.glslang::TVarEntryInfo", ptr %22, i32 0, i32 1
  %24 = load ptr, ptr %23, align 8, !tbaa !11
  %25 = load ptr, ptr %24, align 8, !tbaa !16
  %26 = getelementptr inbounds ptr, ptr %25, i64 30
  %27 = load ptr, ptr %26, align 8
  %28 = call noundef nonnull align 8 dereferenceable(144) ptr %27(ptr noundef nonnull align 8 dereferenceable(176) %24)
  store ptr %28, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.glslang::TVarEntryInfo", ptr %29, i32 0, i32 1
  %31 = load ptr, ptr %30, align 8, !tbaa !11
  %32 = load ptr, ptr %31, align 8, !tbaa !16
  %33 = getelementptr inbounds ptr, ptr %32, i64 51
  %34 = load ptr, ptr %33, align 8
  %35 = call noundef nonnull align 8 dereferenceable(40) ptr %34(ptr noundef nonnull align 8 dereferenceable(256) %31)
  store ptr %35, ptr %9, align 8, !tbaa !5
  %36 = call noundef zeroext i1 @_ZNK7glslang22TDefaultIoResolverBase21doAutoLocationMappingEv(ptr noundef nonnull align 8 dereferenceable(224) %21)
  br i1 %36, label %40, label %37

37:                                               ; preds = %3
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.glslang::TVarEntryInfo", ptr %38, i32 0, i32 5
  store i32 -1, ptr %39, align 4, !tbaa !18
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %214

40:                                               ; preds = %3
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = load ptr, ptr %41, align 8, !tbaa !16
  %43 = getelementptr inbounds ptr, ptr %42, i64 11
  %44 = load ptr, ptr %43, align 8
  %45 = call noundef nonnull align 8 dereferenceable(72) ptr %44(ptr noundef nonnull align 8 dereferenceable(144) %41)
  %46 = call noundef zeroext i1 @_ZNK7glslang10TQualifier11hasLocationEv(ptr noundef nonnull align 8 dereferenceable(72) %45)
  br i1 %46, label %47, label %71

47:                                               ; preds = %40
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = load ptr, ptr %48, align 8, !tbaa !16
  %50 = getelementptr inbounds ptr, ptr %49, i64 35
  %51 = load ptr, ptr %50, align 8
  %52 = call noundef zeroext i1 %51(ptr noundef nonnull align 8 dereferenceable(144) %48)
  br i1 %52, label %59, label %53

53:                                               ; preds = %47
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = load ptr, ptr %54, align 8, !tbaa !16
  %56 = getelementptr inbounds ptr, ptr %55, i64 29
  %57 = load ptr, ptr %56, align 8
  %58 = call noundef zeroext i1 %57(ptr noundef nonnull align 8 dereferenceable(144) %54)
  br i1 %58, label %59, label %71

59:                                               ; preds = %53, %47
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = load ptr, ptr %60, align 8, !tbaa !16
  %62 = getelementptr inbounds ptr, ptr %61, i64 11
  %63 = load ptr, ptr %62, align 8
  %64 = call noundef nonnull align 8 dereferenceable(72) ptr %63(ptr noundef nonnull align 8 dereferenceable(144) %60)
  %65 = getelementptr inbounds %"class.glslang::TQualifier", ptr %64, i32 0, i32 6
  %66 = load i64, ptr %65, align 4
  %67 = and i64 %66, 4095
  %68 = trunc i64 %67 to i32
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.glslang::TVarEntryInfo", ptr %69, i32 0, i32 5
  store i32 %68, ptr %70, align 4, !tbaa !18
  store i32 %68, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %214

71:                                               ; preds = %53, %40
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = load ptr, ptr %72, align 8, !tbaa !16
  %74 = getelementptr inbounds ptr, ptr %73, i64 11
  %75 = load ptr, ptr %74, align 8
  %76 = call noundef nonnull align 8 dereferenceable(72) ptr %75(ptr noundef nonnull align 8 dereferenceable(144) %72)
  %77 = call noundef zeroext i1 @_ZNK7glslang10TQualifier11hasLocationEv(ptr noundef nonnull align 8 dereferenceable(72) %76)
  br i1 %77, label %110, label %78

78:                                               ; preds = %71
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = load ptr, ptr %79, align 8, !tbaa !16
  %81 = getelementptr inbounds ptr, ptr %80, i64 39
  %82 = load ptr, ptr %81, align 8
  %83 = call noundef zeroext i1 %82(ptr noundef nonnull align 8 dereferenceable(144) %79)
  br i1 %83, label %110, label %84

84:                                               ; preds = %78
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = load ptr, ptr %85, align 8, !tbaa !16
  %87 = getelementptr inbounds ptr, ptr %86, i64 7
  %88 = load ptr, ptr %87, align 8
  %89 = call noundef i32 %88(ptr noundef nonnull align 8 dereferenceable(144) %85)
  %90 = icmp eq i32 %89, 16
  br i1 %90, label %110, label %91

91:                                               ; preds = %84
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = call noundef zeroext i1 @_ZNK7glslang5TType8isAtomicEv(ptr noundef nonnull align 8 dereferenceable(144) %92)
  br i1 %93, label %110, label %94

94:                                               ; preds = %91
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = call noundef zeroext i1 @_ZNK7glslang5TType11isSpirvTypeEv(ptr noundef nonnull align 8 dereferenceable(144) %95)
  br i1 %96, label %110, label %97

97:                                               ; preds = %94
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = load ptr, ptr %98, align 8, !tbaa !16
  %100 = getelementptr inbounds ptr, ptr %99, i64 49
  %101 = load ptr, ptr %100, align 8
  %102 = call noundef zeroext i1 %101(ptr noundef nonnull align 8 dereferenceable(144) %98)
  br i1 %102, label %103, label %113

103:                                              ; preds = %97
  %104 = getelementptr inbounds %"struct.glslang::TDefaultIoResolverBase", ptr %21, i32 0, i32 3
  %105 = load ptr, ptr %104, align 8, !tbaa !19
  %106 = call noundef nonnull align 4 dereferenceable(17) ptr @_ZNK7glslang13TIntermediate6getSpvEv(ptr noundef nonnull align 8 dereferenceable(1784) %105)
  %107 = getelementptr inbounds %"struct.glslang::SpvVersion", ptr %106, i32 0, i32 3
  %108 = load i32, ptr %107, align 4, !tbaa !28
  %109 = icmp eq i32 %108, 0
  br i1 %109, label %110, label %113

110:                                              ; preds = %103, %94, %91, %84, %78, %71
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.glslang::TVarEntryInfo", ptr %111, i32 0, i32 5
  store i32 -1, ptr %112, align 4, !tbaa !18
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %214

113:                                              ; preds = %103, %97
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = load ptr, ptr %114, align 8, !tbaa !16
  %116 = getelementptr inbounds ptr, ptr %115, i64 35
  %117 = load ptr, ptr %116, align 8
  %118 = call noundef zeroext i1 %117(ptr noundef nonnull align 8 dereferenceable(144) %114)
  br i1 %118, label %119, label %141

119:                                              ; preds = %113
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = call noundef ptr @_ZNK7glslang5TType9getStructEv(ptr noundef nonnull align 8 dereferenceable(144) %120)
  %122 = call noundef i64 @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %121) #4
  %123 = icmp ult i64 %122, 1
  br i1 %123, label %124, label %127

124:                                              ; preds = %119
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.glslang::TVarEntryInfo", ptr %125, i32 0, i32 5
  store i32 -1, ptr %126, align 4, !tbaa !18
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %214

127:                                              ; preds = %119
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = call noundef ptr @_ZNK7glslang5TType9getStructEv(ptr noundef nonnull align 8 dereferenceable(144) %128)
  %130 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %129, i64 noundef 0) #4
  %131 = getelementptr inbounds %"struct.glslang::TTypeLoc", ptr %130, i32 0, i32 0
  %132 = load ptr, ptr %131, align 8, !tbaa !30
  %133 = load ptr, ptr %132, align 8, !tbaa !16
  %134 = getelementptr inbounds ptr, ptr %133, i64 39
  %135 = load ptr, ptr %134, align 8
  %136 = call noundef zeroext i1 %135(ptr noundef nonnull align 8 dereferenceable(144) %132)
  br i1 %136, label %137, label %140

137:                                              ; preds = %127
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.glslang::TVarEntryInfo", ptr %138, i32 0, i32 5
  store i32 -1, ptr %139, align 4, !tbaa !18
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %214

140:                                              ; preds = %127
  br label %141

141:                                              ; preds = %140, %113
  br label %142

142:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %143 = getelementptr inbounds %"struct.glslang::TDefaultIoResolverBase", ptr %21, i32 0, i32 3
  %144 = load ptr, ptr %143, align 8, !tbaa !19
  %145 = load ptr, ptr %9, align 8, !tbaa !5
  %146 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(40) %145) #4
  %147 = call noundef i32 @_ZNK7glslang13TIntermediate26getUniformLocationOverrideEPKc(ptr noundef nonnull align 8 dereferenceable(1784) %144, ptr noundef %146)
  store i32 %147, ptr %11, align 4, !tbaa !33
  %148 = load i32, ptr %11, align 4, !tbaa !33
  %149 = icmp ne i32 %148, -1
  br i1 %149, label %150, label %154

150:                                              ; preds = %142
  %151 = load i32, ptr %11, align 4, !tbaa !33
  %152 = load ptr, ptr %7, align 8, !tbaa !5
  %153 = getelementptr inbounds %"struct.glslang::TVarEntryInfo", ptr %152, i32 0, i32 5
  store i32 %151, ptr %153, align 4, !tbaa !18
  store i32 %151, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %213

154:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %155 = load ptr, ptr %8, align 8, !tbaa !5
  %156 = call noundef i32 @_ZN7glslang13TIntermediate30computeTypeUniformLocationSizeERKNS_5TTypeE(ptr noundef nonnull align 8 dereferenceable(144) %155)
  store i32 %156, ptr %12, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #4
  store i8 0, ptr %13, align 1, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %157 = call noundef i32 @_ZN7glslang22TDefaultGlslIoResolver15buildStorageKeyE11EShLanguageNS_17TStorageQualifierE(ptr noundef nonnull align 8 dereferenceable(328) %21, i32 noundef 14, i32 noundef 5)
  store i32 %157, ptr %14, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %158 = getelementptr inbounds %"struct.glslang::TDefaultGlslIoResolver", ptr %21, i32 0, i32 4
  %159 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_INSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEES8_IiESaISA_IKiSE_EEEixERSG_(ptr noundef nonnull align 8 dereferenceable(48) %158, ptr noundef nonnull align 4 dereferenceable(4) %14)
  store ptr %159, ptr %15, align 8, !tbaa !5
  %160 = load ptr, ptr %15, align 8, !tbaa !5
  %161 = call noundef zeroext i1 @_ZNKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) %160) #4
  br i1 %161, label %191, label %162

162:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %163 = load ptr, ptr %15, align 8, !tbaa !5
  %164 = load ptr, ptr %9, align 8, !tbaa !5
  %165 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEE4findERSB_(ptr noundef nonnull align 8 dereferenceable(48) %163, ptr noundef nonnull align 8 dereferenceable(40) %164)
  %166 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %16, i32 0, i32 0
  store ptr %165, ptr %166, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %167 = load ptr, ptr %15, align 8, !tbaa !5
  %168 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %167) #4
  %169 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %17, i32 0, i32 0
  store ptr %168, ptr %169, align 8
  %170 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiEESD_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br i1 %170, label %171, label %175

171:                                              ; preds = %162
  store i8 1, ptr %13, align 1, !tbaa !34
  %172 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #4
  %173 = getelementptr inbounds %"struct.std::pair", ptr %172, i32 0, i32 1
  %174 = load i32, ptr %173, align 8, !tbaa !35
  store i32 %174, ptr %11, align 4, !tbaa !33
  br label %175

175:                                              ; preds = %171, %162
  %176 = load i8, ptr %13, align 1, !tbaa !34, !range !40, !noundef !41
  %177 = trunc i8 %176 to i1
  br i1 %177, label %190, label %178

178:                                              ; preds = %175
  %179 = load i32, ptr %14, align 4, !tbaa !33
  %180 = load ptr, ptr %8, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.glslang::TDefaultGlslIoResolver", ptr %21, i32 0, i32 2
  %182 = load i32, ptr %181, align 4, !tbaa !42
  %183 = call noundef i32 @_ZN7glslang22TDefaultIoResolverBase23computeTypeLocationSizeERKNS_5TTypeE11EShLanguage(ptr noundef nonnull align 8 dereferenceable(224) %21, ptr noundef nonnull align 8 dereferenceable(144) %180, i32 noundef %182)
  %184 = call noundef i32 @_ZN7glslang22TDefaultIoResolverBase11getFreeSlotEiii(ptr noundef nonnull align 8 dereferenceable(224) %21, i32 noundef %179, i32 noundef 0, i32 noundef %183)
  store i32 %184, ptr %11, align 4, !tbaa !33
  %185 = load i32, ptr %11, align 4, !tbaa !33
  %186 = getelementptr inbounds %"struct.glslang::TDefaultGlslIoResolver", ptr %21, i32 0, i32 4
  %187 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_INSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEES8_IiESaISA_IKiSE_EEEixERSG_(ptr noundef nonnull align 8 dereferenceable(48) %186, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %188 = load ptr, ptr %9, align 8, !tbaa !5
  %189 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEEixERSB_(ptr noundef nonnull align 8 dereferenceable(48) %187, ptr noundef nonnull align 8 dereferenceable(40) %188)
  store i32 %185, ptr %189, align 4, !tbaa !33
  br label %190

190:                                              ; preds = %178, %175
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %209

191:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 48, ptr %18) #4
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #4
  %192 = load i32, ptr %14, align 4, !tbaa !33
  %193 = load i32, ptr %12, align 4, !tbaa !33
  %194 = invoke noundef i32 @_ZN7glslang22TDefaultIoResolverBase11getFreeSlotEiii(ptr noundef nonnull align 8 dereferenceable(224) %21, i32 noundef %192, i32 noundef 0, i32 noundef %193)
          to label %195 unwind label %205

195:                                              ; preds = %191
  store i32 %194, ptr %11, align 4, !tbaa !33
  %196 = load i32, ptr %11, align 4, !tbaa !33
  %197 = load ptr, ptr %9, align 8, !tbaa !5
  %198 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEEixERSB_(ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef nonnull align 8 dereferenceable(40) %197)
          to label %199 unwind label %205

199:                                              ; preds = %195
  store i32 %196, ptr %198, align 4, !tbaa !33
  %200 = getelementptr inbounds %"struct.glslang::TDefaultGlslIoResolver", ptr %21, i32 0, i32 4
  %201 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_INSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEES8_IiESaISA_IKiSE_EEEixERSG_(ptr noundef nonnull align 8 dereferenceable(48) %200, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %202 unwind label %205

202:                                              ; preds = %199
  %203 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEEaSERKSE_(ptr noundef nonnull align 8 dereferenceable(48) %201, ptr noundef nonnull align 8 dereferenceable(48) %18)
          to label %204 unwind label %205

204:                                              ; preds = %202
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %18) #4
  br label %209

205:                                              ; preds = %202, %199, %195, %191
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %19, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %20, align 4
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 1, 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 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %216

209:                                              ; preds = %204, %190
  %210 = load i32, ptr %11, align 4, !tbaa !33
  %211 = load ptr, ptr %7, align 8, !tbaa !5
  %212 = getelementptr inbounds %"struct.glslang::TVarEntryInfo", ptr %211, i32 0, i32 5
  store i32 %210, ptr %212, align 4, !tbaa !18
  store i32 %210, ptr %4, align 4
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %213

213:                                              ; preds = %209, %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %214

214:                                              ; preds = %213, %137, %124, %110, %59, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %215 = load i32, ptr %4, align 4
  ret i32 %215

216:                                              ; preds = %205
  %217 = load ptr, ptr %19, align 8
  %218 = load i32, ptr %20, align 4
  %219 = insertvalue { ptr, i32 } poison, ptr %217, 0
  %220 = insertvalue { ptr, i32 } %219, i32 %218, 1
  resume { ptr, i32 } %220
}

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

!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 = !{!"_ZTS11EShLanguage", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTSN7glslang13TVarEntryInfoE", !13, i64 0, !6, i64 8, !14, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !10, i64 40}
!13 = !{!"long long", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"vtable pointer", !8, i64 0}
!18 = !{!12, !15, i64 28}
!19 = !{!20, !6, i64 72}
!20 = !{!"_ZTSN7glslang22TDefaultIoResolverBaseE", !21, i64 0, !22, i64 8, !14, i64 64, !6, i64 72, !15, i64 80, !15, i64 84, !15, i64 88, !7, i64 92, !7, i64 112}
!21 = !{!"_ZTSN7glslang14TIoMapResolverE"}
!22 = !{!"_ZTSSt13unordered_mapIiSt6vectorIiSaIiEESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEE", !23, i64 0}
!23 = !{!"_ZTSSt10_HashtableIiSt4pairIKiSt6vectorIiSaIiEEESaIS5_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !24, i64 8, !25, i64 16, !24, i64 24, !26, i64 32, !6, i64 48}
!24 = !{!"long", !7, i64 0}
!25 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!26 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !27, i64 0, !24, i64 8}
!27 = !{!"float", !7, i64 0}
!28 = !{!29, !15, i64 12}
!29 = !{!"_ZTSN7glslang10SpvVersionE", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !14, i64 16}
!30 = !{!31, !6, i64 0}
!31 = !{!"_ZTSN7glslang8TTypeLocE", !6, i64 0, !32, i64 8}
!32 = !{!"_ZTSN7glslang10TSourceLocE", !6, i64 0, !15, i64 8, !15, i64 12, !15, i64 16}
!33 = !{!15, !15, i64 0}
!34 = !{!14, !14, i64 0}
!35 = !{!36, !15, i64 40}
!36 = !{!"_ZTSSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiE", !37, i64 0, !15, i64 40}
!37 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEE", !38, i64 0, !24, i64 16, !7, i64 24}
!38 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE12_Alloc_hiderE", !39, i64 0, !6, i64 8}
!39 = !{!"_ZTSN7glslang14pool_allocatorIcEE", !6, i64 0}
!40 = !{i8 0, i8 2}
!41 = !{}
!42 = !{!43, !10, i64 228}
!43 = !{!"_ZTSN7glslang22TDefaultGlslIoResolverE", !20, i64 0, !10, i64 224, !10, i64 228, !44, i64 232, !44, i64 280}
!44 = !{!"_ZTSSt3mapIiS_INSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEES8_IiESaISA_IKiSE_EEE", !45, i64 0}
!45 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessISA_ESaIS0_IKSA_iEEEESt10_Select1stISH_ESB_IiESaISH_EE", !46, i64 0}
!46 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessISA_ESaIS0_IKSA_iEEEESt10_Select1stISH_ESB_IiESaISH_EE13_Rb_tree_implISK_Lb1EEE", !47, i64 0, !49, i64 8}
!47 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !48, i64 0}
!48 = !{!"_ZTSSt4lessIiE"}
!49 = !{!"_ZTSSt15_Rb_tree_header", !50, i64 0, !24, i64 32}
!50 = !{!"_ZTSSt18_Rb_tree_node_base", !51, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!51 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}


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

%"struct.std::_Rb_tree_iterator" = type { ptr }
%"class.std::map.115" = type { %"class.std::_Rb_tree.116" }
%"class.std::_Rb_tree.116" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, int>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>, int>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>>>::_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 }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK7glslang22TDefaultIoResolverBase21doAutoLocationMappingEv(ptr noundef nonnull align 8 dereferenceable(224)) local_unnamed_addr #0 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK7glslang5TType11isSpirvTypeEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7glslang5TType9getStructEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #0 align 2

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

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

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

declare noundef i32 @_ZN7glslang13TIntermediate30computeTypeUniformLocationSizeERKNS_5TTypeE(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7glslang22TDefaultIoResolverBase23computeTypeLocationSizeERKNS_5TTypeE11EShLanguage(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef nonnull align 8 dereferenceable(144), i32 noundef) local_unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEE4findERSB_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEEixERSB_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEEaSERKSE_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7glslang22TDefaultGlslIoResolver22resolveUniformLocationE11EShLanguageRNS_13TVarEntryInfoE(ptr noundef nonnull align 8 dereferenceable(328) %0, i32 noundef %1, ptr nocapture noundef nonnull align 8 dereferenceable(48) %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %6 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %7 = alloca %"class.std::map.115", align 8
  %8 = getelementptr inbounds i8, ptr %2, i64 8
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = load ptr, ptr %9, align 8, !tbaa !14
  %11 = getelementptr inbounds i8, ptr %10, i64 240
  %12 = load ptr, ptr %11, align 8
  %13 = tail call noundef nonnull align 8 dereferenceable(144) ptr %12(ptr noundef nonnull align 8 dereferenceable(176) %9)
  %14 = load ptr, ptr %8, align 8, !tbaa !5
  %15 = load ptr, ptr %14, align 8, !tbaa !14
  %16 = getelementptr inbounds i8, ptr %15, i64 408
  %17 = load ptr, ptr %16, align 8
  %18 = tail call noundef nonnull align 8 dereferenceable(40) ptr %17(ptr noundef nonnull align 8 dereferenceable(256) %14)
  %19 = tail call noundef zeroext i1 @_ZNK7glslang22TDefaultIoResolverBase21doAutoLocationMappingEv(ptr noundef nonnull align 8 dereferenceable(224) %0)
  br i1 %19, label %22, label %20

20:                                               ; preds = %3
  %21 = getelementptr inbounds i8, ptr %2, i64 28
  store i32 -1, ptr %21, align 4, !tbaa !16
  br label %147

22:                                               ; preds = %3
  %23 = load ptr, ptr %13, align 8, !tbaa !14
  %24 = getelementptr inbounds i8, ptr %23, i64 88
  %25 = load ptr, ptr %24, align 8
  %26 = tail call noundef nonnull align 8 dereferenceable(72) ptr %25(ptr noundef nonnull align 8 dereferenceable(144) %13)
  %27 = tail call noundef zeroext i1 @_ZNK7glslang10TQualifier11hasLocationEv(ptr noundef nonnull align 8 dereferenceable(72) %26)
  br i1 %27, label %28, label %48

28:                                               ; preds = %22
  %29 = load ptr, ptr %13, align 8, !tbaa !14
  %30 = getelementptr inbounds i8, ptr %29, i64 280
  %31 = load ptr, ptr %30, align 8
  %32 = tail call noundef zeroext i1 %31(ptr noundef nonnull align 8 dereferenceable(144) %13)
  br i1 %32, label %38, label %33

33:                                               ; preds = %28
  %34 = load ptr, ptr %13, align 8, !tbaa !14
  %35 = getelementptr inbounds i8, ptr %34, i64 232
  %36 = load ptr, ptr %35, align 8
  %37 = tail call noundef zeroext i1 %36(ptr noundef nonnull align 8 dereferenceable(144) %13)
  br i1 %37, label %38, label %48

38:                                               ; preds = %33, %28
  %39 = load ptr, ptr %13, align 8, !tbaa !14
  %40 = getelementptr inbounds i8, ptr %39, i64 88
  %41 = load ptr, ptr %40, align 8
  %42 = tail call noundef nonnull align 8 dereferenceable(72) ptr %41(ptr noundef nonnull align 8 dereferenceable(144) %13)
  %43 = getelementptr inbounds i8, ptr %42, i64 28
  %44 = load i64, ptr %43, align 4
  %45 = trunc i64 %44 to i32
  %46 = and i32 %45, 4095
  %47 = getelementptr inbounds i8, ptr %2, i64 28
  store i32 %46, ptr %47, align 4, !tbaa !16
  br label %147

48:                                               ; preds = %33, %22
  %49 = load ptr, ptr %13, align 8, !tbaa !14
  %50 = getelementptr inbounds i8, ptr %49, i64 88
  %51 = load ptr, ptr %50, align 8
  %52 = tail call noundef nonnull align 8 dereferenceable(72) ptr %51(ptr noundef nonnull align 8 dereferenceable(144) %13)
  %53 = tail call noundef zeroext i1 @_ZNK7glslang10TQualifier11hasLocationEv(ptr noundef nonnull align 8 dereferenceable(72) %52)
  br i1 %53, label %81, label %54

54:                                               ; preds = %48
  %55 = load ptr, ptr %13, align 8, !tbaa !14
  %56 = getelementptr inbounds i8, ptr %55, i64 312
  %57 = load ptr, ptr %56, align 8
  %58 = tail call noundef zeroext i1 %57(ptr noundef nonnull align 8 dereferenceable(144) %13)
  br i1 %58, label %81, label %59

59:                                               ; preds = %54
  %60 = load ptr, ptr %13, align 8, !tbaa !14
  %61 = getelementptr inbounds i8, ptr %60, i64 56
  %62 = load ptr, ptr %61, align 8
  %63 = tail call noundef i32 %62(ptr noundef nonnull align 8 dereferenceable(144) %13)
  %64 = icmp eq i32 %63, 16
  br i1 %64, label %81, label %65

65:                                               ; preds = %59
  %66 = tail call noundef zeroext i1 @_ZNK7glslang5TType8isAtomicEv(ptr noundef nonnull align 8 dereferenceable(144) %13)
  br i1 %66, label %81, label %67

67:                                               ; preds = %65
  %68 = tail call noundef zeroext i1 @_ZNK7glslang5TType11isSpirvTypeEv(ptr noundef nonnull align 8 dereferenceable(144) %13)
  br i1 %68, label %81, label %69

69:                                               ; preds = %67
  %70 = load ptr, ptr %13, align 8, !tbaa !14
  %71 = getelementptr inbounds i8, ptr %70, i64 392
  %72 = load ptr, ptr %71, align 8
  %73 = tail call noundef zeroext i1 %72(ptr noundef nonnull align 8 dereferenceable(144) %13)
  br i1 %73, label %74, label %83

74:                                               ; preds = %69
  %75 = getelementptr inbounds i8, ptr %0, i64 72
  %76 = load ptr, ptr %75, align 8, !tbaa !17
  %77 = tail call noundef nonnull align 4 dereferenceable(17) ptr @_ZNK7glslang13TIntermediate6getSpvEv(ptr noundef nonnull align 8 dereferenceable(1784) %76)
  %78 = getelementptr inbounds i8, ptr %77, i64 12
  %79 = load i32, ptr %78, align 4, !tbaa !26
  %80 = icmp eq i32 %79, 0
  br i1 %80, label %81, label %83

81:                                               ; preds = %74, %67, %65, %59, %54, %48
  %82 = getelementptr inbounds i8, ptr %2, i64 28
  store i32 -1, ptr %82, align 4, !tbaa !16
  br label %147

83:                                               ; preds = %74, %69
  %84 = load ptr, ptr %13, align 8, !tbaa !14
  %85 = getelementptr inbounds i8, ptr %84, i64 280
  %86 = load ptr, ptr %85, align 8
  %87 = tail call noundef zeroext i1 %86(ptr noundef nonnull align 8 dereferenceable(144) %13)
  br i1 %87, label %88, label %104

88:                                               ; preds = %83
  %89 = tail call noundef ptr @_ZNK7glslang5TType9getStructEv(ptr noundef nonnull align 8 dereferenceable(144) %13)
  %90 = tail call noundef i64 @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %89) #4
  %91 = icmp eq i64 %90, 0
  br i1 %91, label %92, label %94

92:                                               ; preds = %88
  %93 = getelementptr inbounds i8, ptr %2, i64 28
  store i32 -1, ptr %93, align 4, !tbaa !16
  br label %147

94:                                               ; preds = %88
  %95 = tail call noundef ptr @_ZNK7glslang5TType9getStructEv(ptr noundef nonnull align 8 dereferenceable(144) %13)
  %96 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7glslang8TTypeLocENS0_14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %95, i64 noundef 0) #4
  %97 = load ptr, ptr %96, align 8, !tbaa !28
  %98 = load ptr, ptr %97, align 8, !tbaa !14
  %99 = getelementptr inbounds i8, ptr %98, i64 312
  %100 = load ptr, ptr %99, align 8
  %101 = tail call noundef zeroext i1 %100(ptr noundef nonnull align 8 dereferenceable(144) %97)
  br i1 %101, label %102, label %104

102:                                              ; preds = %94
  %103 = getelementptr inbounds i8, ptr %2, i64 28
  store i32 -1, ptr %103, align 4, !tbaa !16
  br label %147

104:                                              ; preds = %83, %94
  %105 = getelementptr inbounds i8, ptr %0, i64 72
  %106 = load ptr, ptr %105, align 8, !tbaa !17
  %107 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(40) %18) #4
  %108 = tail call noundef i32 @_ZNK7glslang13TIntermediate26getUniformLocationOverrideEPKc(ptr noundef nonnull align 8 dereferenceable(1784) %106, ptr noundef %107)
  %.not = icmp eq i32 %108, -1
  br i1 %.not, label %111, label %109

109:                                              ; preds = %104
  %110 = getelementptr inbounds i8, ptr %2, i64 28
  store i32 %108, ptr %110, align 4, !tbaa !16
  br label %147

111:                                              ; preds = %104
  %112 = tail call noundef i32 @_ZN7glslang13TIntermediate30computeTypeUniformLocationSizeERKNS_5TTypeE(ptr noundef nonnull align 8 dereferenceable(144) %13)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  %113 = tail call noundef i32 @_ZN7glslang22TDefaultGlslIoResolver15buildStorageKeyE11EShLanguageNS_17TStorageQualifierE(ptr noundef nonnull align 8 dereferenceable(328) %0, i32 noundef 14, i32 noundef 5)
  store i32 %113, ptr %4, align 4, !tbaa !31
  %114 = getelementptr inbounds i8, ptr %0, i64 280
  %115 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_INSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEES8_IiESaISA_IKiSE_EEEixERSG_(ptr noundef nonnull align 8 dereferenceable(48) %114, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %116 = call noundef zeroext i1 @_ZNKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(48) %115) #4
  br i1 %116, label %133, label %117

117:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %118 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEE4findERSB_(ptr noundef nonnull align 8 dereferenceable(48) %115, ptr noundef nonnull align 8 dereferenceable(40) %18)
  store ptr %118, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %119 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %115) #4
  store ptr %119, ptr %6, align 8
  %120 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiEESD_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  br i1 %120, label %.thread, label %124

.thread:                                          ; preds = %117
  %121 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %122 = getelementptr inbounds i8, ptr %121, i64 40
  %123 = load i32, ptr %122, align 8, !tbaa !32
  br label %132

124:                                              ; preds = %117
  %125 = load i32, ptr %4, align 4, !tbaa !31
  %126 = getelementptr inbounds i8, ptr %0, i64 228
  %127 = load i32, ptr %126, align 4, !tbaa !37
  %128 = call noundef i32 @_ZN7glslang22TDefaultIoResolverBase23computeTypeLocationSizeERKNS_5TTypeE11EShLanguage(ptr noundef nonnull align 8 dereferenceable(224) %0, ptr noundef nonnull align 8 dereferenceable(144) %13, i32 noundef %127)
  %129 = call noundef i32 @_ZN7glslang22TDefaultIoResolverBase11getFreeSlotEiii(ptr noundef nonnull align 8 dereferenceable(224) %0, i32 noundef %125, i32 noundef 0, i32 noundef %128)
  %130 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_INSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEES8_IiESaISA_IKiSE_EEEixERSG_(ptr noundef nonnull align 8 dereferenceable(48) %114, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %131 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEEixERSB_(ptr noundef nonnull align 8 dereferenceable(48) %130, ptr noundef nonnull align 8 dereferenceable(40) %18)
  store i32 %129, ptr %131, align 4, !tbaa !31
  br label %132

132:                                              ; preds = %.thread, %124
  %.142 = phi i32 [ %129, %124 ], [ %123, %.thread ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %145

133:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #4
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #4
  %134 = load i32, ptr %4, align 4, !tbaa !31
  %135 = invoke noundef i32 @_ZN7glslang22TDefaultIoResolverBase11getFreeSlotEiii(ptr noundef nonnull align 8 dereferenceable(224) %0, i32 noundef %134, i32 noundef 0, i32 noundef %112)
          to label %136 unwind label %143

136:                                              ; preds = %133
  %137 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEEixERSB_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(40) %18)
          to label %138 unwind label %143

138:                                              ; preds = %136
  store i32 %135, ptr %137, align 4, !tbaa !31
  %139 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_INSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEES8_IiESaISA_IKiSE_EEEixERSG_(ptr noundef nonnull align 8 dereferenceable(48) %114, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %140 unwind label %143

140:                                              ; preds = %138
  %141 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEEaSERKSE_(ptr noundef nonnull align 8 dereferenceable(48) %139, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %142 unwind label %143

142:                                              ; preds = %140
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #4
  br label %145

143:                                              ; preds = %140, %138, %136, %133
  %144 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  resume { ptr, i32 } %144

145:                                              ; preds = %142, %132
  %.2 = phi i32 [ %135, %142 ], [ %.142, %132 ]
  %146 = getelementptr inbounds i8, ptr %2, i64 28
  store i32 %.2, ptr %146, align 4, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  br label %147

147:                                              ; preds = %109, %145, %102, %92, %81, %38, %20
  %.1 = phi i32 [ %46, %38 ], [ -1, %81 ], [ -1, %92 ], [ -1, %102 ], [ -1, %20 ], [ %108, %109 ], [ %.2, %145 ]
  ret i32 %.1
}

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

!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, !10, i64 8}
!6 = !{!"_ZTSN7glslang13TVarEntryInfoE", !7, i64 0, !10, i64 8, !11, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !13, i64 40}
!7 = !{!"long long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!"_ZTS11EShLanguage", !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"vtable pointer", !9, i64 0}
!16 = !{!6, !12, i64 28}
!17 = !{!18, !10, i64 72}
!18 = !{!"_ZTSN7glslang22TDefaultIoResolverBaseE", !19, i64 0, !20, i64 8, !11, i64 64, !10, i64 72, !12, i64 80, !12, i64 84, !12, i64 88, !8, i64 92, !8, i64 112}
!19 = !{!"_ZTSN7glslang14TIoMapResolverE"}
!20 = !{!"_ZTSSt13unordered_mapIiSt6vectorIiSaIiEESt4hashIiESt8equal_toIiESaISt4pairIKiS2_EEE", !21, i64 0}
!21 = !{!"_ZTSSt10_HashtableIiSt4pairIKiSt6vectorIiSaIiEEESaIS5_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb0ELb0ELb1EEEE", !10, i64 0, !22, i64 8, !23, i64 16, !22, i64 24, !24, i64 32, !10, i64 48}
!22 = !{!"long", !8, i64 0}
!23 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !10, i64 0}
!24 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !25, i64 0, !22, i64 8}
!25 = !{!"float", !8, i64 0}
!26 = !{!27, !12, i64 12}
!27 = !{!"_ZTSN7glslang10SpvVersionE", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !11, i64 16}
!28 = !{!29, !10, i64 0}
!29 = !{!"_ZTSN7glslang8TTypeLocE", !10, i64 0, !30, i64 8}
!30 = !{!"_ZTSN7glslang10TSourceLocE", !10, i64 0, !12, i64 8, !12, i64 12, !12, i64 16}
!31 = !{!12, !12, i64 0}
!32 = !{!33, !12, i64 40}
!33 = !{!"_ZTSSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiE", !34, i64 0, !12, i64 40}
!34 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEE", !35, i64 0, !22, i64 16, !8, i64 24}
!35 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEE12_Alloc_hiderE", !36, i64 0, !10, i64 8}
!36 = !{!"_ZTSN7glslang14pool_allocatorIcEE", !10, i64 0}
!37 = !{!38, !13, i64 228}
!38 = !{!"_ZTSN7glslang22TDefaultGlslIoResolverE", !18, i64 0, !13, i64 224, !13, i64 228, !39, i64 232, !39, i64 280}
!39 = !{!"_ZTSSt3mapIiS_INSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessIS7_ESaISt4pairIKS7_iEEES8_IiESaISA_IKiSE_EEE", !40, i64 0}
!40 = !{!"_ZTSSt8_Rb_treeIiSt4pairIKiSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessISA_ESaIS0_IKSA_iEEEESt10_Select1stISH_ESB_IiESaISH_EE", !41, i64 0}
!41 = !{!"_ZTSNSt8_Rb_treeIiSt4pairIKiSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcEN7glslang14pool_allocatorIcEEEEiSt4lessISA_ESaIS0_IKSA_iEEEESt10_Select1stISH_ESB_IiESaISH_EE13_Rb_tree_implISK_Lb1EEE", !42, i64 0, !44, i64 8}
!42 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIiEE", !43, i64 0}
!43 = !{!"_ZTSSt4lessIiE"}
!44 = !{!"_ZTSSt15_Rb_tree_header", !45, i64 0, !22, i64 32}
!45 = !{!"_ZTSSt18_Rb_tree_node_base", !46, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!46 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass