; LLVM IR from merpheus-dev/LavaEngine :: src/Platforms/OpenGL (GLPostProcessingEffect)

; 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.Lava::OpenGL::GLPostProcessingEffect" = type { %"class.Lava::PostProcessingEffect.base", ptr, ptr }
%"class.Lava::PostProcessingEffect.base" = type <{ ptr, i32, i32, i32 }>
%"class.Lava::PostProcessingEffect" = type <{ ptr, i32, i32, i32, [4 x i8] }>

@.str = external hidden unnamed_addr constant [23 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@__glewGenFramebuffers = external global ptr, align 8
@__glewGenRenderbuffers = external global ptr, align 8
@__glewBindRenderbuffer = external global ptr, align 8
@__glewRenderbufferStorage = external global ptr, align 8
@__glewBindFramebuffer = external global ptr, align 8
@__glewFramebufferTexture2D = external global ptr, align 8
@__glewFramebufferRenderbuffer = external global ptr, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Lava6OpenGL22GLPostProcessingEffect4InitEv(ptr noundef nonnull align 8 dereferenceable(40) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %7 = load ptr, ptr %2, align 8
  %8 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #7
  call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 40, i1 false)
  call void @_ZN4Lava6OpenGL12GLShaderBankC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #8
  %9 = getelementptr inbounds %"class.Lava::OpenGL::GLPostProcessingEffect", ptr %7, i32 0, i32 1
  store ptr %8, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  %10 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #7
  %11 = getelementptr inbounds %"class.Lava::OpenGL::GLPostProcessingEffect", ptr %7, i32 0, i32 1
  %12 = load ptr, ptr %11, align 8, !tbaa !9
  invoke void @_ZN4Lava6OpenGL8GLShaderC1EPKc10ShaderTypePNS0_12GLShaderBankE(ptr noundef nonnull align 8 dereferenceable(36) %10, ptr noundef @.str, i32 noundef 0, ptr noundef %12)
          to label %13 unwind label %61

13:                                               ; preds = %1
  store ptr %10, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %14 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #7
  %15 = getelementptr inbounds %"class.Lava::OpenGL::GLPostProcessingEffect", ptr %7, i32 0, i32 2
  %16 = load ptr, ptr %15, align 8, !tbaa !13
  %17 = getelementptr inbounds %"class.Lava::OpenGL::GLPostProcessingEffect", ptr %7, i32 0, i32 1
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  invoke void @_ZN4Lava6OpenGL8GLShaderC1EPKc10ShaderTypePNS0_12GLShaderBankE(ptr noundef nonnull align 8 dereferenceable(36) %14, ptr noundef %16, i32 noundef 1, ptr noundef %18)
          to label %19 unwind label %65

19:                                               ; preds = %13
  store ptr %14, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %"class.Lava::OpenGL::GLPostProcessingEffect", ptr %7, i32 0, i32 1
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN4Lava6OpenGL12GLShaderBank9AddShaderEPNS0_8GLShaderE(ptr noundef nonnull align 8 dereferenceable(40) %21, ptr noundef %22)
  %23 = getelementptr inbounds %"class.Lava::OpenGL::GLPostProcessingEffect", ptr %7, i32 0, i32 1
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4Lava6OpenGL12GLShaderBank9AddShaderEPNS0_8GLShaderE(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef %25)
  %26 = getelementptr inbounds %"class.Lava::OpenGL::GLPostProcessingEffect", ptr %7, i32 0, i32 1
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = load ptr, ptr %27, align 8, !tbaa !14
  %29 = getelementptr inbounds ptr, ptr %28, i64 5
  %30 = load ptr, ptr %29, align 8
  call void %30(ptr noundef nonnull align 8 dereferenceable(40) %27)
  %31 = getelementptr inbounds %"class.Lava::OpenGL::GLPostProcessingEffect", ptr %7, i32 0, i32 1
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  %33 = load ptr, ptr %32, align 8, !tbaa !14
  %34 = getelementptr inbounds ptr, ptr %33, i64 6
  %35 = load ptr, ptr %34, align 8
  call void %35(ptr noundef nonnull align 8 dereferenceable(40) %32, i32 noundef 0, ptr noundef @.str.1)
  %36 = getelementptr inbounds %"class.Lava::PostProcessingEffect", ptr %7, i32 0, i32 1
  call void @glGenTextures(i32 noundef 1, ptr noundef %36)
  %37 = getelementptr inbounds %"class.Lava::PostProcessingEffect", ptr %7, i32 0, i32 1
  %38 = load i32, ptr %37, align 8, !tbaa !16
  call void @glBindTexture(i32 noundef 3553, i32 noundef %38)
  %39 = call noundef i32 @_ZN4Lava13WindowManager5WidthEv()
  %40 = call noundef i32 @_ZN4Lava13WindowManager6HeightEv()
  call void @glTexImage2D(i32 noundef 3553, i32 noundef 0, i32 noundef 34842, i32 noundef %39, i32 noundef %40, i32 noundef 0, i32 noundef 6408, i32 noundef 5126, ptr noundef null)
  call void @glTexParameteri(i32 noundef 3553, i32 noundef 10241, i32 noundef 9729)
  call void @glTexParameteri(i32 noundef 3553, i32 noundef 10240, i32 noundef 9729)
  %41 = load ptr, ptr @__glewGenFramebuffers, align 8, !tbaa !5
  %42 = getelementptr inbounds %"class.Lava::PostProcessingEffect", ptr %7, i32 0, i32 2
  call void %41(i32 noundef 1, ptr noundef %42)
  %43 = load ptr, ptr @__glewGenRenderbuffers, align 8, !tbaa !5
  %44 = getelementptr inbounds %"class.Lava::PostProcessingEffect", ptr %7, i32 0, i32 3
  call void %43(i32 noundef 1, ptr noundef %44)
  %45 = load ptr, ptr @__glewBindRenderbuffer, align 8, !tbaa !5
  %46 = getelementptr inbounds %"class.Lava::PostProcessingEffect", ptr %7, i32 0, i32 3
  %47 = load i32, ptr %46, align 8, !tbaa !17
  call void %45(i32 noundef 36161, i32 noundef %47)
  %48 = load ptr, ptr @__glewRenderbufferStorage, align 8, !tbaa !5
  %49 = call noundef i32 @_ZN4Lava13WindowManager5WidthEv()
  %50 = call noundef i32 @_ZN4Lava13WindowManager6HeightEv()
  call void %48(i32 noundef 36161, i32 noundef 6402, i32 noundef %49, i32 noundef %50)
  %51 = load ptr, ptr @__glewBindFramebuffer, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.Lava::PostProcessingEffect", ptr %7, i32 0, i32 2
  %53 = load i32, ptr %52, align 4, !tbaa !18
  call void %51(i32 noundef 36160, i32 noundef %53)
  %54 = load ptr, ptr @__glewFramebufferTexture2D, align 8, !tbaa !5
  %55 = getelementptr inbounds %"class.Lava::PostProcessingEffect", ptr %7, i32 0, i32 1
  %56 = load i32, ptr %55, align 8, !tbaa !16
  call void %54(i32 noundef 36160, i32 noundef 36064, i32 noundef 3553, i32 noundef %56, i32 noundef 0)
  %57 = load ptr, ptr @__glewFramebufferRenderbuffer, align 8, !tbaa !5
  %58 = getelementptr inbounds %"class.Lava::PostProcessingEffect", ptr %7, i32 0, i32 3
  %59 = load i32, ptr %58, align 8, !tbaa !17
  call void %57(i32 noundef 36160, i32 noundef 36096, i32 noundef 36161, i32 noundef %59)
  %60 = load ptr, ptr @__glewBindFramebuffer, align 8, !tbaa !5
  call void %60(i32 noundef 36160, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  ret void

61:                                               ; preds = %1
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %4, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %5, align 4
  call void @_ZdlPvm(ptr noundef %10, i64 noundef 40) #9
  br label %69

65:                                               ; preds = %13
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %4, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %5, align 4
  call void @_ZdlPvm(ptr noundef %14, i64 noundef 40) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %69

69:                                               ; preds = %65, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  br label %70

70:                                               ; preds = %69
  %71 = load ptr, ptr %4, align 8
  %72 = load i32, ptr %5, align 4
  %73 = insertvalue { ptr, i32 } poison, ptr %71, 0
  %74 = insertvalue { ptr, i32 } %73, i32 %72, 1
  resume { ptr, i32 } %74
}

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

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

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

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

declare void @_ZN4Lava6OpenGL8GLShaderC1EPKc10ShaderTypePNS0_12GLShaderBankE(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef, i32 noundef, ptr noundef) unnamed_addr #5

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN4Lava6OpenGL12GLShaderBank9AddShaderEPNS0_8GLShaderE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) #5

declare void @glGenTextures(i32 noundef, ptr noundef) #5

declare void @glBindTexture(i32 noundef, i32 noundef) #5

declare void @glTexImage2D(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #5

declare noundef i32 @_ZN4Lava13WindowManager5WidthEv() #5

declare noundef i32 @_ZN4Lava13WindowManager6HeightEv() #5

declare void @glTexParameteri(i32 noundef, i32 noundef, i32 noundef) #5

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

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 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { "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 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { nounwind }
attributes #9 = { builtin nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 24}
!10 = !{!"_ZTSN4Lava6OpenGL22GLPostProcessingEffectE", !11, i64 0, !6, i64 24, !6, i64 32}
!11 = !{!"_ZTSN4Lava20PostProcessingEffectE", !12, i64 8, !12, i64 12, !12, i64 16}
!12 = !{!"int", !7, i64 0}
!13 = !{!10, !6, i64 32}
!14 = !{!15, !15, i64 0}
!15 = !{!"vtable pointer", !8, i64 0}
!16 = !{!11, !12, i64 8}
!17 = !{!11, !12, i64 16}
!18 = !{!11, !12, i64 12}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [23 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@__glewGenFramebuffers = external local_unnamed_addr global ptr, align 8
@__glewGenRenderbuffers = external local_unnamed_addr global ptr, align 8
@__glewBindRenderbuffer = external local_unnamed_addr global ptr, align 8
@__glewRenderbufferStorage = external local_unnamed_addr global ptr, align 8
@__glewBindFramebuffer = external local_unnamed_addr global ptr, align 8
@__glewFramebufferTexture2D = external local_unnamed_addr global ptr, align 8
@__glewFramebufferRenderbuffer = external local_unnamed_addr global ptr, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Lava6OpenGL22GLPostProcessingEffect4InitEv(ptr noundef nonnull align 8 dereferenceable(40) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = tail call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #6
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %2, i8 0, i64 40, i1 false)
  tail call void @_ZN4Lava6OpenGL12GLShaderBankC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %2) #7
  %3 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %2, ptr %3, align 8, !tbaa !5
  %4 = tail call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #6
  invoke void @_ZN4Lava6OpenGL8GLShaderC1EPKc10ShaderTypePNS0_12GLShaderBankE(ptr noundef nonnull align 8 dereferenceable(36) %4, ptr noundef nonnull @.str, i32 noundef 0, ptr noundef nonnull %2)
          to label %5 unwind label %41

5:                                                ; preds = %1
  %6 = tail call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #6
  %7 = getelementptr inbounds i8, ptr %0, i64 32
  %8 = load ptr, ptr %7, align 8, !tbaa !12
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZN4Lava6OpenGL8GLShaderC1EPKc10ShaderTypePNS0_12GLShaderBankE(ptr noundef nonnull align 8 dereferenceable(36) %6, ptr noundef %8, i32 noundef 1, ptr noundef %9)
          to label %10 unwind label %43

10:                                               ; preds = %5
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  tail call void @_ZN4Lava6OpenGL12GLShaderBank9AddShaderEPNS0_8GLShaderE(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull %4)
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  tail call void @_ZN4Lava6OpenGL12GLShaderBank9AddShaderEPNS0_8GLShaderE(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull %6)
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = load ptr, ptr %13, align 8, !tbaa !13
  %15 = getelementptr inbounds i8, ptr %14, i64 40
  %16 = load ptr, ptr %15, align 8
  tail call void %16(ptr noundef nonnull align 8 dereferenceable(40) %13)
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = load ptr, ptr %17, align 8, !tbaa !13
  %19 = getelementptr inbounds i8, ptr %18, i64 48
  %20 = load ptr, ptr %19, align 8
  tail call void %20(ptr noundef nonnull align 8 dereferenceable(40) %17, i32 noundef 0, ptr noundef nonnull @.str.1)
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @glGenTextures(i32 noundef 1, ptr noundef nonnull %21)
  %22 = load i32, ptr %21, align 8, !tbaa !15
  tail call void @glBindTexture(i32 noundef 3553, i32 noundef %22)
  %23 = tail call noundef i32 @_ZN4Lava13WindowManager5WidthEv()
  %24 = tail call noundef i32 @_ZN4Lava13WindowManager6HeightEv()
  tail call void @glTexImage2D(i32 noundef 3553, i32 noundef 0, i32 noundef 34842, i32 noundef %23, i32 noundef %24, i32 noundef 0, i32 noundef 6408, i32 noundef 5126, ptr noundef null)
  tail call void @glTexParameteri(i32 noundef 3553, i32 noundef 10241, i32 noundef 9729)
  tail call void @glTexParameteri(i32 noundef 3553, i32 noundef 10240, i32 noundef 9729)
  %25 = load ptr, ptr @__glewGenFramebuffers, align 8, !tbaa !16
  %26 = getelementptr inbounds i8, ptr %0, i64 12
  tail call void %25(i32 noundef 1, ptr noundef nonnull %26)
  %27 = load ptr, ptr @__glewGenRenderbuffers, align 8, !tbaa !16
  %28 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void %27(i32 noundef 1, ptr noundef nonnull %28)
  %29 = load ptr, ptr @__glewBindRenderbuffer, align 8, !tbaa !16
  %30 = load i32, ptr %28, align 8, !tbaa !17
  tail call void %29(i32 noundef 36161, i32 noundef %30)
  %31 = load ptr, ptr @__glewRenderbufferStorage, align 8, !tbaa !16
  %32 = tail call noundef i32 @_ZN4Lava13WindowManager5WidthEv()
  %33 = tail call noundef i32 @_ZN4Lava13WindowManager6HeightEv()
  tail call void %31(i32 noundef 36161, i32 noundef 6402, i32 noundef %32, i32 noundef %33)
  %34 = load ptr, ptr @__glewBindFramebuffer, align 8, !tbaa !16
  %35 = load i32, ptr %26, align 4, !tbaa !18
  tail call void %34(i32 noundef 36160, i32 noundef %35)
  %36 = load ptr, ptr @__glewFramebufferTexture2D, align 8, !tbaa !16
  %37 = load i32, ptr %21, align 8, !tbaa !15
  tail call void %36(i32 noundef 36160, i32 noundef 36064, i32 noundef 3553, i32 noundef %37, i32 noundef 0)
  %38 = load ptr, ptr @__glewFramebufferRenderbuffer, align 8, !tbaa !16
  %39 = load i32, ptr %28, align 8, !tbaa !17
  tail call void %38(i32 noundef 36160, i32 noundef 36096, i32 noundef 36161, i32 noundef %39)
  %40 = load ptr, ptr @__glewBindFramebuffer, align 8, !tbaa !16
  tail call void %40(i32 noundef 36160, i32 noundef 0)
  ret void

41:                                               ; preds = %1
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %45

43:                                               ; preds = %5
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %45

45:                                               ; preds = %43, %41
  %.sink = phi ptr [ %6, %43 ], [ %4, %41 ]
  %.pn = phi { ptr, i32 } [ %44, %43 ], [ %42, %41 ]
  tail call void @_ZdlPvm(ptr noundef nonnull %.sink, i64 noundef 40) #8
  resume { ptr, i32 } %.pn
}

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

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

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

declare void @_ZN4Lava6OpenGL8GLShaderC1EPKc10ShaderTypePNS0_12GLShaderBankE(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef, i32 noundef, ptr noundef) unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN4Lava6OpenGL12GLShaderBank9AddShaderEPNS0_8GLShaderE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) local_unnamed_addr #4

declare void @glGenTextures(i32 noundef, ptr noundef) local_unnamed_addr #4

declare void @glBindTexture(i32 noundef, i32 noundef) local_unnamed_addr #4

declare void @glTexImage2D(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

declare noundef i32 @_ZN4Lava13WindowManager5WidthEv() local_unnamed_addr #4

declare noundef i32 @_ZN4Lava13WindowManager6HeightEv() local_unnamed_addr #4

declare void @glTexParameteri(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

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 = { 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 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 #6 = { builtin allocsize(0) }
attributes #7 = { nounwind }
attributes #8 = { builtin nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 24}
!6 = !{!"_ZTSN4Lava6OpenGL22GLPostProcessingEffectE", !7, i64 0, !11, i64 24, !11, i64 32}
!7 = !{!"_ZTSN4Lava20PostProcessingEffectE", !8, i64 8, !8, i64 12, !8, i64 16}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!6, !11, i64 32}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !10, i64 0}
!15 = !{!7, !8, i64 8}
!16 = !{!11, !11, i64 0}
!17 = !{!7, !8, i64 16}
!18 = !{!7, !8, i64 12}


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