; LLVM IR from hbatagelo/abcg :: abcg/external/glslang/glslang/OSDependent/Web/glslang.js (convert_glsl_to_spirv)

; 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.TBuiltInResource = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.TLimits }
%struct.TLimits = type { i8, i8, i8, i8, i8, i8, i8, i8, i8 }
%"class.glslang::TShader" = type <{ ptr, ptr, i32, [4 x i8], ptr, ptr, ptr, ptr, ptr, ptr, i32, [4 x i8], ptr, %"class.std::__cxx11::basic_string", i32, %"struct.glslang::TEnvironment", [4 x i8] }>
%"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] }
%"struct.glslang::TEnvironment" = type { %"struct.glslang::TInputLanguage", %"struct.glslang::TClient", %"struct.glslang::TTarget" }
%"struct.glslang::TInputLanguage" = type { i32, i32, i32, i32, i8 }
%"struct.glslang::TClient" = type { i32, i32 }
%"struct.glslang::TTarget" = type { i32, i32, i8 }
%"class.glslang::TProgram" = type <{ ptr, ptr, [14 x %"class.std::__cxx11::list"], [14 x ptr], [14 x i8], [2 x i8], ptr, ptr, i8, [7 x i8] }>
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<glslang::TShader *, std::allocator<glslang::TShader *>>::_List_impl" }
%"struct.std::__cxx11::_List_base<glslang::TShader *, std::allocator<glslang::TShader *>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"struct.glslang::SpvOptions" = type { i8, i8, i8, i8, i8, i8 }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1
@_ZL11initialized = external hidden global i8, align 1
@_ZL23DefaultTBuiltInResource = external hidden constant %struct.TBuiltInResource, align 4
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local ptr @convert_glsl_to_spirv(ptr noundef %0, i32 noundef %1, i1 noundef zeroext %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #0 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.glslang::TShader", align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.glslang::TProgram", align 8
  %20 = alloca %"struct.glslang::SpvOptions", align 1
  %21 = alloca ptr, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  %22 = zext i1 %2 to i8
  store i8 %22, ptr %10, align 1, !tbaa !11
  store i32 %3, ptr %11, align 4, !tbaa !13
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  %24 = icmp eq ptr %23, null
  br i1 %24, label %25, label %28

25:                                               ; preds = %6
  %26 = load ptr, ptr @stderr, align 8, !tbaa !5
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef @.str) #6
  store ptr null, ptr %7, align 8
  br label %142

28:                                               ; preds = %6
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  %30 = icmp eq ptr %29, null
  br i1 %30, label %34, label %31

31:                                               ; preds = %28
  %32 = load ptr, ptr %13, align 8, !tbaa !5
  %33 = icmp eq ptr %32, null
  br i1 %33, label %34, label %37

34:                                               ; preds = %31, %28
  %35 = load ptr, ptr @stderr, align 8, !tbaa !5
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef @.str.1) #6
  store ptr null, ptr %7, align 8
  br label %142

37:                                               ; preds = %31
  %38 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr null, ptr %38, align 8, !tbaa !5
  %39 = load ptr, ptr %13, align 8, !tbaa !5
  store i64 0, ptr %39, align 8, !tbaa !15
  %40 = load i32, ptr %9, align 4, !tbaa !9
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %42, label %51

42:                                               ; preds = %37
  %43 = load i32, ptr %9, align 4, !tbaa !9
  %44 = icmp ne i32 %43, 4
  br i1 %44, label %45, label %51

45:                                               ; preds = %42
  %46 = load i32, ptr %9, align 4, !tbaa !9
  %47 = icmp ne i32 %46, 5
  br i1 %47, label %48, label %51

48:                                               ; preds = %45
  %49 = load ptr, ptr @stderr, align 8, !tbaa !5
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef @.str.2) #6
  store ptr null, ptr %7, align 8
  br label %142

51:                                               ; preds = %45, %42, %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %52 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %52, ptr %14, align 4, !tbaa !17
  %53 = load i32, ptr %11, align 4, !tbaa !13
  switch i32 %53, label %55 [
    i32 65536, label %54
    i32 65792, label %54
    i32 66048, label %54
    i32 66304, label %54
    i32 66560, label %54
    i32 66816, label %54
  ]

54:                                               ; preds = %51, %51, %51, %51, %51, %51
  br label %58

55:                                               ; preds = %51
  %56 = load ptr, ptr @stderr, align 8, !tbaa !5
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef @.str.3) #6
  store ptr null, ptr %7, align 8
  store i32 1, ptr %15, align 4
  br label %141

58:                                               ; preds = %54
  %59 = load i8, ptr @_ZL11initialized, align 1, !tbaa !11, !range !19, !noundef !20
  %60 = trunc i8 %59 to i1
  br i1 %60, label %63, label %61

61:                                               ; preds = %58
  %62 = call noundef zeroext i1 @_ZN7glslang17InitializeProcessEv()
  store i8 1, ptr @_ZL11initialized, align 1, !tbaa !11
  br label %63

63:                                               ; preds = %61, %58
  call void @llvm.lifetime.start.p0(i64 168, ptr %16) #6
  %64 = load i32, ptr %14, align 4, !tbaa !17
  call void @_ZN7glslang7TShaderC1E11EShLanguage(ptr noundef nonnull align 8 dereferenceable(164) %16, i32 noundef %64)
  invoke void @_ZN7glslang7TShader10setStringsEPKPKci(ptr noundef nonnull align 8 dereferenceable(164) %16, ptr noundef %8, i32 noundef 1)
          to label %65 unwind label %80

65:                                               ; preds = %63
  %66 = load i32, ptr %14, align 4, !tbaa !17
  invoke void @_ZN7glslang7TShader11setEnvInputENS_9EShSourceE11EShLanguageNS_9EShClientEi(ptr noundef nonnull align 8 dereferenceable(164) %16, i32 noundef 1, i32 noundef %66, i32 noundef 1, i32 noundef 100)
          to label %67 unwind label %80

67:                                               ; preds = %65
  invoke void @_ZN7glslang7TShader12setEnvClientENS_9EShClientENS_22EShTargetClientVersionE(ptr noundef nonnull align 8 dereferenceable(164) %16, i32 noundef 1, i32 noundef 4194304)
          to label %68 unwind label %80

68:                                               ; preds = %67
  %69 = load i32, ptr %11, align 4, !tbaa !13
  invoke void @_ZN7glslang7TShader12setEnvTargetENS_17EShTargetLanguageENS_24EShTargetLanguageVersionE(ptr noundef nonnull align 8 dereferenceable(164) %16, i32 noundef 1, i32 noundef %69)
          to label %70 unwind label %80

70:                                               ; preds = %68
  %71 = invoke noundef zeroext i1 @_ZN7glslang7TShader5parseEPK16TBuiltInResourceib11EShMessages(ptr noundef nonnull align 8 dereferenceable(164) %16, ptr noundef @_ZL23DefaultTBuiltInResource, i32 noundef 100, i1 noundef zeroext true, i32 noundef 0)
          to label %72 unwind label %80

72:                                               ; preds = %70
  br i1 %71, label %84, label %73

73:                                               ; preds = %72
  %74 = load ptr, ptr @stderr, align 8, !tbaa !5
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef @.str.4) #6
  %76 = load ptr, ptr @stderr, align 8, !tbaa !5
  %77 = invoke noundef ptr @_ZN7glslang7TShader10getInfoLogEv(ptr noundef nonnull align 8 dereferenceable(164) %16)
          to label %78 unwind label %80

78:                                               ; preds = %73
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef @.str.5, ptr noundef %77) #6
  store ptr null, ptr %7, align 8
  store i32 1, ptr %15, align 4
  br label %139

80:                                               ; preds = %73, %70, %68, %67, %65, %63
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %17, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %18, align 4
  br label %140

84:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 504, ptr %19) #6
  invoke void @_ZN7glslang8TProgramC1Ev(ptr noundef nonnull align 8 dereferenceable(497) %19)
          to label %85 unwind label %96

85:                                               ; preds = %84
  invoke void @_ZN7glslang8TProgram9addShaderEPNS_7TShaderE(ptr noundef nonnull align 8 dereferenceable(497) %19, ptr noundef %16)
          to label %86 unwind label %100

86:                                               ; preds = %85
  %87 = invoke noundef zeroext i1 @_ZN7glslang8TProgram4linkE11EShMessages(ptr noundef nonnull align 8 dereferenceable(497) %19, i32 noundef 0)
          to label %88 unwind label %100

88:                                               ; preds = %86
  br i1 %87, label %104, label %89

89:                                               ; preds = %88
  %90 = load ptr, ptr @stderr, align 8, !tbaa !5
  %91 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %90, ptr noundef @.str.6) #6
  %92 = load ptr, ptr @stderr, align 8, !tbaa !5
  %93 = invoke noundef ptr @_ZN7glslang8TProgram10getInfoLogEv(ptr noundef nonnull align 8 dereferenceable(497) %19)
          to label %94 unwind label %100

94:                                               ; preds = %89
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %92, ptr noundef @.str.5, ptr noundef %93) #6
  store ptr null, ptr %7, align 8
  store i32 1, ptr %15, align 4
  br label %136

96:                                               ; preds = %84
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %17, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %18, align 4
  br label %138

100:                                              ; preds = %89, %86, %85
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %17, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %18, align 4
  br label %137

104:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 6, ptr %20) #6
  invoke void @_ZN7glslang10SpvOptionsC2Ev(ptr noundef nonnull align 1 dereferenceable(6) %20)
          to label %105 unwind label %127

105:                                              ; preds = %104
  %106 = load i8, ptr %10, align 1, !tbaa !11, !range !19, !noundef !20
  %107 = trunc i8 %106 to i1
  %108 = getelementptr inbounds %"struct.glslang::SpvOptions", ptr %20, i32 0, i32 0
  %109 = zext i1 %107 to i8
  store i8 %109, ptr %108, align 1, !tbaa !21
  %110 = getelementptr inbounds %"struct.glslang::SpvOptions", ptr %20, i32 0, i32 3
  store i8 0, ptr %110, align 1, !tbaa !23
  %111 = getelementptr inbounds %"struct.glslang::SpvOptions", ptr %20, i32 0, i32 4
  store i8 0, ptr %111, align 1, !tbaa !24
  %112 = getelementptr inbounds %"struct.glslang::SpvOptions", ptr %20, i32 0, i32 5
  store i8 0, ptr %112, align 1, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %113 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #7
          to label %114 unwind label %131

114:                                              ; preds = %105
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %113) #6
  store ptr %113, ptr %21, align 8, !tbaa !5
  %115 = load i32, ptr %14, align 4, !tbaa !17
  %116 = invoke noundef ptr @_ZNK7glslang8TProgram15getIntermediateE11EShLanguage(ptr noundef nonnull align 8 dereferenceable(497) %19, i32 noundef %115)
          to label %117 unwind label %131

117:                                              ; preds = %114
  %118 = load ptr, ptr %21, align 8, !tbaa !5
  invoke void @_ZN7glslang12GlslangToSpvERKNS_13TIntermediateERSt6vectorIjSaIjEEPN3spv14SpvBuildLoggerEPNS_10SpvOptionsE(ptr noundef nonnull align 8 dereferenceable(1784) %116, ptr noundef nonnull align 8 dereferenceable(24) %118, ptr noundef null, ptr noundef %20)
          to label %119 unwind label %131

119:                                              ; preds = %117
  %120 = load ptr, ptr %21, align 8, !tbaa !5
  %121 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %120) #6
  %122 = load ptr, ptr %13, align 8, !tbaa !5
  store i64 %121, ptr %122, align 8, !tbaa !15
  %123 = load ptr, ptr %21, align 8, !tbaa !5
  %124 = call noundef ptr @_ZNSt6vectorIjSaIjEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %123) #6
  %125 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %124, ptr %125, align 8, !tbaa !5
  %126 = load ptr, ptr %21, align 8, !tbaa !5
  store ptr %126, ptr %7, align 8
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 6, ptr %20) #6
  br label %136

127:                                              ; preds = %104
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %17, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %18, align 4
  br label %135

131:                                              ; preds = %117, %114, %105
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %17, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %135

135:                                              ; preds = %131, %127
  call void @llvm.lifetime.end.p0(i64 6, ptr %20) #6
  br label %137

136:                                              ; preds = %119, %94
  call void @_ZN7glslang8TProgramD1Ev(ptr noundef nonnull align 8 dereferenceable(497) %19) #6
  call void @llvm.lifetime.end.p0(i64 504, ptr %19) #6
  br label %139

137:                                              ; preds = %135, %100
  call void @_ZN7glslang8TProgramD1Ev(ptr noundef nonnull align 8 dereferenceable(497) %19) #6
  br label %138

138:                                              ; preds = %137, %96
  call void @llvm.lifetime.end.p0(i64 504, ptr %19) #6
  br label %140

139:                                              ; preds = %136, %78
  call void @_ZN7glslang7TShaderD1Ev(ptr noundef nonnull align 8 dereferenceable(164) %16) #6
  call void @llvm.lifetime.end.p0(i64 168, ptr %16) #6
  br label %141

140:                                              ; preds = %138, %80
  call void @_ZN7glslang7TShaderD1Ev(ptr noundef nonnull align 8 dereferenceable(164) %16) #6
  call void @llvm.lifetime.end.p0(i64 168, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %144

141:                                              ; preds = %139, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %142

142:                                              ; preds = %141, %48, %34, %25
  %143 = load ptr, ptr %7, align 8
  ret ptr %143

144:                                              ; preds = %140
  %145 = load ptr, ptr %17, align 8
  %146 = load i32, ptr %18, align 4
  %147 = insertvalue { ptr, i32 } poison, ptr %145, 0
  %148 = insertvalue { ptr, i32 } %147, i32 %146, 1
  resume { ptr, i32 } %148
}

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

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

declare noundef zeroext i1 @_ZN7glslang17InitializeProcessEv() #3

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

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

declare i32 @__gxx_personality_v0(...)

; 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) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7glslang7TShader5parseEPK16TBuiltInResourceib11EShMessages(ptr noundef nonnull align 8 dereferenceable(164), ptr noundef, i32 noundef, i1 noundef zeroext, i32 noundef) #0 align 2

declare noundef ptr @_ZN7glslang7TShader10getInfoLogEv(ptr noundef nonnull align 8 dereferenceable(164)) #3

declare void @_ZN7glslang8TProgramC1Ev(ptr noundef nonnull align 8 dereferenceable(497)) unnamed_addr #3

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

declare noundef zeroext i1 @_ZN7glslang8TProgram4linkE11EShMessages(ptr noundef nonnull align 8 dereferenceable(497), i32 noundef) #3

declare noundef ptr @_ZN7glslang8TProgram10getInfoLogEv(ptr noundef nonnull align 8 dereferenceable(497)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7glslang10SpvOptionsC2Ev(ptr noundef nonnull align 1 dereferenceable(6)) unnamed_addr #4 align 2

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

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

declare void @_ZN7glslang12GlslangToSpvERKNS_13TIntermediateERSt6vectorIjSaIjEEPN3spv14SpvBuildLoggerEPNS_10SpvOptionsE(ptr noundef nonnull align 8 dereferenceable(1784), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7glslang8TProgram15getIntermediateE11EShLanguage(ptr noundef nonnull align 8 dereferenceable(497), i32 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

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

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

; Function Attrs: nounwind
declare void @_ZN7glslang8TProgramD1Ev(ptr noundef nonnull align 8 dereferenceable(497)) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN7glslang7TShaderD1Ev(ptr noundef nonnull align 8 dereferenceable(164)) unnamed_addr #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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { 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 = { 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 #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTSN7glslang24EShTargetLanguageVersionE", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"_ZTS11EShLanguage", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!22, !12, i64 0}
!22 = !{!"_ZTSN7glslang10SpvOptionsE", !12, i64 0, !12, i64 1, !12, i64 2, !12, i64 3, !12, i64 4, !12, i64 5}
!23 = !{!22, !12, i64 3}
!24 = !{!22, !12, i64 4}
!25 = !{!22, !12, i64 5}


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

%struct.TBuiltInResource = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.TLimits }
%struct.TLimits = type { i8, i8, i8, i8, i8, i8, i8, i8, i8 }
%"class.glslang::TShader" = type <{ ptr, ptr, i32, [4 x i8], ptr, ptr, ptr, ptr, ptr, ptr, i32, [4 x i8], ptr, %"class.std::__cxx11::basic_string", i32, %"struct.glslang::TEnvironment", [4 x i8] }>
%"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] }
%"struct.glslang::TEnvironment" = type { %"struct.glslang::TInputLanguage", %"struct.glslang::TClient", %"struct.glslang::TTarget" }
%"struct.glslang::TInputLanguage" = type { i32, i32, i32, i32, i8 }
%"struct.glslang::TClient" = type { i32, i32 }
%"struct.glslang::TTarget" = type { i32, i32, i8 }
%"class.glslang::TProgram" = type <{ ptr, ptr, [14 x %"class.std::__cxx11::list"], [14 x ptr], [14 x i8], [2 x i8], ptr, ptr, i8, [7 x i8] }>
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<glslang::TShader *, std::allocator<glslang::TShader *>>::_List_impl" }
%"struct.std::__cxx11::_List_base<glslang::TShader *, std::allocator<glslang::TShader *>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"struct.glslang::SpvOptions" = type { i8, i8, i8, i8, i8, i8 }

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1
@_ZL11initialized = external hidden local_unnamed_addr global i8, align 1
@_ZL23DefaultTBuiltInResource = external hidden constant %struct.TBuiltInResource, align 4
@.str.4 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @convert_glsl_to_spirv(ptr noundef %0, i32 noundef %1, i1 noundef zeroext %2, i32 noundef %3, ptr noundef writeonly %4, ptr noundef writeonly %5) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca %"class.glslang::TShader", align 8
  %9 = alloca %"class.glslang::TProgram", align 8
  %10 = alloca %"struct.glslang::SpvOptions", align 1
  store ptr %0, ptr %7, align 8, !tbaa !5
  %11 = zext i1 %2 to i8
  %12 = icmp eq ptr %0, null
  br i1 %12, label %13, label %16

13:                                               ; preds = %6
  %14 = load ptr, ptr @stderr, align 8, !tbaa !5
  %15 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef nonnull @.str) #8
  br label %83

16:                                               ; preds = %6
  %17 = icmp eq ptr %4, null
  %18 = icmp eq ptr %5, null
  %or.cond = or i1 %17, %18
  br i1 %or.cond, label %19, label %22

19:                                               ; preds = %16
  %20 = load ptr, ptr @stderr, align 8, !tbaa !5
  %21 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.1) #8
  br label %83

22:                                               ; preds = %16
  store ptr null, ptr %4, align 8, !tbaa !5
  store i64 0, ptr %5, align 8, !tbaa !9
  switch i32 %1, label %23 [
    i32 5, label %26
    i32 4, label %26
    i32 0, label %26
  ]

23:                                               ; preds = %22
  %24 = load ptr, ptr @stderr, align 8, !tbaa !5
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str.2) #8
  br label %83

26:                                               ; preds = %22, %22, %22
  %27 = add i32 %3, -65536
  %28 = tail call i32 @llvm.fshl.i32(i32 %27, i32 %27, i32 24)
  %switch = icmp ult i32 %28, 6
  br i1 %switch, label %32, label %29

29:                                               ; preds = %26
  %30 = load ptr, ptr @stderr, align 8, !tbaa !5
  %31 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull @.str.3) #8
  br label %83

32:                                               ; preds = %26
  %33 = load i8, ptr @_ZL11initialized, align 1, !tbaa !11, !range !13, !noundef !14
  %34 = trunc nuw i8 %33 to i1
  br i1 %34, label %37, label %35

35:                                               ; preds = %32
  %36 = tail call noundef zeroext i1 @_ZN7glslang17InitializeProcessEv()
  store i8 1, ptr @_ZL11initialized, align 1, !tbaa !11
  br label %37

37:                                               ; preds = %35, %32
  call void @llvm.lifetime.start.p0(i64 168, ptr nonnull %8) #9
  call void @_ZN7glslang7TShaderC1E11EShLanguage(ptr noundef nonnull align 8 dereferenceable(164) %8, i32 noundef %1)
  invoke void @_ZN7glslang7TShader10setStringsEPKPKci(ptr noundef nonnull align 8 dereferenceable(164) %8, ptr noundef nonnull %7, i32 noundef 1)
          to label %38 unwind label %48

38:                                               ; preds = %37
  call void @_ZN7glslang7TShader11setEnvInputENS_9EShSourceE11EShLanguageNS_9EShClientEi(ptr noundef nonnull align 8 dereferenceable(164) %8, i32 noundef 1, i32 noundef %1, i32 noundef 1, i32 noundef 100)
  call void @_ZN7glslang7TShader12setEnvClientENS_9EShClientENS_22EShTargetClientVersionE(ptr noundef nonnull align 8 dereferenceable(164) %8, i32 noundef 1, i32 noundef 4194304)
  call void @_ZN7glslang7TShader12setEnvTargetENS_17EShTargetLanguageENS_24EShTargetLanguageVersionE(ptr noundef nonnull align 8 dereferenceable(164) %8, i32 noundef 1, i32 noundef %3)
  %39 = invoke noundef zeroext i1 @_ZN7glslang7TShader5parseEPK16TBuiltInResourceib11EShMessages(ptr noundef nonnull align 8 dereferenceable(164) %8, ptr noundef nonnull @_ZL23DefaultTBuiltInResource, i32 noundef 100, i1 noundef zeroext true, i32 noundef 0)
          to label %40 unwind label %48

40:                                               ; preds = %38
  br i1 %39, label %50, label %41

41:                                               ; preds = %40
  %42 = load ptr, ptr @stderr, align 8, !tbaa !5
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.4) #8
  %44 = load ptr, ptr @stderr, align 8, !tbaa !5
  %45 = invoke noundef ptr @_ZN7glslang7TShader10getInfoLogEv(ptr noundef nonnull align 8 dereferenceable(164) %8)
          to label %46 unwind label %48

46:                                               ; preds = %41
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str.5, ptr noundef %45) #8
  br label %81

48:                                               ; preds = %41, %38, %37
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %82

50:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 504, ptr nonnull %9) #9
  invoke void @_ZN7glslang8TProgramC1Ev(ptr noundef nonnull align 8 dereferenceable(497) %9)
          to label %51 unwind label %62

51:                                               ; preds = %50
  invoke void @_ZN7glslang8TProgram9addShaderEPNS_7TShaderE(ptr noundef nonnull align 8 dereferenceable(497) %9, ptr noundef nonnull %8)
          to label %52 unwind label %64

52:                                               ; preds = %51
  %53 = invoke noundef zeroext i1 @_ZN7glslang8TProgram4linkE11EShMessages(ptr noundef nonnull align 8 dereferenceable(497) %9, i32 noundef 0)
          to label %54 unwind label %64

54:                                               ; preds = %52
  br i1 %53, label %66, label %55

55:                                               ; preds = %54
  %56 = load ptr, ptr @stderr, align 8, !tbaa !5
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.6) #8
  %58 = load ptr, ptr @stderr, align 8, !tbaa !5
  %59 = invoke noundef ptr @_ZN7glslang8TProgram10getInfoLogEv(ptr noundef nonnull align 8 dereferenceable(497) %9)
          to label %60 unwind label %64

60:                                               ; preds = %55
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef nonnull @.str.5, ptr noundef %59) #8
  br label %78

62:                                               ; preds = %50
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %80

64:                                               ; preds = %55, %52, %51
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %79

66:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %10) #9
  call void @_ZN7glslang10SpvOptionsC2Ev(ptr noundef nonnull align 1 dereferenceable(6) %10)
  store i8 %11, ptr %10, align 1, !tbaa !15
  %67 = getelementptr inbounds i8, ptr %10, i64 3
  store i8 0, ptr %67, align 1, !tbaa !17
  %68 = getelementptr inbounds i8, ptr %10, i64 4
  store i8 0, ptr %68, align 1, !tbaa !18
  %69 = getelementptr inbounds i8, ptr %10, i64 5
  store i8 0, ptr %69, align 1, !tbaa !19
  %70 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #10
          to label %71 unwind label %76

71:                                               ; preds = %66
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %70) #9
  %72 = call noundef ptr @_ZNK7glslang8TProgram15getIntermediateE11EShLanguage(ptr noundef nonnull align 8 dereferenceable(497) %9, i32 noundef %1)
  invoke void @_ZN7glslang12GlslangToSpvERKNS_13TIntermediateERSt6vectorIjSaIjEEPN3spv14SpvBuildLoggerEPNS_10SpvOptionsE(ptr noundef nonnull align 8 dereferenceable(1784) %72, ptr noundef nonnull align 8 dereferenceable(24) %70, ptr noundef null, ptr noundef nonnull %10)
          to label %73 unwind label %76

73:                                               ; preds = %71
  %74 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #9
  store i64 %74, ptr %5, align 8, !tbaa !9
  %75 = call noundef ptr @_ZNSt6vectorIjSaIjEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #9
  store ptr %75, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %10) #9
  br label %78

76:                                               ; preds = %71, %66
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %10) #9
  br label %79

78:                                               ; preds = %73, %60
  %.0 = phi ptr [ %70, %73 ], [ null, %60 ]
  call void @_ZN7glslang8TProgramD1Ev(ptr noundef nonnull align 8 dereferenceable(497) %9) #9
  call void @llvm.lifetime.end.p0(i64 504, ptr nonnull %9) #9
  br label %81

79:                                               ; preds = %76, %64
  %.pn = phi { ptr, i32 } [ %77, %76 ], [ %65, %64 ]
  call void @_ZN7glslang8TProgramD1Ev(ptr noundef nonnull align 8 dereferenceable(497) %9) #9
  br label %80

80:                                               ; preds = %79, %62
  %.pn.pn = phi { ptr, i32 } [ %.pn, %79 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 504, ptr nonnull %9) #9
  br label %82

81:                                               ; preds = %78, %46
  %.1 = phi ptr [ %.0, %78 ], [ null, %46 ]
  call void @_ZN7glslang7TShaderD1Ev(ptr noundef nonnull align 8 dereferenceable(164) %8) #9
  call void @llvm.lifetime.end.p0(i64 168, ptr nonnull %8) #9
  br label %83

82:                                               ; preds = %80, %48
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %80 ], [ %49, %48 ]
  call void @_ZN7glslang7TShaderD1Ev(ptr noundef nonnull align 8 dereferenceable(164) %8) #9
  call void @llvm.lifetime.end.p0(i64 168, ptr nonnull %8) #9
  resume { ptr, i32 } %.pn.pn.pn

83:                                               ; preds = %29, %81, %23, %19, %13
  %.3 = phi ptr [ null, %13 ], [ null, %19 ], [ null, %23 ], [ null, %29 ], [ %.1, %81 ]
  ret ptr %.3
}

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

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

declare noundef zeroext i1 @_ZN7glslang17InitializeProcessEv() local_unnamed_addr #3

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

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

declare i32 @__gxx_personality_v0(...)

; 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 #4 align 2

; 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 #4 align 2

; 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 #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7glslang7TShader5parseEPK16TBuiltInResourceib11EShMessages(ptr noundef nonnull align 8 dereferenceable(164), ptr noundef, i32 noundef, i1 noundef zeroext, i32 noundef) local_unnamed_addr #0 align 2

declare noundef ptr @_ZN7glslang7TShader10getInfoLogEv(ptr noundef nonnull align 8 dereferenceable(164)) local_unnamed_addr #3

declare void @_ZN7glslang8TProgramC1Ev(ptr noundef nonnull align 8 dereferenceable(497)) unnamed_addr #3

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

declare noundef zeroext i1 @_ZN7glslang8TProgram4linkE11EShMessages(ptr noundef nonnull align 8 dereferenceable(497), i32 noundef) local_unnamed_addr #3

declare noundef ptr @_ZN7glslang8TProgram10getInfoLogEv(ptr noundef nonnull align 8 dereferenceable(497)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7glslang10SpvOptionsC2Ev(ptr noundef nonnull align 1 dereferenceable(6)) unnamed_addr #4 align 2

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

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

declare void @_ZN7glslang12GlslangToSpvERKNS_13TIntermediateERSt6vectorIjSaIjEEPN3spv14SpvBuildLoggerEPNS_10SpvOptionsE(ptr noundef nonnull align 8 dereferenceable(1784), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7glslang8TProgram15getIntermediateE11EShLanguage(ptr noundef nonnull align 8 dereferenceable(497), i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: nounwind
declare void @_ZN7glslang8TProgramD1Ev(ptr noundef nonnull align 8 dereferenceable(497)) unnamed_addr #6

; Function Attrs: nounwind
declare void @_ZN7glslang7TShaderD1Ev(ptr noundef nonnull align 8 dereferenceable(164)) unnamed_addr #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.fshl.i32(i32, i32, i32) #7

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { 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 = { 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 #6 = { 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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { cold nounwind }
attributes #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !12, i64 0}
!16 = !{!"_ZTSN7glslang10SpvOptionsE", !12, i64 0, !12, i64 1, !12, i64 2, !12, i64 3, !12, i64 4, !12, i64 5}
!17 = !{!16, !12, i64 3}
!18 = !{!16, !12, i64 4}
!19 = !{!16, !12, i64 5}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass