; LLVM IR from jovanlanik/wip :: dungeon.d/src (d_text)

; 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.wip_glmdl_t = type { %union.anon, i64, i32 }
%union.anon = type { [2 x i32] }

@drawChar.model = external hidden global ptr, align 8
@drawChar.texture = external hidden global i32, align 4
@drawChar.cLocation = external hidden global i32, align 4
@drawChar.screenLocation = external hidden global i32, align 4
@drawChar.positionLocation = external hidden global i32, align 4
@drawChar.offsetLocation = external hidden global i32, align 4
@drawChar.scaleLocation = external hidden global i32, align 4
@drawChar.textProgram = external hidden global i32, align 4
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@_binary_d_text_vert_start = external constant [0 x i8], align 1
@_binary_d_text_frag_start = external constant [0 x i8], align 1
@glad_glDeleteShader = external global ptr, align 8
@glad_glGetUniformLocation = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@glad_glBindVertexArray = external global ptr, align 8
@glad_glBindTexture = external global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1
@glad_glUseProgram = external global ptr, align 8
@glad_glUniform1ui = external global ptr, align 8
@glad_glUniform2uiv = external global ptr, align 8
@glad_glUniform1f = external global ptr, align 8
@glad_glDrawElements = external global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local void @drawChar(i8 noundef signext %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, float noundef %5) #0 {
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca [2 x i32], align 4
  %16 = alloca [2 x i32], align 4
  %17 = alloca [2 x i32], align 4
  store i8 %0, ptr %7, align 1, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !8
  store i32 %2, ptr %9, align 4, !tbaa !8
  store i32 %3, ptr %10, align 4, !tbaa !8
  store i32 %4, ptr %11, align 4, !tbaa !8
  store float %5, ptr %12, align 4, !tbaa !10
  %18 = load ptr, ptr @drawChar.model, align 8, !tbaa !12
  %19 = icmp ne ptr %18, null
  br i1 %19, label %47, label %20

20:                                               ; preds = %6
  %21 = call ptr @wip_openModel(ptr noundef @.str)
  store ptr %21, ptr @drawChar.model, align 8, !tbaa !12
  %22 = call i32 @wip_openTextureF(ptr noundef @.str.1, i32 noundef 9728, i32 noundef 9728)
  store i32 %22, ptr @drawChar.texture, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %23 = call i32 @wip_loadShader(ptr noundef @_binary_d_text_vert_start, i32 noundef 35633)
  store i32 %23, ptr %13, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  %24 = call i32 @wip_loadShader(ptr noundef @_binary_d_text_frag_start, i32 noundef 35632)
  store i32 %24, ptr %14, align 4, !tbaa !8
  %25 = load i32, ptr %13, align 4, !tbaa !8
  %26 = load i32, ptr %14, align 4, !tbaa !8
  %27 = call i32 @wip_loadProgram(i32 noundef %25, i32 noundef %26)
  store i32 %27, ptr @drawChar.textProgram, align 4, !tbaa !8
  %28 = load ptr, ptr @glad_glDeleteShader, align 8, !tbaa !12
  %29 = load i32, ptr %13, align 4, !tbaa !8
  call void %28(i32 noundef %29)
  %30 = load ptr, ptr @glad_glDeleteShader, align 8, !tbaa !12
  %31 = load i32, ptr %14, align 4, !tbaa !8
  call void %30(i32 noundef %31)
  %32 = load ptr, ptr @glad_glGetUniformLocation, align 8, !tbaa !12
  %33 = load i32, ptr @drawChar.textProgram, align 4, !tbaa !8
  %34 = call i32 %32(i32 noundef %33, ptr noundef @.str.2)
  store i32 %34, ptr @drawChar.cLocation, align 4, !tbaa !8
  %35 = load ptr, ptr @glad_glGetUniformLocation, align 8, !tbaa !12
  %36 = load i32, ptr @drawChar.textProgram, align 4, !tbaa !8
  %37 = call i32 %35(i32 noundef %36, ptr noundef @.str.3)
  store i32 %37, ptr @drawChar.screenLocation, align 4, !tbaa !8
  %38 = load ptr, ptr @glad_glGetUniformLocation, align 8, !tbaa !12
  %39 = load i32, ptr @drawChar.textProgram, align 4, !tbaa !8
  %40 = call i32 %38(i32 noundef %39, ptr noundef @.str.4)
  store i32 %40, ptr @drawChar.positionLocation, align 4, !tbaa !8
  %41 = load ptr, ptr @glad_glGetUniformLocation, align 8, !tbaa !12
  %42 = load i32, ptr @drawChar.textProgram, align 4, !tbaa !8
  %43 = call i32 %41(i32 noundef %42, ptr noundef @.str.5)
  store i32 %43, ptr @drawChar.offsetLocation, align 4, !tbaa !8
  %44 = load ptr, ptr @glad_glGetUniformLocation, align 8, !tbaa !12
  %45 = load i32, ptr @drawChar.textProgram, align 4, !tbaa !8
  %46 = call i32 %44(i32 noundef %45, ptr noundef @.str.6)
  store i32 %46, ptr @drawChar.scaleLocation, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %47

47:                                               ; preds = %20, %6
  %48 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !12
  %49 = load ptr, ptr @drawChar.model, align 8, !tbaa !12
  %50 = getelementptr inbounds %struct.wip_glmdl_t, ptr %49, i32 0, i32 2
  %51 = load i32, ptr %50, align 8, !tbaa !14
  call void %48(i32 noundef %51)
  %52 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !12
  %53 = load i32, ptr @drawChar.texture, align 4, !tbaa !8
  call void %52(i32 noundef 3553, i32 noundef %53)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %54 = call i32 @wip_getConfInt(ptr noundef @.str.7)
  store i32 %54, ptr %15, align 4, !tbaa !8
  %55 = getelementptr inbounds i32, ptr %15, i64 1
  %56 = call i32 @wip_getConfInt(ptr noundef @.str.8)
  store i32 %56, ptr %55, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %57 = load i32, ptr %8, align 4, !tbaa !8
  store i32 %57, ptr %16, align 4, !tbaa !8
  %58 = getelementptr inbounds i32, ptr %16, i64 1
  %59 = load i32, ptr %9, align 4, !tbaa !8
  store i32 %59, ptr %58, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %60 = load i32, ptr %10, align 4, !tbaa !8
  store i32 %60, ptr %17, align 4, !tbaa !8
  %61 = getelementptr inbounds i32, ptr %17, i64 1
  %62 = load i32, ptr %11, align 4, !tbaa !8
  store i32 %62, ptr %61, align 4, !tbaa !8
  %63 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !12
  %64 = load i32, ptr @drawChar.textProgram, align 4, !tbaa !8
  call void %63(i32 noundef %64)
  %65 = load ptr, ptr @glad_glUniform1ui, align 8, !tbaa !12
  %66 = load i32, ptr @drawChar.cLocation, align 4, !tbaa !8
  %67 = load i8, ptr %7, align 1, !tbaa !5
  %68 = sext i8 %67 to i32
  call void %65(i32 noundef %66, i32 noundef %68)
  %69 = load ptr, ptr @glad_glUniform2uiv, align 8, !tbaa !12
  %70 = load i32, ptr @drawChar.screenLocation, align 4, !tbaa !8
  %71 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 0
  call void %69(i32 noundef %70, i32 noundef 1, ptr noundef %71)
  %72 = load ptr, ptr @glad_glUniform2uiv, align 8, !tbaa !12
  %73 = load i32, ptr @drawChar.positionLocation, align 4, !tbaa !8
  %74 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 0
  call void %72(i32 noundef %73, i32 noundef 1, ptr noundef %74)
  %75 = load ptr, ptr @glad_glUniform2uiv, align 8, !tbaa !12
  %76 = load i32, ptr @drawChar.offsetLocation, align 4, !tbaa !8
  %77 = getelementptr inbounds [2 x i32], ptr %17, i64 0, i64 0
  call void %75(i32 noundef %76, i32 noundef 1, ptr noundef %77)
  %78 = load ptr, ptr @glad_glUniform1f, align 8, !tbaa !12
  %79 = load i32, ptr @drawChar.scaleLocation, align 4, !tbaa !8
  %80 = load float, ptr %12, align 4, !tbaa !10
  call void %78(i32 noundef %79, float noundef %80)
  %81 = load ptr, ptr @glad_glDrawElements, align 8, !tbaa !12
  %82 = load ptr, ptr @drawChar.model, align 8, !tbaa !12
  %83 = getelementptr inbounds %struct.wip_glmdl_t, ptr %82, i32 0, i32 1
  %84 = load i64, ptr %83, align 8, !tbaa !17
  %85 = trunc i64 %84 to i32
  call void %81(i32 noundef 4, i32 noundef %85, i32 noundef 5125, ptr noundef null)
  %86 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !12
  call void %86(i32 noundef 0)
  %87 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !12
  call void %87(i32 noundef 3553, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  ret void
}

declare ptr @wip_openModel(ptr noundef) #1

declare i32 @wip_openTextureF(ptr noundef, i32 noundef, i32 noundef) #1

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

declare i32 @wip_loadShader(ptr noundef, i32 noundef) #1

declare i32 @wip_loadProgram(i32 noundef, i32 noundef) #1

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

declare i32 @wip_getConfInt(ptr noundef) #1

attributes #0 = { 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 #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 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !6, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !6, i64 0}
!14 = !{!15, !9, i64 16}
!15 = !{!"", !6, i64 0, !16, i64 8, !9, i64 16}
!16 = !{!"long", !6, i64 0}
!17 = !{!15, !16, 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"

@drawChar.model = external hidden local_unnamed_addr global ptr, align 8
@drawChar.texture = external hidden local_unnamed_addr global i32, align 4
@drawChar.cLocation = external hidden local_unnamed_addr global i32, align 4
@drawChar.screenLocation = external hidden local_unnamed_addr global i32, align 4
@drawChar.positionLocation = external hidden local_unnamed_addr global i32, align 4
@drawChar.offsetLocation = external hidden local_unnamed_addr global i32, align 4
@drawChar.scaleLocation = external hidden local_unnamed_addr global i32, align 4
@drawChar.textProgram = external hidden local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@_binary_d_text_vert_start = external constant [0 x i8], align 1
@_binary_d_text_frag_start = external constant [0 x i8], align 1
@glad_glDeleteShader = external local_unnamed_addr global ptr, align 8
@glad_glGetUniformLocation = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@glad_glBindVertexArray = external local_unnamed_addr global ptr, align 8
@glad_glBindTexture = external local_unnamed_addr global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1
@glad_glUseProgram = external local_unnamed_addr global ptr, align 8
@glad_glUniform1ui = external local_unnamed_addr global ptr, align 8
@glad_glUniform2uiv = external local_unnamed_addr global ptr, align 8
@glad_glUniform1f = external local_unnamed_addr global ptr, align 8
@glad_glDrawElements = external local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local void @drawChar(i8 noundef signext %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, float noundef %5) local_unnamed_addr #0 {
  %7 = alloca [2 x i32], align 4
  %8 = alloca [2 x i32], align 4
  %9 = alloca [2 x i32], align 4
  %10 = load ptr, ptr @drawChar.model, align 8, !tbaa !5
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %11, label %34

11:                                               ; preds = %6
  %12 = tail call ptr @wip_openModel(ptr noundef nonnull @.str) #3
  store ptr %12, ptr @drawChar.model, align 8, !tbaa !5
  %13 = tail call i32 @wip_openTextureF(ptr noundef nonnull @.str.1, i32 noundef 9728, i32 noundef 9728) #3
  store i32 %13, ptr @drawChar.texture, align 4, !tbaa !9
  %14 = tail call i32 @wip_loadShader(ptr noundef nonnull @_binary_d_text_vert_start, i32 noundef 35633) #3
  %15 = tail call i32 @wip_loadShader(ptr noundef nonnull @_binary_d_text_frag_start, i32 noundef 35632) #3
  %16 = tail call i32 @wip_loadProgram(i32 noundef %14, i32 noundef %15) #3
  store i32 %16, ptr @drawChar.textProgram, align 4, !tbaa !9
  %17 = load ptr, ptr @glad_glDeleteShader, align 8, !tbaa !5
  tail call void %17(i32 noundef %14) #3
  %18 = load ptr, ptr @glad_glDeleteShader, align 8, !tbaa !5
  tail call void %18(i32 noundef %15) #3
  %19 = load ptr, ptr @glad_glGetUniformLocation, align 8, !tbaa !5
  %20 = load i32, ptr @drawChar.textProgram, align 4, !tbaa !9
  %21 = tail call i32 %19(i32 noundef %20, ptr noundef nonnull @.str.2) #3
  store i32 %21, ptr @drawChar.cLocation, align 4, !tbaa !9
  %22 = load ptr, ptr @glad_glGetUniformLocation, align 8, !tbaa !5
  %23 = load i32, ptr @drawChar.textProgram, align 4, !tbaa !9
  %24 = tail call i32 %22(i32 noundef %23, ptr noundef nonnull @.str.3) #3
  store i32 %24, ptr @drawChar.screenLocation, align 4, !tbaa !9
  %25 = load ptr, ptr @glad_glGetUniformLocation, align 8, !tbaa !5
  %26 = load i32, ptr @drawChar.textProgram, align 4, !tbaa !9
  %27 = tail call i32 %25(i32 noundef %26, ptr noundef nonnull @.str.4) #3
  store i32 %27, ptr @drawChar.positionLocation, align 4, !tbaa !9
  %28 = load ptr, ptr @glad_glGetUniformLocation, align 8, !tbaa !5
  %29 = load i32, ptr @drawChar.textProgram, align 4, !tbaa !9
  %30 = tail call i32 %28(i32 noundef %29, ptr noundef nonnull @.str.5) #3
  store i32 %30, ptr @drawChar.offsetLocation, align 4, !tbaa !9
  %31 = load ptr, ptr @glad_glGetUniformLocation, align 8, !tbaa !5
  %32 = load i32, ptr @drawChar.textProgram, align 4, !tbaa !9
  %33 = tail call i32 %31(i32 noundef %32, ptr noundef nonnull @.str.6) #3
  store i32 %33, ptr @drawChar.scaleLocation, align 4, !tbaa !9
  %.pre = load ptr, ptr @drawChar.model, align 8, !tbaa !5
  br label %34

34:                                               ; preds = %11, %6
  %35 = phi ptr [ %.pre, %11 ], [ %10, %6 ]
  %36 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %35, i64 16
  %38 = load i32, ptr %37, align 8, !tbaa !11
  tail call void %36(i32 noundef %38) #3
  %39 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %40 = load i32, ptr @drawChar.texture, align 4, !tbaa !9
  tail call void %39(i32 noundef 3553, i32 noundef %40) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  %41 = tail call i32 @wip_getConfInt(ptr noundef nonnull @.str.7) #3
  store i32 %41, ptr %7, align 4, !tbaa !9
  %42 = getelementptr inbounds i8, ptr %7, i64 4
  %43 = tail call i32 @wip_getConfInt(ptr noundef nonnull @.str.8) #3
  store i32 %43, ptr %42, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  store i32 %1, ptr %8, align 4, !tbaa !9
  %44 = getelementptr inbounds i8, ptr %8, i64 4
  store i32 %2, ptr %44, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
  store i32 %3, ptr %9, align 4, !tbaa !9
  %45 = getelementptr inbounds i8, ptr %9, i64 4
  store i32 %4, ptr %45, align 4, !tbaa !9
  %46 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  %47 = load i32, ptr @drawChar.textProgram, align 4, !tbaa !9
  tail call void %46(i32 noundef %47) #3
  %48 = load ptr, ptr @glad_glUniform1ui, align 8, !tbaa !5
  %49 = load i32, ptr @drawChar.cLocation, align 4, !tbaa !9
  %50 = sext i8 %0 to i32
  tail call void %48(i32 noundef %49, i32 noundef %50) #3
  %51 = load ptr, ptr @glad_glUniform2uiv, align 8, !tbaa !5
  %52 = load i32, ptr @drawChar.screenLocation, align 4, !tbaa !9
  call void %51(i32 noundef %52, i32 noundef 1, ptr noundef nonnull %7) #3
  %53 = load ptr, ptr @glad_glUniform2uiv, align 8, !tbaa !5
  %54 = load i32, ptr @drawChar.positionLocation, align 4, !tbaa !9
  call void %53(i32 noundef %54, i32 noundef 1, ptr noundef nonnull %8) #3
  %55 = load ptr, ptr @glad_glUniform2uiv, align 8, !tbaa !5
  %56 = load i32, ptr @drawChar.offsetLocation, align 4, !tbaa !9
  call void %55(i32 noundef %56, i32 noundef 1, ptr noundef nonnull %9) #3
  %57 = load ptr, ptr @glad_glUniform1f, align 8, !tbaa !5
  %58 = load i32, ptr @drawChar.scaleLocation, align 4, !tbaa !9
  call void %57(i32 noundef %58, float noundef %5) #3
  %59 = load ptr, ptr @glad_glDrawElements, align 8, !tbaa !5
  %60 = load ptr, ptr @drawChar.model, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i64 8
  %62 = load i64, ptr %61, align 8, !tbaa !14
  %63 = trunc i64 %62 to i32
  call void %59(i32 noundef 4, i32 noundef %63, i32 noundef 5125, ptr noundef null) #3
  %64 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  call void %64(i32 noundef 0) #3
  %65 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  call void %65(i32 noundef 3553, i32 noundef 0) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  ret void
}

declare ptr @wip_openModel(ptr noundef) local_unnamed_addr #1

declare i32 @wip_openTextureF(ptr noundef, i32 noundef, i32 noundef) 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 i32 @wip_loadShader(ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @wip_loadProgram(i32 noundef, i32 noundef) 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) #2

declare i32 @wip_getConfInt(ptr noundef) local_unnamed_addr #1

attributes #0 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 16}
!12 = !{!"", !7, i64 0, !13, i64 8, !10, i64 16}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !13, i64 8}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,TailCallElimPass