; LLVM IR from kajott/GIPS :: src/gl_util.ll (ZN6GLutil6Shader7compileEPKc)

; 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.GLutil::Shader" = type <{ i32, i32, i32, [4 x i8], ptr, i8, [7 x i8] }>

@_ZN6GLutil11initializedE = external dso_local global i8, align 1
@stderr = external global ptr, align 8
@glad_glShaderSource = external global ptr, align 8
@glad_glCompileShader = external global ptr, align 8
@glad_glGetShaderiv = external global ptr, align 8
@glad_glGetShaderInfoLog = external global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1

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

; 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.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind
declare void @free(ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6GLutil6Shader7compileEPKc(ptr noundef nonnull align 8 dereferenceable(25) %0, ptr noundef %1) #2 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %8 = load ptr, ptr %4, align 8
  %9 = load i8, ptr @_ZN6GLutil11initializedE, align 1, !tbaa !9, !range !11, !noundef !12
  %10 = trunc i8 %9 to i1
  br i1 %10, label %11, label %15

11:                                               ; preds = %2
  %12 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 1
  %13 = load i32, ptr %12, align 4, !tbaa !13
  %14 = icmp ne i32 %13, 0
  br i1 %14, label %25, label %15

15:                                               ; preds = %11, %2
  %16 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 5
  store i8 0, ptr %16, align 8, !tbaa !16
  %17 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 4
  %18 = load ptr, ptr %17, align 8, !tbaa !17
  %19 = icmp ne ptr %18, null
  br i1 %19, label %20, label %24

20:                                               ; preds = %15
  %21 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 4
  %22 = load ptr, ptr %21, align 8, !tbaa !17
  %23 = getelementptr inbounds i8, ptr %22, i64 0
  store i8 0, ptr %23, align 1, !tbaa !18
  br label %24

24:                                               ; preds = %20, %15
  store i1 false, ptr %3, align 1
  br label %116

25:                                               ; preds = %11
  %26 = load ptr, ptr @glad_glShaderSource, align 8, !tbaa !5
  %27 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 1
  %28 = load i32, ptr %27, align 4, !tbaa !13
  call void %26(i32 noundef %28, i32 noundef 1, ptr noundef %5, ptr noundef null)
  %29 = load ptr, ptr @glad_glCompileShader, align 8, !tbaa !5
  %30 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 1
  %31 = load i32, ptr %30, align 4, !tbaa !13
  call void %29(i32 noundef %31)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !19
  %32 = load ptr, ptr @glad_glGetShaderiv, align 8, !tbaa !5
  %33 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 1
  %34 = load i32, ptr %33, align 4, !tbaa !13
  call void %32(i32 noundef %34, i32 noundef 35716, ptr noundef %6)
  %35 = load i32, ptr %6, align 4, !tbaa !19
  %36 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 0
  %37 = load i32, ptr %36, align 8, !tbaa !20
  %38 = icmp sgt i32 %35, %37
  br i1 %38, label %39, label %56

39:                                               ; preds = %25
  %40 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 4
  %41 = load ptr, ptr %40, align 8, !tbaa !17
  call void @free(ptr noundef %41) #5
  %42 = load i32, ptr %6, align 4, !tbaa !19
  %43 = add nsw i32 %42, 128
  %44 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 0
  store i32 %43, ptr %44, align 8, !tbaa !20
  %45 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 0
  %46 = load i32, ptr %45, align 8, !tbaa !20
  %47 = sext i32 %46 to i64
  %48 = call noalias ptr @malloc(i64 noundef %47) #6
  %49 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 4
  store ptr %48, ptr %49, align 8, !tbaa !17
  %50 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 4
  %51 = load ptr, ptr %50, align 8, !tbaa !17
  %52 = icmp ne ptr %51, null
  br i1 %52, label %55, label %53

53:                                               ; preds = %39
  %54 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 0
  store i32 0, ptr %54, align 8, !tbaa !20
  br label %55

55:                                               ; preds = %53, %39
  br label %56

56:                                               ; preds = %55, %25
  %57 = load i32, ptr %6, align 4, !tbaa !19
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %96

59:                                               ; preds = %56
  %60 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 4
  %61 = load ptr, ptr %60, align 8, !tbaa !17
  %62 = icmp ne ptr %61, null
  br i1 %62, label %63, label %96

63:                                               ; preds = %59
  %64 = load ptr, ptr @glad_glGetShaderInfoLog, align 8, !tbaa !5
  %65 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 1
  %66 = load i32, ptr %65, align 4, !tbaa !13
  %67 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 0
  %68 = load i32, ptr %67, align 8, !tbaa !20
  %69 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 4
  %70 = load ptr, ptr %69, align 8, !tbaa !17
  call void %64(i32 noundef %66, i32 noundef %68, ptr noundef null, ptr noundef %70)
  %71 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 4
  %72 = load ptr, ptr %71, align 8, !tbaa !17
  call void @_ZN10StringUtil22trimTrailingWhitespaceEPc(ptr noundef %72)
  %73 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 4
  %74 = load ptr, ptr %73, align 8, !tbaa !17
  %75 = getelementptr inbounds i8, ptr %74, i64 0
  %76 = load i8, ptr %75, align 1, !tbaa !18
  %77 = icmp ne i8 %76, 0
  br i1 %77, label %78, label %95

78:                                               ; preds = %63
  %79 = load ptr, ptr @stderr, align 8, !tbaa !5
  %80 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 2
  %81 = load i32, ptr %80, align 8, !tbaa !21
  %82 = icmp eq i32 %81, 35633
  br i1 %82, label %83, label %84

83:                                               ; preds = %78
  br label %90

84:                                               ; preds = %78
  %85 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 2
  %86 = load i32, ptr %85, align 8, !tbaa !21
  %87 = icmp eq i32 %86, 35632
  %88 = zext i1 %87 to i64
  %89 = select i1 %87, ptr @.str.10, ptr @.str.11
  br label %90

90:                                               ; preds = %84, %83
  %91 = phi ptr [ @.str.9, %83 ], [ %89, %84 ]
  %92 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 4
  %93 = load ptr, ptr %92, align 8, !tbaa !17
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef @.str.8, ptr noundef %91, ptr noundef %93) #5
  br label %95

95:                                               ; preds = %90, %63
  br label %105

96:                                               ; preds = %59, %56
  %97 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 4
  %98 = load ptr, ptr %97, align 8, !tbaa !17
  %99 = icmp ne ptr %98, null
  br i1 %99, label %100, label %104

100:                                              ; preds = %96
  %101 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 4
  %102 = load ptr, ptr %101, align 8, !tbaa !17
  %103 = getelementptr inbounds i8, ptr %102, i64 0
  store i8 0, ptr %103, align 1, !tbaa !18
  br label %104

104:                                              ; preds = %100, %96
  br label %105

105:                                              ; preds = %104, %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !19
  %106 = load ptr, ptr @glad_glGetShaderiv, align 8, !tbaa !5
  %107 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 1
  %108 = load i32, ptr %107, align 4, !tbaa !13
  call void %106(i32 noundef %108, i32 noundef 35713, ptr noundef %7)
  %109 = load i32, ptr %7, align 4, !tbaa !19
  %110 = icmp eq i32 %109, 1
  %111 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 5
  %112 = zext i1 %110 to i8
  store i8 %112, ptr %111, align 8, !tbaa !16
  %113 = getelementptr inbounds %"class.GLutil::Shader", ptr %8, i32 0, i32 5
  %114 = load i8, ptr %113, align 8, !tbaa !16, !range !11, !noundef !12
  %115 = trunc i8 %114 to i1
  store i1 %115, ptr %3, align 1
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %116

116:                                              ; preds = %105, %24
  %117 = load i1, ptr %3, align 1
  ret i1 %117
}

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10StringUtil22trimTrailingWhitespaceEPc(ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { nounwind 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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !15, i64 4}
!14 = !{!"_ZTSN6GLutil6ShaderE", !15, i64 0, !15, i64 4, !15, i64 8, !6, i64 16, !10, i64 24}
!15 = !{!"int", !7, i64 0}
!16 = !{!14, !10, i64 24}
!17 = !{!14, !6, i64 16}
!18 = !{!7, !7, i64 0}
!19 = !{!15, !15, i64 0}
!20 = !{!14, !15, i64 0}
!21 = !{!14, !15, i64 8}


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

@_ZN6GLutil11initializedE = external dso_local local_unnamed_addr global i8, align 1
@stderr = external local_unnamed_addr global ptr, align 8
@glad_glShaderSource = external local_unnamed_addr global ptr, align 8
@glad_glCompileShader = external local_unnamed_addr global ptr, align 8
@glad_glGetShaderiv = external local_unnamed_addr global ptr, align 8
@glad_glGetShaderInfoLog = external local_unnamed_addr global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1

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

; 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.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6GLutil6Shader7compileEPKc(ptr nocapture noundef nonnull align 8 dereferenceable(25) %0, ptr noundef %1) local_unnamed_addr #3 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  store ptr %1, ptr %3, align 8, !tbaa !5
  %6 = load i8, ptr @_ZN6GLutil11initializedE, align 1, !tbaa !9, !range !11, !noundef !12
  %7 = trunc nuw i8 %6 to i1
  br i1 %7, label %8, label %11

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %0, i64 4
  %10 = load i32, ptr %9, align 4, !tbaa !13
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %11, label %16

11:                                               ; preds = %8, %2
  %12 = getelementptr inbounds i8, ptr %0, i64 24
  store i8 0, ptr %12, align 8, !tbaa !16
  %13 = getelementptr inbounds i8, ptr %0, i64 16
  %14 = load ptr, ptr %13, align 8, !tbaa !17
  %.not7 = icmp eq ptr %14, null
  br i1 %.not7, label %59, label %15

15:                                               ; preds = %11
  store i8 0, ptr %14, align 1, !tbaa !18
  br label %59

16:                                               ; preds = %8
  %17 = load ptr, ptr @glad_glShaderSource, align 8, !tbaa !5
  call void %17(i32 noundef %10, i32 noundef 1, ptr noundef nonnull %3, ptr noundef null)
  %18 = load ptr, ptr @glad_glCompileShader, align 8, !tbaa !5
  %19 = load i32, ptr %9, align 4, !tbaa !13
  call void %18(i32 noundef %19)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  store i32 0, ptr %4, align 4, !tbaa !19
  %20 = load ptr, ptr @glad_glGetShaderiv, align 8, !tbaa !5
  %21 = load i32, ptr %9, align 4, !tbaa !13
  call void %20(i32 noundef %21, i32 noundef 35716, ptr noundef nonnull %4)
  %22 = load i32, ptr %4, align 4, !tbaa !19
  %23 = load i32, ptr %0, align 8, !tbaa !20
  %24 = icmp sgt i32 %22, %23
  br i1 %24, label %25, label %thread-pre-split

25:                                               ; preds = %16
  %26 = getelementptr inbounds i8, ptr %0, i64 16
  %27 = load ptr, ptr %26, align 8, !tbaa !17
  call void @free(ptr noundef %27) #6
  %28 = load i32, ptr %4, align 4, !tbaa !19
  %29 = add nsw i32 %28, 128
  store i32 %29, ptr %0, align 8, !tbaa !20
  %30 = sext i32 %29 to i64
  %31 = call noalias ptr @malloc(i64 noundef %30) #7
  store ptr %31, ptr %26, align 8, !tbaa !17
  %.not8 = icmp eq ptr %31, null
  br i1 %.not8, label %32, label %thread-pre-split

32:                                               ; preds = %25
  store i32 0, ptr %0, align 8, !tbaa !20
  br label %thread-pre-split

thread-pre-split:                                 ; preds = %25, %32, %16
  %33 = phi i32 [ %23, %16 ], [ 0, %32 ], [ %29, %25 ]
  %34 = phi i32 [ %22, %16 ], [ %28, %32 ], [ %28, %25 ]
  %.not9 = icmp eq i32 %34, 0
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 16
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !17
  %.not11 = icmp eq ptr %.pre, null
  br i1 %.not9, label %51, label %35

35:                                               ; preds = %thread-pre-split
  br i1 %.not11, label %.thread, label %36

36:                                               ; preds = %35
  %37 = load ptr, ptr @glad_glGetShaderInfoLog, align 8, !tbaa !5
  %38 = load i32, ptr %9, align 4, !tbaa !13
  call void %37(i32 noundef %38, i32 noundef %33, ptr noundef null, ptr noundef nonnull %.pre)
  %39 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !17
  call void @_ZN10StringUtil22trimTrailingWhitespaceEPc(ptr noundef %39)
  %40 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !17
  %41 = load i8, ptr %40, align 1, !tbaa !18
  %.not12 = icmp eq i8 %41, 0
  br i1 %.not12, label %.thread, label %42

42:                                               ; preds = %36
  %43 = load ptr, ptr @stderr, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %0, i64 8
  %45 = load i32, ptr %44, align 8, !tbaa !21
  %46 = icmp eq i32 %45, 35633
  %47 = icmp eq i32 %45, 35632
  %48 = select i1 %47, ptr @.str.10, ptr @.str.11
  %49 = select i1 %46, ptr @.str.9, ptr %48
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef nonnull @.str.8, ptr noundef nonnull %49, ptr noundef nonnull %40) #8
  br label %.thread

51:                                               ; preds = %thread-pre-split
  br i1 %.not11, label %.thread, label %52

52:                                               ; preds = %51
  store i8 0, ptr %.pre, align 1, !tbaa !18
  br label %.thread

.thread:                                          ; preds = %35, %51, %52, %36, %42
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  store i32 0, ptr %5, align 4, !tbaa !19
  %53 = load ptr, ptr @glad_glGetShaderiv, align 8, !tbaa !5
  %54 = load i32, ptr %9, align 4, !tbaa !13
  call void %53(i32 noundef %54, i32 noundef 35713, ptr noundef nonnull %5)
  %55 = load i32, ptr %5, align 4, !tbaa !19
  %56 = icmp eq i32 %55, 1
  %57 = getelementptr inbounds i8, ptr %0, i64 24
  %58 = zext i1 %56 to i8
  store i8 %58, ptr %57, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  br label %59

59:                                               ; preds = %11, %15, %.thread
  %.0 = phi i1 [ %56, %.thread ], [ false, %15 ], [ false, %11 ]
  ret i1 %.0
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10StringUtil22trimTrailingWhitespaceEPc(ptr noundef) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }
attributes #8 = { cold 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 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !15, i64 4}
!14 = !{!"_ZTSN6GLutil6ShaderE", !15, i64 0, !15, i64 4, !15, i64 8, !6, i64 16, !10, i64 24}
!15 = !{!"int", !7, i64 0}
!16 = !{!14, !10, i64 24}
!17 = !{!14, !6, i64 16}
!18 = !{!7, !7, i64 0}
!19 = !{!15, !15, i64 0}
!20 = !{!14, !15, i64 0}
!21 = !{!14, !15, i64 8}


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