; LLVM IR from Try/Tempest :: Engine/thirdparty/spirv_cross (spirv_msl)

; 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.71" = type { i8 }
%"struct.spirv_cross::SPIRType" = type { %"struct.spirv_cross::IVariant.base", i32, i32, i32, i32, i32, %"class.spirv_cross::SmallVector.92", %"class.spirv_cross::SmallVector.416", i32, i8, i8, i32, %"class.spirv_cross::SmallVector.227", %"class.spirv_cross::SmallVector.92", %"struct.spirv_cross::SPIRType::ImageType", %"class.spirv_cross::TypedID.414", %"class.spirv_cross::TypedID.414", %"class.std::unordered_set.165" }
%"struct.spirv_cross::IVariant.base" = type <{ ptr, %"class.spirv_cross::TypedID.413" }>
%"class.spirv_cross::TypedID.413" = type { i32 }
%"class.spirv_cross::SmallVector.416" = type { %"class.spirv_cross::VectorView.417", i64, %"class.spirv_cross::AlignedBuffer.418" }
%"class.spirv_cross::VectorView.417" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.418" = type { [8 x i8] }
%"class.spirv_cross::SmallVector.227" = type { %"class.spirv_cross::VectorView.228", i64, %"class.spirv_cross::AlignedBuffer.229" }
%"class.spirv_cross::VectorView.228" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.229" = type { [32 x i8] }
%"class.spirv_cross::SmallVector.92" = type { %"class.spirv_cross::VectorView.93", i64, %"class.spirv_cross::AlignedBuffer.94" }
%"class.spirv_cross::VectorView.93" = type { ptr, i64 }
%"class.spirv_cross::AlignedBuffer.94" = type { [32 x i8] }
%"struct.spirv_cross::SPIRType::ImageType" = type { %"class.spirv_cross::TypedID.414", i32, i8, i8, i8, i32, i32, i32 }
%"class.spirv_cross::TypedID.414" = type { i32 }
%"class.std::unordered_set.165" = type { %"class.std::_Hashtable.166" }
%"class.std::_Hashtable.166" = 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 }

@.str.25 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.161 = external hidden unnamed_addr constant [39 x i8], align 1
@_ZZN11spirv_cross11CompilerMSL22unpack_expression_typeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_8SPIRTypeEjbbE11swizzle_lut = external hidden global [4 x ptr], align 16
@__PRETTY_FUNCTION__._ZN11spirv_cross11CompilerMSL22unpack_expression_typeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_8SPIRTypeEjbb = external hidden unnamed_addr constant [112 x i8], align 1
@.str.166 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.167 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.168 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.169 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.170 = external hidden unnamed_addr constant [6 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.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

; 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 nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; 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 @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

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

declare noundef zeroext i1 @_ZNK11spirv_cross8Compiler8is_arrayERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(336)) #4

declare noundef zeroext i1 @_ZNK11spirv_cross8Compiler9is_vectorERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(336)) #4

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

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

declare noundef zeroext i1 @_ZNK11spirv_cross8Compiler9is_matrixERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(336)) #4

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

declare void @_ZN11spirv_cross12CompilerGLSL18enclose_expressionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 8 dereferenceable(32)) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11spirv_cross11CompilerMSL22unpack_expression_typeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_8SPIRTypeEjbb(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(12482) %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(336) %3, i32 noundef %4, i1 noundef zeroext %5, i1 noundef zeroext %6) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca ptr, align 8
  %16 = alloca i8, align 1
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca i1, align 1
  %19 = alloca %"class.std::allocator.71", align 1
  %20 = alloca i1, align 1
  %21 = alloca i1, align 1
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i1, align 1
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca i32, align 4
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca ptr, align 8
  %32 = alloca i1, align 1
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca i32, align 4
  %36 = alloca %"class.std::__cxx11::basic_string", align 8
  %37 = alloca %"class.std::__cxx11::basic_string", align 8
  %38 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %8, align 8
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i32 %4, ptr %12, align 4, !tbaa !9
  %39 = zext i1 %5 to i8
  store i8 %39, ptr %13, align 1, !tbaa !11
  %40 = zext i1 %6 to i8
  store i8 %40, ptr %14, align 1, !tbaa !11
  %41 = load ptr, ptr %9, align 8
  %42 = load i32, ptr %12, align 4, !tbaa !9
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %44, label %48

44:                                               ; preds = %7
  %45 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %46 = trunc i8 %45 to i1
  br i1 %46, label %48, label %47

47:                                               ; preds = %44
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EOS4_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  br label %330

48:                                               ; preds = %44, %7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store ptr null, ptr %15, align 8, !tbaa !5
  %49 = load i32, ptr %12, align 4, !tbaa !9
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %54

51:                                               ; preds = %48
  %52 = load i32, ptr %12, align 4, !tbaa !9
  %53 = call noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %41, i32 noundef %52)
  store ptr %53, ptr %15, align 8, !tbaa !5
  br label %54

54:                                               ; preds = %51, %48
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #7
  %55 = load ptr, ptr %15, align 8, !tbaa !5
  %56 = icmp ne ptr %55, null
  br i1 %56, label %57, label %62

57:                                               ; preds = %54
  %58 = load ptr, ptr %15, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %58, i32 0, i32 4
  %60 = load i32, ptr %59, align 8, !tbaa !15
  %61 = icmp ugt i32 %60, 4
  br label %62

62:                                               ; preds = %57, %54
  %63 = phi i1 [ false, %54 ], [ %61, %57 ]
  %64 = zext i1 %63 to i8
  store i8 %64, ptr %16, align 1, !tbaa !11
  %65 = load ptr, ptr %15, align 8, !tbaa !5
  %66 = icmp ne ptr %65, null
  store i1 false, ptr %18, align 1
  store i1 false, ptr %20, align 1
  store i1 false, ptr %21, align 1
  store i1 false, ptr %24, align 1
  br i1 %66, label %67, label %96

67:                                               ; preds = %62
  %68 = load ptr, ptr %15, align 8, !tbaa !5
  %69 = call noundef zeroext i1 @_ZNK11spirv_cross8Compiler9is_vectorERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176) %41, ptr noundef nonnull align 8 dereferenceable(336) %68)
  br i1 %69, label %70, label %96

70:                                               ; preds = %67
  %71 = load ptr, ptr %15, align 8, !tbaa !5
  %72 = call noundef zeroext i1 @_ZNK11spirv_cross8Compiler8is_arrayERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176) %41, ptr noundef nonnull align 8 dereferenceable(336) %71)
  br i1 %72, label %73, label %96

73:                                               ; preds = %70
  %74 = load i8, ptr %16, align 1, !tbaa !11, !range !13, !noundef !14
  %75 = trunc i8 %74 to i1
  br i1 %75, label %96, label %76

76:                                               ; preds = %73
  %77 = load ptr, ptr %15, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %77, i32 0, i32 4
  %79 = load i32, ptr %78, align 8, !tbaa !15
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %80, i32 0, i32 4
  %82 = load i32, ptr %81, align 8, !tbaa !15
  %83 = icmp ugt i32 %79, %82
  br i1 %83, label %84, label %96

84:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #7
  store i1 true, ptr %18, align 1
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %85, i32 0, i32 4
  %87 = load i32, ptr %86, align 8, !tbaa !15
  %88 = sub i32 %87, 1
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds [4 x ptr], ptr @_ZZN11spirv_cross11CompilerMSL22unpack_expression_typeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_8SPIRTypeEjbbE11swizzle_lut, i64 0, i64 %89
  %91 = load ptr, ptr %90, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #7
  store i1 true, ptr %20, align 1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  store i1 true, ptr %21, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef %91, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %92 unwind label %124

92:                                               ; preds = %84
  store i1 true, ptr %24, align 1
  %93 = invoke noundef zeroext i1 @_ZL20expression_ends_withRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %94 unwind label %128

94:                                               ; preds = %92
  %95 = xor i1 %93, true
  br label %96

96:                                               ; preds = %94, %76, %73, %70, %67, %62
  %97 = phi i1 [ false, %76 ], [ false, %73 ], [ false, %70 ], [ false, %67 ], [ false, %62 ], [ %95, %94 ]
  %98 = load i1, ptr %24, align 1
  br i1 %98, label %99, label %100

99:                                               ; preds = %96
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  br label %100

100:                                              ; preds = %99, %96
  %101 = load i1, ptr %21, align 1
  br i1 %101, label %102, label %103

102:                                              ; preds = %100
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  br label %103

103:                                              ; preds = %102, %100
  %104 = load i1, ptr %20, align 1
  br i1 %104, label %105, label %106

105:                                              ; preds = %103
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  br label %106

106:                                              ; preds = %105, %103
  %107 = load i1, ptr %18, align 1
  br i1 %107, label %108, label %109

108:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #7
  br label %109

109:                                              ; preds = %108, %106
  br i1 %97, label %110, label %159

110:                                              ; preds = %109
  %111 = load ptr, ptr %11, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %111, i32 0, i32 4
  %113 = load i32, ptr %112, align 8, !tbaa !15
  %114 = icmp uge i32 %113, 1
  br i1 %114, label %115, label %120

115:                                              ; preds = %110
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %116, i32 0, i32 4
  %118 = load i32, ptr %117, align 8, !tbaa !15
  %119 = icmp ule i32 %118, 3
  br label %120

120:                                              ; preds = %115, %110
  %121 = phi i1 [ false, %110 ], [ %119, %115 ]
  br i1 %121, label %122, label %123

122:                                              ; preds = %120
  br label %146

123:                                              ; preds = %120
  call void @__assert_fail(ptr noundef @.str.161, ptr noundef @.str.25, i32 noundef 5482, ptr noundef @__PRETTY_FUNCTION__._ZN11spirv_cross11CompilerMSL22unpack_expression_typeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_8SPIRTypeEjbb) #8
  unreachable

124:                                              ; preds = %84
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %22, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %23, align 4
  br label %135

128:                                              ; preds = %92
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %22, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %23, align 4
  %132 = load i1, ptr %24, align 1
  br i1 %132, label %133, label %134

133:                                              ; preds = %128
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  br label %134

134:                                              ; preds = %133, %128
  br label %135

135:                                              ; preds = %134, %124
  %136 = load i1, ptr %21, align 1
  br i1 %136, label %137, label %138

137:                                              ; preds = %135
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #7
  br label %138

138:                                              ; preds = %137, %135
  %139 = load i1, ptr %20, align 1
  br i1 %139, label %140, label %141

140:                                              ; preds = %138
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  br label %141

141:                                              ; preds = %140, %138
  %142 = load i1, ptr %18, align 1
  br i1 %142, label %143, label %144

143:                                              ; preds = %141
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #7
  br label %144

144:                                              ; preds = %143, %141
  br label %329

145:                                              ; No predecessors!
  br label %146

146:                                              ; preds = %145, %122
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #7
  call void @_ZN11spirv_cross12CompilerGLSL18enclose_expressionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %25, ptr noundef nonnull align 8 dereferenceable(9848) %41, ptr noundef nonnull align 8 dereferenceable(32) %2)
  %147 = load ptr, ptr %11, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %147, i32 0, i32 4
  %149 = load i32, ptr %148, align 8, !tbaa !15
  %150 = sub i32 %149, 1
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds [4 x ptr], ptr @_ZZN11spirv_cross11CompilerMSL22unpack_expression_typeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_8SPIRTypeEjbbE11swizzle_lut, i64 0, i64 %151
  %153 = load ptr, ptr %152, align 8, !tbaa !5
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef %153)
          to label %154 unwind label %155

154:                                              ; preds = %146
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #7
  store i32 1, ptr %26, align 4
  br label %328

155:                                              ; preds = %146
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %22, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %23, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #7
  br label %329

159:                                              ; preds = %109
  %160 = load ptr, ptr %15, align 8, !tbaa !5
  %161 = icmp ne ptr %160, null
  br i1 %161, label %162, label %207

162:                                              ; preds = %159
  %163 = load ptr, ptr %15, align 8, !tbaa !5
  %164 = call noundef zeroext i1 @_ZNK11spirv_cross8Compiler9is_matrixERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176) %41, ptr noundef nonnull align 8 dereferenceable(336) %163)
  br i1 %164, label %165, label %207

165:                                              ; preds = %162
  %166 = load ptr, ptr %11, align 8, !tbaa !5
  %167 = call noundef zeroext i1 @_ZNK11spirv_cross8Compiler9is_vectorERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176) %41, ptr noundef nonnull align 8 dereferenceable(336) %166)
  br i1 %167, label %168, label %207

168:                                              ; preds = %165
  %169 = load i8, ptr %16, align 1, !tbaa !11, !range !13, !noundef !14
  %170 = trunc i8 %169 to i1
  br i1 %170, label %207, label %171

171:                                              ; preds = %168
  %172 = load ptr, ptr %15, align 8, !tbaa !5
  %173 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %172, i32 0, i32 4
  %174 = load i32, ptr %173, align 8, !tbaa !15
  %175 = load ptr, ptr %11, align 8, !tbaa !5
  %176 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %175, i32 0, i32 4
  %177 = load i32, ptr %176, align 8, !tbaa !15
  %178 = icmp ugt i32 %174, %177
  br i1 %178, label %179, label %207

179:                                              ; preds = %171
  %180 = load ptr, ptr %11, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %180, i32 0, i32 4
  %182 = load i32, ptr %181, align 8, !tbaa !15
  %183 = icmp uge i32 %182, 1
  br i1 %183, label %184, label %189

184:                                              ; preds = %179
  %185 = load ptr, ptr %11, align 8, !tbaa !5
  %186 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %185, i32 0, i32 4
  %187 = load i32, ptr %186, align 8, !tbaa !15
  %188 = icmp ule i32 %187, 4
  br label %189

189:                                              ; preds = %184, %179
  %190 = phi i1 [ false, %179 ], [ %188, %184 ]
  br i1 %190, label %191, label %192

191:                                              ; preds = %189
  br label %194

192:                                              ; preds = %189
  call void @__assert_fail(ptr noundef @.str.166, ptr noundef @.str.25, i32 noundef 5490, ptr noundef @__PRETTY_FUNCTION__._ZN11spirv_cross11CompilerMSL22unpack_expression_typeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_8SPIRTypeEjbb) #8
  unreachable

193:                                              ; No predecessors!
  br label %194

194:                                              ; preds = %193, %191
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #7
  call void @_ZN11spirv_cross12CompilerGLSL18enclose_expressionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %27, ptr noundef nonnull align 8 dereferenceable(9848) %41, ptr noundef nonnull align 8 dereferenceable(32) %2)
  %195 = load ptr, ptr %11, align 8, !tbaa !5
  %196 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %195, i32 0, i32 4
  %197 = load i32, ptr %196, align 8, !tbaa !15
  %198 = sub i32 %197, 1
  %199 = zext i32 %198 to i64
  %200 = getelementptr inbounds [4 x ptr], ptr @_ZZN11spirv_cross11CompilerMSL22unpack_expression_typeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_8SPIRTypeEjbbE11swizzle_lut, i64 0, i64 %199
  %201 = load ptr, ptr %200, align 8, !tbaa !5
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef %201)
          to label %202 unwind label %203

202:                                              ; preds = %194
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #7
  store i32 1, ptr %26, align 4
  br label %328

203:                                              ; preds = %194
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %22, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %23, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #7
  br label %329

207:                                              ; preds = %171, %168, %165, %162, %159
  %208 = load ptr, ptr %11, align 8, !tbaa !5
  %209 = call noundef zeroext i1 @_ZNK11spirv_cross8Compiler9is_matrixERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176) %41, ptr noundef nonnull align 8 dereferenceable(336) %208)
  br i1 %209, label %210, label %318

210:                                              ; preds = %207
  %211 = load ptr, ptr %15, align 8, !tbaa !5
  %212 = icmp ne ptr %211, null
  br i1 %212, label %215, label %213

213:                                              ; preds = %210
  %214 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %214, ptr %15, align 8, !tbaa !5
  br label %215

215:                                              ; preds = %213, %210
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %216 = load ptr, ptr %11, align 8, !tbaa !5
  %217 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %216, i32 0, i32 4
  %218 = load i32, ptr %217, align 8, !tbaa !15
  store i32 %218, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %219 = load ptr, ptr %11, align 8, !tbaa !5
  %220 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %219, i32 0, i32 5
  %221 = load i32, ptr %220, align 4, !tbaa !42
  store i32 %221, ptr %29, align 4, !tbaa !9
  %222 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %223 = trunc i8 %222 to i1
  br i1 %223, label %224, label %225

224:                                              ; preds = %215
  call void @_ZSt4swapIjENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %29) #7
  br label %225

225:                                              ; preds = %224, %215
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %226 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %227 = trunc i8 %226 to i1
  br i1 %227, label %228, label %232

228:                                              ; preds = %225
  %229 = load ptr, ptr %15, align 8, !tbaa !5
  %230 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %229, i32 0, i32 5
  %231 = load i32, ptr %230, align 4, !tbaa !42
  br label %236

232:                                              ; preds = %225
  %233 = load ptr, ptr %15, align 8, !tbaa !5
  %234 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %233, i32 0, i32 4
  %235 = load i32, ptr %234, align 8, !tbaa !15
  br label %236

236:                                              ; preds = %232, %228
  %237 = phi i32 [ %231, %228 ], [ %235, %232 ]
  store i32 %237, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %238 = load ptr, ptr %11, align 8, !tbaa !5
  %239 = getelementptr inbounds %"struct.spirv_cross::SPIRType", ptr %238, i32 0, i32 3
  %240 = load i32, ptr %239, align 4, !tbaa !43
  %241 = icmp eq i32 %240, 16
  %242 = zext i1 %241 to i64
  %243 = select i1 %241, ptr @.str.167, ptr @.str.168
  store ptr %243, ptr %31, align 8, !tbaa !5
  store i1 false, ptr %32, align 1
  call void @_ZN11spirv_cross4joinIJRPKcRjRA2_S1_S4_S6_EEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 1 dereferenceable(2) @.str.169, ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 1 dereferenceable(2) @.str.58)
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  store ptr @.str.35, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %244 = load i32, ptr %30, align 4, !tbaa !9
  %245 = icmp ugt i32 %244, 4
  %246 = zext i1 %245 to i64
  %247 = select i1 %245, ptr @.str.170, ptr @.str.35
  store ptr %247, ptr %34, align 8, !tbaa !5
  %248 = load i32, ptr %30, align 4, !tbaa !9
  %249 = load i32, ptr %28, align 4, !tbaa !9
  %250 = icmp ne i32 %248, %249
  br i1 %250, label %251, label %257

251:                                              ; preds = %236
  %252 = load i32, ptr %28, align 4, !tbaa !9
  %253 = sub i32 %252, 1
  %254 = zext i32 %253 to i64
  %255 = getelementptr inbounds [4 x ptr], ptr @_ZZN11spirv_cross11CompilerMSL22unpack_expression_typeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_8SPIRTypeEjbbE11swizzle_lut, i64 0, i64 %254
  %256 = load ptr, ptr %255, align 8, !tbaa !5
  store ptr %256, ptr %33, align 8, !tbaa !5
  br label %257

257:                                              ; preds = %251, %236
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  store i32 0, ptr %35, align 4, !tbaa !9
  br label %258

258:                                              ; preds = %303, %257
  %259 = load i32, ptr %35, align 4, !tbaa !9
  %260 = load i32, ptr %29, align 4, !tbaa !9
  %261 = icmp ult i32 %259, %260
  br i1 %261, label %263, label %262

262:                                              ; preds = %258
  store i32 2, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  br label %307

263:                                              ; preds = %258
  %264 = load i32, ptr %35, align 4, !tbaa !9
  %265 = icmp ugt i32 %264, 0
  br i1 %265, label %266, label %273

266:                                              ; preds = %263
  %267 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef @.str.55)
          to label %268 unwind label %269

268:                                              ; preds = %266
  br label %273

269:                                              ; preds = %266
  %270 = landingpad { ptr, i32 }
          cleanup
  %271 = extractvalue { ptr, i32 } %270, 0
  store ptr %271, ptr %22, align 8
  %272 = extractvalue { ptr, i32 } %270, 1
  store i32 %272, ptr %23, align 4
  br label %306

273:                                              ; preds = %268, %263
  %274 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %275 = trunc i8 %274 to i1
  br i1 %275, label %276, label %289

276:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 32, ptr %36) #7
  invoke void @_ZN11spirv_cross4joinIJRPKcRjRA2_S1_RNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_S4_S6_S6_S3_EEESC_DpOT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %36, ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 1 dereferenceable(2) @.str.58, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 1 dereferenceable(2) @.str.68, ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 1 dereferenceable(2) @.str.69, ptr noundef nonnull align 1 dereferenceable(2) @.str.53, ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %277 unwind label %280

277:                                              ; preds = %276
  %278 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %36)
          to label %279 unwind label %284

279:                                              ; preds = %277
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #7
  br label %302

280:                                              ; preds = %276
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %22, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %23, align 4
  br label %288

284:                                              ; preds = %277
  %285 = landingpad { ptr, i32 }
          cleanup
  %286 = extractvalue { ptr, i32 } %285, 0
  store ptr %286, ptr %22, align 8
  %287 = extractvalue { ptr, i32 } %285, 1
  store i32 %287, ptr %23, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #7
  br label %288

288:                                              ; preds = %284, %280
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #7
  br label %306

289:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 32, ptr %37) #7
  invoke void @_ZN11spirv_cross4joinIJRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA2_KcRjSA_RPS8_SD_EEES6_DpOT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %37, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 1 dereferenceable(2) @.str.68, ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 1 dereferenceable(2) @.str.69, ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %290 unwind label %293

290:                                              ; preds = %289
  %291 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %37)
          to label %292 unwind label %297

292:                                              ; preds = %290
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #7
  br label %302

293:                                              ; preds = %289
  %294 = landingpad { ptr, i32 }
          cleanup
  %295 = extractvalue { ptr, i32 } %294, 0
  store ptr %295, ptr %22, align 8
  %296 = extractvalue { ptr, i32 } %294, 1
  store i32 %296, ptr %23, align 4
  br label %301

297:                                              ; preds = %290
  %298 = landingpad { ptr, i32 }
          cleanup
  %299 = extractvalue { ptr, i32 } %298, 0
  store ptr %299, ptr %22, align 8
  %300 = extractvalue { ptr, i32 } %298, 1
  store i32 %300, ptr %23, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #7
  br label %301

301:                                              ; preds = %297, %293
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #7
  br label %306

302:                                              ; preds = %292, %279
  br label %303

303:                                              ; preds = %302
  %304 = load i32, ptr %35, align 4, !tbaa !9
  %305 = add i32 %304, 1
  store i32 %305, ptr %35, align 4, !tbaa !9
  br label %258, !llvm.loop !44

306:                                              ; preds = %301, %288, %269
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  br label %315

307:                                              ; preds = %262
  %308 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef @.str.53)
          to label %309 unwind label %311

309:                                              ; preds = %307
  store i1 true, ptr %32, align 1
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  %310 = load i1, ptr %32, align 1
  br i1 %310, label %317, label %316

311:                                              ; preds = %307
  %312 = landingpad { ptr, i32 }
          cleanup
  %313 = extractvalue { ptr, i32 } %312, 0
  store ptr %313, ptr %22, align 8
  %314 = extractvalue { ptr, i32 } %312, 1
  store i32 %314, ptr %23, align 4
  br label %315

315:                                              ; preds = %311, %306
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %329

316:                                              ; preds = %309
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #7
  br label %317

317:                                              ; preds = %316, %309
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %328

318:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 32, ptr %38) #7
  %319 = load ptr, ptr %11, align 8, !tbaa !5
  %320 = load ptr, ptr %41, align 8, !tbaa !46
  %321 = getelementptr inbounds ptr, ptr %320, i64 19
  %322 = load ptr, ptr %321, align 8
  call void %322(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %38, ptr noundef nonnull align 8 dereferenceable(12482) %41, ptr noundef nonnull align 8 dereferenceable(336) %319, i32 noundef 0)
  invoke void @_ZN11spirv_cross4joinIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA2_KcRS6_S9_EEES6_DpOT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 1 dereferenceable(2) @.str.58, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 1 dereferenceable(2) @.str.53)
          to label %323 unwind label %324

323:                                              ; preds = %318
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #7
  store i32 1, ptr %26, align 4
  br label %328

324:                                              ; preds = %318
  %325 = landingpad { ptr, i32 }
          cleanup
  %326 = extractvalue { ptr, i32 } %325, 0
  store ptr %326, ptr %22, align 8
  %327 = extractvalue { ptr, i32 } %325, 1
  store i32 %327, ptr %23, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #7
  br label %329

328:                                              ; preds = %323, %317, %202, %154
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %330

329:                                              ; preds = %324, %315, %203, %155, %144
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %331

330:                                              ; preds = %328, %47
  ret void

331:                                              ; preds = %329
  %332 = load ptr, ptr %22, align 8
  %333 = load i32, ptr %23, align 4
  %334 = insertvalue { ptr, i32 } poison, ptr %332, 0
  %335 = insertvalue { ptr, i32 } %334, i32 %333, 1
  resume { ptr, i32 } %335
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIjENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #6

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !10, i64 24}
!16 = !{!"_ZTSN11spirv_cross8SPIRTypeE", !17, i64 0, !19, i64 12, !20, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !21, i64 32, !25, i64 88, !10, i64 120, !12, i64 124, !12, i64 125, !28, i64 128, !29, i64 136, !21, i64 192, !32, i64 248, !33, i64 272, !33, i64 276, !37, i64 280}
!17 = !{!"_ZTSN11spirv_cross8IVariantE", !18, i64 8}
!18 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !10, i64 0}
!19 = !{!"_ZTSN3spv2OpE", !7, i64 0}
!20 = !{!"_ZTSN11spirv_cross8SPIRType8BaseTypeE", !7, i64 0}
!21 = !{!"_ZTSN11spirv_cross11SmallVectorIjLm8EEE", !22, i64 0, !23, i64 16, !24, i64 24}
!22 = !{!"_ZTSN11spirv_cross10VectorViewIjEE", !6, i64 0, !23, i64 8}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTSN11spirv_cross13AlignedBufferIjLm8EEE", !7, i64 0}
!25 = !{!"_ZTSN11spirv_cross11SmallVectorIbLm8EEE", !26, i64 0, !23, i64 16, !27, i64 24}
!26 = !{!"_ZTSN11spirv_cross10VectorViewIbEE", !6, i64 0, !23, i64 8}
!27 = !{!"_ZTSN11spirv_cross13AlignedBufferIbLm8EEE", !7, i64 0}
!28 = !{!"_ZTSN3spv12StorageClassE", !7, i64 0}
!29 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE1EEELm8EEE", !30, i64 0, !23, i64 16, !31, i64 24}
!30 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEE", !6, i64 0, !23, i64 8}
!31 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE1EEELm8EEE", !7, i64 0}
!32 = !{!"_ZTSN11spirv_cross8SPIRType9ImageTypeE", !33, i64 0, !34, i64 4, !12, i64 8, !12, i64 9, !12, i64 10, !10, i64 12, !35, i64 16, !36, i64 20}
!33 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE1EEE", !10, i64 0}
!34 = !{!"_ZTSN3spv3DimE", !7, i64 0}
!35 = !{!"_ZTSN3spv11ImageFormatE", !7, i64 0}
!36 = !{!"_ZTSN3spv15AccessQualifierE", !7, i64 0}
!37 = !{!"_ZTSSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE", !38, i64 0}
!38 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEE", !6, i64 0, !23, i64 8, !39, i64 16, !23, i64 24, !40, i64 32, !6, i64 48}
!39 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!40 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !41, i64 0, !23, i64 8}
!41 = !{!"float", !7, i64 0}
!42 = !{!16, !10, i64 28}
!43 = !{!16, !10, i64 20}
!44 = distinct !{!44, !45}
!45 = !{!"llvm.loop.mustprogress"}
!46 = !{!47, !47, i64 0}
!47 = !{!"vtable pointer", !8, 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"

%"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.71" = type { i8 }

@.str.25 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.161 = external hidden unnamed_addr constant [39 x i8], align 1
@_ZZN11spirv_cross11CompilerMSL22unpack_expression_typeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_8SPIRTypeEjbbE11swizzle_lut = external hidden local_unnamed_addr global [4 x ptr], align 16
@__PRETTY_FUNCTION__._ZN11spirv_cross11CompilerMSL22unpack_expression_typeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_8SPIRTypeEjbb = external hidden unnamed_addr constant [112 x i8], align 1
@.str.166 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.167 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.168 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.169 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.170 = external hidden unnamed_addr constant [6 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; 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 nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; 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 @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

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

declare noundef zeroext i1 @_ZNK11spirv_cross8Compiler8is_arrayERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(336)) local_unnamed_addr #4

declare noundef zeroext i1 @_ZNK11spirv_cross8Compiler9is_vectorERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(336)) local_unnamed_addr #4

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

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

declare noundef zeroext i1 @_ZNK11spirv_cross8Compiler9is_matrixERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176), ptr noundef nonnull align 8 dereferenceable(336)) local_unnamed_addr #4

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

declare void @_ZN11spirv_cross12CompilerGLSL18enclose_expressionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(9848), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11spirv_cross11CompilerMSL22unpack_expression_typeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_8SPIRTypeEjbb(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(12482) %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(336) %3, i32 noundef %4, i1 noundef zeroext %5, i1 noundef zeroext %6) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator.71", align 1
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = icmp ne i32 %4, 0
  %brmerge = or i1 %22, %5
  br i1 %brmerge, label %24, label %23

23:                                               ; preds = %7
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EOS4_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  br label %150

24:                                               ; preds = %7
  br i1 %22, label %25, label %81

25:                                               ; preds = %24
  %26 = tail call noundef nonnull align 8 dereferenceable(336) ptr @_ZN11spirv_cross8Compiler3getINS_8SPIRTypeEEERT_j(ptr noundef nonnull align 8 dereferenceable(3176) %1, i32 noundef %4)
  %27 = getelementptr inbounds i8, ptr %26, i64 24
  %28 = load i32, ptr %27, align 8, !tbaa !5
  %29 = icmp ugt i32 %28, 4
  %30 = tail call noundef zeroext i1 @_ZNK11spirv_cross8Compiler9is_vectorERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176) %1, ptr noundef nonnull align 8 dereferenceable(336) %26)
  br i1 %30, label %31, label %.thread112

31:                                               ; preds = %25
  %32 = tail call noundef zeroext i1 @_ZNK11spirv_cross8Compiler8is_arrayERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176) %1, ptr noundef nonnull align 8 dereferenceable(336) %26)
  %.not82 = xor i1 %32, true
  %brmerge83 = select i1 %.not82, i1 true, i1 %29
  br i1 %brmerge83, label %.thread112, label %33

33:                                               ; preds = %31
  %34 = load i32, ptr %27, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %3, i64 24
  %36 = load i32, ptr %35, align 8, !tbaa !5
  %37 = icmp ugt i32 %34, %36
  br i1 %37, label %38, label %.thread112

38:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  %39 = add i32 %36, -1
  %40 = zext i32 %39 to i64
  %41 = getelementptr inbounds [4 x ptr], ptr @_ZZN11spirv_cross11CompilerMSL22unpack_expression_typeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_8SPIRTypeEjbbE11swizzle_lut, i64 0, i64 %40
  %42 = load ptr, ptr %41, align 8, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef %42, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %43 unwind label %48

43:                                               ; preds = %38
  %44 = invoke noundef zeroext i1 @_ZL20expression_ends_withRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %.critedge87 unwind label %50

.critedge87:                                      ; preds = %43
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br i1 %44, label %.thread112, label %45

45:                                               ; preds = %.critedge87
  %46 = load i32, ptr %35, align 8, !tbaa !5
  %47 = add i32 %46, -1
  %or.cond = icmp ult i32 %47, 3
  br i1 %or.cond, label %53, label %.critedge

.critedge:                                        ; preds = %45
  call void @__assert_fail(ptr noundef nonnull @.str.161, ptr noundef nonnull @.str.25, i32 noundef 5482, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN11spirv_cross11CompilerMSL22unpack_expression_typeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_8SPIRTypeEjbb) #8
  unreachable

48:                                               ; preds = %38
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %52

50:                                               ; preds = %43
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  br label %52

52:                                               ; preds = %48, %50
  %.pn = phi { ptr, i32 } [ %51, %50 ], [ %49, %48 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %149

53:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #7
  call void @_ZN11spirv_cross12CompilerGLSL18enclose_expressionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull align 8 dereferenceable(9848) %1, ptr noundef nonnull align 8 dereferenceable(32) %2)
  %54 = load i32, ptr %35, align 8, !tbaa !5
  %55 = add i32 %54, -1
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds [4 x ptr], ptr @_ZZN11spirv_cross11CompilerMSL22unpack_expression_typeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_8SPIRTypeEjbbE11swizzle_lut, i64 0, i64 %56
  %58 = load ptr, ptr %57, align 8, !tbaa !37
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef %58)
          to label %59 unwind label %60

59:                                               ; preds = %53
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  br label %150

60:                                               ; preds = %53
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  br label %149

.thread112:                                       ; preds = %33, %31, %25, %.critedge87
  %62 = call noundef zeroext i1 @_ZNK11spirv_cross8Compiler9is_matrixERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176) %1, ptr noundef nonnull align 8 dereferenceable(336) %26)
  br i1 %62, label %63, label %81

63:                                               ; preds = %.thread112
  %64 = call noundef zeroext i1 @_ZNK11spirv_cross8Compiler9is_vectorERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176) %1, ptr noundef nonnull align 8 dereferenceable(336) %3)
  %.not88 = xor i1 %64, true
  %brmerge89 = select i1 %.not88, i1 true, i1 %29
  br i1 %brmerge89, label %81, label %65

65:                                               ; preds = %63
  %66 = load i32, ptr %27, align 8, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %3, i64 24
  %68 = load i32, ptr %67, align 8, !tbaa !5
  %69 = icmp ugt i32 %66, %68
  br i1 %69, label %70, label %81

70:                                               ; preds = %65
  %71 = add i32 %68, -1
  %or.cond90 = icmp ult i32 %71, 4
  br i1 %or.cond90, label %72, label %.critedge2

.critedge2:                                       ; preds = %70
  call void @__assert_fail(ptr noundef nonnull @.str.166, ptr noundef nonnull @.str.25, i32 noundef 5490, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN11spirv_cross11CompilerMSL22unpack_expression_typeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_8SPIRTypeEjbb) #8
  unreachable

72:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #7
  call void @_ZN11spirv_cross12CompilerGLSL18enclose_expressionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef nonnull align 8 dereferenceable(9848) %1, ptr noundef nonnull align 8 dereferenceable(32) %2)
  %73 = load i32, ptr %67, align 8, !tbaa !5
  %74 = add i32 %73, -1
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds [4 x ptr], ptr @_ZZN11spirv_cross11CompilerMSL22unpack_expression_typeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_8SPIRTypeEjbbE11swizzle_lut, i64 0, i64 %75
  %77 = load ptr, ptr %76, align 8, !tbaa !37
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef %77)
          to label %78 unwind label %79

78:                                               ; preds = %72
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #7
  br label %150

79:                                               ; preds = %72
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #7
  br label %149

81:                                               ; preds = %24, %63, %65, %.thread112
  %spec.select = phi ptr [ %26, %63 ], [ %26, %65 ], [ %26, %.thread112 ], [ %3, %24 ]
  %82 = call noundef zeroext i1 @_ZNK11spirv_cross8Compiler9is_matrixERKNS_8SPIRTypeE(ptr noundef nonnull align 8 dereferenceable(3176) %1, ptr noundef nonnull align 8 dereferenceable(336) %3)
  br i1 %82, label %83, label %142

83:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  %84 = getelementptr inbounds i8, ptr %3, i64 24
  %85 = load i32, ptr %84, align 8, !tbaa !5
  store i32 %85, ptr %12, align 4, !tbaa !38
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  %86 = getelementptr inbounds i8, ptr %3, i64 28
  %87 = load i32, ptr %86, align 4, !tbaa !39
  store i32 %87, ptr %13, align 4, !tbaa !38
  br i1 %6, label %88, label %.critedge92

88:                                               ; preds = %83
  call void @_ZSt4swapIjENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #7
  br label %89

.critedge92:                                      ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #7
  br label %89

89:                                               ; preds = %.critedge92, %88
  %.sink = phi i64 [ 24, %.critedge92 ], [ 28, %88 ]
  %90 = getelementptr inbounds i8, ptr %spec.select, i64 %.sink
  %91 = load i32, ptr %90, align 4, !tbaa !38
  store i32 %91, ptr %14, align 4, !tbaa !38
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %92 = getelementptr inbounds i8, ptr %3, i64 20
  %93 = load i32, ptr %92, align 4, !tbaa !40
  %94 = icmp eq i32 %93, 16
  %95 = select i1 %94, ptr @.str.167, ptr @.str.168
  store ptr %95, ptr %15, align 8, !tbaa !37
  call void @_ZN11spirv_cross4joinIJRPKcRjRA2_S1_S4_S6_EEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 1 dereferenceable(2) @.str.169, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 1 dereferenceable(2) @.str.58)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  store ptr @.str.35, ptr %16, align 8, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  %96 = icmp ugt i32 %91, 4
  %97 = select i1 %96, ptr @.str.170, ptr @.str.35
  store ptr %97, ptr %17, align 8, !tbaa !37
  %98 = load i32, ptr %12, align 4, !tbaa !38
  %.not70 = icmp eq i32 %91, %98
  br i1 %.not70, label %104, label %99

99:                                               ; preds = %89
  %100 = add i32 %98, -1
  %101 = zext i32 %100 to i64
  %102 = getelementptr inbounds [4 x ptr], ptr @_ZZN11spirv_cross11CompilerMSL22unpack_expression_typeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_8SPIRTypeEjbbE11swizzle_lut, i64 0, i64 %101
  %103 = load ptr, ptr %102, align 8, !tbaa !37
  store ptr %103, ptr %16, align 8, !tbaa !37
  br label %104

104:                                              ; preds = %99, %89
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  store i32 0, ptr %18, align 4, !tbaa !38
  %105 = load i32, ptr %13, align 4, !tbaa !38
  %.not = icmp eq i32 %105, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %104
  br i1 %5, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %111
  %storemerge124.us = phi i32 [ %113, %111 ], [ 0, %.lr.ph ]
  %.not71.us = icmp eq i32 %storemerge124.us, 0
  br i1 %.not71.us, label %108, label %106

106:                                              ; preds = %.lr.ph.split.us
  %107 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.55)
          to label %108 unwind label %.split.us

108:                                              ; preds = %106, %.lr.ph.split.us
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #7
  invoke void @_ZN11spirv_cross4joinIJRPKcRjRA2_S1_RNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_S4_S6_S6_S3_EEESC_DpOT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 1 dereferenceable(2) @.str.58, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 1 dereferenceable(2) @.str.68, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 1 dereferenceable(2) @.str.69, ptr noundef nonnull align 1 dereferenceable(2) @.str.53, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %109 unwind label %.split126.us

109:                                              ; preds = %108
  %110 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %111 unwind label %.split129.us

111:                                              ; preds = %109
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #7
  %112 = load i32, ptr %18, align 4, !tbaa !38
  %113 = add i32 %112, 1
  store i32 %113, ptr %18, align 4, !tbaa !38
  %114 = load i32, ptr %13, align 4, !tbaa !38
  %115 = icmp ult i32 %113, %114
  br i1 %115, label %.lr.ph.split.us, label %._crit_edge, !llvm.loop !41

.split.us:                                        ; preds = %106
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %137

.split126.us:                                     ; preds = %108
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %124

.split129.us:                                     ; preds = %109
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  br label %124

._crit_edge:                                      ; preds = %127, %111, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  %119 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.53)
          to label %138 unwind label %139

.lr.ph.split:                                     ; preds = %.lr.ph, %127
  %storemerge124 = phi i32 [ %129, %127 ], [ 0, %.lr.ph ]
  %.not71 = icmp eq i32 %storemerge124, 0
  br i1 %.not71, label %123, label %120

120:                                              ; preds = %.lr.ph.split
  %121 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.55)
          to label %123 unwind label %.split

.split:                                           ; preds = %120
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %137

123:                                              ; preds = %120, %.lr.ph.split
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #7
  invoke void @_ZN11spirv_cross4joinIJRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA2_KcRjSA_RPS8_SD_EEES6_DpOT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %20, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 1 dereferenceable(2) @.str.68, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 1 dereferenceable(2) @.str.69, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %125 unwind label %132

124:                                              ; preds = %.split129.us, %.split126.us
  %.pn74 = phi { ptr, i32 } [ %118, %.split129.us ], [ %117, %.split126.us ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #7
  br label %137

125:                                              ; preds = %123
  %126 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %127 unwind label %134

127:                                              ; preds = %125
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #7
  %128 = load i32, ptr %18, align 4, !tbaa !38
  %129 = add i32 %128, 1
  store i32 %129, ptr %18, align 4, !tbaa !38
  %130 = load i32, ptr %13, align 4, !tbaa !38
  %131 = icmp ult i32 %129, %130
  br i1 %131, label %.lr.ph.split, label %._crit_edge, !llvm.loop !41

132:                                              ; preds = %123
  %133 = landingpad { ptr, i32 }
          cleanup
  br label %136

134:                                              ; preds = %125
  %135 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  br label %136

136:                                              ; preds = %134, %132
  %.pn72 = phi { ptr, i32 } [ %135, %134 ], [ %133, %132 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #7
  br label %137

137:                                              ; preds = %.split, %.split.us, %136, %124
  %.pn74.pn = phi { ptr, i32 } [ %.pn74, %124 ], [ %.pn72, %136 ], [ %122, %.split ], [ %116, %.split.us ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  br label %141

138:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  br label %150

139:                                              ; preds = %._crit_edge
  %140 = landingpad { ptr, i32 }
          cleanup
  br label %141

141:                                              ; preds = %139, %137
  %.pn74.pn.pn = phi { ptr, i32 } [ %.pn74.pn, %137 ], [ %140, %139 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  br label %149

142:                                              ; preds = %81
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %21) #7
  %143 = load ptr, ptr %1, align 8, !tbaa !43
  %144 = getelementptr inbounds i8, ptr %143, i64 152
  %145 = load ptr, ptr %144, align 8
  call void %145(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %21, ptr noundef nonnull align 8 dereferenceable(12482) %1, ptr noundef nonnull align 8 dereferenceable(336) %3, i32 noundef 0)
  invoke void @_ZN11spirv_cross4joinIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA2_KcRS6_S9_EEES6_DpOT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 1 dereferenceable(2) @.str.58, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 1 dereferenceable(2) @.str.53)
          to label %146 unwind label %147

146:                                              ; preds = %142
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #7
  br label %150

147:                                              ; preds = %142
  %148 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #7
  br label %149

149:                                              ; preds = %52, %147, %141, %79, %60
  %.pn79 = phi { ptr, i32 } [ %61, %60 ], [ %.pn74.pn.pn, %141 ], [ %148, %147 ], [ %80, %79 ], [ %.pn, %52 ]
  resume { ptr, i32 } %.pn79

150:                                              ; preds = %59, %78, %138, %146, %23
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL20expression_ends_withRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIjENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #6

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !9, i64 24}
!6 = !{!"_ZTSN11spirv_cross8SPIRTypeE", !7, i64 0, !12, i64 12, !13, i64 16, !9, i64 20, !9, i64 24, !9, i64 28, !14, i64 32, !19, i64 88, !9, i64 120, !22, i64 124, !22, i64 125, !23, i64 128, !24, i64 136, !14, i64 192, !27, i64 248, !28, i64 272, !28, i64 276, !32, i64 280}
!7 = !{!"_ZTSN11spirv_cross8IVariantE", !8, i64 8}
!8 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE0EEE", !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSN3spv2OpE", !10, i64 0}
!13 = !{!"_ZTSN11spirv_cross8SPIRType8BaseTypeE", !10, i64 0}
!14 = !{!"_ZTSN11spirv_cross11SmallVectorIjLm8EEE", !15, i64 0, !17, i64 16, !18, i64 24}
!15 = !{!"_ZTSN11spirv_cross10VectorViewIjEE", !16, i64 0, !17, i64 8}
!16 = !{!"any pointer", !10, i64 0}
!17 = !{!"long", !10, i64 0}
!18 = !{!"_ZTSN11spirv_cross13AlignedBufferIjLm8EEE", !10, i64 0}
!19 = !{!"_ZTSN11spirv_cross11SmallVectorIbLm8EEE", !20, i64 0, !17, i64 16, !21, i64 24}
!20 = !{!"_ZTSN11spirv_cross10VectorViewIbEE", !16, i64 0, !17, i64 8}
!21 = !{!"_ZTSN11spirv_cross13AlignedBufferIbLm8EEE", !10, i64 0}
!22 = !{!"bool", !10, i64 0}
!23 = !{!"_ZTSN3spv12StorageClassE", !10, i64 0}
!24 = !{!"_ZTSN11spirv_cross11SmallVectorINS_7TypedIDILNS_5TypesE1EEELm8EEE", !25, i64 0, !17, i64 16, !26, i64 24}
!25 = !{!"_ZTSN11spirv_cross10VectorViewINS_7TypedIDILNS_5TypesE1EEEEE", !16, i64 0, !17, i64 8}
!26 = !{!"_ZTSN11spirv_cross13AlignedBufferINS_7TypedIDILNS_5TypesE1EEELm8EEE", !10, i64 0}
!27 = !{!"_ZTSN11spirv_cross8SPIRType9ImageTypeE", !28, i64 0, !29, i64 4, !22, i64 8, !22, i64 9, !22, i64 10, !9, i64 12, !30, i64 16, !31, i64 20}
!28 = !{!"_ZTSN11spirv_cross7TypedIDILNS_5TypesE1EEE", !9, i64 0}
!29 = !{!"_ZTSN3spv3DimE", !10, i64 0}
!30 = !{!"_ZTSN3spv11ImageFormatE", !10, i64 0}
!31 = !{!"_ZTSN3spv15AccessQualifierE", !10, i64 0}
!32 = !{!"_ZTSSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE", !33, i64 0}
!33 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEE", !16, i64 0, !17, i64 8, !34, i64 16, !17, i64 24, !35, i64 32, !16, i64 48}
!34 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !16, i64 0}
!35 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !36, i64 0, !17, i64 8}
!36 = !{!"float", !10, i64 0}
!37 = !{!16, !16, i64 0}
!38 = !{!9, !9, i64 0}
!39 = !{!6, !9, i64 28}
!40 = !{!6, !9, i64 20}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}
!43 = !{!44, !44, i64 0}
!44 = !{!"vtable pointer", !11, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass