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

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

@_ZN6GLutil11initializedE = external dso_local global i8, align 1
@stderr = external global ptr, align 8
@glad_glCreateProgram = external global ptr, align 8
@glad_glAttachShader = external global ptr, align 8
@glad_glLinkProgram = external global ptr, align 8
@glad_glGetProgramiv = external global ptr, align 8
@glad_glGetProgramInfoLog = external global ptr, align 8
@.str.12 = external hidden unnamed_addr constant [33 x i8], align 1
@glad_glDetachShader = external global ptr, align 8

; 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: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6GLutil7Program4linkEjj(ptr noundef nonnull align 8 dereferenceable(17) %0, i32 noundef %1, i32 noundef %2) #4 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  %10 = load ptr, ptr %5, align 8
  %11 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 1
  %12 = load i32, ptr %11, align 4, !tbaa !11
  %13 = icmp ne i32 %12, 0
  br i1 %13, label %21, label %14

14:                                               ; preds = %3
  %15 = load i8, ptr @_ZN6GLutil11initializedE, align 1, !tbaa !14, !range !15, !noundef !16
  %16 = trunc i8 %15 to i1
  br i1 %16, label %17, label %21

17:                                               ; preds = %14
  %18 = load ptr, ptr @glad_glCreateProgram, align 8, !tbaa !5
  %19 = call i32 %18()
  %20 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 1
  store i32 %19, ptr %20, align 4, !tbaa !11
  br label %21

21:                                               ; preds = %17, %14, %3
  %22 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 1
  %23 = load i32, ptr %22, align 4, !tbaa !11
  %24 = icmp ne i32 %23, 0
  br i1 %24, label %35, label %25

25:                                               ; preds = %21
  %26 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 3
  store i8 0, ptr %26, align 8, !tbaa !17
  %27 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 2
  %28 = load ptr, ptr %27, align 8, !tbaa !18
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %34

30:                                               ; preds = %25
  %31 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 2
  %32 = load ptr, ptr %31, align 8, !tbaa !18
  %33 = getelementptr inbounds i8, ptr %32, i64 0
  store i8 0, ptr %33, align 1, !tbaa !19
  br label %34

34:                                               ; preds = %30, %25
  store i1 false, ptr %4, align 1
  br label %127

35:                                               ; preds = %21
  %36 = load ptr, ptr @glad_glAttachShader, align 8, !tbaa !5
  %37 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 1
  %38 = load i32, ptr %37, align 4, !tbaa !11
  %39 = load i32, ptr %6, align 4, !tbaa !9
  call void %36(i32 noundef %38, i32 noundef %39)
  %40 = load ptr, ptr @glad_glAttachShader, align 8, !tbaa !5
  %41 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 1
  %42 = load i32, ptr %41, align 4, !tbaa !11
  %43 = load i32, ptr %7, align 4, !tbaa !9
  call void %40(i32 noundef %42, i32 noundef %43)
  %44 = load ptr, ptr @glad_glLinkProgram, align 8, !tbaa !5
  %45 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 1
  %46 = load i32, ptr %45, align 4, !tbaa !11
  call void %44(i32 noundef %46)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  %47 = load ptr, ptr @glad_glGetProgramiv, align 8, !tbaa !5
  %48 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 1
  %49 = load i32, ptr %48, align 4, !tbaa !11
  call void %47(i32 noundef %49, i32 noundef 35716, ptr noundef %8)
  %50 = load i32, ptr %8, align 4, !tbaa !9
  %51 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 0
  %52 = load i32, ptr %51, align 8, !tbaa !20
  %53 = icmp sgt i32 %50, %52
  br i1 %53, label %54, label %71

54:                                               ; preds = %35
  %55 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 2
  %56 = load ptr, ptr %55, align 8, !tbaa !18
  call void @free(ptr noundef %56) #5
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = add nsw i32 %57, 128
  %59 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 0
  store i32 %58, ptr %59, align 8, !tbaa !20
  %60 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 0
  %61 = load i32, ptr %60, align 8, !tbaa !20
  %62 = sext i32 %61 to i64
  %63 = call noalias ptr @malloc(i64 noundef %62) #6
  %64 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 2
  store ptr %63, ptr %64, align 8, !tbaa !18
  %65 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 2
  %66 = load ptr, ptr %65, align 8, !tbaa !18
  %67 = icmp ne ptr %66, null
  br i1 %67, label %70, label %68

68:                                               ; preds = %54
  %69 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 0
  store i32 0, ptr %69, align 8, !tbaa !20
  br label %70

70:                                               ; preds = %68, %54
  br label %71

71:                                               ; preds = %70, %35
  %72 = load i32, ptr %8, align 4, !tbaa !9
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %74, label %99

74:                                               ; preds = %71
  %75 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 2
  %76 = load ptr, ptr %75, align 8, !tbaa !18
  %77 = icmp ne ptr %76, null
  br i1 %77, label %78, label %99

78:                                               ; preds = %74
  %79 = load ptr, ptr @glad_glGetProgramInfoLog, align 8, !tbaa !5
  %80 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 1
  %81 = load i32, ptr %80, align 4, !tbaa !11
  %82 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 0
  %83 = load i32, ptr %82, align 8, !tbaa !20
  %84 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 2
  %85 = load ptr, ptr %84, align 8, !tbaa !18
  call void %79(i32 noundef %81, i32 noundef %83, ptr noundef null, ptr noundef %85)
  %86 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 2
  %87 = load ptr, ptr %86, align 8, !tbaa !18
  call void @_ZN10StringUtil22trimTrailingWhitespaceEPc(ptr noundef %87)
  %88 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 2
  %89 = load ptr, ptr %88, align 8, !tbaa !18
  %90 = getelementptr inbounds i8, ptr %89, i64 0
  %91 = load i8, ptr %90, align 1, !tbaa !19
  %92 = icmp ne i8 %91, 0
  br i1 %92, label %93, label %98

93:                                               ; preds = %78
  %94 = load ptr, ptr @stderr, align 8, !tbaa !5
  %95 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 2
  %96 = load ptr, ptr %95, align 8, !tbaa !18
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef @.str.12, ptr noundef %96) #5
  br label %98

98:                                               ; preds = %93, %78
  br label %108

99:                                               ; preds = %74, %71
  %100 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 2
  %101 = load ptr, ptr %100, align 8, !tbaa !18
  %102 = icmp ne ptr %101, null
  br i1 %102, label %103, label %107

103:                                              ; preds = %99
  %104 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 2
  %105 = load ptr, ptr %104, align 8, !tbaa !18
  %106 = getelementptr inbounds i8, ptr %105, i64 0
  store i8 0, ptr %106, align 1, !tbaa !19
  br label %107

107:                                              ; preds = %103, %99
  br label %108

108:                                              ; preds = %107, %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  %109 = load ptr, ptr @glad_glGetProgramiv, align 8, !tbaa !5
  %110 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 1
  %111 = load i32, ptr %110, align 4, !tbaa !11
  call void %109(i32 noundef %111, i32 noundef 35714, ptr noundef %9)
  %112 = load ptr, ptr @glad_glDetachShader, align 8, !tbaa !5
  %113 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 1
  %114 = load i32, ptr %113, align 4, !tbaa !11
  %115 = load i32, ptr %6, align 4, !tbaa !9
  call void %112(i32 noundef %114, i32 noundef %115)
  %116 = load ptr, ptr @glad_glDetachShader, align 8, !tbaa !5
  %117 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 1
  %118 = load i32, ptr %117, align 4, !tbaa !11
  %119 = load i32, ptr %7, align 4, !tbaa !9
  call void %116(i32 noundef %118, i32 noundef %119)
  %120 = load i32, ptr %9, align 4, !tbaa !9
  %121 = icmp eq i32 %120, 1
  %122 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 3
  %123 = zext i1 %121 to i8
  store i8 %123, ptr %122, align 8, !tbaa !17
  %124 = getelementptr inbounds %"class.GLutil::Program", ptr %10, i32 0, i32 3
  %125 = load i8, ptr %124, align 8, !tbaa !17, !range !15, !noundef !16
  %126 = trunc i8 %125 to i1
  store i1 %126, ptr %4, align 1
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %127

127:                                              ; preds = %108, %34
  %128 = load i1, ptr %4, align 1
  ret i1 %128
}

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 = { 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 #3 = { 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 #4 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 4}
!12 = !{!"_ZTSN6GLutil7ProgramE", !10, i64 0, !10, i64 4, !6, i64 8, !13, i64 16}
!13 = !{!"bool", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!12, !13, i64 16}
!18 = !{!12, !6, i64 8}
!19 = !{!7, !7, i64 0}
!20 = !{!12, !10, 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"

@_ZN6GLutil11initializedE = external dso_local local_unnamed_addr global i8, align 1
@stderr = external local_unnamed_addr global ptr, align 8
@glad_glCreateProgram = external local_unnamed_addr global ptr, align 8
@glad_glAttachShader = external local_unnamed_addr global ptr, align 8
@glad_glLinkProgram = external local_unnamed_addr global ptr, align 8
@glad_glGetProgramiv = external local_unnamed_addr global ptr, align 8
@glad_glGetProgramInfoLog = external local_unnamed_addr global ptr, align 8
@.str.12 = external hidden unnamed_addr constant [33 x i8], align 1
@glad_glDetachShader = external local_unnamed_addr global ptr, align 8

; 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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6GLutil7Program4linkEjj(ptr nocapture noundef nonnull align 8 dereferenceable(17) %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #5 align 2 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = getelementptr inbounds i8, ptr %0, i64 4
  %7 = load i32, ptr %6, align 4, !tbaa !5
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %8, label %.thread17

8:                                                ; preds = %3
  %9 = load i8, ptr @_ZN6GLutil11initializedE, align 1, !tbaa !12, !range !13, !noundef !14
  %10 = trunc nuw i8 %9 to i1
  br i1 %10, label %11, label %.thread

11:                                               ; preds = %8
  %12 = load ptr, ptr @glad_glCreateProgram, align 8, !tbaa !15
  %13 = tail call i32 %12()
  store i32 %13, ptr %6, align 4, !tbaa !5
  %.not9 = icmp eq i32 %13, 0
  br i1 %.not9, label %.thread, label %.thread17

.thread:                                          ; preds = %8, %11
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  store i8 0, ptr %14, align 8, !tbaa !16
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = load ptr, ptr %15, align 8, !tbaa !17
  %.not10 = icmp eq ptr %16, null
  br i1 %.not10, label %61, label %17

17:                                               ; preds = %.thread
  store i8 0, ptr %16, align 1, !tbaa !18
  br label %61

.thread17:                                        ; preds = %3, %11
  %18 = phi i32 [ %13, %11 ], [ %7, %3 ]
  %19 = load ptr, ptr @glad_glAttachShader, align 8, !tbaa !15
  tail call void %19(i32 noundef %18, i32 noundef %1)
  %20 = load ptr, ptr @glad_glAttachShader, align 8, !tbaa !15
  %21 = load i32, ptr %6, align 4, !tbaa !5
  tail call void %20(i32 noundef %21, i32 noundef %2)
  %22 = load ptr, ptr @glad_glLinkProgram, align 8, !tbaa !15
  %23 = load i32, ptr %6, align 4, !tbaa !5
  tail call void %22(i32 noundef %23)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  store i32 0, ptr %4, align 4, !tbaa !19
  %24 = load ptr, ptr @glad_glGetProgramiv, align 8, !tbaa !15
  %25 = load i32, ptr %6, align 4, !tbaa !5
  call void %24(i32 noundef %25, i32 noundef 35716, ptr noundef nonnull %4)
  %26 = load i32, ptr %4, align 4, !tbaa !19
  %27 = load i32, ptr %0, align 8, !tbaa !20
  %28 = icmp sgt i32 %26, %27
  br i1 %28, label %29, label %thread-pre-split

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

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

thread-pre-split:                                 ; preds = %29, %36, %.thread17
  %37 = phi i32 [ %27, %.thread17 ], [ 0, %36 ], [ %33, %29 ]
  %38 = phi i32 [ %26, %.thread17 ], [ %32, %36 ], [ %32, %29 ]
  %.not12 = icmp eq i32 %38, 0
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 8
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !17
  %.not14 = icmp eq ptr %.pre, null
  br i1 %.not12, label %49, label %39

39:                                               ; preds = %thread-pre-split
  br i1 %.not14, label %.thread19, label %40

40:                                               ; preds = %39
  %41 = load ptr, ptr @glad_glGetProgramInfoLog, align 8, !tbaa !15
  %42 = load i32, ptr %6, align 4, !tbaa !5
  call void %41(i32 noundef %42, i32 noundef %37, ptr noundef null, ptr noundef nonnull %.pre)
  %43 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !17
  call void @_ZN10StringUtil22trimTrailingWhitespaceEPc(ptr noundef %43)
  %44 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !17
  %45 = load i8, ptr %44, align 1, !tbaa !18
  %.not15 = icmp eq i8 %45, 0
  br i1 %.not15, label %.thread19, label %46

46:                                               ; preds = %40
  %47 = load ptr, ptr @stderr, align 8, !tbaa !15
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str.12, ptr noundef nonnull %44) #8
  br label %.thread19

49:                                               ; preds = %thread-pre-split
  br i1 %.not14, label %.thread19, label %50

50:                                               ; preds = %49
  store i8 0, ptr %.pre, align 1, !tbaa !18
  br label %.thread19

.thread19:                                        ; preds = %39, %49, %50, %40, %46
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  store i32 0, ptr %5, align 4, !tbaa !19
  %51 = load ptr, ptr @glad_glGetProgramiv, align 8, !tbaa !15
  %52 = load i32, ptr %6, align 4, !tbaa !5
  call void %51(i32 noundef %52, i32 noundef 35714, ptr noundef nonnull %5)
  %53 = load ptr, ptr @glad_glDetachShader, align 8, !tbaa !15
  %54 = load i32, ptr %6, align 4, !tbaa !5
  call void %53(i32 noundef %54, i32 noundef %1)
  %55 = load ptr, ptr @glad_glDetachShader, align 8, !tbaa !15
  %56 = load i32, ptr %6, align 4, !tbaa !5
  call void %55(i32 noundef %56, i32 noundef %2)
  %57 = load i32, ptr %5, align 4, !tbaa !19
  %58 = icmp eq i32 %57, 1
  %59 = getelementptr inbounds i8, ptr %0, i64 16
  %60 = zext i1 %58 to i8
  store i8 %60, ptr %59, 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 %61

61:                                               ; preds = %.thread, %17, %.thread19
  %.0 = phi i1 [ %58, %.thread19 ], [ false, %17 ], [ false, %.thread ]
  ret i1 %.0
}

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 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 #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 = { 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, !7, i64 4}
!6 = !{!"_ZTSN6GLutil7ProgramE", !7, i64 0, !7, i64 4, !10, i64 8, !11, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!10, !10, i64 0}
!16 = !{!6, !11, i64 16}
!17 = !{!6, !10, i64 8}
!18 = !{!8, !8, i64 0}
!19 = !{!7, !7, i64 0}
!20 = !{!6, !7, i64 0}


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