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

; 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::TBuiltIns" = type { %"class.glslang::TBuiltInParseables", [5 x ptr], [22 x ptr], [8 x i32] }
%"class.glslang::TBuiltInParseables" = type { ptr, %"class.std::__cxx11::basic_string", [14 x %"class.std::__cxx11::basic_string"] }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, glslang::pool_allocator<char>>::_Alloc_hider" = type { %"class.glslang::pool_allocator", ptr }
%"class.glslang::pool_allocator" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@_ZTVN7glslang9TBuiltInsE = external dso_local unnamed_addr constant { [10 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [1 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7glslang18TBuiltInParseablesC2Ev(ptr noundef nonnull align 8 dereferenceable(608)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang9TBuiltInsC2Ev(ptr noundef nonnull align 8 dereferenceable(856) %0) unnamed_addr #0 align 2 {
  %2 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %3 = load ptr, ptr %2, align 8
  call void @_ZN7glslang18TBuiltInParseablesC2Ev(ptr noundef nonnull align 8 dereferenceable(608) %3)
  store ptr getelementptr inbounds inrange(-16, 64) ({ [10 x ptr] }, ptr @_ZTVN7glslang9TBuiltInsE, i32 0, i32 0, i32 2), ptr %3, align 8, !tbaa !9
  %4 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %3, i32 0, i32 2
  %5 = getelementptr inbounds [22 x ptr], ptr %4, i64 0, i64 1
  store ptr @.str, ptr %5, align 8, !tbaa !5
  %6 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %3, i32 0, i32 2
  %7 = getelementptr inbounds [22 x ptr], ptr %6, i64 0, i64 8
  store ptr @.str.1, ptr %7, align 8, !tbaa !5
  %8 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %3, i32 0, i32 2
  %9 = getelementptr inbounds [22 x ptr], ptr %8, i64 0, i64 9
  store ptr @.str.2, ptr %9, align 8, !tbaa !5
  %10 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %3, i32 0, i32 2
  %11 = getelementptr inbounds [22 x ptr], ptr %10, i64 0, i64 3
  store ptr @.str.3, ptr %11, align 8, !tbaa !5
  %12 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %3, i32 0, i32 2
  %13 = getelementptr inbounds [22 x ptr], ptr %12, i64 0, i64 4
  store ptr @.str.4, ptr %13, align 8, !tbaa !5
  %14 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %3, i32 0, i32 2
  %15 = getelementptr inbounds [22 x ptr], ptr %14, i64 0, i64 5
  store ptr @.str.5, ptr %15, align 8, !tbaa !5
  %16 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %3, i32 0, i32 2
  %17 = getelementptr inbounds [22 x ptr], ptr %16, i64 0, i64 6
  store ptr @.str.6, ptr %17, align 8, !tbaa !5
  %18 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %3, i32 0, i32 2
  %19 = getelementptr inbounds [22 x ptr], ptr %18, i64 0, i64 7
  store ptr @.str.7, ptr %19, align 8, !tbaa !5
  %20 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %3, i32 0, i32 2
  %21 = getelementptr inbounds [22 x ptr], ptr %20, i64 0, i64 10
  store ptr @.str.8, ptr %21, align 8, !tbaa !5
  %22 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %3, i32 0, i32 2
  %23 = getelementptr inbounds [22 x ptr], ptr %22, i64 0, i64 11
  store ptr @.str.9, ptr %23, align 8, !tbaa !5
  %24 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %3, i32 0, i32 1
  %25 = getelementptr inbounds [5 x ptr], ptr %24, i64 0, i64 2
  store ptr @.str.10, ptr %25, align 8, !tbaa !5
  %26 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %3, i32 0, i32 1
  %27 = getelementptr inbounds [5 x ptr], ptr %26, i64 0, i64 3
  store ptr @.str.11, ptr %27, align 8, !tbaa !5
  %28 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %3, i32 0, i32 1
  %29 = getelementptr inbounds [5 x ptr], ptr %28, i64 0, i64 4
  store ptr @.str.12, ptr %29, align 8, !tbaa !5
  %30 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %3, i32 0, i32 3
  %31 = getelementptr inbounds [8 x i32], ptr %30, i64 0, i64 2
  store i32 2, ptr %31, align 8, !tbaa !11
  %32 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %3, i32 0, i32 3
  %33 = getelementptr inbounds [8 x i32], ptr %32, i64 0, i64 3
  store i32 3, ptr %33, align 4, !tbaa !11
  %34 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %3, i32 0, i32 3
  %35 = getelementptr inbounds [8 x i32], ptr %34, i64 0, i64 4
  store i32 3, ptr %35, align 8, !tbaa !11
  %36 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %3, i32 0, i32 3
  %37 = getelementptr inbounds [8 x i32], ptr %36, i64 0, i64 1
  store i32 1, ptr %37, align 4, !tbaa !11
  %38 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %3, i32 0, i32 3
  %39 = getelementptr inbounds [8 x i32], ptr %38, i64 0, i64 5
  store i32 2, ptr %39, align 4, !tbaa !11
  %40 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %3, i32 0, i32 3
  %41 = getelementptr inbounds [8 x i32], ptr %40, i64 0, i64 6
  store i32 1, ptr %41, align 8, !tbaa !11
  %42 = getelementptr inbounds %"class.glslang::TBuiltIns", ptr %3, i32 0, i32 3
  %43 = getelementptr inbounds [8 x i32], ptr %42, i64 0, i64 7
  store i32 2, ptr %43, align 4, !tbaa !11
  ret void
}

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

!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, !12, i64 0}
!12 = !{!"int", !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"

@_ZTVN7glslang9TBuiltInsE = external dso_local unnamed_addr constant { [10 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [1 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7glslang18TBuiltInParseablesC2Ev(ptr noundef nonnull align 8 dereferenceable(608)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang9TBuiltInsC2Ev(ptr noundef nonnull align 8 dereferenceable(856) %0) unnamed_addr #0 align 2 {
  tail call void @_ZN7glslang18TBuiltInParseablesC2Ev(ptr noundef nonnull align 8 dereferenceable(608) %0)
  store ptr getelementptr inbounds inrange(-16, 64) (i8, ptr @_ZTVN7glslang9TBuiltInsE, i64 16), ptr %0, align 8, !tbaa !5
  %2 = getelementptr inbounds i8, ptr %0, i64 656
  store ptr @.str, ptr %2, align 8, !tbaa !8
  %3 = getelementptr inbounds i8, ptr %0, i64 712
  store ptr @.str.1, ptr %3, align 8, !tbaa !8
  %4 = getelementptr inbounds i8, ptr %0, i64 720
  store ptr @.str.2, ptr %4, align 8, !tbaa !8
  %5 = getelementptr inbounds i8, ptr %0, i64 672
  store ptr @.str.3, ptr %5, align 8, !tbaa !8
  %6 = getelementptr inbounds i8, ptr %0, i64 680
  store ptr @.str.4, ptr %6, align 8, !tbaa !8
  %7 = getelementptr inbounds i8, ptr %0, i64 688
  store ptr @.str.5, ptr %7, align 8, !tbaa !8
  %8 = getelementptr inbounds i8, ptr %0, i64 696
  store ptr @.str.6, ptr %8, align 8, !tbaa !8
  %9 = getelementptr inbounds i8, ptr %0, i64 704
  store ptr @.str.7, ptr %9, align 8, !tbaa !8
  %10 = getelementptr inbounds i8, ptr %0, i64 728
  store ptr @.str.8, ptr %10, align 8, !tbaa !8
  %11 = getelementptr inbounds i8, ptr %0, i64 736
  store ptr @.str.9, ptr %11, align 8, !tbaa !8
  %12 = getelementptr inbounds i8, ptr %0, i64 624
  store ptr @.str.10, ptr %12, align 8, !tbaa !8
  %13 = getelementptr inbounds i8, ptr %0, i64 632
  store ptr @.str.11, ptr %13, align 8, !tbaa !8
  %14 = getelementptr inbounds i8, ptr %0, i64 640
  store ptr @.str.12, ptr %14, align 8, !tbaa !8
  %15 = getelementptr inbounds i8, ptr %0, i64 828
  store <4 x i32> <i32 1, i32 2, i32 3, i32 3>, ptr %15, align 4, !tbaa !11
  %16 = getelementptr inbounds i8, ptr %0, i64 844
  store i32 2, ptr %16, align 4, !tbaa !11
  %17 = getelementptr inbounds i8, ptr %0, i64 848
  store i32 1, ptr %17, align 8, !tbaa !11
  %18 = getelementptr inbounds i8, ptr %0, i64 852
  store i32 2, ptr %18, align 4, !tbaa !11
  ret void
}

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

!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 = !{!"int", !10, i64 0}


; Effective O3 passes: EarlyCSEPass,InstCombinePass,SLPVectorizerPass,SROAPass,TailCallElimPass