; 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.glslang::TVector" = type { %"class.std::vector.89" }
%"class.std::vector.89" = type { %"struct.std::_Vector_base.90" }
%"struct.std::_Vector_base.90" = type { %"struct.std::_Vector_base<TIntermNode *, glslang::pool_allocator<TIntermNode *>>::_Vector_impl" }
%"struct.std::_Vector_base<TIntermNode *, glslang::pool_allocator<TIntermNode *>>::_Vector_impl" = type { %"class.glslang::pool_allocator.91", %"struct.std::_Vector_base<TIntermNode *, glslang::pool_allocator<TIntermNode *>>::_Vector_impl_data" }
%"class.glslang::pool_allocator.91" = type { ptr }
%"struct.std::_Vector_base<TIntermNode *, glslang::pool_allocator<TIntermNode *>>::_Vector_impl_data" = type { ptr, 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 }>

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang12TIntermTyped18propagatePrecisionENS_19TPrecisionQualifierE(ptr noundef nonnull align 8 dereferenceable(176) %0, i32 noundef %1) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.glslang::TVector", align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %16 = load ptr, ptr %3, align 8
  %17 = load ptr, ptr %16, align 8, !tbaa !11
  %18 = getelementptr inbounds ptr, ptr %17, i64 33
  %19 = load ptr, ptr %18, align 8
  %20 = call noundef nonnull align 8 dereferenceable(72) ptr %19(ptr noundef nonnull align 8 dereferenceable(176) %16)
  %21 = getelementptr inbounds %"class.glslang::TQualifier", ptr %20, i32 0, i32 1
  %22 = load i64, ptr %21, align 8
  %23 = lshr i64 %22, 24
  %24 = and i64 %23, 7
  %25 = trunc i64 %24 to i32
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %51, label %27

27:                                               ; preds = %2
  %28 = load ptr, ptr %16, align 8, !tbaa !11
  %29 = getelementptr inbounds ptr, ptr %28, i64 32
  %30 = load ptr, ptr %29, align 8
  %31 = call noundef i32 %30(ptr noundef nonnull align 8 dereferenceable(176) %16)
  %32 = icmp ne i32 %31, 8
  br i1 %32, label %33, label %52

33:                                               ; preds = %27
  %34 = load ptr, ptr %16, align 8, !tbaa !11
  %35 = getelementptr inbounds ptr, ptr %34, i64 32
  %36 = load ptr, ptr %35, align 8
  %37 = call noundef i32 %36(ptr noundef nonnull align 8 dereferenceable(176) %16)
  %38 = icmp ne i32 %37, 9
  br i1 %38, label %39, label %52

39:                                               ; preds = %33
  %40 = load ptr, ptr %16, align 8, !tbaa !11
  %41 = getelementptr inbounds ptr, ptr %40, i64 32
  %42 = load ptr, ptr %41, align 8
  %43 = call noundef i32 %42(ptr noundef nonnull align 8 dereferenceable(176) %16)
  %44 = icmp ne i32 %43, 1
  br i1 %44, label %45, label %52

45:                                               ; preds = %39
  %46 = load ptr, ptr %16, align 8, !tbaa !11
  %47 = getelementptr inbounds ptr, ptr %46, i64 32
  %48 = load ptr, ptr %47, align 8
  %49 = call noundef i32 %48(ptr noundef nonnull align 8 dereferenceable(176) %16)
  %50 = icmp ne i32 %49, 3
  br i1 %50, label %51, label %52

51:                                               ; preds = %45, %2
  br label %208

52:                                               ; preds = %45, %39, %33, %27
  %53 = load i32, ptr %4, align 4, !tbaa !9
  %54 = load ptr, ptr %16, align 8, !tbaa !11
  %55 = getelementptr inbounds ptr, ptr %54, i64 33
  %56 = load ptr, ptr %55, align 8
  %57 = call noundef nonnull align 8 dereferenceable(72) ptr %56(ptr noundef nonnull align 8 dereferenceable(176) %16)
  %58 = getelementptr inbounds %"class.glslang::TQualifier", ptr %57, i32 0, i32 1
  %59 = zext i32 %53 to i64
  %60 = load i64, ptr %58, align 8
  %61 = and i64 %59, 7
  %62 = shl i64 %61, 24
  %63 = and i64 %60, -117440513
  %64 = or i64 %63, %62
  store i64 %64, ptr %58, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %65 = load ptr, ptr %16, align 8, !tbaa !11
  %66 = getelementptr inbounds ptr, ptr %65, i64 8
  %67 = load ptr, ptr %66, align 8
  %68 = call noundef ptr %67(ptr noundef nonnull align 8 dereferenceable(32) %16)
  store ptr %68, ptr %5, align 8, !tbaa !5
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = icmp ne ptr %69, null
  br i1 %70, label %71, label %90

71:                                               ; preds = %52
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = load ptr, ptr %72, align 8, !tbaa !11
  %74 = getelementptr inbounds ptr, ptr %73, i64 50
  %75 = load ptr, ptr %74, align 8
  %76 = call noundef ptr %75(ptr noundef nonnull align 8 dereferenceable(200) %72)
  %77 = load i32, ptr %4, align 4, !tbaa !9
  %78 = load ptr, ptr %76, align 8, !tbaa !11
  %79 = getelementptr inbounds ptr, ptr %78, i64 37
  %80 = load ptr, ptr %79, align 8
  call void %80(ptr noundef nonnull align 8 dereferenceable(176) %76, i32 noundef %77)
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = load ptr, ptr %81, align 8, !tbaa !11
  %83 = getelementptr inbounds ptr, ptr %82, i64 51
  %84 = load ptr, ptr %83, align 8
  %85 = call noundef ptr %84(ptr noundef nonnull align 8 dereferenceable(200) %81)
  %86 = load i32, ptr %4, align 4, !tbaa !9
  %87 = load ptr, ptr %85, align 8, !tbaa !11
  %88 = getelementptr inbounds ptr, ptr %87, i64 37
  %89 = load ptr, ptr %88, align 8
  call void %89(ptr noundef nonnull align 8 dereferenceable(176) %85, i32 noundef %86)
  store i32 1, ptr %6, align 4
  br label %206

90:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %91 = load ptr, ptr %16, align 8, !tbaa !11
  %92 = getelementptr inbounds ptr, ptr %91, i64 7
  %93 = load ptr, ptr %92, align 8
  %94 = call noundef ptr %93(ptr noundef nonnull align 8 dereferenceable(32) %16)
  store ptr %94, ptr %7, align 8, !tbaa !5
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = icmp ne ptr %95, null
  br i1 %96, label %97, label %107

97:                                               ; preds = %90
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = load ptr, ptr %98, align 8, !tbaa !11
  %100 = getelementptr inbounds ptr, ptr %99, i64 49
  %101 = load ptr, ptr %100, align 8
  %102 = call noundef ptr %101(ptr noundef nonnull align 8 dereferenceable(240) %98)
  %103 = load i32, ptr %4, align 4, !tbaa !9
  %104 = load ptr, ptr %102, align 8, !tbaa !11
  %105 = getelementptr inbounds ptr, ptr %104, i64 37
  %106 = load ptr, ptr %105, align 8
  call void %106(ptr noundef nonnull align 8 dereferenceable(176) %102, i32 noundef %103)
  store i32 1, ptr %6, align 4
  br label %205

107:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %108 = load ptr, ptr %16, align 8, !tbaa !11
  %109 = getelementptr inbounds ptr, ptr %108, i64 6
  %110 = load ptr, ptr %109, align 8
  %111 = call noundef ptr %110(ptr noundef nonnull align 8 dereferenceable(32) %16)
  store ptr %111, ptr %8, align 8, !tbaa !5
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = icmp ne ptr %112, null
  br i1 %113, label %114, label %158

114:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #4
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = load ptr, ptr %115, align 8, !tbaa !11
  %117 = getelementptr inbounds ptr, ptr %116, i64 50
  %118 = load ptr, ptr %117, align 8
  %119 = call noundef nonnull align 8 dereferenceable(32) ptr %118(ptr noundef nonnull align 8 dereferenceable(352) %115)
  call void @_ZN7glslang7TVectorIP11TIntermNodeEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %119)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !13
  br label %120

120:                                              ; preds = %153, %114
  %121 = load i32, ptr %10, align 4, !tbaa !13
  %122 = zext i32 %121 to i64
  %123 = call noundef i64 @_ZNKSt6vectorIP11TIntermNodeN7glslang14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %9) #4
  %124 = icmp ult i64 %122, %123
  br i1 %124, label %126, label %125

125:                                              ; preds = %120
  store i32 2, ptr %6, align 4
  br label %156

126:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %127 = load i32, ptr %10, align 4, !tbaa !13
  %128 = zext i32 %127 to i64
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP11TIntermNodeN7glslang14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %9, i64 noundef %128) #4
  %130 = load ptr, ptr %129, align 8, !tbaa !5
  %131 = load ptr, ptr %130, align 8, !tbaa !11
  %132 = getelementptr inbounds ptr, ptr %131, i64 3
  %133 = load ptr, ptr %132, align 8
  %134 = invoke noundef ptr %133(ptr noundef nonnull align 8 dereferenceable(32) %130)
          to label %135 unwind label %139

135:                                              ; preds = %126
  store ptr %134, ptr %11, align 8, !tbaa !5
  %136 = load ptr, ptr %11, align 8, !tbaa !5
  %137 = icmp ne ptr %136, null
  br i1 %137, label %143, label %138

138:                                              ; preds = %135
  store i32 2, ptr %6, align 4
  br label %150

139:                                              ; preds = %143, %126
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %12, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @_ZNSt6vectorIP11TIntermNodeN7glslang14pool_allocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %209

143:                                              ; preds = %135
  %144 = load ptr, ptr %11, align 8, !tbaa !5
  %145 = load i32, ptr %4, align 4, !tbaa !9
  %146 = load ptr, ptr %144, align 8, !tbaa !11
  %147 = getelementptr inbounds ptr, ptr %146, i64 37
  %148 = load ptr, ptr %147, align 8
  invoke void %148(ptr noundef nonnull align 8 dereferenceable(176) %144, i32 noundef %145)
          to label %149 unwind label %139

149:                                              ; preds = %143
  store i32 0, ptr %6, align 4
  br label %150

150:                                              ; preds = %149, %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  %151 = load i32, ptr %6, align 4
  switch i32 %151, label %156 [
    i32 0, label %152
  ]

152:                                              ; preds = %150
  br label %153

153:                                              ; preds = %152
  %154 = load i32, ptr %10, align 4, !tbaa !13
  %155 = add i32 %154, 1
  store i32 %155, ptr %10, align 4, !tbaa !13
  br label %120, !llvm.loop !15

156:                                              ; preds = %150, %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %157

157:                                              ; preds = %156
  store i32 1, ptr %6, align 4
  call void @_ZNSt6vectorIP11TIntermNodeN7glslang14pool_allocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #4
  br label %204

158:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %159 = load ptr, ptr %16, align 8, !tbaa !11
  %160 = getelementptr inbounds ptr, ptr %159, i64 9
  %161 = load ptr, ptr %160, align 8
  %162 = call noundef ptr %161(ptr noundef nonnull align 8 dereferenceable(32) %16)
  store ptr %162, ptr %14, align 8, !tbaa !5
  %163 = load ptr, ptr %14, align 8, !tbaa !5
  %164 = icmp ne ptr %163, null
  br i1 %164, label %165, label %202

165:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %166 = load ptr, ptr %14, align 8, !tbaa !5
  %167 = load ptr, ptr %166, align 8, !tbaa !11
  %168 = getelementptr inbounds ptr, ptr %167, i64 50
  %169 = load ptr, ptr %168, align 8
  %170 = call noundef ptr %169(ptr noundef nonnull align 8 dereferenceable(203) %166)
  %171 = load ptr, ptr %170, align 8, !tbaa !11
  %172 = getelementptr inbounds ptr, ptr %171, i64 3
  %173 = load ptr, ptr %172, align 8
  %174 = call noundef ptr %173(ptr noundef nonnull align 8 dereferenceable(32) %170)
  store ptr %174, ptr %15, align 8, !tbaa !5
  %175 = load ptr, ptr %15, align 8, !tbaa !5
  %176 = icmp ne ptr %175, null
  br i1 %176, label %177, label %201

177:                                              ; preds = %165
  %178 = load ptr, ptr %15, align 8, !tbaa !5
  %179 = load i32, ptr %4, align 4, !tbaa !9
  %180 = load ptr, ptr %178, align 8, !tbaa !11
  %181 = getelementptr inbounds ptr, ptr %180, i64 37
  %182 = load ptr, ptr %181, align 8
  call void %182(ptr noundef nonnull align 8 dereferenceable(176) %178, i32 noundef %179)
  %183 = load ptr, ptr %14, align 8, !tbaa !5
  %184 = load ptr, ptr %183, align 8, !tbaa !11
  %185 = getelementptr inbounds ptr, ptr %184, i64 52
  %186 = load ptr, ptr %185, align 8
  %187 = call noundef ptr %186(ptr noundef nonnull align 8 dereferenceable(203) %183)
  %188 = load ptr, ptr %187, align 8, !tbaa !11
  %189 = getelementptr inbounds ptr, ptr %188, i64 3
  %190 = load ptr, ptr %189, align 8
  %191 = call noundef ptr %190(ptr noundef nonnull align 8 dereferenceable(32) %187)
  store ptr %191, ptr %15, align 8, !tbaa !5
  %192 = load ptr, ptr %15, align 8, !tbaa !5
  %193 = icmp ne ptr %192, null
  br i1 %193, label %194, label %200

194:                                              ; preds = %177
  %195 = load ptr, ptr %15, align 8, !tbaa !5
  %196 = load i32, ptr %4, align 4, !tbaa !9
  %197 = load ptr, ptr %195, align 8, !tbaa !11
  %198 = getelementptr inbounds ptr, ptr %197, i64 37
  %199 = load ptr, ptr %198, align 8
  call void %199(ptr noundef nonnull align 8 dereferenceable(176) %195, i32 noundef %196)
  br label %200

200:                                              ; preds = %194, %177
  br label %201

201:                                              ; preds = %200, %165
  store i32 1, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %203

202:                                              ; preds = %158
  store i32 0, ptr %6, align 4
  br label %203

203:                                              ; preds = %202, %201
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %204

204:                                              ; preds = %203, %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %205

205:                                              ; preds = %204, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %206

206:                                              ; preds = %205, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  %207 = load i32, ptr %6, align 4
  switch i32 %207, label %214 [
    i32 0, label %208
    i32 1, label %208
  ]

208:                                              ; preds = %206, %206, %51
  ret void

209:                                              ; preds = %139
  %210 = load ptr, ptr %12, align 8
  %211 = load i32, ptr %13, align 4
  %212 = insertvalue { ptr, i32 } poison, ptr %210, 0
  %213 = insertvalue { ptr, i32 } %212, i32 %211, 1
  resume { ptr, i32 } %213

214:                                              ; preds = %206
  unreachable
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"_ZTSN7glslang19TPrecisionQualifierE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


; 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.glslang::TVector" = type { %"class.std::vector.89" }
%"class.std::vector.89" = type { %"struct.std::_Vector_base.90" }
%"struct.std::_Vector_base.90" = type { %"struct.std::_Vector_base<TIntermNode *, glslang::pool_allocator<TIntermNode *>>::_Vector_impl" }
%"struct.std::_Vector_base<TIntermNode *, glslang::pool_allocator<TIntermNode *>>::_Vector_impl" = type { %"class.glslang::pool_allocator.91", %"struct.std::_Vector_base<TIntermNode *, glslang::pool_allocator<TIntermNode *>>::_Vector_impl_data" }
%"class.glslang::pool_allocator.91" = type { ptr }
%"struct.std::_Vector_base<TIntermNode *, glslang::pool_allocator<TIntermNode *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

; 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 dso_local noundef i64 @_ZNKSt6vectorIP11TIntermNodeN7glslang14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang12TIntermTyped18propagatePrecisionENS_19TPrecisionQualifierE(ptr noundef nonnull align 8 dereferenceable(176) %0, i32 noundef %1) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.glslang::TVector", align 8
  %4 = load ptr, ptr %0, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %4, i64 264
  %6 = load ptr, ptr %5, align 8
  %7 = tail call noundef nonnull align 8 dereferenceable(72) ptr %6(ptr noundef nonnull align 8 dereferenceable(176) %0)
  %8 = getelementptr inbounds i8, ptr %7, i64 8
  %9 = load i64, ptr %8, align 8
  %10 = and i64 %9, 117440512
  %.not = icmp eq i64 %10, 0
  br i1 %.not, label %11, label %135

11:                                               ; preds = %2
  %12 = load ptr, ptr %0, 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) %0)
  %.not38 = icmp eq i32 %15, 8
  br i1 %.not38, label %31, label %16

16:                                               ; preds = %11
  %17 = load ptr, ptr %0, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 256
  %19 = load ptr, ptr %18, align 8
  %20 = tail call noundef i32 %19(ptr noundef nonnull align 8 dereferenceable(176) %0)
  %.not39 = icmp eq i32 %20, 9
  br i1 %.not39, label %31, label %21

21:                                               ; preds = %16
  %22 = load ptr, ptr %0, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %22, i64 256
  %24 = load ptr, ptr %23, align 8
  %25 = tail call noundef i32 %24(ptr noundef nonnull align 8 dereferenceable(176) %0)
  %.not40 = icmp eq i32 %25, 1
  br i1 %.not40, label %31, label %26

26:                                               ; preds = %21
  %27 = load ptr, ptr %0, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i64 256
  %29 = load ptr, ptr %28, align 8
  %30 = tail call noundef i32 %29(ptr noundef nonnull align 8 dereferenceable(176) %0)
  %.not41 = icmp eq i32 %30, 3
  br i1 %.not41, label %31, label %135

31:                                               ; preds = %26, %21, %16, %11
  %32 = load ptr, ptr %0, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %32, i64 264
  %34 = load ptr, ptr %33, align 8
  %35 = tail call noundef nonnull align 8 dereferenceable(72) ptr %34(ptr noundef nonnull align 8 dereferenceable(176) %0)
  %36 = getelementptr inbounds i8, ptr %35, i64 8
  %37 = load i64, ptr %36, align 8
  %38 = shl i32 %1, 24
  %39 = and i32 %38, 117440512
  %40 = zext nneg i32 %39 to i64
  %41 = and i64 %37, -117440513
  %42 = or disjoint i64 %41, %40
  store i64 %42, ptr %36, align 8
  %43 = load ptr, ptr %0, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %43, i64 64
  %45 = load ptr, ptr %44, align 8
  %46 = tail call noundef ptr %45(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %.not42 = icmp eq ptr %46, null
  br i1 %.not42, label %62, label %47

47:                                               ; preds = %31
  %48 = load ptr, ptr %46, align 8, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %48, i64 400
  %50 = load ptr, ptr %49, align 8
  %51 = tail call noundef ptr %50(ptr noundef nonnull align 8 dereferenceable(200) %46)
  %52 = load ptr, ptr %51, align 8, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %52, i64 296
  %54 = load ptr, ptr %53, align 8
  tail call void %54(ptr noundef nonnull align 8 dereferenceable(176) %51, i32 noundef %1)
  %55 = load ptr, ptr %46, align 8, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %55, i64 408
  %57 = load ptr, ptr %56, align 8
  %58 = tail call noundef ptr %57(ptr noundef nonnull align 8 dereferenceable(200) %46)
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %59, i64 296
  %61 = load ptr, ptr %60, align 8
  tail call void %61(ptr noundef nonnull align 8 dereferenceable(176) %58, i32 noundef %1)
  br label %135

62:                                               ; preds = %31
  %63 = load ptr, ptr %0, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %63, i64 56
  %65 = load ptr, ptr %64, align 8
  %66 = tail call noundef ptr %65(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %.not43 = icmp eq ptr %66, null
  br i1 %.not43, label %75, label %67

67:                                               ; preds = %62
  %68 = load ptr, ptr %66, align 8, !tbaa !5
  %69 = getelementptr inbounds i8, ptr %68, i64 392
  %70 = load ptr, ptr %69, align 8
  %71 = tail call noundef ptr %70(ptr noundef nonnull align 8 dereferenceable(240) %66)
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  %73 = getelementptr inbounds i8, ptr %72, i64 296
  %74 = load ptr, ptr %73, align 8
  tail call void %74(ptr noundef nonnull align 8 dereferenceable(176) %71, i32 noundef %1)
  br label %135

75:                                               ; preds = %62
  %76 = load ptr, ptr %0, align 8, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %76, i64 48
  %78 = load ptr, ptr %77, align 8
  %79 = tail call noundef ptr %78(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %.not44 = icmp eq ptr %79, null
  br i1 %.not44, label %105, label %80

80:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #4
  %81 = load ptr, ptr %79, align 8, !tbaa !5
  %82 = getelementptr inbounds i8, ptr %81, i64 400
  %83 = load ptr, ptr %82, align 8
  %84 = tail call noundef nonnull align 8 dereferenceable(32) ptr %83(ptr noundef nonnull align 8 dereferenceable(352) %79)
  call void @_ZN7glslang7TVectorIP11TIntermNodeEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %84)
  %85 = call noundef i64 @_ZNKSt6vectorIP11TIntermNodeN7glslang14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  %.not51 = icmp eq i64 %85, 0
  br i1 %.not51, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %80, %100
  %86 = phi i64 [ %102, %100 ], [ 0, %80 ]
  %.02949 = phi i32 [ %101, %100 ], [ 0, %80 ]
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP11TIntermNodeN7glslang14pool_allocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %86) #4
  %88 = load ptr, ptr %87, align 8, !tbaa !8
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %89, i64 24
  %91 = load ptr, ptr %90, align 8
  %92 = invoke noundef ptr %91(ptr noundef nonnull align 8 dereferenceable(32) %88)
          to label %93 unwind label %94

93:                                               ; preds = %.lr.ph
  %.not48.not = icmp eq ptr %92, null
  br i1 %.not48.not, label %.critedge, label %96

94:                                               ; preds = %96, %.lr.ph
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIP11TIntermNodeN7glslang14pool_allocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #4
  resume { ptr, i32 } %95

96:                                               ; preds = %93
  %97 = load ptr, ptr %92, align 8, !tbaa !5
  %98 = getelementptr inbounds i8, ptr %97, i64 296
  %99 = load ptr, ptr %98, align 8
  invoke void %99(ptr noundef nonnull align 8 dereferenceable(176) %92, i32 noundef %1)
          to label %100 unwind label %94

100:                                              ; preds = %96
  %101 = add i32 %.02949, 1
  %102 = zext i32 %101 to i64
  %103 = call noundef i64 @_ZNKSt6vectorIP11TIntermNodeN7glslang14pool_allocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  %104 = icmp ugt i64 %103, %102
  br i1 %104, label %.lr.ph, label %.critedge, !llvm.loop !11

.critedge:                                        ; preds = %100, %93, %80
  call void @_ZNSt6vectorIP11TIntermNodeN7glslang14pool_allocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #4
  br label %135

105:                                              ; preds = %75
  %106 = load ptr, ptr %0, align 8, !tbaa !5
  %107 = getelementptr inbounds i8, ptr %106, i64 72
  %108 = load ptr, ptr %107, align 8
  %109 = tail call noundef ptr %108(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %.not45 = icmp eq ptr %109, null
  br i1 %.not45, label %135, label %110

110:                                              ; preds = %105
  %111 = load ptr, ptr %109, align 8, !tbaa !5
  %112 = getelementptr inbounds i8, ptr %111, i64 400
  %113 = load ptr, ptr %112, align 8
  %114 = tail call noundef ptr %113(ptr noundef nonnull align 8 dereferenceable(203) %109)
  %115 = load ptr, ptr %114, align 8, !tbaa !5
  %116 = getelementptr inbounds i8, ptr %115, i64 24
  %117 = load ptr, ptr %116, align 8
  %118 = tail call noundef ptr %117(ptr noundef nonnull align 8 dereferenceable(32) %114)
  %.not46 = icmp eq ptr %118, null
  br i1 %.not46, label %135, label %119

119:                                              ; preds = %110
  %120 = load ptr, ptr %118, align 8, !tbaa !5
  %121 = getelementptr inbounds i8, ptr %120, i64 296
  %122 = load ptr, ptr %121, align 8
  tail call void %122(ptr noundef nonnull align 8 dereferenceable(176) %118, i32 noundef %1)
  %123 = load ptr, ptr %109, align 8, !tbaa !5
  %124 = getelementptr inbounds i8, ptr %123, i64 416
  %125 = load ptr, ptr %124, align 8
  %126 = tail call noundef ptr %125(ptr noundef nonnull align 8 dereferenceable(203) %109)
  %127 = load ptr, ptr %126, align 8, !tbaa !5
  %128 = getelementptr inbounds i8, ptr %127, i64 24
  %129 = load ptr, ptr %128, align 8
  %130 = tail call noundef ptr %129(ptr noundef nonnull align 8 dereferenceable(32) %126)
  %.not47 = icmp eq ptr %130, null
  br i1 %.not47, label %135, label %131

131:                                              ; preds = %119
  %132 = load ptr, ptr %130, align 8, !tbaa !5
  %133 = getelementptr inbounds i8, ptr %132, i64 296
  %134 = load ptr, ptr %133, align 8
  tail call void %134(ptr noundef nonnull align 8 dereferenceable(176) %130, i32 noundef %1)
  br label %135

135:                                              ; preds = %47, %.critedge, %105, %110, %131, %119, %67, %2, %26
  ret void
}

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

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


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