; LLVM IR from danginsburg/opengles3-book :: Chapter_14/ParticleSystemTransformFeedback (ParticleSystemTransformFeedback)

; 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.Particle = type { [2 x float], [2 x float], float, float, float }
%struct.ESContext = type { ptr, ptr, i32, i32, ptr, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.UserData = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [200 x %struct.Particle], [2 x i32], i32, float, ptr }

@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@__const.Init.vShaderStr = external hidden unnamed_addr constant [2141 x i8], align 16
@__const.Init.fShaderStr = external hidden unnamed_addr constant [595 x i8], align 16
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @LoadTexture(ptr noundef, ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @InitEmitParticles(ptr noundef) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

declare i32 @esLoadProgram(ptr noundef, ptr noundef) #3

declare i32 @glGetUniformLocation(i32 noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @Init(ptr noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca [200 x %struct.Particle], align 16
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca [2141 x i8], align 16
  %8 = alloca [595 x i8], align 16
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 5600, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.ESContext, ptr %11, i32 0, i32 1
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  store ptr %13, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 2141, ptr %7) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.Init.vShaderStr, i64 2141, i1 false)
  call void @llvm.lifetime.start.p0(i64 595, ptr %8) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const.Init.fShaderStr, i64 595, i1 false)
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  call void @InitEmitParticles(ptr noundef %14)
  %15 = getelementptr inbounds [2141 x i8], ptr %7, i64 0, i64 0
  %16 = getelementptr inbounds [595 x i8], ptr %8, i64 0, i64 0
  %17 = call i32 @esLoadProgram(ptr noundef %15, ptr noundef %16)
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.UserData, ptr %18, i32 0, i32 1
  store i32 %17, ptr %19, align 4, !tbaa !13
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.UserData, ptr %20, i32 0, i32 1
  %22 = load i32, ptr %21, align 4, !tbaa !13
  %23 = call i32 @glGetUniformLocation(i32 noundef %22, ptr noundef @.str.6)
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.UserData, ptr %24, i32 0, i32 5
  store i32 %23, ptr %25, align 4, !tbaa !16
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.UserData, ptr %26, i32 0, i32 1
  %28 = load i32, ptr %27, align 4, !tbaa !13
  %29 = call i32 @glGetUniformLocation(i32 noundef %28, ptr noundef @.str.9)
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.UserData, ptr %30, i32 0, i32 6
  store i32 %29, ptr %31, align 8, !tbaa !17
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.UserData, ptr %32, i32 0, i32 1
  %34 = load i32, ptr %33, align 4, !tbaa !13
  %35 = call i32 @glGetUniformLocation(i32 noundef %34, ptr noundef @.str.10)
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.UserData, ptr %36, i32 0, i32 7
  store i32 %35, ptr %37, align 4, !tbaa !18
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.UserData, ptr %38, i32 0, i32 1
  %40 = load i32, ptr %39, align 4, !tbaa !13
  %41 = call i32 @glGetUniformLocation(i32 noundef %40, ptr noundef @.str.11)
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.UserData, ptr %42, i32 0, i32 8
  store i32 %41, ptr %43, align 8, !tbaa !19
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.UserData, ptr %44, i32 0, i32 14
  store float 0.000000e+00, ptr %45, align 8, !tbaa !20
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.UserData, ptr %46, i32 0, i32 13
  store i32 0, ptr %47, align 4, !tbaa !21
  call void @glClearColor(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.ESContext, ptr %48, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8, !tbaa !22
  %51 = call i32 @LoadTexture(ptr noundef %50, ptr noundef @.str.12)
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.UserData, ptr %52, i32 0, i32 9
  store i32 %51, ptr %53, align 4, !tbaa !23
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.UserData, ptr %54, i32 0, i32 9
  %56 = load i32, ptr %55, align 4, !tbaa !23
  %57 = icmp ule i32 %56, 0
  br i1 %57, label %58, label %59

58:                                               ; preds = %1
  store i32 0, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %110

59:                                               ; preds = %1
  %60 = call i32 @Create3DNoiseTexture(i32 noundef 128, float noundef 5.000000e+01)
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.UserData, ptr %61, i32 0, i32 10
  store i32 %60, ptr %62, align 8, !tbaa !24
  store i32 0, ptr %6, align 4, !tbaa !25
  br label %63

63:                                               ; preds = %88, %59
  %64 = load i32, ptr %6, align 4, !tbaa !25
  %65 = icmp slt i32 %64, 200
  br i1 %65, label %66, label %91

66:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %67 = load i32, ptr %6, align 4, !tbaa !25
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [200 x %struct.Particle], ptr %4, i64 0, i64 %68
  store ptr %69, ptr %10, align 8, !tbaa !5
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.Particle, ptr %70, i32 0, i32 0
  %72 = getelementptr inbounds [2 x float], ptr %71, i64 0, i64 0
  store float 0.000000e+00, ptr %72, align 4, !tbaa !26
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.Particle, ptr %73, i32 0, i32 0
  %75 = getelementptr inbounds [2 x float], ptr %74, i64 0, i64 1
  store float 0.000000e+00, ptr %75, align 4, !tbaa !26
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.Particle, ptr %76, i32 0, i32 1
  %78 = getelementptr inbounds [2 x float], ptr %77, i64 0, i64 0
  store float 0.000000e+00, ptr %78, align 4, !tbaa !26
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.Particle, ptr %79, i32 0, i32 1
  %81 = getelementptr inbounds [2 x float], ptr %80, i64 0, i64 1
  store float 0.000000e+00, ptr %81, align 4, !tbaa !26
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.Particle, ptr %82, i32 0, i32 2
  store float 0.000000e+00, ptr %83, align 4, !tbaa !27
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.Particle, ptr %84, i32 0, i32 3
  store float 0.000000e+00, ptr %85, align 4, !tbaa !29
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.Particle, ptr %86, i32 0, i32 4
  store float 0.000000e+00, ptr %87, align 4, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %88

88:                                               ; preds = %66
  %89 = load i32, ptr %6, align 4, !tbaa !25
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %6, align 4, !tbaa !25
  br label %63, !llvm.loop !31

91:                                               ; preds = %63
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.UserData, ptr %92, i32 0, i32 12
  %94 = getelementptr inbounds [2 x i32], ptr %93, i64 0, i64 0
  call void @glGenBuffers(i32 noundef 2, ptr noundef %94)
  store i32 0, ptr %6, align 4, !tbaa !25
  br label %95

95:                                               ; preds = %106, %91
  %96 = load i32, ptr %6, align 4, !tbaa !25
  %97 = icmp slt i32 %96, 2
  br i1 %97, label %98, label %109

98:                                               ; preds = %95
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.UserData, ptr %99, i32 0, i32 12
  %101 = load i32, ptr %6, align 4, !tbaa !25
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [2 x i32], ptr %100, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !25
  call void @glBindBuffer(i32 noundef 34962, i32 noundef %104)
  %105 = getelementptr inbounds [200 x %struct.Particle], ptr %4, i64 0, i64 0
  call void @glBufferData(i32 noundef 34962, i64 noundef 5600, ptr noundef %105, i32 noundef 35050)
  br label %106

106:                                              ; preds = %98
  %107 = load i32, ptr %6, align 4, !tbaa !25
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %6, align 4, !tbaa !25
  br label %95, !llvm.loop !33

109:                                              ; preds = %95
  store i32 1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %110

110:                                              ; preds = %109, %58
  call void @llvm.lifetime.end.p0(i64 595, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 2141, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 5600, ptr %4) #4
  %111 = load i32, ptr %2, align 4
  ret i32 %111
}

declare void @glClearColor(float noundef, float noundef, float noundef, float noundef) #3

declare i32 @Create3DNoiseTexture(i32 noundef, float noundef) #3

declare void @glGenBuffers(i32 noundef, ptr noundef) #3

declare void @glBindBuffer(i32 noundef, i32 noundef) #3

declare void @glBufferData(i32 noundef, i64 noundef, ptr noundef, i32 noundef) #3

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree 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 = { 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, !6, i64 8}
!10 = !{!"ESContext", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !6, i64 24, !12, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !11, i64 4}
!14 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !7, i64 44, !7, i64 5644, !11, i64 5652, !15, i64 5656, !6, i64 5664}
!15 = !{!"float", !7, i64 0}
!16 = !{!14, !11, i64 20}
!17 = !{!14, !11, i64 24}
!18 = !{!14, !11, i64 28}
!19 = !{!14, !11, i64 32}
!20 = !{!14, !15, i64 5656}
!21 = !{!14, !11, i64 5652}
!22 = !{!10, !6, i64 0}
!23 = !{!14, !11, i64 36}
!24 = !{!14, !11, i64 40}
!25 = !{!11, !11, i64 0}
!26 = !{!15, !15, i64 0}
!27 = !{!28, !15, i64 16}
!28 = !{!"", !7, i64 0, !7, i64 8, !15, i64 16, !15, i64 20, !15, i64 24}
!29 = !{!28, !15, i64 20}
!30 = !{!28, !15, i64 24}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}


; 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.Particle = type { [2 x float], [2 x float], float, float, float }

@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@__const.Init.vShaderStr = external hidden unnamed_addr constant [2141 x i8], align 16
@__const.Init.fShaderStr = external hidden unnamed_addr constant [595 x i8], align 16
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @LoadTexture(ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @InitEmitParticles(ptr noundef) local_unnamed_addr #0

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

declare i32 @esLoadProgram(ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @glGetUniformLocation(i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @Init(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca [200 x %struct.Particle], align 16
  %3 = alloca [2141 x i8], align 16
  %4 = alloca [595 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 5600, ptr nonnull %2) #5
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2141, ptr nonnull %3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(2141) %3, ptr noundef nonnull align 16 dereferenceable(2141) @__const.Init.vShaderStr, i64 2141, i1 false)
  call void @llvm.lifetime.start.p0(i64 595, ptr nonnull %4) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(595) %4, ptr noundef nonnull align 16 dereferenceable(595) @__const.Init.fShaderStr, i64 595, i1 false)
  tail call void @InitEmitParticles(ptr noundef %0)
  %7 = call i32 @esLoadProgram(ptr noundef nonnull %3, ptr noundef nonnull %4) #5
  %8 = getelementptr inbounds i8, ptr %6, i64 4
  store i32 %7, ptr %8, align 4, !tbaa !12
  %9 = call i32 @glGetUniformLocation(i32 noundef %7, ptr noundef nonnull @.str.6) #5
  %10 = getelementptr inbounds i8, ptr %6, i64 20
  store i32 %9, ptr %10, align 4, !tbaa !15
  %11 = load i32, ptr %8, align 4, !tbaa !12
  %12 = call i32 @glGetUniformLocation(i32 noundef %11, ptr noundef nonnull @.str.9) #5
  %13 = getelementptr inbounds i8, ptr %6, i64 24
  store i32 %12, ptr %13, align 8, !tbaa !16
  %14 = load i32, ptr %8, align 4, !tbaa !12
  %15 = call i32 @glGetUniformLocation(i32 noundef %14, ptr noundef nonnull @.str.10) #5
  %16 = getelementptr inbounds i8, ptr %6, i64 28
  store i32 %15, ptr %16, align 4, !tbaa !17
  %17 = load i32, ptr %8, align 4, !tbaa !12
  %18 = call i32 @glGetUniformLocation(i32 noundef %17, ptr noundef nonnull @.str.11) #5
  %19 = getelementptr inbounds i8, ptr %6, i64 32
  store i32 %18, ptr %19, align 8, !tbaa !18
  %20 = getelementptr inbounds i8, ptr %6, i64 5656
  store float 0.000000e+00, ptr %20, align 8, !tbaa !19
  %21 = getelementptr inbounds i8, ptr %6, i64 5652
  store i32 0, ptr %21, align 4, !tbaa !20
  call void @glClearColor(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00) #5
  %22 = load ptr, ptr %0, align 8, !tbaa !21
  %23 = call i32 @LoadTexture(ptr noundef %22, ptr noundef nonnull @.str.12)
  %24 = getelementptr inbounds i8, ptr %6, i64 36
  store i32 %23, ptr %24, align 4, !tbaa !22
  %25 = icmp eq i32 %23, 0
  br i1 %25, label %.loopexit, label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %1
  %26 = call i32 @Create3DNoiseTexture(i32 noundef 128, float noundef 5.000000e+01) #5
  %27 = getelementptr inbounds i8, ptr %6, i64 40
  store i32 %26, ptr %27, align 8, !tbaa !23
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(5600) %2, i8 0, i64 5600, i1 false), !tbaa !24
  %28 = getelementptr inbounds i8, ptr %6, i64 5644
  call void @glGenBuffers(i32 noundef 2, ptr noundef nonnull %28) #5
  %29 = load i32, ptr %28, align 4, !tbaa !25
  call void @glBindBuffer(i32 noundef 34962, i32 noundef %29) #5
  call void @glBufferData(i32 noundef 34962, i64 noundef 5600, ptr noundef nonnull %2, i32 noundef 35050) #5
  %30 = getelementptr inbounds i8, ptr %6, i64 5648
  %31 = load i32, ptr %30, align 4, !tbaa !25
  call void @glBindBuffer(i32 noundef 34962, i32 noundef %31) #5
  call void @glBufferData(i32 noundef 34962, i64 noundef 5600, ptr noundef nonnull %2, i32 noundef 35050) #5
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %1
  %.0 = phi i32 [ 0, %1 ], [ 1, %.loopexit.loopexit ]
  call void @llvm.lifetime.end.p0(i64 595, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 2141, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 5600, ptr nonnull %2) #5
  ret i32 %.0
}

declare void @glClearColor(float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #3

declare i32 @Create3DNoiseTexture(i32 noundef, float noundef) local_unnamed_addr #3

declare void @glGenBuffers(i32 noundef, ptr noundef) local_unnamed_addr #3

declare void @glBindBuffer(i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @glBufferData(i32 noundef, i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

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

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 8}
!6 = !{!"ESContext", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !7, i64 24, !11, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!13, !10, i64 4}
!13 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !8, i64 44, !8, i64 5644, !10, i64 5652, !14, i64 5656, !7, i64 5664}
!14 = !{!"float", !8, i64 0}
!15 = !{!13, !10, i64 20}
!16 = !{!13, !10, i64 24}
!17 = !{!13, !10, i64 28}
!18 = !{!13, !10, i64 32}
!19 = !{!13, !14, i64 5656}
!20 = !{!13, !10, i64 5652}
!21 = !{!6, !7, i64 0}
!22 = !{!13, !10, i64 36}
!23 = !{!13, !10, i64 40}
!24 = !{!14, !14, i64 0}
!25 = !{!10, !10, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass,TailCallElimPass