; LLVM IR from hbatagelo/abcg :: abcg/external/glslang/glslang/CInterface (glslang_c_interface)

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

%struct.glslang_input_s = type { i32, i32, i32, i32, i32, i32, ptr, i32, i32, i32, i32, i32, ptr }
%struct.glslang_shader_s = type { ptr, %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@.str = external hidden unnamed_addr constant [51 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local ptr @glslang_shader_create(ptr noundef %0) #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = icmp ne ptr %7, null
  br i1 %8, label %9, label %14

9:                                                ; preds = %1
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.glslang_input_s, ptr %10, i32 0, i32 6
  %12 = load ptr, ptr %11, align 8, !tbaa !9
  %13 = icmp ne ptr %12, null
  br i1 %13, label %25, label %14

14:                                               ; preds = %9, %1
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %15)
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %24

19:                                               ; preds = %14
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.glslang_input_s, ptr %20, i32 0, i32 6
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %22)
  br label %24

24:                                               ; preds = %19, %14
  store ptr null, ptr %2, align 8
  br label %86

25:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  %26 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #9
  call void @llvm.memset.p0.i64(ptr align 16 %26, i8 0, i64 40, i1 false)
  call void @_ZN16glslang_shader_sC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %26) #8
  store ptr %26, ptr %4, align 8, !tbaa !5
  %27 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 168) #9
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.glslang_input_s, ptr %28, i32 0, i32 1
  %30 = load i32, ptr %29, align 4, !tbaa !20
  %31 = invoke noundef i32 @_ZL14c_shader_stage15glslang_stage_t(i32 noundef %30)
          to label %32 unwind label %82

32:                                               ; preds = %25
  invoke void @_ZN7glslang7TShaderC1E11EShLanguage(ptr noundef nonnull align 8 dereferenceable(164) %27, i32 noundef %31)
          to label %33 unwind label %82

33:                                               ; preds = %32
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.glslang_shader_s, ptr %34, i32 0, i32 0
  store ptr %27, ptr %35, align 8, !tbaa !21
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.glslang_shader_s, ptr %36, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8, !tbaa !21
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.glslang_input_s, ptr %39, i32 0, i32 6
  call void @_ZN7glslang7TShader10setStringsEPKPKci(ptr noundef nonnull align 8 dereferenceable(164) %38, ptr noundef %40, i32 noundef 1)
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.glslang_shader_s, ptr %41, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8, !tbaa !21
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.glslang_input_s, ptr %44, i32 0, i32 0
  %46 = load i32, ptr %45, align 8, !tbaa !26
  %47 = call noundef i32 @_ZL15c_shader_source16glslang_source_t(i32 noundef %46)
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.glslang_input_s, ptr %48, i32 0, i32 1
  %50 = load i32, ptr %49, align 4, !tbaa !20
  %51 = call noundef i32 @_ZL14c_shader_stage15glslang_stage_t(i32 noundef %50)
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.glslang_input_s, ptr %52, i32 0, i32 2
  %54 = load i32, ptr %53, align 8, !tbaa !27
  %55 = call noundef i32 @_ZL15c_shader_client16glslang_client_t(i32 noundef %54)
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.glslang_input_s, ptr %56, i32 0, i32 7
  %58 = load i32, ptr %57, align 8, !tbaa !28
  call void @_ZN7glslang7TShader11setEnvInputENS_9EShSourceE11EShLanguageNS_9EShClientEi(ptr noundef nonnull align 8 dereferenceable(164) %43, i32 noundef %47, i32 noundef %51, i32 noundef %55, i32 noundef %58)
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.glslang_shader_s, ptr %59, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8, !tbaa !21
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.glslang_input_s, ptr %62, i32 0, i32 2
  %64 = load i32, ptr %63, align 8, !tbaa !27
  %65 = call noundef i32 @_ZL15c_shader_client16glslang_client_t(i32 noundef %64)
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.glslang_input_s, ptr %66, i32 0, i32 3
  %68 = load i32, ptr %67, align 4, !tbaa !29
  %69 = call noundef i32 @_ZL23c_shader_client_version31glslang_target_client_version_t(i32 noundef %68)
  call void @_ZN7glslang7TShader12setEnvClientENS_9EShClientENS_22EShTargetClientVersionE(ptr noundef nonnull align 8 dereferenceable(164) %61, i32 noundef %65, i32 noundef %69)
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.glslang_shader_s, ptr %70, i32 0, i32 0
  %72 = load ptr, ptr %71, align 8, !tbaa !21
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.glslang_input_s, ptr %73, i32 0, i32 4
  %75 = load i32, ptr %74, align 8, !tbaa !30
  %76 = call noundef i32 @_ZL24c_shader_target_language25glslang_target_language_t(i32 noundef %75)
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.glslang_input_s, ptr %77, i32 0, i32 5
  %79 = load i32, ptr %78, align 4, !tbaa !31
  %80 = call noundef i32 @_ZL32c_shader_target_language_version33glslang_target_language_version_t(i32 noundef %79)
  call void @_ZN7glslang7TShader12setEnvTargetENS_17EShTargetLanguageENS_24EShTargetLanguageVersionE(ptr noundef nonnull align 8 dereferenceable(164) %72, i32 noundef %76, i32 noundef %80)
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %81, ptr %2, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  br label %86

82:                                               ; preds = %32, %25
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %5, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %27, i64 noundef 168) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  br label %88

86:                                               ; preds = %33, %24
  %87 = load ptr, ptr %2, align 8
  ret ptr %87

88:                                               ; preds = %82
  %89 = load ptr, ptr %5, align 8
  %90 = load i32, ptr %6, align 4
  %91 = insertvalue { ptr, i32 } poison, ptr %89, 0
  %92 = insertvalue { ptr, i32 } %91, i32 %90, 1
  resume { ptr, i32 } %92
}

declare i32 @printf(ptr noundef, ...) #1

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN16glslang_shader_sC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL14c_shader_stage15glslang_stage_t(i32 noundef) #6

declare i32 @__gxx_personality_v0(...)

declare void @_ZN7glslang7TShaderC1E11EShLanguage(ptr noundef nonnull align 8 dereferenceable(164), i32 noundef) unnamed_addr #1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #7

declare void @_ZN7glslang7TShader10setStringsEPKPKci(ptr noundef nonnull align 8 dereferenceable(164), ptr noundef, i32 noundef) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL15c_shader_source16glslang_source_t(i32 noundef) #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL15c_shader_client16glslang_client_t(i32 noundef) #6

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL23c_shader_client_version31glslang_target_client_version_t(i32 noundef) #6

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL24c_shader_target_language25glslang_target_language_t(i32 noundef) #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL32c_shader_target_language_version33glslang_target_language_version_t(i32 noundef) #6

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nobuiltin allocsize(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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 #6 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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, !6, i64 24}
!10 = !{!"_ZTS15glslang_input_s", !11, i64 0, !12, i64 4, !13, i64 8, !14, i64 12, !15, i64 16, !16, i64 20, !6, i64 24, !17, i64 32, !18, i64 36, !17, i64 40, !17, i64 44, !19, i64 48, !6, i64 56}
!11 = !{!"_ZTS16glslang_source_t", !7, i64 0}
!12 = !{!"_ZTS15glslang_stage_t", !7, i64 0}
!13 = !{!"_ZTS16glslang_client_t", !7, i64 0}
!14 = !{!"_ZTS31glslang_target_client_version_t", !7, i64 0}
!15 = !{!"_ZTS25glslang_target_language_t", !7, i64 0}
!16 = !{!"_ZTS33glslang_target_language_version_t", !7, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTS17glslang_profile_t", !7, i64 0}
!19 = !{!"_ZTS18glslang_messages_t", !7, i64 0}
!20 = !{!10, !12, i64 4}
!21 = !{!22, !6, i64 0}
!22 = !{!"_ZTS16glslang_shader_s", !6, i64 0, !23, i64 8}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !24, i64 0, !25, i64 8, !7, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!25 = !{!"long", !7, i64 0}
!26 = !{!10, !11, i64 0}
!27 = !{!10, !13, i64 8}
!28 = !{!10, !17, i64 32}
!29 = !{!10, !14, i64 12}
!30 = !{!10, !15, i64 16}
!31 = !{!10, !16, i64 20}


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

@.str = external hidden unnamed_addr constant [51 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @glslang_shader_create(ptr noundef %0) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %.critedge, label %2

2:                                                ; preds = %1
  %3 = getelementptr inbounds i8, ptr %0, i64 24
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %.not24 = icmp eq ptr %4, null
  br i1 %.not24, label %5, label %10

5:                                                ; preds = %2
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull %0)
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %7)
  br label %42

.critedge:                                        ; preds = %1
  %9 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef null)
  br label %42

10:                                               ; preds = %2
  %11 = tail call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %11, i8 0, i64 40, i1 false)
  tail call void @_ZN16glslang_shader_sC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #9
  %12 = tail call noalias noundef nonnull dereferenceable(168) ptr @_Znwm(i64 noundef 168) #8
  %13 = getelementptr inbounds i8, ptr %0, i64 4
  %14 = load i32, ptr %13, align 4, !tbaa !19
  %15 = tail call noundef i32 @_ZL14c_shader_stage15glslang_stage_t(i32 noundef %14)
  invoke void @_ZN7glslang7TShaderC1E11EShLanguage(ptr noundef nonnull align 8 dereferenceable(164) %12, i32 noundef %15)
          to label %16 unwind label %40

16:                                               ; preds = %10
  store ptr %12, ptr %11, align 8, !tbaa !20
  tail call void @_ZN7glslang7TShader10setStringsEPKPKci(ptr noundef nonnull align 8 dereferenceable(164) %12, ptr noundef nonnull %3, i32 noundef 1)
  %17 = load ptr, ptr %11, align 8, !tbaa !20
  %18 = load i32, ptr %0, align 8, !tbaa !25
  %19 = tail call noundef i32 @_ZL15c_shader_source16glslang_source_t(i32 noundef %18)
  %20 = load i32, ptr %13, align 4, !tbaa !19
  %21 = tail call noundef i32 @_ZL14c_shader_stage15glslang_stage_t(i32 noundef %20)
  %22 = getelementptr inbounds i8, ptr %0, i64 8
  %23 = load i32, ptr %22, align 8, !tbaa !26
  %24 = tail call noundef i32 @_ZL15c_shader_client16glslang_client_t(i32 noundef %23)
  %25 = getelementptr inbounds i8, ptr %0, i64 32
  %26 = load i32, ptr %25, align 8, !tbaa !27
  tail call void @_ZN7glslang7TShader11setEnvInputENS_9EShSourceE11EShLanguageNS_9EShClientEi(ptr noundef nonnull align 8 dereferenceable(164) %17, i32 noundef %19, i32 noundef %21, i32 noundef %24, i32 noundef %26)
  %27 = load ptr, ptr %11, align 8, !tbaa !20
  %28 = load i32, ptr %22, align 8, !tbaa !26
  %29 = tail call noundef i32 @_ZL15c_shader_client16glslang_client_t(i32 noundef %28)
  %30 = getelementptr inbounds i8, ptr %0, i64 12
  %31 = load i32, ptr %30, align 4, !tbaa !28
  %32 = tail call noundef i32 @_ZL23c_shader_client_version31glslang_target_client_version_t(i32 noundef %31)
  tail call void @_ZN7glslang7TShader12setEnvClientENS_9EShClientENS_22EShTargetClientVersionE(ptr noundef nonnull align 8 dereferenceable(164) %27, i32 noundef %29, i32 noundef %32)
  %33 = load ptr, ptr %11, align 8, !tbaa !20
  %34 = getelementptr inbounds i8, ptr %0, i64 16
  %35 = load i32, ptr %34, align 8, !tbaa !29
  %36 = tail call noundef i32 @_ZL24c_shader_target_language25glslang_target_language_t(i32 noundef %35)
  %37 = getelementptr inbounds i8, ptr %0, i64 20
  %38 = load i32, ptr %37, align 4, !tbaa !30
  %39 = tail call noundef i32 @_ZL32c_shader_target_language_version33glslang_target_language_version_t(i32 noundef %38)
  tail call void @_ZN7glslang7TShader12setEnvTargetENS_17EShTargetLanguageENS_24EShTargetLanguageVersionE(ptr noundef nonnull align 8 dereferenceable(164) %33, i32 noundef %36, i32 noundef %39)
  br label %42

40:                                               ; preds = %10
  %41 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %12, i64 noundef 168) #10
  resume { ptr, i32 } %41

42:                                               ; preds = %5, %.critedge, %16
  %.0 = phi ptr [ %11, %16 ], [ null, %.critedge ], [ null, %5 ]
  ret ptr %.0
}

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN16glslang_shader_sC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL14c_shader_stage15glslang_stage_t(i32 noundef) local_unnamed_addr #5

declare i32 @__gxx_personality_v0(...)

declare void @_ZN7glslang7TShaderC1E11EShLanguage(ptr noundef nonnull align 8 dereferenceable(164), i32 noundef) unnamed_addr #6

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #7

declare void @_ZN7glslang7TShader10setStringsEPKPKci(ptr noundef nonnull align 8 dereferenceable(164), ptr noundef, i32 noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL15c_shader_source16glslang_source_t(i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL15c_shader_client16glslang_client_t(i32 noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL23c_shader_client_version31glslang_target_client_version_t(i32 noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL24c_shader_target_language25glslang_target_language_t(i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL32c_shader_target_language_version33glslang_target_language_version_t(i32 noundef) local_unnamed_addr #5

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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nobuiltin allocsize(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 nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { nounwind }
attributes #10 = { builtin 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, !15, i64 24}
!6 = !{!"_ZTS15glslang_input_s", !7, i64 0, !10, i64 4, !11, i64 8, !12, i64 12, !13, i64 16, !14, i64 20, !15, i64 24, !16, i64 32, !17, i64 36, !16, i64 40, !16, i64 44, !18, i64 48, !15, i64 56}
!7 = !{!"_ZTS16glslang_source_t", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS15glslang_stage_t", !8, i64 0}
!11 = !{!"_ZTS16glslang_client_t", !8, i64 0}
!12 = !{!"_ZTS31glslang_target_client_version_t", !8, i64 0}
!13 = !{!"_ZTS25glslang_target_language_t", !8, i64 0}
!14 = !{!"_ZTS33glslang_target_language_version_t", !8, i64 0}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"int", !8, i64 0}
!17 = !{!"_ZTS17glslang_profile_t", !8, i64 0}
!18 = !{!"_ZTS18glslang_messages_t", !8, i64 0}
!19 = !{!6, !10, i64 4}
!20 = !{!21, !15, i64 0}
!21 = !{!"_ZTS16glslang_shader_s", !15, i64 0, !22, i64 8}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !23, i64 0, !24, i64 8, !8, i64 16}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !15, i64 0}
!24 = !{!"long", !8, i64 0}
!25 = !{!6, !7, i64 0}
!26 = !{!6, !11, i64 8}
!27 = !{!6, !16, i64 32}
!28 = !{!6, !12, i64 12}
!29 = !{!6, !13, i64 16}
!30 = !{!6, !14, i64 20}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass