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

; 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::TIntermTraverser" = type { ptr, i8, i8, i8, i8, i32, i32, %"class.glslang::TVector" }
%"class.glslang::TVector" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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", %"struct.std::_Vector_base<TIntermNode *, glslang::pool_allocator<TIntermNode *>>::_Vector_impl_data" }
%"class.glslang::pool_allocator" = type { ptr }
%"struct.std::_Vector_base<TIntermNode *, glslang::pool_allocator<TIntermNode *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.glslang::TIntermBinary" = type { %"class.glslang::TIntermOperator", ptr, ptr }
%"class.glslang::TIntermOperator" = type { %"class.glslang::TIntermTyped", i32, i32 }
%"class.glslang::TIntermTyped" = type { %class.TIntermNode, %"class.glslang::TType" }
%class.TIntermNode = type { ptr, %"struct.glslang::TSourceLoc" }
%"struct.glslang::TSourceLoc" = type { ptr, i32, i32, i32 }
%"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 uwtable
define dso_local void @_ZN7glslang13TIntermBinary8traverseEPNS_16TIntermTraverserE(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef %1) unnamed_addr #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %6 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #3
  store i8 1, ptr %5, align 1, !tbaa !9
  %7 = load ptr, ptr %4, align 8, !tbaa !5
  %8 = getelementptr inbounds %"class.glslang::TIntermTraverser", ptr %7, i32 0, i32 1
  %9 = load i8, ptr %8, align 8, !tbaa !11, !range !20, !noundef !21
  %10 = trunc i8 %9 to i1
  br i1 %10, label %11, label %18

11:                                               ; preds = %2
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %12, align 8, !tbaa !22
  %14 = getelementptr inbounds ptr, ptr %13, i64 4
  %15 = load ptr, ptr %14, align 8
  %16 = call noundef zeroext i1 %15(ptr noundef nonnull align 8 dereferenceable(56) %12, i32 noundef 0, ptr noundef %6)
  %17 = zext i1 %16 to i8
  store i8 %17, ptr %5, align 1, !tbaa !9
  br label %18

18:                                               ; preds = %11, %2
  %19 = load i8, ptr %5, align 1, !tbaa !9, !range !20, !noundef !21
  %20 = trunc i8 %19 to i1
  br i1 %20, label %21, label %105

21:                                               ; preds = %18
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN7glslang16TIntermTraverser14incrementDepthEP11TIntermNode(ptr noundef nonnull align 8 dereferenceable(56) %22, ptr noundef %6)
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %"class.glslang::TIntermTraverser", ptr %23, i32 0, i32 4
  %25 = load i8, ptr %24, align 1, !tbaa !24, !range !20, !noundef !21
  %26 = trunc i8 %25 to i1
  br i1 %26, label %27, label %65

27:                                               ; preds = %21
  %28 = getelementptr inbounds %"class.glslang::TIntermBinary", ptr %6, i32 0, i32 2
  %29 = load ptr, ptr %28, align 8, !tbaa !25
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %38

31:                                               ; preds = %27
  %32 = getelementptr inbounds %"class.glslang::TIntermBinary", ptr %6, i32 0, i32 2
  %33 = load ptr, ptr %32, align 8, !tbaa !25
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = load ptr, ptr %33, align 8, !tbaa !22
  %36 = getelementptr inbounds ptr, ptr %35, i64 2
  %37 = load ptr, ptr %36, align 8
  call void %37(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef %34)
  br label %38

38:                                               ; preds = %31, %27
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %"class.glslang::TIntermTraverser", ptr %39, i32 0, i32 2
  %41 = load i8, ptr %40, align 1, !tbaa !43, !range !20, !noundef !21
  %42 = trunc i8 %41 to i1
  br i1 %42, label %43, label %50

43:                                               ; preds = %38
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = load ptr, ptr %44, align 8, !tbaa !22
  %46 = getelementptr inbounds ptr, ptr %45, i64 4
  %47 = load ptr, ptr %46, align 8
  %48 = call noundef zeroext i1 %47(ptr noundef nonnull align 8 dereferenceable(56) %44, i32 noundef 1, ptr noundef %6)
  %49 = zext i1 %48 to i8
  store i8 %49, ptr %5, align 1, !tbaa !9
  br label %50

50:                                               ; preds = %43, %38
  %51 = load i8, ptr %5, align 1, !tbaa !9, !range !20, !noundef !21
  %52 = trunc i8 %51 to i1
  br i1 %52, label %53, label %64

53:                                               ; preds = %50
  %54 = getelementptr inbounds %"class.glslang::TIntermBinary", ptr %6, i32 0, i32 1
  %55 = load ptr, ptr %54, align 8, !tbaa !44
  %56 = icmp ne ptr %55, null
  br i1 %56, label %57, label %64

57:                                               ; preds = %53
  %58 = getelementptr inbounds %"class.glslang::TIntermBinary", ptr %6, i32 0, i32 1
  %59 = load ptr, ptr %58, align 8, !tbaa !44
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = load ptr, ptr %59, align 8, !tbaa !22
  %62 = getelementptr inbounds ptr, ptr %61, i64 2
  %63 = load ptr, ptr %62, align 8
  call void %63(ptr noundef nonnull align 8 dereferenceable(32) %59, ptr noundef %60)
  br label %64

64:                                               ; preds = %57, %53, %50
  br label %103

65:                                               ; preds = %21
  %66 = getelementptr inbounds %"class.glslang::TIntermBinary", ptr %6, i32 0, i32 1
  %67 = load ptr, ptr %66, align 8, !tbaa !44
  %68 = icmp ne ptr %67, null
  br i1 %68, label %69, label %76

69:                                               ; preds = %65
  %70 = getelementptr inbounds %"class.glslang::TIntermBinary", ptr %6, i32 0, i32 1
  %71 = load ptr, ptr %70, align 8, !tbaa !44
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = load ptr, ptr %71, align 8, !tbaa !22
  %74 = getelementptr inbounds ptr, ptr %73, i64 2
  %75 = load ptr, ptr %74, align 8
  call void %75(ptr noundef nonnull align 8 dereferenceable(32) %71, ptr noundef %72)
  br label %76

76:                                               ; preds = %69, %65
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = getelementptr inbounds %"class.glslang::TIntermTraverser", ptr %77, i32 0, i32 2
  %79 = load i8, ptr %78, align 1, !tbaa !43, !range !20, !noundef !21
  %80 = trunc i8 %79 to i1
  br i1 %80, label %81, label %88

81:                                               ; preds = %76
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = load ptr, ptr %82, align 8, !tbaa !22
  %84 = getelementptr inbounds ptr, ptr %83, i64 4
  %85 = load ptr, ptr %84, align 8
  %86 = call noundef zeroext i1 %85(ptr noundef nonnull align 8 dereferenceable(56) %82, i32 noundef 1, ptr noundef %6)
  %87 = zext i1 %86 to i8
  store i8 %87, ptr %5, align 1, !tbaa !9
  br label %88

88:                                               ; preds = %81, %76
  %89 = load i8, ptr %5, align 1, !tbaa !9, !range !20, !noundef !21
  %90 = trunc i8 %89 to i1
  br i1 %90, label %91, label %102

91:                                               ; preds = %88
  %92 = getelementptr inbounds %"class.glslang::TIntermBinary", ptr %6, i32 0, i32 2
  %93 = load ptr, ptr %92, align 8, !tbaa !25
  %94 = icmp ne ptr %93, null
  br i1 %94, label %95, label %102

95:                                               ; preds = %91
  %96 = getelementptr inbounds %"class.glslang::TIntermBinary", ptr %6, i32 0, i32 2
  %97 = load ptr, ptr %96, align 8, !tbaa !25
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = load ptr, ptr %97, align 8, !tbaa !22
  %100 = getelementptr inbounds ptr, ptr %99, i64 2
  %101 = load ptr, ptr %100, align 8
  call void %101(ptr noundef nonnull align 8 dereferenceable(32) %97, ptr noundef %98)
  br label %102

102:                                              ; preds = %95, %91, %88
  br label %103

103:                                              ; preds = %102, %64
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN7glslang16TIntermTraverser14decrementDepthEv(ptr noundef nonnull align 8 dereferenceable(56) %104)
  br label %105

105:                                              ; preds = %103, %18
  %106 = load i8, ptr %5, align 1, !tbaa !9, !range !20, !noundef !21
  %107 = trunc i8 %106 to i1
  br i1 %107, label %108, label %119

108:                                              ; preds = %105
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = getelementptr inbounds %"class.glslang::TIntermTraverser", ptr %109, i32 0, i32 3
  %111 = load i8, ptr %110, align 2, !tbaa !45, !range !20, !noundef !21
  %112 = trunc i8 %111 to i1
  br i1 %112, label %113, label %119

113:                                              ; preds = %108
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = load ptr, ptr %114, align 8, !tbaa !22
  %116 = getelementptr inbounds ptr, ptr %115, i64 4
  %117 = load ptr, ptr %116, align 8
  %118 = call noundef zeroext i1 %117(ptr noundef nonnull align 8 dereferenceable(56) %114, i32 noundef 2, ptr noundef %6)
  br label %119

119:                                              ; preds = %113, %108, %105
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #3
  ret void
}

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_ZTSN7glslang16TIntermTraverserE", !10, i64 8, !10, i64 9, !10, i64 10, !10, i64 11, !13, i64 12, !13, i64 16, !14, i64 24}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTSN7glslang7TVectorIP11TIntermNodeEE", !15, i64 0}
!15 = !{!"_ZTSSt6vectorIP11TIntermNodeN7glslang14pool_allocatorIS1_EEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIP11TIntermNodeN7glslang14pool_allocatorIS1_EEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIP11TIntermNodeN7glslang14pool_allocatorIS1_EEE12_Vector_implE", !18, i64 0, !19, i64 8}
!18 = !{!"_ZTSN7glslang14pool_allocatorIP11TIntermNodeEE", !6, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIP11TIntermNodeN7glslang14pool_allocatorIS1_EEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!23, !23, i64 0}
!23 = !{!"vtable pointer", !8, i64 0}
!24 = !{!12, !10, i64 11}
!25 = !{!26, !6, i64 192}
!26 = !{!"_ZTSN7glslang13TIntermBinaryE", !27, i64 0, !6, i64 184, !6, i64 192}
!27 = !{!"_ZTSN7glslang15TIntermOperatorE", !28, i64 0, !42, i64 176, !36, i64 180}
!28 = !{!"_ZTSN7glslang12TIntermTypedE", !29, i64 0, !31, i64 32}
!29 = !{!"_ZTS11TIntermNode", !30, i64 8}
!30 = !{!"_ZTSN7glslang10TSourceLocE", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16}
!31 = !{!"_ZTSN7glslang5TTypeE", !32, i64 8, !13, i64 9, !13, i64 9, !13, i64 10, !10, i64 10, !10, i64 10, !33, i64 16, !6, i64 88, !7, i64 96, !6, i64 104, !6, i64 112, !40, i64 120, !6, i64 128, !6, i64 136}
!32 = !{!"_ZTSN7glslang10TBasicTypeE", !7, i64 0}
!33 = !{!"_ZTSN7glslang10TQualifierE", !6, i64 0, !34, i64 8, !35, i64 8, !35, i64 9, !36, i64 11, !10, i64 11, !10, i64 11, !10, i64 11, !10, i64 11, !10, i64 11, !10, i64 12, !10, i64 12, !10, i64 12, !10, i64 12, !10, i64 12, !10, i64 12, !10, i64 12, !10, i64 12, !10, i64 13, !10, i64 13, !10, i64 13, !10, i64 13, !10, i64 13, !10, i64 13, !10, i64 13, !10, i64 13, !10, i64 14, !10, i64 14, !10, i64 14, !10, i64 14, !10, i64 14, !10, i64 14, !10, i64 14, !10, i64 14, !10, i64 15, !10, i64 15, !10, i64 15, !37, i64 15, !38, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 29, !13, i64 29, !13, i64 32, !13, i64 34, !13, i64 35, !13, i64 36, !13, i64 36, !13, i64 38, !13, i64 40, !13, i64 41, !13, i64 42, !39, i64 44, !10, i64 45, !10, i64 46, !10, i64 47, !10, i64 48, !13, i64 52, !10, i64 56, !13, i64 60, !6, i64 64}
!34 = !{!"_ZTSN7glslang17TStorageQualifierE", !7, i64 0}
!35 = !{!"_ZTSN7glslang16TBuiltInVariableE", !7, i64 0}
!36 = !{!"_ZTSN7glslang19TPrecisionQualifierE", !7, i64 0}
!37 = !{!"_ZTSN7glslang13TLayoutMatrixE", !7, i64 0}
!38 = !{!"_ZTSN7glslang14TLayoutPackingE", !7, i64 0}
!39 = !{!"_ZTSN7glslang13TLayoutFormatE", !7, i64 0}
!40 = !{!"_ZTSN7glslang8TSamplerE", !32, i64 0, !41, i64 1, !10, i64 2, !10, i64 2, !10, i64 2, !10, i64 2, !10, i64 2, !10, i64 2, !13, i64 2, !13, i64 3, !10, i64 3, !10, i64 3}
!41 = !{!"_ZTSN7glslang11TSamplerDimE", !7, i64 0}
!42 = !{!"_ZTSN7glslang9TOperatorE", !7, i64 0}
!43 = !{!12, !10, i64 9}
!44 = !{!26, !6, i64 184}
!45 = !{!12, !10, i64 10}


; 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"

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang13TIntermBinary8traverseEPNS_16TIntermTraverserE(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef %1) unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %1, i64 8
  %4 = load i8, ptr %3, align 8, !tbaa !5, !range !18, !noundef !19
  %5 = trunc nuw i8 %4 to i1
  br i1 %5, label %6, label %.thread

6:                                                ; preds = %2
  %7 = load ptr, ptr %1, align 8, !tbaa !20
  %8 = getelementptr inbounds i8, ptr %7, i64 32
  %9 = load ptr, ptr %8, align 8
  %10 = tail call noundef zeroext i1 %9(ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef 0, ptr noundef nonnull %0)
  br i1 %10, label %.thread, label %.thread32

.thread:                                          ; preds = %2, %6
  tail call void @_ZN7glslang16TIntermTraverser14incrementDepthEP11TIntermNode(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull %0)
  %11 = getelementptr inbounds i8, ptr %1, i64 11
  %12 = load i8, ptr %11, align 1, !tbaa !22, !range !18, !noundef !19
  %13 = trunc nuw i8 %12 to i1
  br i1 %13, label %14, label %32

14:                                               ; preds = %.thread
  %15 = getelementptr inbounds i8, ptr %0, i64 192
  %16 = load ptr, ptr %15, align 8, !tbaa !23
  %.not24 = icmp eq ptr %16, null
  br i1 %.not24, label %21, label %17

17:                                               ; preds = %14
  %18 = load ptr, ptr %16, align 8, !tbaa !20
  %19 = getelementptr inbounds i8, ptr %18, i64 16
  %20 = load ptr, ptr %19, align 8
  tail call void %20(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull %1)
  br label %21

21:                                               ; preds = %17, %14
  %22 = getelementptr inbounds i8, ptr %1, i64 9
  %23 = load i8, ptr %22, align 1, !tbaa !41, !range !18, !noundef !19
  %24 = trunc nuw i8 %23 to i1
  br i1 %24, label %25, label %.thread28

25:                                               ; preds = %21
  %26 = load ptr, ptr %1, align 8, !tbaa !20
  %27 = getelementptr inbounds i8, ptr %26, i64 32
  %28 = load ptr, ptr %27, align 8
  %29 = tail call noundef zeroext i1 %28(ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef 1, ptr noundef nonnull %0)
  br i1 %29, label %.thread28, label %50

.thread28:                                        ; preds = %21, %25
  %30 = getelementptr inbounds i8, ptr %0, i64 184
  %31 = load ptr, ptr %30, align 8, !tbaa !42
  %.not25 = icmp eq ptr %31, null
  br i1 %.not25, label %54, label %.sink.split

32:                                               ; preds = %.thread
  %33 = getelementptr inbounds i8, ptr %0, i64 184
  %34 = load ptr, ptr %33, align 8, !tbaa !42
  %.not = icmp eq ptr %34, null
  br i1 %.not, label %39, label %35

35:                                               ; preds = %32
  %36 = load ptr, ptr %34, align 8, !tbaa !20
  %37 = getelementptr inbounds i8, ptr %36, i64 16
  %38 = load ptr, ptr %37, align 8
  tail call void %38(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull %1)
  br label %39

39:                                               ; preds = %35, %32
  %40 = getelementptr inbounds i8, ptr %1, i64 9
  %41 = load i8, ptr %40, align 1, !tbaa !41, !range !18, !noundef !19
  %42 = trunc nuw i8 %41 to i1
  br i1 %42, label %43, label %.thread30

43:                                               ; preds = %39
  %44 = load ptr, ptr %1, align 8, !tbaa !20
  %45 = getelementptr inbounds i8, ptr %44, i64 32
  %46 = load ptr, ptr %45, align 8
  %47 = tail call noundef zeroext i1 %46(ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef 1, ptr noundef nonnull %0)
  br i1 %47, label %.thread30, label %50

.thread30:                                        ; preds = %39, %43
  %48 = getelementptr inbounds i8, ptr %0, i64 192
  %49 = load ptr, ptr %48, align 8, !tbaa !23
  %.not23 = icmp eq ptr %49, null
  br i1 %.not23, label %54, label %.sink.split

50:                                               ; preds = %25, %43
  tail call void @_ZN7glslang16TIntermTraverser14decrementDepthEv(ptr noundef nonnull align 8 dereferenceable(56) %1)
  br label %.thread32

.sink.split:                                      ; preds = %.thread30, %.thread28
  %.sink39 = phi ptr [ %31, %.thread28 ], [ %49, %.thread30 ]
  %51 = load ptr, ptr %.sink39, align 8, !tbaa !20
  %52 = getelementptr inbounds i8, ptr %51, i64 16
  %53 = load ptr, ptr %52, align 8
  tail call void %53(ptr noundef nonnull align 8 dereferenceable(32) %.sink39, ptr noundef nonnull %1)
  br label %54

54:                                               ; preds = %.sink.split, %.thread30, %.thread28
  tail call void @_ZN7glslang16TIntermTraverser14decrementDepthEv(ptr noundef nonnull align 8 dereferenceable(56) %1)
  %55 = getelementptr inbounds i8, ptr %1, i64 10
  %56 = load i8, ptr %55, align 2, !tbaa !43, !range !18, !noundef !19
  %57 = trunc nuw i8 %56 to i1
  br i1 %57, label %58, label %.thread32

58:                                               ; preds = %54
  %59 = load ptr, ptr %1, align 8, !tbaa !20
  %60 = getelementptr inbounds i8, ptr %59, i64 32
  %61 = load ptr, ptr %60, align 8
  %62 = tail call noundef zeroext i1 %61(ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef 2, ptr noundef nonnull %0)
  br label %.thread32

.thread32:                                        ; preds = %6, %50, %58, %54
  ret void
}

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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" }

!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, !7, i64 8}
!6 = !{!"_ZTSN7glslang16TIntermTraverserE", !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !10, i64 12, !10, i64 16, !11, i64 24}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTSN7glslang7TVectorIP11TIntermNodeEE", !12, i64 0}
!12 = !{!"_ZTSSt6vectorIP11TIntermNodeN7glslang14pool_allocatorIS1_EEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIP11TIntermNodeN7glslang14pool_allocatorIS1_EEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIP11TIntermNodeN7glslang14pool_allocatorIS1_EEE12_Vector_implE", !15, i64 0, !17, i64 8}
!15 = !{!"_ZTSN7glslang14pool_allocatorIP11TIntermNodeEE", !16, i64 0}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIP11TIntermNodeN7glslang14pool_allocatorIS1_EEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!21, !21, i64 0}
!21 = !{!"vtable pointer", !9, i64 0}
!22 = !{!6, !7, i64 11}
!23 = !{!24, !16, i64 192}
!24 = !{!"_ZTSN7glslang13TIntermBinaryE", !25, i64 0, !16, i64 184, !16, i64 192}
!25 = !{!"_ZTSN7glslang15TIntermOperatorE", !26, i64 0, !40, i64 176, !34, i64 180}
!26 = !{!"_ZTSN7glslang12TIntermTypedE", !27, i64 0, !29, i64 32}
!27 = !{!"_ZTS11TIntermNode", !28, i64 8}
!28 = !{!"_ZTSN7glslang10TSourceLocE", !16, i64 0, !10, i64 8, !10, i64 12, !10, i64 16}
!29 = !{!"_ZTSN7glslang5TTypeE", !30, i64 8, !10, i64 9, !10, i64 9, !10, i64 10, !7, i64 10, !7, i64 10, !31, i64 16, !16, i64 88, !8, i64 96, !16, i64 104, !16, i64 112, !38, i64 120, !16, i64 128, !16, i64 136}
!30 = !{!"_ZTSN7glslang10TBasicTypeE", !8, i64 0}
!31 = !{!"_ZTSN7glslang10TQualifierE", !16, i64 0, !32, i64 8, !33, i64 8, !33, i64 9, !34, i64 11, !7, i64 11, !7, i64 11, !7, i64 11, !7, i64 11, !7, i64 11, !7, i64 12, !7, i64 12, !7, i64 12, !7, i64 12, !7, i64 12, !7, i64 12, !7, i64 12, !7, i64 12, !7, i64 13, !7, i64 13, !7, i64 13, !7, i64 13, !7, i64 13, !7, i64 13, !7, i64 13, !7, i64 13, !7, i64 14, !7, i64 14, !7, i64 14, !7, i64 14, !7, i64 14, !7, i64 14, !7, i64 14, !7, i64 14, !7, i64 15, !7, i64 15, !7, i64 15, !35, i64 15, !36, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 29, !10, i64 29, !10, i64 32, !10, i64 34, !10, i64 35, !10, i64 36, !10, i64 36, !10, i64 38, !10, i64 40, !10, i64 41, !10, i64 42, !37, i64 44, !7, i64 45, !7, i64 46, !7, i64 47, !7, i64 48, !10, i64 52, !7, i64 56, !10, i64 60, !16, i64 64}
!32 = !{!"_ZTSN7glslang17TStorageQualifierE", !8, i64 0}
!33 = !{!"_ZTSN7glslang16TBuiltInVariableE", !8, i64 0}
!34 = !{!"_ZTSN7glslang19TPrecisionQualifierE", !8, i64 0}
!35 = !{!"_ZTSN7glslang13TLayoutMatrixE", !8, i64 0}
!36 = !{!"_ZTSN7glslang14TLayoutPackingE", !8, i64 0}
!37 = !{!"_ZTSN7glslang13TLayoutFormatE", !8, i64 0}
!38 = !{!"_ZTSN7glslang8TSamplerE", !30, i64 0, !39, i64 1, !7, i64 2, !7, i64 2, !7, i64 2, !7, i64 2, !7, i64 2, !7, i64 2, !10, i64 2, !10, i64 3, !7, i64 3, !7, i64 3}
!39 = !{!"_ZTSN7glslang11TSamplerDimE", !8, i64 0}
!40 = !{!"_ZTSN7glslang9TOperatorE", !8, i64 0}
!41 = !{!6, !7, i64 9}
!42 = !{!24, !16, i64 184}
!43 = !{!6, !7, i64 10}


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