; LLVM IR from blat-blatnik/GPU-Life :: main (setCells)

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

@stderr = external global ptr, align 8
@maxTextureSize = external dso_local global i32, align 4
@glad_glBindTexture = external global ptr, align 8
@glad_glTexImage2D = external global ptr, align 8
@numCellsX = external dso_local global i32, align 4
@numCellsY = external dso_local global i32, align 4
@cellsRead = external dso_local global i32, align 4
@cellsWrite = external dso_local global i32, align 4
@generation = external dso_local global i32, align 4
@.str.23 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [72 x i8], align 1

; Function Attrs: nounwind
declare void @free(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
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @ceilMultipleOf32(i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @centerCellsOnScreen() #2

; Function Attrs: nounwind uwtable
define dso_local void @setCells(ptr noundef %0, i32 noundef %1, i32 noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %18 = load i32, ptr %5, align 4, !tbaa !9
  %19 = call i32 @ceilMultipleOf32(i32 noundef %18)
  store i32 %19, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %20 = load i32, ptr %6, align 4, !tbaa !9
  %21 = call i32 @ceilMultipleOf32(i32 noundef %20)
  store i32 %21, ptr %8, align 4, !tbaa !9
  %22 = load i32, ptr %7, align 4, !tbaa !9
  %23 = icmp slt i32 %22, 1
  br i1 %23, label %27, label %24

24:                                               ; preds = %3
  %25 = load i32, ptr %8, align 4, !tbaa !9
  %26 = icmp slt i32 %25, 1
  br i1 %26, label %27, label %32

27:                                               ; preds = %24, %3
  %28 = load ptr, ptr @stderr, align 8, !tbaa !5
  %29 = load i32, ptr %7, align 4, !tbaa !9
  %30 = load i32, ptr %8, align 4, !tbaa !9
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef @.str.23, i32 noundef %29, i32 noundef %30) #4
  store i32 1, ptr %9, align 4
  br label %123

32:                                               ; preds = %24
  %33 = load i32, ptr %7, align 4, !tbaa !9
  %34 = load i32, ptr @maxTextureSize, align 4, !tbaa !9
  %35 = icmp sgt i32 %33, %34
  br i1 %35, label %40, label %36

36:                                               ; preds = %32
  %37 = load i32, ptr %8, align 4, !tbaa !9
  %38 = load i32, ptr @maxTextureSize, align 4, !tbaa !9
  %39 = icmp sgt i32 %37, %38
  br i1 %39, label %40, label %47

40:                                               ; preds = %36, %32
  %41 = load ptr, ptr @stderr, align 8, !tbaa !5
  %42 = load i32, ptr %7, align 4, !tbaa !9
  %43 = load i32, ptr %8, align 4, !tbaa !9
  %44 = load i32, ptr @maxTextureSize, align 4, !tbaa !9
  %45 = load i32, ptr @maxTextureSize, align 4, !tbaa !9
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef @.str.24, i32 noundef %42, i32 noundef %43, i32 noundef %44, i32 noundef %45) #4
  store i32 1, ptr %9, align 4
  br label %123

47:                                               ; preds = %36
  %48 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %48, ptr @numCellsX, align 4, !tbaa !9
  %49 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %49, ptr @numCellsY, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %50 = load i32, ptr @numCellsY, align 4, !tbaa !9
  %51 = sdiv i32 %50, 32
  store i32 %51, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %52 = load i32, ptr @numCellsX, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = load i32, ptr @numCellsY, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = mul i64 %53, %55
  store i64 %56, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %57 = load i64, ptr %11, align 8, !tbaa !11
  %58 = call noalias ptr @calloc(i64 noundef %57, i64 noundef 4) #5
  store ptr %58, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %107, %47
  %60 = load i32, ptr %13, align 4, !tbaa !9
  %61 = load i32, ptr %6, align 4, !tbaa !9
  %62 = icmp slt i32 %60, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %59
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %110

64:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  %66 = load i32, ptr %13, align 4, !tbaa !9
  %67 = sdiv i32 %66, 32
  %68 = load i32, ptr @numCellsX, align 4, !tbaa !9
  %69 = mul nsw i32 %67, %68
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds i32, ptr %65, i64 %70
  store ptr %71, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %72 = load i32, ptr %13, align 4, !tbaa !9
  %73 = srem i32 %72, 32
  store i32 %73, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = load i32, ptr %13, align 4, !tbaa !9
  %76 = load i32, ptr %5, align 4, !tbaa !9
  %77 = mul nsw i32 %75, %76
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds i8, ptr %74, i64 %78
  store ptr %79, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %80

80:                                               ; preds = %103, %64
  %81 = load i32, ptr %17, align 4, !tbaa !9
  %82 = load i32, ptr %5, align 4, !tbaa !9
  %83 = icmp slt i32 %81, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %80
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %106

85:                                               ; preds = %80
  %86 = load ptr, ptr %16, align 8, !tbaa !5
  %87 = load i32, ptr %17, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds i8, ptr %86, i64 %88
  %90 = load i8, ptr %89, align 1, !tbaa !13
  %91 = zext i8 %90 to i32
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %102

93:                                               ; preds = %85
  %94 = load i32, ptr %15, align 4, !tbaa !9
  %95 = shl i32 1, %94
  %96 = load ptr, ptr %14, align 8, !tbaa !5
  %97 = load i32, ptr %17, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds i32, ptr %96, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !9
  %101 = or i32 %100, %95
  store i32 %101, ptr %99, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %93, %85
  br label %103

103:                                              ; preds = %102
  %104 = load i32, ptr %17, align 4, !tbaa !9
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %17, align 4, !tbaa !9
  br label %80, !llvm.loop !14

106:                                              ; preds = %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %13, align 4, !tbaa !9
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %13, align 4, !tbaa !9
  br label %59, !llvm.loop !16

110:                                              ; preds = %63
  %111 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %112 = load i32, ptr @cellsWrite, align 4, !tbaa !9
  call void %111(i32 noundef 3553, i32 noundef %112)
  %113 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !5
  %114 = load i32, ptr @numCellsX, align 4, !tbaa !9
  %115 = load i32, ptr %10, align 4, !tbaa !9
  call void %113(i32 noundef 3553, i32 noundef 0, i32 noundef 33334, i32 noundef %114, i32 noundef %115, i32 noundef 0, i32 noundef 36244, i32 noundef 5125, ptr noundef null)
  %116 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %117 = load i32, ptr @cellsRead, align 4, !tbaa !9
  call void %116(i32 noundef 3553, i32 noundef %117)
  %118 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !5
  %119 = load i32, ptr @numCellsX, align 4, !tbaa !9
  %120 = load i32, ptr %10, align 4, !tbaa !9
  %121 = load ptr, ptr %12, align 8, !tbaa !5
  call void %118(i32 noundef 3553, i32 noundef 0, i32 noundef 33334, i32 noundef %119, i32 noundef %120, i32 noundef 0, i32 noundef 36244, i32 noundef 5125, ptr noundef %121)
  store i32 0, ptr @generation, align 4, !tbaa !9
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %122) #4
  call void @centerCellsOnScreen()
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  store i32 0, ptr %9, align 4
  br label %123

123:                                              ; preds = %110, %40, %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  %124 = load i32, ptr %9, align 4
  switch i32 %124, label %126 [
    i32 0, label %125
    i32 1, label %125
  ]

125:                                              ; preds = %123, %123
  ret void

126:                                              ; preds = %123
  unreachable
}

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #3

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nounwind allocsize(0,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 #4 = { nounwind }
attributes #5 = { nounwind allocsize(0,1) }

!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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


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

@stderr = external local_unnamed_addr global ptr, align 8
@maxTextureSize = external dso_local local_unnamed_addr global i32, align 4
@glad_glBindTexture = external local_unnamed_addr global ptr, align 8
@glad_glTexImage2D = external local_unnamed_addr global ptr, align 8
@numCellsX = external dso_local local_unnamed_addr global i32, align 4
@numCellsY = external dso_local local_unnamed_addr global i32, align 4
@cellsRead = external dso_local local_unnamed_addr global i32, align 4
@cellsWrite = external dso_local local_unnamed_addr global i32, align 4
@generation = external dso_local local_unnamed_addr global i32, align 4
@.str.23 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [72 x i8], align 1

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @ceilMultipleOf32(i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @centerCellsOnScreen() local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @setCells(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = tail call i32 @ceilMultipleOf32(i32 noundef %1)
  %5 = tail call i32 @ceilMultipleOf32(i32 noundef %2)
  %6 = icmp slt i32 %4, 1
  %7 = icmp slt i32 %5, 1
  %or.cond = select i1 %6, i1 true, i1 %7
  br i1 %or.cond, label %8, label %11

8:                                                ; preds = %3
  %9 = load ptr, ptr @stderr, align 8, !tbaa !5
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.23, i32 noundef %4, i32 noundef %5) #4
  br label %65

11:                                               ; preds = %3
  %12 = load i32, ptr @maxTextureSize, align 4, !tbaa !9
  %13 = icmp sgt i32 %4, %12
  %14 = icmp sgt i32 %5, %12
  %or.cond38 = select i1 %13, i1 true, i1 %14
  br i1 %or.cond38, label %15, label %18

15:                                               ; preds = %11
  %16 = load ptr, ptr @stderr, align 8, !tbaa !5
  %17 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef nonnull @.str.24, i32 noundef %4, i32 noundef %5, i32 noundef %12, i32 noundef %12) #4
  br label %65

18:                                               ; preds = %11
  store i32 %4, ptr @numCellsX, align 4, !tbaa !9
  store i32 %5, ptr @numCellsY, align 4, !tbaa !9
  %19 = lshr i32 %5, 5
  %20 = zext nneg i32 %4 to i64
  %21 = zext nneg i32 %5 to i64
  %22 = mul nuw nsw i64 %21, %20
  %23 = tail call noalias ptr @calloc(i64 noundef %22, i64 noundef 4) #5
  %24 = icmp sgt i32 %2, 0
  %25 = icmp sgt i32 %1, 0
  %or.cond51 = and i1 %24, %25
  br i1 %or.cond51, label %.lr.ph.us.preheader, label %._crit_edge43

.lr.ph.us.preheader:                              ; preds = %18
  %26 = zext nneg i32 %1 to i64
  %wide.trip.count49 = zext nneg i32 %2 to i64
  %xtraiter = and i64 %26, 1
  %27 = icmp eq i32 %1, 1
  %unroll_iter = and i64 %26, 2147483646
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %._crit_edge.us
  %indvars.iv46 = phi i64 [ 0, %.lr.ph.us.preheader ], [ %indvars.iv.next47, %._crit_edge.us ]
  %28 = trunc nuw nsw i64 %indvars.iv46 to i32
  %29 = lshr i32 %28, 5
  %30 = mul nuw nsw i32 %29, %4
  %31 = zext nneg i32 %30 to i64
  %32 = getelementptr inbounds i32, ptr %23, i64 %31
  %33 = and i32 %28, 31
  %34 = mul nuw nsw i64 %indvars.iv46, %26
  %35 = getelementptr inbounds i8, ptr %0, i64 %34
  %36 = shl nuw i32 1, %33
  br i1 %27, label %._crit_edge.us.unr-lcssa, label %.lr.ph.us.new

.lr.ph.us.new:                                    ; preds = %.lr.ph.us, %50
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %50 ], [ 0, %.lr.ph.us ]
  %niter = phi i64 [ %niter.next.1, %50 ], [ 0, %.lr.ph.us ]
  %37 = getelementptr inbounds i8, ptr %35, i64 %indvars.iv
  %38 = load i8, ptr %37, align 1, !tbaa !11
  %.not.us = icmp eq i8 %38, 0
  br i1 %.not.us, label %43, label %39

39:                                               ; preds = %.lr.ph.us.new
  %40 = getelementptr inbounds i32, ptr %32, i64 %indvars.iv
  %41 = load i32, ptr %40, align 4, !tbaa !9
  %42 = or i32 %41, %36
  store i32 %42, ptr %40, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %39, %.lr.ph.us.new
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %44 = getelementptr inbounds i8, ptr %35, i64 %indvars.iv.next
  %45 = load i8, ptr %44, align 1, !tbaa !11
  %.not.us.1 = icmp eq i8 %45, 0
  br i1 %.not.us.1, label %50, label %46

46:                                               ; preds = %43
  %47 = getelementptr inbounds i32, ptr %32, i64 %indvars.iv.next
  %48 = load i32, ptr %47, align 4, !tbaa !9
  %49 = or i32 %48, %36
  store i32 %49, ptr %47, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %46, %43
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.us.unr-lcssa, label %.lr.ph.us.new, !llvm.loop !12

._crit_edge.us.unr-lcssa:                         ; preds = %50, %.lr.ph.us
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.us ], [ %indvars.iv.next.1, %50 ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.us.unr-lcssa
  %51 = getelementptr inbounds i8, ptr %35, i64 %indvars.iv.unr
  %52 = load i8, ptr %51, align 1, !tbaa !11
  %.not.us.epil = icmp eq i8 %52, 0
  br i1 %.not.us.epil, label %._crit_edge.us, label %53

53:                                               ; preds = %.epil.preheader
  %54 = getelementptr inbounds i32, ptr %32, i64 %indvars.iv.unr
  %55 = load i32, ptr %54, align 4, !tbaa !9
  %56 = or i32 %55, %36
  store i32 %56, ptr %54, align 4, !tbaa !9
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %.epil.preheader, %53, %._crit_edge.us.unr-lcssa
  %indvars.iv.next47 = add nuw nsw i64 %indvars.iv46, 1
  %exitcond50.not = icmp eq i64 %indvars.iv.next47, %wide.trip.count49
  br i1 %exitcond50.not, label %._crit_edge43, label %.lr.ph.us, !llvm.loop !14

._crit_edge43:                                    ; preds = %._crit_edge.us, %18
  %57 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %58 = load i32, ptr @cellsWrite, align 4, !tbaa !9
  tail call void %57(i32 noundef 3553, i32 noundef %58) #6
  %59 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !5
  %60 = load i32, ptr @numCellsX, align 4, !tbaa !9
  tail call void %59(i32 noundef 3553, i32 noundef 0, i32 noundef 33334, i32 noundef %60, i32 noundef %19, i32 noundef 0, i32 noundef 36244, i32 noundef 5125, ptr noundef null) #6
  %61 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %62 = load i32, ptr @cellsRead, align 4, !tbaa !9
  tail call void %61(i32 noundef 3553, i32 noundef %62) #6
  %63 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !5
  %64 = load i32, ptr @numCellsX, align 4, !tbaa !9
  tail call void %63(i32 noundef 3553, i32 noundef 0, i32 noundef 33334, i32 noundef %64, i32 noundef %19, i32 noundef 0, i32 noundef 36244, i32 noundef 5125, ptr noundef %23) #6
  store i32 0, ptr @generation, align 4, !tbaa !9
  tail call void @free(ptr noundef %23) #6
  tail call void @centerCellsOnScreen()
  br label %65

65:                                               ; preds = %._crit_edge43, %15, %8
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #3

attributes #0 = { 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 #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 = { 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 #3 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) 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 = { cold nounwind }
attributes #5 = { nounwind allocsize(0,1) }
attributes #6 = { 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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass