; LLVM IR from Erkaman/fluid_sim :: src/main.ll (Z6jacobiijPj)

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

@jacobiShader = external dso_local global i32, align 4
@jsxTexLocation = external dso_local global i32, align 4
@jsbTexLocation = external dso_local global i32, align 4
@jsAlphaLocation = external dso_local global i32, align 4
@jsBetaLocation = external dso_local global i32, align 4
@fbo0 = external dso_local global i32, align 4
@.str.4 = external hidden unnamed_addr constant [64 x i8], align 1
@glad_glBindFramebuffer = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [40 x i8], align 1
@glad_glFramebufferTexture2D = external global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [37 x i8], align 1
@glad_glClearColor = external global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [37 x i8], align 1
@glad_glClear = external global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [29 x i8], align 1
@glad_glUseProgram = external global ptr, align 8
@glad_glUniform1i = external global ptr, align 8
@glad_glActiveTexture = external global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [33 x i8], align 1
@glad_glBindTexture = external global ptr, align 8
@.str.19 = external hidden unnamed_addr constant [33 x i8], align 1
@glad_glUniform2f = external global ptr, align 8
@.str.24 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [50 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z16renderFullscreenv() #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z6jacobiijPj(i32 noundef %0, i32 noundef %1, ptr noundef %2) #1 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %10

10:                                               ; preds = %103, %3
  %11 = load i32, ptr %7, align 4, !tbaa !5
  %12 = load i32, ptr %4, align 4, !tbaa !5
  %13 = icmp slt i32 %11, %12
  br i1 %13, label %14, label %106

14:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %15 = load i32, ptr %7, align 4, !tbaa !5
  %16 = add nsw i32 %15, 0
  %17 = srem i32 %16, 2
  store i32 %17, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %18 = load i32, ptr %7, align 4, !tbaa !5
  %19 = add nsw i32 %18, 1
  %20 = srem i32 %19, 2
  store i32 %20, ptr %9, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %14
  %22 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !9
  %23 = load i32, ptr @fbo0, align 4, !tbaa !5
  call void %22(i32 noundef 36160, i32 noundef %23)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.5, ptr noundef @.str.4, i32 noundef 324)
  br label %24

24:                                               ; preds = %21
  br label %25

25:                                               ; preds = %24
  br label %26

26:                                               ; preds = %25
  %27 = load ptr, ptr @glad_glFramebufferTexture2D, align 8, !tbaa !9
  %28 = load ptr, ptr %6, align 8, !tbaa !9
  %29 = load i32, ptr %9, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds i32, ptr %28, i64 %30
  %32 = load i32, ptr %31, align 4, !tbaa !5
  call void %27(i32 noundef 36160, i32 noundef 36064, i32 noundef 3553, i32 noundef %32, i32 noundef 0)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.24, ptr noundef @.str.4, i32 noundef 325)
  br label %33

33:                                               ; preds = %26
  br label %34

34:                                               ; preds = %33
  br label %35

35:                                               ; preds = %34
  %36 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !9
  call void %36(i32 noundef 36160, i32 noundef 0)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.7, ptr noundef @.str.4, i32 noundef 326)
  br label %37

37:                                               ; preds = %35
  br label %38

38:                                               ; preds = %37
  br label %39

39:                                               ; preds = %38
  %40 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !9
  %41 = load i32, ptr @fbo0, align 4, !tbaa !5
  call void %40(i32 noundef 36160, i32 noundef %41)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.5, ptr noundef @.str.4, i32 noundef 328)
  br label %42

42:                                               ; preds = %39
  br label %43

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43
  %45 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !9
  call void %45(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.8, ptr noundef @.str.4, i32 noundef 330)
  br label %46

46:                                               ; preds = %44
  br label %47

47:                                               ; preds = %46
  br label %48

48:                                               ; preds = %47
  %49 = load ptr, ptr @glad_glClear, align 8, !tbaa !9
  call void %49(i32 noundef 16384)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.9, ptr noundef @.str.4, i32 noundef 331)
  br label %50

50:                                               ; preds = %48
  br label %51

51:                                               ; preds = %50
  br label %52

52:                                               ; preds = %51
  %53 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !9
  %54 = load i32, ptr @jacobiShader, align 4, !tbaa !5
  call void %53(i32 noundef %54)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.25, ptr noundef @.str.4, i32 noundef 333)
  br label %55

55:                                               ; preds = %52
  br label %56

56:                                               ; preds = %55
  br label %57

57:                                               ; preds = %56
  %58 = load ptr, ptr @glad_glUniform1i, align 8, !tbaa !9
  %59 = load i32, ptr @jsxTexLocation, align 4, !tbaa !5
  call void %58(i32 noundef %59, i32 noundef 0)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.26, ptr noundef @.str.4, i32 noundef 335)
  br label %60

60:                                               ; preds = %57
  br label %61

61:                                               ; preds = %60
  br label %62

62:                                               ; preds = %61
  %63 = load ptr, ptr @glad_glActiveTexture, align 8, !tbaa !9
  call void %63(i32 noundef 33984)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.13, ptr noundef @.str.4, i32 noundef 336)
  br label %64

64:                                               ; preds = %62
  br label %65

65:                                               ; preds = %64
  br label %66

66:                                               ; preds = %65
  %67 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !9
  %68 = load ptr, ptr %6, align 8, !tbaa !9
  %69 = load i32, ptr %8, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds i32, ptr %68, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !5
  call void %67(i32 noundef 3553, i32 noundef %72)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.27, ptr noundef @.str.4, i32 noundef 337)
  br label %73

73:                                               ; preds = %66
  br label %74

74:                                               ; preds = %73
  br label %75

75:                                               ; preds = %74
  %76 = load ptr, ptr @glad_glUniform1i, align 8, !tbaa !9
  %77 = load i32, ptr @jsbTexLocation, align 4, !tbaa !5
  call void %76(i32 noundef %77, i32 noundef 1)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.28, ptr noundef @.str.4, i32 noundef 339)
  br label %78

78:                                               ; preds = %75
  br label %79

79:                                               ; preds = %78
  br label %80

80:                                               ; preds = %79
  %81 = load ptr, ptr @glad_glActiveTexture, align 8, !tbaa !9
  call void %81(i32 noundef 33985)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.19, ptr noundef @.str.4, i32 noundef 340)
  br label %82

82:                                               ; preds = %80
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83
  %85 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !9
  %86 = load i32, ptr %5, align 4, !tbaa !5
  call void %85(i32 noundef 3553, i32 noundef %86)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.29, ptr noundef @.str.4, i32 noundef 341)
  br label %87

87:                                               ; preds = %84
  br label %88

88:                                               ; preds = %87
  br label %89

89:                                               ; preds = %88
  %90 = load ptr, ptr @glad_glUniform2f, align 8, !tbaa !9
  %91 = load i32, ptr @jsAlphaLocation, align 4, !tbaa !5
  call void %90(i32 noundef %91, float noundef -1.000000e+00, float noundef -1.000000e+00)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.30, ptr noundef @.str.4, i32 noundef 343)
  br label %92

92:                                               ; preds = %89
  br label %93

93:                                               ; preds = %92
  br label %94

94:                                               ; preds = %93
  %95 = load ptr, ptr @glad_glUniform2f, align 8, !tbaa !9
  %96 = load i32, ptr @jsBetaLocation, align 4, !tbaa !5
  call void %95(i32 noundef %96, float noundef 2.500000e-01, float noundef 2.500000e-01)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.31, ptr noundef @.str.4, i32 noundef 344)
  br label %97

97:                                               ; preds = %94
  br label %98

98:                                               ; preds = %97
  call void @_Z16renderFullscreenv()
  br label %99

99:                                               ; preds = %98
  %100 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !9
  call void %100(i32 noundef 36160, i32 noundef 0)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.7, ptr noundef @.str.4, i32 noundef 349)
  br label %101

101:                                              ; preds = %99
  br label %102

102:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %103

103:                                              ; preds = %102
  %104 = load i32, ptr %7, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %7, align 4, !tbaa !5
  br label %10, !llvm.loop !11

106:                                              ; preds = %10
  %107 = load ptr, ptr %6, align 8, !tbaa !9
  %108 = load i32, ptr %7, align 4, !tbaa !5
  %109 = add nsw i32 %108, 0
  %110 = srem i32 %109, 2
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds i32, ptr %107, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  ret i32 %113
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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

@jacobiShader = external dso_local local_unnamed_addr global i32, align 4
@jsxTexLocation = external dso_local local_unnamed_addr global i32, align 4
@jsbTexLocation = external dso_local local_unnamed_addr global i32, align 4
@jsAlphaLocation = external dso_local local_unnamed_addr global i32, align 4
@jsBetaLocation = external dso_local local_unnamed_addr global i32, align 4
@fbo0 = external dso_local local_unnamed_addr global i32, align 4
@.str.4 = external hidden unnamed_addr constant [64 x i8], align 1
@glad_glBindFramebuffer = external local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [40 x i8], align 1
@glad_glFramebufferTexture2D = external local_unnamed_addr global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [37 x i8], align 1
@glad_glClearColor = external local_unnamed_addr global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [37 x i8], align 1
@glad_glClear = external local_unnamed_addr global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [29 x i8], align 1
@glad_glUseProgram = external local_unnamed_addr global ptr, align 8
@glad_glUniform1i = external local_unnamed_addr global ptr, align 8
@glad_glActiveTexture = external local_unnamed_addr global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [33 x i8], align 1
@glad_glBindTexture = external local_unnamed_addr global ptr, align 8
@.str.19 = external hidden unnamed_addr constant [33 x i8], align 1
@glad_glUniform2f = external local_unnamed_addr global ptr, align 8
@.str.24 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [50 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z16renderFullscreenv() local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z6jacobiijPj(i32 noundef %0, i32 noundef %1, ptr nocapture noundef readonly %2) local_unnamed_addr #0 {
  %4 = icmp sgt i32 %0, 0
  br i1 %4, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3, %.lr.ph
  %.011 = phi i32 [ %6, %.lr.ph ], [ 0, %3 ]
  %5 = and i32 %.011, 1
  %6 = add nuw nsw i32 %.011, 1
  %7 = and i32 %6, 1
  %8 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !5
  %9 = load i32, ptr @fbo0, align 4, !tbaa !9
  tail call void %8(i32 noundef 36160, i32 noundef %9)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.4, i32 noundef 324)
  %10 = load ptr, ptr @glad_glFramebufferTexture2D, align 8, !tbaa !5
  %11 = zext nneg i32 %7 to i64
  %12 = getelementptr inbounds i32, ptr %2, i64 %11
  %13 = load i32, ptr %12, align 4, !tbaa !9
  tail call void %10(i32 noundef 36160, i32 noundef 36064, i32 noundef 3553, i32 noundef %13, i32 noundef 0)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.4, i32 noundef 325)
  %14 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !5
  tail call void %14(i32 noundef 36160, i32 noundef 0)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4, i32 noundef 326)
  %15 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !5
  %16 = load i32, ptr @fbo0, align 4, !tbaa !9
  tail call void %15(i32 noundef 36160, i32 noundef %16)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.4, i32 noundef 328)
  %17 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !5
  tail call void %17(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.4, i32 noundef 330)
  %18 = load ptr, ptr @glad_glClear, align 8, !tbaa !5
  tail call void %18(i32 noundef 16384)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.4, i32 noundef 331)
  %19 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  %20 = load i32, ptr @jacobiShader, align 4, !tbaa !9
  tail call void %19(i32 noundef %20)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.25, ptr noundef nonnull @.str.4, i32 noundef 333)
  %21 = load ptr, ptr @glad_glUniform1i, align 8, !tbaa !5
  %22 = load i32, ptr @jsxTexLocation, align 4, !tbaa !9
  tail call void %21(i32 noundef %22, i32 noundef 0)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.26, ptr noundef nonnull @.str.4, i32 noundef 335)
  %23 = load ptr, ptr @glad_glActiveTexture, align 8, !tbaa !5
  tail call void %23(i32 noundef 33984)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.4, i32 noundef 336)
  %24 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %25 = zext nneg i32 %5 to i64
  %26 = getelementptr inbounds i32, ptr %2, i64 %25
  %27 = load i32, ptr %26, align 4, !tbaa !9
  tail call void %24(i32 noundef 3553, i32 noundef %27)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.27, ptr noundef nonnull @.str.4, i32 noundef 337)
  %28 = load ptr, ptr @glad_glUniform1i, align 8, !tbaa !5
  %29 = load i32, ptr @jsbTexLocation, align 4, !tbaa !9
  tail call void %28(i32 noundef %29, i32 noundef 1)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.28, ptr noundef nonnull @.str.4, i32 noundef 339)
  %30 = load ptr, ptr @glad_glActiveTexture, align 8, !tbaa !5
  tail call void %30(i32 noundef 33985)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.4, i32 noundef 340)
  %31 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  tail call void %31(i32 noundef 3553, i32 noundef %1)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.29, ptr noundef nonnull @.str.4, i32 noundef 341)
  %32 = load ptr, ptr @glad_glUniform2f, align 8, !tbaa !5
  %33 = load i32, ptr @jsAlphaLocation, align 4, !tbaa !9
  tail call void %32(i32 noundef %33, float noundef -1.000000e+00, float noundef -1.000000e+00)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.30, ptr noundef nonnull @.str.4, i32 noundef 343)
  %34 = load ptr, ptr @glad_glUniform2f, align 8, !tbaa !5
  %35 = load i32, ptr @jsBetaLocation, align 4, !tbaa !9
  tail call void %34(i32 noundef %35, float noundef 2.500000e-01, float noundef 2.500000e-01)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.31, ptr noundef nonnull @.str.4, i32 noundef 344)
  tail call void @_Z16renderFullscreenv()
  %36 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !5
  tail call void %36(i32 noundef 36160, i32 noundef 0)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4, i32 noundef 349)
  %exitcond.not = icmp eq i32 %6, %0
  br i1 %exitcond.not, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !11

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %37 = and i32 %0, 1
  %38 = zext nneg i32 %37 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %3
  %.0.lcssa = phi i64 [ 0, %3 ], [ %38, %._crit_edge.loopexit ]
  %39 = getelementptr inbounds i32, ptr %2, i64 %.0.lcssa
  %40 = load i32, ptr %39, align 4, !tbaa !9
  ret i32 %40
}

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 = { 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" }

!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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass