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

; 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::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.87", %"struct.std::_Head_base.88" }
%"struct.std::_Tuple_impl.87" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { ptr }
%"struct.std::_Head_base.88" = type { ptr }
%"struct.glslang::TIntermNodePair" = type { ptr, ptr }
%"class.glslang::TType" = type { ptr, i32, [4 x i8], %"class.glslang::TQualifier", ptr, %union.anon, ptr, ptr, %"struct.glslang::TSampler", ptr, ptr }
%"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 }>
%union.anon = type { ptr }
%"struct.glslang::TSampler" = type { i32 }

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN11TIntermNodenwEm(i64 noundef) #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11TIntermNodedlEPv(ptr noundef) #2 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 uwtable
declare dso_local void @_ZN7glslang5TTypeC2ENS_10TBasicTypeENS_17TStorageQualifierEiiib(ptr noundef nonnull align 8 dereferenceable(144), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7glslang13TIntermediate17addPairConversionENS_9TOperatorEPNS_12TIntermTypedES3_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 8, ptr noundef nonnull align 8 dereferenceable(1784), i32 noundef, ptr noundef, ptr noundef) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7glslang13TIntermediate22specConstantPropagatesERKNS_12TIntermTypedES3_(ptr noundef nonnull align 8 dereferenceable(1784), ptr noundef nonnull align 8 dereferenceable(176), ptr noundef nonnull align 8 dereferenceable(176)) #1 align 2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN7glslang13TIntermediate12addSelectionEPNS_12TIntermTypedES2_S2_RKNS_10TSourceLocE(ptr noundef nonnull align 8 dereferenceable(1784) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4) #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.glslang::TIntermNodePair", align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"struct.glslang::TIntermNodePair", align 8
  %15 = alloca %"class.std::tuple", align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.glslang::TType", align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  %24 = load ptr, ptr %7, align 8
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %27 = getelementptr inbounds ptr, ptr %26, i64 32
  %28 = load ptr, ptr %27, align 8
  %29 = call noundef i32 %28(ptr noundef nonnull align 8 dereferenceable(176) %25)
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %56

31:                                               ; preds = %5
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = getelementptr inbounds ptr, ptr %33, i64 32
  %35 = load ptr, ptr %34, align 8
  %36 = call noundef i32 %35(ptr noundef nonnull align 8 dereferenceable(176) %32)
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %38, label %56

38:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %39 = getelementptr inbounds %"struct.glslang::TIntermNodePair", ptr %12, i32 0, i32 0
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %40, ptr %39, align 8, !tbaa !11
  %41 = getelementptr inbounds %"struct.glslang::TIntermNodePair", ptr %12, i32 0, i32 1
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %42, ptr %41, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %12, i64 16, i1 false), !tbaa.struct !14
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = getelementptr inbounds { ptr, ptr }, ptr %14, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8
  %47 = getelementptr inbounds { ptr, ptr }, ptr %14, i32 0, i32 1
  %48 = load ptr, ptr %47, align 8
  %49 = call noundef ptr @_ZN7glslang13TIntermediate12addSelectionEPNS_12TIntermTypedENS_15TIntermNodePairERKNS_10TSourceLocE(ptr noundef nonnull align 8 dereferenceable(1784) %24, ptr noundef %43, ptr %46, ptr %48, ptr noundef nonnull align 8 dereferenceable(24) %44)
  store ptr %49, ptr %13, align 8, !tbaa !5
  %50 = call noundef i32 @_ZNK7glslang13TIntermediate9getSourceEv(ptr noundef nonnull align 8 dereferenceable(1784) %24)
  %51 = icmp eq i32 %50, 2
  br i1 %51, label %52, label %54

52:                                               ; preds = %38
  %53 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN7glslang16TIntermSelection17setNoShortCircuitEv(ptr noundef nonnull align 8 dereferenceable(203) %53)
  br label %54

54:                                               ; preds = %52, %38
  %55 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %55, ptr %6, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  br label %307

56:                                               ; preds = %31, %5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN7glslang13TIntermediate17addPairConversionENS_9TOperatorEPNS_12TIntermTypedES3_(ptr dead_on_unwind writable sret(%"class.std::tuple") align 8 %15, ptr noundef nonnull align 8 dereferenceable(1784) %24, i32 noundef 1, ptr noundef %57, ptr noundef %58)
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJPN7glslang12TIntermTypedES2_EERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  store ptr %60, ptr %9, align 8, !tbaa !5
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJPN7glslang12TIntermTypedES2_EERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  store ptr %62, ptr %10, align 8, !tbaa !5
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = icmp eq ptr %63, null
  br i1 %64, label %68, label %65

65:                                               ; preds = %56
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = icmp eq ptr %66, null
  br i1 %67, label %68, label %69

68:                                               ; preds = %65, %56
  store ptr null, ptr %6, align 8
  store i32 1, ptr %16, align 4
  br label %305

69:                                               ; preds = %65
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = load ptr, ptr %70, align 8, !tbaa !9
  %72 = getelementptr inbounds ptr, ptr %71, i64 30
  %73 = load ptr, ptr %72, align 8
  %74 = call noundef nonnull align 8 dereferenceable(144) ptr %73(ptr noundef nonnull align 8 dereferenceable(176) %70)
  %75 = load ptr, ptr %74, align 8, !tbaa !9
  %76 = getelementptr inbounds ptr, ptr %75, i64 25
  %77 = load ptr, ptr %76, align 8
  %78 = call noundef zeroext i1 %77(ptr noundef nonnull align 8 dereferenceable(144) %74)
  br i1 %78, label %153, label %79

79:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 144, ptr %17) #5
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = load ptr, ptr %80, align 8, !tbaa !9
  %82 = getelementptr inbounds ptr, ptr %81, i64 30
  %83 = load ptr, ptr %82, align 8
  %84 = call noundef nonnull align 8 dereferenceable(144) ptr %83(ptr noundef nonnull align 8 dereferenceable(176) %80)
  %85 = load ptr, ptr %84, align 8, !tbaa !9
  %86 = getelementptr inbounds ptr, ptr %85, i64 7
  %87 = load ptr, ptr %86, align 8
  %88 = call noundef i32 %87(ptr noundef nonnull align 8 dereferenceable(144) %84)
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = load ptr, ptr %89, align 8, !tbaa !9
  %91 = getelementptr inbounds ptr, ptr %90, i64 30
  %92 = load ptr, ptr %91, align 8
  %93 = call noundef nonnull align 8 dereferenceable(144) ptr %92(ptr noundef nonnull align 8 dereferenceable(176) %89)
  %94 = load ptr, ptr %93, align 8, !tbaa !9
  %95 = getelementptr inbounds ptr, ptr %94, i64 12
  %96 = load ptr, ptr %95, align 8
  %97 = call noundef i32 %96(ptr noundef nonnull align 8 dereferenceable(144) %93)
  call void @_ZN7glslang5TTypeC2ENS_10TBasicTypeENS_17TStorageQualifierEiiib(ptr noundef nonnull align 8 dereferenceable(144) %17, i32 noundef %88, i32 noundef 0, i32 noundef %97, i32 noundef 0, i32 noundef 0, i1 noundef zeroext false)
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = invoke noundef ptr @_ZN7glslang13TIntermediate21addUniShapeConversionENS_9TOperatorERKNS_5TTypeEPNS_12TIntermTypedE(ptr noundef nonnull align 8 dereferenceable(1784) %24, i32 noundef 219, ptr noundef nonnull align 8 dereferenceable(144) %17, ptr noundef %98)
          to label %100 unwind label %119

100:                                              ; preds = %79
  store ptr %99, ptr %9, align 8, !tbaa !5
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  %102 = invoke noundef ptr @_ZN7glslang13TIntermediate21addUniShapeConversionENS_9TOperatorERKNS_5TTypeEPNS_12TIntermTypedE(ptr noundef nonnull align 8 dereferenceable(1784) %24, i32 noundef 219, ptr noundef nonnull align 8 dereferenceable(144) %17, ptr noundef %101)
          to label %103 unwind label %119

103:                                              ; preds = %100
  store ptr %102, ptr %10, align 8, !tbaa !5
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  %105 = load ptr, ptr %104, align 8, !tbaa !9
  %106 = getelementptr inbounds ptr, ptr %105, i64 30
  %107 = load ptr, ptr %106, align 8
  %108 = invoke noundef nonnull align 8 dereferenceable(144) ptr %107(ptr noundef nonnull align 8 dereferenceable(176) %104)
          to label %109 unwind label %119

109:                                              ; preds = %103
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = load ptr, ptr %110, align 8, !tbaa !9
  %112 = getelementptr inbounds ptr, ptr %111, i64 30
  %113 = load ptr, ptr %112, align 8
  %114 = invoke noundef nonnull align 8 dereferenceable(144) ptr %113(ptr noundef nonnull align 8 dereferenceable(176) %110)
          to label %115 unwind label %119

115:                                              ; preds = %109
  %116 = invoke noundef zeroext i1 @_ZNK7glslang5TTypeneERKS0_(ptr noundef nonnull align 8 dereferenceable(144) %108, ptr noundef nonnull align 8 dereferenceable(144) %114)
          to label %117 unwind label %119

117:                                              ; preds = %115
  br i1 %116, label %118, label %123

118:                                              ; preds = %117
  store ptr null, ptr %6, align 8
  store i32 1, ptr %16, align 4
  br label %151

119:                                              ; preds = %115, %109, %103, %100, %79
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %18, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %19, align 4
  br label %152

123:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %124 = load ptr, ptr %11, align 8, !tbaa !5
  %125 = invoke noundef ptr @_ZN7glslang13TIntermediate13makeAggregateERKNS_10TSourceLocE(ptr noundef nonnull align 8 dereferenceable(1784) %24, ptr noundef nonnull align 8 dereferenceable(24) %124)
          to label %126 unwind label %147

126:                                              ; preds = %123
  store ptr %125, ptr %20, align 8, !tbaa !5
  %127 = load ptr, ptr %20, align 8, !tbaa !5
  %128 = load ptr, ptr %10, align 8, !tbaa !5
  %129 = invoke noundef ptr @_ZN7glslang13TIntermediate13growAggregateEP11TIntermNodeS2_(ptr noundef nonnull align 8 dereferenceable(1784) %24, ptr noundef %127, ptr noundef %128)
          to label %130 unwind label %147

130:                                              ; preds = %126
  store ptr %129, ptr %20, align 8, !tbaa !5
  %131 = load ptr, ptr %20, align 8, !tbaa !5
  %132 = load ptr, ptr %9, align 8, !tbaa !5
  %133 = invoke noundef ptr @_ZN7glslang13TIntermediate13growAggregateEP11TIntermNodeS2_(ptr noundef nonnull align 8 dereferenceable(1784) %24, ptr noundef %131, ptr noundef %132)
          to label %134 unwind label %147

134:                                              ; preds = %130
  store ptr %133, ptr %20, align 8, !tbaa !5
  %135 = load ptr, ptr %20, align 8, !tbaa !5
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = invoke noundef ptr @_ZN7glslang13TIntermediate13growAggregateEP11TIntermNodeS2_(ptr noundef nonnull align 8 dereferenceable(1784) %24, ptr noundef %135, ptr noundef %136)
          to label %138 unwind label %147

138:                                              ; preds = %134
  store ptr %137, ptr %20, align 8, !tbaa !5
  %139 = load ptr, ptr %20, align 8, !tbaa !5
  %140 = load ptr, ptr %139, align 8, !tbaa !9
  %141 = getelementptr inbounds ptr, ptr %140, i64 29
  %142 = load ptr, ptr %141, align 8
  invoke void %142(ptr noundef nonnull align 8 dereferenceable(176) %139, ptr noundef nonnull align 8 dereferenceable(144) %17)
          to label %143 unwind label %147

143:                                              ; preds = %138
  %144 = load ptr, ptr %20, align 8, !tbaa !5
  invoke void @_ZN7glslang15TIntermOperator5setOpENS_9TOperatorE(ptr noundef nonnull align 8 dereferenceable(184) %144, i32 noundef 219)
          to label %145 unwind label %147

145:                                              ; preds = %143
  %146 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %146, ptr %6, align 8
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %151

147:                                              ; preds = %143, %138, %134, %130, %126, %123
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %18, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %152

151:                                              ; preds = %145, %118
  call void @_ZN7glslang5TTypeD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %17) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr %17) #5
  br label %305

152:                                              ; preds = %147, %119
  call void @_ZN7glslang5TTypeD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %17) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr %17) #5
  br label %306

153:                                              ; preds = %69
  call void @_ZN7glslang13TIntermediate20addBiShapeConversionENS_9TOperatorERPNS_12TIntermTypedES4_(ptr noundef nonnull align 8 dereferenceable(1784) %24, i32 noundef 219, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %154 = load ptr, ptr %10, align 8, !tbaa !5
  %155 = load ptr, ptr %154, align 8, !tbaa !9
  %156 = getelementptr inbounds ptr, ptr %155, i64 30
  %157 = load ptr, ptr %156, align 8
  %158 = call noundef nonnull align 8 dereferenceable(144) ptr %157(ptr noundef nonnull align 8 dereferenceable(176) %154)
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  %160 = load ptr, ptr %159, align 8, !tbaa !9
  %161 = getelementptr inbounds ptr, ptr %160, i64 30
  %162 = load ptr, ptr %161, align 8
  %163 = call noundef nonnull align 8 dereferenceable(144) ptr %162(ptr noundef nonnull align 8 dereferenceable(176) %159)
  %164 = call noundef zeroext i1 @_ZNK7glslang5TTypeneERKS0_(ptr noundef nonnull align 8 dereferenceable(144) %158, ptr noundef nonnull align 8 dereferenceable(144) %163)
  br i1 %164, label %165, label %166

165:                                              ; preds = %153
  store ptr null, ptr %6, align 8
  store i32 1, ptr %16, align 4
  br label %305

166:                                              ; preds = %153
  %167 = load ptr, ptr %8, align 8, !tbaa !5
  %168 = load ptr, ptr %167, align 8, !tbaa !9
  %169 = getelementptr inbounds ptr, ptr %168, i64 5
  %170 = load ptr, ptr %169, align 8
  %171 = call noundef ptr %170(ptr noundef nonnull align 8 dereferenceable(32) %167)
  %172 = icmp ne ptr %171, null
  br i1 %172, label %173, label %200

173:                                              ; preds = %166
  %174 = load ptr, ptr %9, align 8, !tbaa !5
  %175 = load ptr, ptr %174, align 8, !tbaa !9
  %176 = getelementptr inbounds ptr, ptr %175, i64 5
  %177 = load ptr, ptr %176, align 8
  %178 = call noundef ptr %177(ptr noundef nonnull align 8 dereferenceable(32) %174)
  %179 = icmp ne ptr %178, null
  br i1 %179, label %180, label %200

180:                                              ; preds = %173
  %181 = load ptr, ptr %10, align 8, !tbaa !5
  %182 = load ptr, ptr %181, align 8, !tbaa !9
  %183 = getelementptr inbounds ptr, ptr %182, i64 5
  %184 = load ptr, ptr %183, align 8
  %185 = call noundef ptr %184(ptr noundef nonnull align 8 dereferenceable(32) %181)
  %186 = icmp ne ptr %185, null
  br i1 %186, label %187, label %200

187:                                              ; preds = %180
  %188 = load ptr, ptr %8, align 8, !tbaa !5
  %189 = load ptr, ptr %188, align 8, !tbaa !9
  %190 = getelementptr inbounds ptr, ptr %189, i64 5
  %191 = load ptr, ptr %190, align 8
  %192 = call noundef ptr %191(ptr noundef nonnull align 8 dereferenceable(32) %188)
  %193 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK7glslang20TIntermConstantUnion13getConstArrayEv(ptr noundef nonnull align 8 dereferenceable(193) %192)
  %194 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK7glslang16TConstUnionArrayixEm(ptr noundef nonnull align 8 dereferenceable(16) %193, i64 noundef 0)
  %195 = call noundef zeroext i1 @_ZNK7glslang11TConstUnion9getBConstEv(ptr noundef nonnull align 8 dereferenceable(12) %194)
  br i1 %195, label %196, label %198

196:                                              ; preds = %187
  %197 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %197, ptr %6, align 8
  store i32 1, ptr %16, align 4
  br label %305

198:                                              ; preds = %187
  %199 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %199, ptr %6, align 8
  store i32 1, ptr %16, align 4
  br label %305

200:                                              ; preds = %180, %173, %166
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %201 = call noundef ptr @_ZN11TIntermNodenwEm(i64 noundef 208)
  %202 = load ptr, ptr %8, align 8, !tbaa !5
  %203 = load ptr, ptr %9, align 8, !tbaa !5
  %204 = load ptr, ptr %10, align 8, !tbaa !5
  %205 = load ptr, ptr %9, align 8, !tbaa !5
  %206 = load ptr, ptr %205, align 8, !tbaa !9
  %207 = getelementptr inbounds ptr, ptr %206, i64 30
  %208 = load ptr, ptr %207, align 8
  %209 = invoke noundef nonnull align 8 dereferenceable(144) ptr %208(ptr noundef nonnull align 8 dereferenceable(176) %205)
          to label %210 unwind label %288

210:                                              ; preds = %200
  invoke void @_ZN7glslang16TIntermSelectionC2EPNS_12TIntermTypedEP11TIntermNodeS4_RKNS_5TTypeE(ptr noundef nonnull align 8 dereferenceable(203) %201, ptr noundef %202, ptr noundef %203, ptr noundef %204, ptr noundef nonnull align 8 dereferenceable(144) %209)
          to label %211 unwind label %288

211:                                              ; preds = %210
  store ptr %201, ptr %21, align 8, !tbaa !5
  %212 = load ptr, ptr %21, align 8, !tbaa !5
  %213 = load ptr, ptr %11, align 8, !tbaa !5
  %214 = load ptr, ptr %212, align 8, !tbaa !9
  %215 = getelementptr inbounds ptr, ptr %214, i64 1
  %216 = load ptr, ptr %215, align 8
  call void %216(ptr noundef nonnull align 8 dereferenceable(32) %212, ptr noundef nonnull align 8 dereferenceable(24) %213)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %217 = load ptr, ptr %9, align 8, !tbaa !5
  %218 = load ptr, ptr %217, align 8, !tbaa !9
  %219 = getelementptr inbounds ptr, ptr %218, i64 33
  %220 = load ptr, ptr %219, align 8
  %221 = call noundef nonnull align 8 dereferenceable(72) ptr %220(ptr noundef nonnull align 8 dereferenceable(176) %217)
  %222 = getelementptr inbounds %"class.glslang::TQualifier", ptr %221, i32 0, i32 1
  %223 = load i64, ptr %222, align 8
  %224 = lshr i64 %223, 24
  %225 = and i64 %224, 7
  %226 = trunc i64 %225 to i32
  store i32 %226, ptr %22, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %227 = load ptr, ptr %10, align 8, !tbaa !5
  %228 = load ptr, ptr %227, align 8, !tbaa !9
  %229 = getelementptr inbounds ptr, ptr %228, i64 33
  %230 = load ptr, ptr %229, align 8
  %231 = call noundef nonnull align 8 dereferenceable(72) ptr %230(ptr noundef nonnull align 8 dereferenceable(176) %227)
  %232 = getelementptr inbounds %"class.glslang::TQualifier", ptr %231, i32 0, i32 1
  %233 = load i64, ptr %232, align 8
  %234 = lshr i64 %233, 24
  %235 = and i64 %234, 7
  %236 = trunc i64 %235 to i32
  store i32 %236, ptr %23, align 4, !tbaa !15
  %237 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIN7glslang19TPrecisionQualifierEERKT_S4_S4_(ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %238 = load i32, ptr %237, align 4, !tbaa !15
  %239 = load ptr, ptr %21, align 8, !tbaa !5
  %240 = load ptr, ptr %239, align 8, !tbaa !9
  %241 = getelementptr inbounds ptr, ptr %240, i64 33
  %242 = load ptr, ptr %241, align 8
  %243 = call noundef nonnull align 8 dereferenceable(72) ptr %242(ptr noundef nonnull align 8 dereferenceable(176) %239)
  %244 = getelementptr inbounds %"class.glslang::TQualifier", ptr %243, i32 0, i32 1
  %245 = zext i32 %238 to i64
  %246 = load i64, ptr %244, align 8
  %247 = and i64 %245, 7
  %248 = shl i64 %247, 24
  %249 = and i64 %246, -117440513
  %250 = or i64 %249, %248
  store i64 %250, ptr %244, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  %251 = load ptr, ptr %8, align 8, !tbaa !5
  %252 = load ptr, ptr %251, align 8, !tbaa !9
  %253 = getelementptr inbounds ptr, ptr %252, i64 33
  %254 = load ptr, ptr %253, align 8
  %255 = call noundef nonnull align 8 dereferenceable(72) ptr %254(ptr noundef nonnull align 8 dereferenceable(176) %251)
  %256 = call noundef zeroext i1 @_ZNK7glslang10TQualifier10isConstantEv(ptr noundef nonnull align 8 dereferenceable(72) %255)
  br i1 %256, label %257, label %261

257:                                              ; preds = %211
  %258 = load ptr, ptr %9, align 8, !tbaa !5
  %259 = load ptr, ptr %10, align 8, !tbaa !5
  %260 = call noundef zeroext i1 @_ZN7glslang13TIntermediate22specConstantPropagatesERKNS_12TIntermTypedES3_(ptr noundef nonnull align 8 dereferenceable(1784) %24, ptr noundef nonnull align 8 dereferenceable(176) %258, ptr noundef nonnull align 8 dereferenceable(176) %259)
  br i1 %260, label %282, label %261

261:                                              ; preds = %257, %211
  %262 = load ptr, ptr %8, align 8, !tbaa !5
  %263 = load ptr, ptr %262, align 8, !tbaa !9
  %264 = getelementptr inbounds ptr, ptr %263, i64 33
  %265 = load ptr, ptr %264, align 8
  %266 = call noundef nonnull align 8 dereferenceable(72) ptr %265(ptr noundef nonnull align 8 dereferenceable(176) %262)
  %267 = call noundef zeroext i1 @_ZNK7glslang10TQualifier14isSpecConstantEv(ptr noundef nonnull align 8 dereferenceable(72) %266)
  br i1 %267, label %268, label %292

268:                                              ; preds = %261
  %269 = load ptr, ptr %9, align 8, !tbaa !5
  %270 = load ptr, ptr %269, align 8, !tbaa !9
  %271 = getelementptr inbounds ptr, ptr %270, i64 33
  %272 = load ptr, ptr %271, align 8
  %273 = call noundef nonnull align 8 dereferenceable(72) ptr %272(ptr noundef nonnull align 8 dereferenceable(176) %269)
  %274 = call noundef zeroext i1 @_ZNK7glslang10TQualifier10isConstantEv(ptr noundef nonnull align 8 dereferenceable(72) %273)
  br i1 %274, label %275, label %292

275:                                              ; preds = %268
  %276 = load ptr, ptr %10, align 8, !tbaa !5
  %277 = load ptr, ptr %276, align 8, !tbaa !9
  %278 = getelementptr inbounds ptr, ptr %277, i64 33
  %279 = load ptr, ptr %278, align 8
  %280 = call noundef nonnull align 8 dereferenceable(72) ptr %279(ptr noundef nonnull align 8 dereferenceable(176) %276)
  %281 = call noundef zeroext i1 @_ZNK7glslang10TQualifier10isConstantEv(ptr noundef nonnull align 8 dereferenceable(72) %280)
  br i1 %281, label %282, label %292

282:                                              ; preds = %275, %257
  %283 = load ptr, ptr %21, align 8, !tbaa !5
  %284 = load ptr, ptr %283, align 8, !tbaa !9
  %285 = getelementptr inbounds ptr, ptr %284, i64 33
  %286 = load ptr, ptr %285, align 8
  %287 = call noundef nonnull align 8 dereferenceable(72) ptr %286(ptr noundef nonnull align 8 dereferenceable(176) %283)
  call void @_ZN7glslang10TQualifier16makeSpecConstantEv(ptr noundef nonnull align 8 dereferenceable(72) %287)
  br label %298

288:                                              ; preds = %210, %200
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %18, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %19, align 4
  call void @_ZN11TIntermNodedlEPv(ptr noundef %201) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %306

292:                                              ; preds = %275, %268, %261
  %293 = load ptr, ptr %21, align 8, !tbaa !5
  %294 = load ptr, ptr %293, align 8, !tbaa !9
  %295 = getelementptr inbounds ptr, ptr %294, i64 33
  %296 = load ptr, ptr %295, align 8
  %297 = call noundef nonnull align 8 dereferenceable(72) ptr %296(ptr noundef nonnull align 8 dereferenceable(176) %293)
  call void @_ZN7glslang10TQualifier13makeTemporaryEv(ptr noundef nonnull align 8 dereferenceable(72) %297)
  br label %298

298:                                              ; preds = %292, %282
  %299 = call noundef i32 @_ZNK7glslang13TIntermediate9getSourceEv(ptr noundef nonnull align 8 dereferenceable(1784) %24)
  %300 = icmp eq i32 %299, 2
  br i1 %300, label %301, label %303

301:                                              ; preds = %298
  %302 = load ptr, ptr %21, align 8, !tbaa !5
  call void @_ZN7glslang16TIntermSelection17setNoShortCircuitEv(ptr noundef nonnull align 8 dereferenceable(203) %302)
  br label %303

303:                                              ; preds = %301, %298
  %304 = load ptr, ptr %21, align 8, !tbaa !5
  store ptr %304, ptr %6, align 8
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %305

305:                                              ; preds = %303, %198, %196, %165, %151, %68
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  br label %307

306:                                              ; preds = %288, %152
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  br label %309

307:                                              ; preds = %305, %54
  %308 = load ptr, ptr %6, align 8
  ret ptr %308

309:                                              ; preds = %306
  %310 = load ptr, ptr %18, align 8
  %311 = load i32, ptr %19, align 4
  %312 = insertvalue { ptr, i32 } poison, ptr %310, 0
  %313 = insertvalue { ptr, i32 } %312, i32 %311, 1
  resume { ptr, i32 } %313
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSN7glslang15TIntermNodePairE", !6, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = !{i64 0, i64 8, !5, i64 8, i64 8, !5}
!15 = !{!16, !16, i64 0}
!16 = !{!"_ZTSN7glslang19TPrecisionQualifierE", !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"

%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.87", %"struct.std::_Head_base.88" }
%"struct.std::_Tuple_impl.87" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { ptr }
%"struct.std::_Head_base.88" = type { ptr }
%"class.glslang::TType" = type { ptr, i32, [4 x i8], %"class.glslang::TQualifier", ptr, %union.anon, ptr, ptr, %"struct.glslang::TSampler", ptr, ptr }
%"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 }>
%union.anon = type { ptr }
%"struct.glslang::TSampler" = type { i32 }

; 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 uwtable
declare dso_local noundef ptr @_ZN11TIntermNodenwEm(i64 noundef) local_unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11TIntermNodedlEPv(ptr noundef) local_unnamed_addr #2 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 uwtable
declare dso_local void @_ZN7glslang5TTypeC2ENS_10TBasicTypeENS_17TStorageQualifierEiiib(ptr noundef nonnull align 8 dereferenceable(144), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext) unnamed_addr #1 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN7glslang13TIntermediate12addSelectionEPNS_12TIntermTypedES2_S2_RKNS_10TSourceLocE(ptr noundef nonnull align 8 dereferenceable(1784) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.std::tuple", align 8
  %9 = alloca %"class.glslang::TType", align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %12, i64 256
  %14 = load ptr, ptr %13, align 8
  %15 = tail call noundef i32 %14(ptr noundef nonnull align 8 dereferenceable(176) %2)
  %16 = icmp eq i32 %15, 0
  br i1 %16, label %17, label %28

17:                                               ; preds = %5
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 256
  %20 = load ptr, ptr %19, align 8
  %21 = tail call noundef i32 %20(ptr noundef nonnull align 8 dereferenceable(176) %3)
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %23, label %28

23:                                               ; preds = %17
  %24 = tail call noundef ptr @_ZN7glslang13TIntermediate12addSelectionEPNS_12TIntermTypedENS_15TIntermNodePairERKNS_10TSourceLocE(ptr noundef nonnull align 8 dereferenceable(1784) %0, ptr noundef %1, ptr nonnull %2, ptr nonnull %3, ptr noundef nonnull align 8 dereferenceable(24) %4)
  %25 = tail call noundef i32 @_ZNK7glslang13TIntermediate9getSourceEv(ptr noundef nonnull align 8 dereferenceable(1784) %0)
  %26 = icmp eq i32 %25, 2
  br i1 %26, label %27, label %230

27:                                               ; preds = %23
  tail call void @_ZN7glslang16TIntermSelection17setNoShortCircuitEv(ptr noundef nonnull align 8 dereferenceable(203) %24)
  br label %230

28:                                               ; preds = %17, %5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
  call void @_ZN7glslang13TIntermediate17addPairConversionENS_9TOperatorEPNS_12TIntermTypedES3_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 8 %8, ptr noundef nonnull align 8 dereferenceable(1784) %0, i32 noundef 1, ptr noundef nonnull %2, ptr noundef %3)
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJPN7glslang12TIntermTypedES2_EERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(16) %8) #4
  %30 = load ptr, ptr %29, align 8, !tbaa !8
  store ptr %30, ptr %6, align 8, !tbaa !8
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJPN7glslang12TIntermTypedES2_EERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS7_(ptr noundef nonnull align 8 dereferenceable(16) %8) #4
  %32 = load ptr, ptr %31, align 8, !tbaa !8
  store ptr %32, ptr %7, align 8, !tbaa !8
  %33 = icmp eq ptr %30, null
  %34 = icmp eq ptr %32, null
  %or.cond = select i1 %33, i1 true, i1 %34
  br i1 %or.cond, label %228, label %35

35:                                               ; preds = %28
  %36 = load ptr, ptr %1, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %36, i64 240
  %38 = load ptr, ptr %37, align 8
  %39 = call noundef nonnull align 8 dereferenceable(144) ptr %38(ptr noundef nonnull align 8 dereferenceable(176) %1)
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %40, i64 200
  %42 = load ptr, ptr %41, align 8
  %43 = call noundef zeroext i1 %42(ptr noundef nonnull align 8 dereferenceable(144) %39)
  br i1 %43, label %96, label %44

44:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %9) #4
  %45 = load ptr, ptr %30, align 8, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %45, i64 240
  %47 = load ptr, ptr %46, align 8
  %48 = call noundef nonnull align 8 dereferenceable(144) ptr %47(ptr noundef nonnull align 8 dereferenceable(176) %30)
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %49, i64 56
  %51 = load ptr, ptr %50, align 8
  %52 = call noundef i32 %51(ptr noundef nonnull align 8 dereferenceable(144) %48)
  %53 = load ptr, ptr %1, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %53, i64 240
  %55 = load ptr, ptr %54, align 8
  %56 = call noundef nonnull align 8 dereferenceable(144) ptr %55(ptr noundef nonnull align 8 dereferenceable(176) %1)
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %57, i64 96
  %59 = load ptr, ptr %58, align 8
  %60 = call noundef i32 %59(ptr noundef nonnull align 8 dereferenceable(144) %56)
  call void @_ZN7glslang5TTypeC2ENS_10TBasicTypeENS_17TStorageQualifierEiiib(ptr noundef nonnull align 8 dereferenceable(144) %9, i32 noundef %52, i32 noundef 0, i32 noundef %60, i32 noundef 0, i32 noundef 0, i1 noundef zeroext false)
  %61 = invoke noundef ptr @_ZN7glslang13TIntermediate21addUniShapeConversionENS_9TOperatorERKNS_5TTypeEPNS_12TIntermTypedE(ptr noundef nonnull align 8 dereferenceable(1784) %0, i32 noundef 219, ptr noundef nonnull align 8 dereferenceable(144) %9, ptr noundef nonnull %30)
          to label %62 unwind label %77

62:                                               ; preds = %44
  %63 = invoke noundef ptr @_ZN7glslang13TIntermediate21addUniShapeConversionENS_9TOperatorERKNS_5TTypeEPNS_12TIntermTypedE(ptr noundef nonnull align 8 dereferenceable(1784) %0, i32 noundef 219, ptr noundef nonnull align 8 dereferenceable(144) %9, ptr noundef nonnull %32)
          to label %64 unwind label %77

64:                                               ; preds = %62
  %65 = load ptr, ptr %63, align 8, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %65, i64 240
  %67 = load ptr, ptr %66, align 8
  %68 = invoke noundef nonnull align 8 dereferenceable(144) ptr %67(ptr noundef nonnull align 8 dereferenceable(176) %63)
          to label %69 unwind label %77

69:                                               ; preds = %64
  %70 = load ptr, ptr %61, align 8, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %70, i64 240
  %72 = load ptr, ptr %71, align 8
  %73 = invoke noundef nonnull align 8 dereferenceable(144) ptr %72(ptr noundef nonnull align 8 dereferenceable(176) %61)
          to label %74 unwind label %77

74:                                               ; preds = %69
  %75 = invoke noundef zeroext i1 @_ZNK7glslang5TTypeneERKS0_(ptr noundef nonnull align 8 dereferenceable(144) %68, ptr noundef nonnull align 8 dereferenceable(144) %73)
          to label %76 unwind label %77

76:                                               ; preds = %74
  br i1 %75, label %94, label %79

77:                                               ; preds = %74, %69, %64, %62, %44
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %95

79:                                               ; preds = %76
  %80 = invoke noundef ptr @_ZN7glslang13TIntermediate13makeAggregateERKNS_10TSourceLocE(ptr noundef nonnull align 8 dereferenceable(1784) %0, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %81 unwind label %92

81:                                               ; preds = %79
  %82 = invoke noundef ptr @_ZN7glslang13TIntermediate13growAggregateEP11TIntermNodeS2_(ptr noundef nonnull align 8 dereferenceable(1784) %0, ptr noundef %80, ptr noundef nonnull %63)
          to label %83 unwind label %92

83:                                               ; preds = %81
  %84 = invoke noundef ptr @_ZN7glslang13TIntermediate13growAggregateEP11TIntermNodeS2_(ptr noundef nonnull align 8 dereferenceable(1784) %0, ptr noundef %82, ptr noundef nonnull %61)
          to label %85 unwind label %92

85:                                               ; preds = %83
  %86 = invoke noundef ptr @_ZN7glslang13TIntermediate13growAggregateEP11TIntermNodeS2_(ptr noundef nonnull align 8 dereferenceable(1784) %0, ptr noundef %84, ptr noundef nonnull %1)
          to label %87 unwind label %92

87:                                               ; preds = %85
  %88 = load ptr, ptr %86, align 8, !tbaa !5
  %89 = getelementptr inbounds i8, ptr %88, i64 232
  %90 = load ptr, ptr %89, align 8
  invoke void %90(ptr noundef nonnull align 8 dereferenceable(176) %86, ptr noundef nonnull align 8 dereferenceable(144) %9)
          to label %91 unwind label %92

91:                                               ; preds = %87
  call void @_ZN7glslang15TIntermOperator5setOpENS_9TOperatorE(ptr noundef nonnull align 8 dereferenceable(184) %86, i32 noundef 219)
  br label %94

92:                                               ; preds = %87, %85, %83, %81, %79
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %95

94:                                               ; preds = %76, %91
  %.0 = phi ptr [ %86, %91 ], [ null, %76 ]
  call void @_ZN7glslang5TTypeD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %9) #4
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %9) #4
  br label %228

95:                                               ; preds = %92, %77
  %.pn = phi { ptr, i32 } [ %93, %92 ], [ %78, %77 ]
  call void @_ZN7glslang5TTypeD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %9) #4
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %9) #4
  br label %229

96:                                               ; preds = %35
  call void @_ZN7glslang13TIntermediate20addBiShapeConversionENS_9TOperatorERPNS_12TIntermTypedES4_(ptr noundef nonnull align 8 dereferenceable(1784) %0, i32 noundef 219, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %97 = load ptr, ptr %7, align 8, !tbaa !8
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  %99 = getelementptr inbounds i8, ptr %98, i64 240
  %100 = load ptr, ptr %99, align 8
  %101 = call noundef nonnull align 8 dereferenceable(144) ptr %100(ptr noundef nonnull align 8 dereferenceable(176) %97)
  %102 = load ptr, ptr %6, align 8, !tbaa !8
  %103 = load ptr, ptr %102, align 8, !tbaa !5
  %104 = getelementptr inbounds i8, ptr %103, i64 240
  %105 = load ptr, ptr %104, align 8
  %106 = call noundef nonnull align 8 dereferenceable(144) ptr %105(ptr noundef nonnull align 8 dereferenceable(176) %102)
  %107 = call noundef zeroext i1 @_ZNK7glslang5TTypeneERKS0_(ptr noundef nonnull align 8 dereferenceable(144) %101, ptr noundef nonnull align 8 dereferenceable(144) %106)
  br i1 %107, label %228, label %108

108:                                              ; preds = %96
  %109 = load ptr, ptr %1, align 8, !tbaa !5
  %110 = getelementptr inbounds i8, ptr %109, i64 40
  %111 = load ptr, ptr %110, align 8
  %112 = call noundef ptr %111(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %.not = icmp eq ptr %112, null
  br i1 %.not, label %137, label %113

113:                                              ; preds = %108
  %114 = load ptr, ptr %6, align 8, !tbaa !8
  %115 = load ptr, ptr %114, align 8, !tbaa !5
  %116 = getelementptr inbounds i8, ptr %115, i64 40
  %117 = load ptr, ptr %116, align 8
  %118 = call noundef ptr %117(ptr noundef nonnull align 8 dereferenceable(32) %114)
  %.not36 = icmp eq ptr %118, null
  br i1 %.not36, label %137, label %119

119:                                              ; preds = %113
  %120 = load ptr, ptr %7, align 8, !tbaa !8
  %121 = load ptr, ptr %120, align 8, !tbaa !5
  %122 = getelementptr inbounds i8, ptr %121, i64 40
  %123 = load ptr, ptr %122, align 8
  %124 = call noundef ptr %123(ptr noundef nonnull align 8 dereferenceable(32) %120)
  %.not37 = icmp eq ptr %124, null
  br i1 %.not37, label %137, label %125

125:                                              ; preds = %119
  %126 = load ptr, ptr %1, align 8, !tbaa !5
  %127 = getelementptr inbounds i8, ptr %126, i64 40
  %128 = load ptr, ptr %127, align 8
  %129 = call noundef ptr %128(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %130 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK7glslang20TIntermConstantUnion13getConstArrayEv(ptr noundef nonnull align 8 dereferenceable(193) %129)
  %131 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK7glslang16TConstUnionArrayixEm(ptr noundef nonnull align 8 dereferenceable(16) %130, i64 noundef 0)
  %132 = call noundef zeroext i1 @_ZNK7glslang11TConstUnion9getBConstEv(ptr noundef nonnull align 8 dereferenceable(12) %131)
  br i1 %132, label %133, label %135

133:                                              ; preds = %125
  %134 = load ptr, ptr %6, align 8, !tbaa !8
  br label %228

135:                                              ; preds = %125
  %136 = load ptr, ptr %7, align 8, !tbaa !8
  br label %228

137:                                              ; preds = %119, %113, %108
  %138 = call noundef ptr @_ZN11TIntermNodenwEm(i64 noundef 208)
  %139 = load ptr, ptr %6, align 8, !tbaa !8
  %140 = load ptr, ptr %7, align 8, !tbaa !8
  %141 = load ptr, ptr %139, align 8, !tbaa !5
  %142 = getelementptr inbounds i8, ptr %141, i64 240
  %143 = load ptr, ptr %142, align 8
  %144 = invoke noundef nonnull align 8 dereferenceable(144) ptr %143(ptr noundef nonnull align 8 dereferenceable(176) %139)
          to label %145 unwind label %217

145:                                              ; preds = %137
  invoke void @_ZN7glslang16TIntermSelectionC2EPNS_12TIntermTypedEP11TIntermNodeS4_RKNS_5TTypeE(ptr noundef nonnull align 8 dereferenceable(203) %138, ptr noundef nonnull %1, ptr noundef nonnull %139, ptr noundef %140, ptr noundef nonnull align 8 dereferenceable(144) %144)
          to label %146 unwind label %217

146:                                              ; preds = %145
  %147 = load ptr, ptr %138, align 8, !tbaa !5
  %148 = getelementptr inbounds i8, ptr %147, i64 8
  %149 = load ptr, ptr %148, align 8
  call void %149(ptr noundef nonnull align 8 dereferenceable(32) %138, ptr noundef nonnull align 8 dereferenceable(24) %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  %150 = load ptr, ptr %6, align 8, !tbaa !8
  %151 = load ptr, ptr %150, align 8, !tbaa !5
  %152 = getelementptr inbounds i8, ptr %151, i64 264
  %153 = load ptr, ptr %152, align 8
  %154 = call noundef nonnull align 8 dereferenceable(72) ptr %153(ptr noundef nonnull align 8 dereferenceable(176) %150)
  %155 = getelementptr inbounds i8, ptr %154, i64 8
  %156 = load i64, ptr %155, align 8
  %157 = trunc i64 %156 to i32
  %158 = lshr i32 %157, 24
  %159 = and i32 %158, 7
  store i32 %159, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  %160 = load ptr, ptr %7, align 8, !tbaa !8
  %161 = load ptr, ptr %160, align 8, !tbaa !5
  %162 = getelementptr inbounds i8, ptr %161, i64 264
  %163 = load ptr, ptr %162, align 8
  %164 = call noundef nonnull align 8 dereferenceable(72) ptr %163(ptr noundef nonnull align 8 dereferenceable(176) %160)
  %165 = getelementptr inbounds i8, ptr %164, i64 8
  %166 = load i64, ptr %165, align 8
  %167 = trunc i64 %166 to i32
  %168 = lshr i32 %167, 24
  %169 = and i32 %168, 7
  store i32 %169, ptr %11, align 4, !tbaa !11
  %170 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIN7glslang19TPrecisionQualifierEERKT_S4_S4_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %171 = load i32, ptr %170, align 4, !tbaa !11
  %172 = load ptr, ptr %138, align 8, !tbaa !5
  %173 = getelementptr inbounds i8, ptr %172, i64 264
  %174 = load ptr, ptr %173, align 8
  %175 = call noundef nonnull align 8 dereferenceable(72) ptr %174(ptr noundef nonnull align 8 dereferenceable(176) %138)
  %176 = getelementptr inbounds i8, ptr %175, i64 8
  %177 = load i64, ptr %176, align 8
  %178 = shl i32 %171, 24
  %179 = and i32 %178, 117440512
  %180 = zext nneg i32 %179 to i64
  %181 = and i64 %177, -117440513
  %182 = or disjoint i64 %181, %180
  store i64 %182, ptr %176, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  %183 = load ptr, ptr %1, align 8, !tbaa !5
  %184 = getelementptr inbounds i8, ptr %183, i64 264
  %185 = load ptr, ptr %184, align 8
  %186 = call noundef nonnull align 8 dereferenceable(72) ptr %185(ptr noundef nonnull align 8 dereferenceable(176) %1)
  %187 = call noundef zeroext i1 @_ZNK7glslang10TQualifier10isConstantEv(ptr noundef nonnull align 8 dereferenceable(72) %186)
  br i1 %187, label %188, label %192

188:                                              ; preds = %146
  %189 = load ptr, ptr %6, align 8, !tbaa !8
  %190 = load ptr, ptr %7, align 8, !tbaa !8
  %191 = call noundef zeroext i1 @_ZN7glslang13TIntermediate22specConstantPropagatesERKNS_12TIntermTypedES3_(ptr noundef nonnull align 8 dereferenceable(1784) %0, ptr noundef nonnull align 8 dereferenceable(176) %189, ptr noundef nonnull align 8 dereferenceable(176) %190)
  br i1 %191, label %212, label %192

192:                                              ; preds = %188, %146
  %193 = load ptr, ptr %1, align 8, !tbaa !5
  %194 = getelementptr inbounds i8, ptr %193, i64 264
  %195 = load ptr, ptr %194, align 8
  %196 = call noundef nonnull align 8 dereferenceable(72) ptr %195(ptr noundef nonnull align 8 dereferenceable(176) %1)
  %197 = call noundef zeroext i1 @_ZNK7glslang10TQualifier14isSpecConstantEv(ptr noundef nonnull align 8 dereferenceable(72) %196)
  br i1 %197, label %198, label %219

198:                                              ; preds = %192
  %199 = load ptr, ptr %6, align 8, !tbaa !8
  %200 = load ptr, ptr %199, align 8, !tbaa !5
  %201 = getelementptr inbounds i8, ptr %200, i64 264
  %202 = load ptr, ptr %201, align 8
  %203 = call noundef nonnull align 8 dereferenceable(72) ptr %202(ptr noundef nonnull align 8 dereferenceable(176) %199)
  %204 = call noundef zeroext i1 @_ZNK7glslang10TQualifier10isConstantEv(ptr noundef nonnull align 8 dereferenceable(72) %203)
  br i1 %204, label %205, label %219

205:                                              ; preds = %198
  %206 = load ptr, ptr %7, align 8, !tbaa !8
  %207 = load ptr, ptr %206, align 8, !tbaa !5
  %208 = getelementptr inbounds i8, ptr %207, i64 264
  %209 = load ptr, ptr %208, align 8
  %210 = call noundef nonnull align 8 dereferenceable(72) ptr %209(ptr noundef nonnull align 8 dereferenceable(176) %206)
  %211 = call noundef zeroext i1 @_ZNK7glslang10TQualifier10isConstantEv(ptr noundef nonnull align 8 dereferenceable(72) %210)
  br i1 %211, label %212, label %219

212:                                              ; preds = %205, %188
  %213 = load ptr, ptr %138, align 8, !tbaa !5
  %214 = getelementptr inbounds i8, ptr %213, i64 264
  %215 = load ptr, ptr %214, align 8
  %216 = call noundef nonnull align 8 dereferenceable(72) ptr %215(ptr noundef nonnull align 8 dereferenceable(176) %138)
  call void @_ZN7glslang10TQualifier16makeSpecConstantEv(ptr noundef nonnull align 8 dereferenceable(72) %216)
  br label %224

217:                                              ; preds = %145, %137
  %218 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN11TIntermNodedlEPv(ptr noundef %138) #4
  br label %229

219:                                              ; preds = %205, %198, %192
  %220 = load ptr, ptr %138, align 8, !tbaa !5
  %221 = getelementptr inbounds i8, ptr %220, i64 264
  %222 = load ptr, ptr %221, align 8
  %223 = call noundef nonnull align 8 dereferenceable(72) ptr %222(ptr noundef nonnull align 8 dereferenceable(176) %138)
  call void @_ZN7glslang10TQualifier13makeTemporaryEv(ptr noundef nonnull align 8 dereferenceable(72) %223)
  br label %224

224:                                              ; preds = %219, %212
  %225 = call noundef i32 @_ZNK7glslang13TIntermediate9getSourceEv(ptr noundef nonnull align 8 dereferenceable(1784) %0)
  %226 = icmp eq i32 %225, 2
  br i1 %226, label %227, label %228

227:                                              ; preds = %224
  call void @_ZN7glslang16TIntermSelection17setNoShortCircuitEv(ptr noundef nonnull align 8 dereferenceable(203) %138)
  br label %228

228:                                              ; preds = %224, %227, %96, %28, %135, %133, %94
  %.1 = phi ptr [ %134, %133 ], [ %136, %135 ], [ %.0, %94 ], [ null, %28 ], [ null, %96 ], [ %138, %227 ], [ %138, %224 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  br label %230

229:                                              ; preds = %217, %95
  %.pn38 = phi { ptr, i32 } [ %218, %217 ], [ %.pn, %95 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  resume { ptr, i32 } %.pn38

230:                                              ; preds = %23, %27, %228
  %.2 = phi ptr [ %.1, %228 ], [ %24, %27 ], [ %24, %23 ]
  ret ptr %.2
}

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN7glslang19TPrecisionQualifierE", !10, i64 0}


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