; LLVM IR from bondhugula/pluto :: examples/game-of-life (life)

; 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.timeval = type { i64, i64 }

@life = external dso_local global [2 x [16000 x [16000 x i32]]], align 16
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 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: nounwind uwtable
declare dso_local i32 @b2s23(i32 noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @print_points(i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %struct.timeval, align 8
  %20 = alloca %struct.timeval, align 8
  %21 = alloca %struct.timeval, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 -1, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  store double 0.000000e+00, ptr %22, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  store double 0.000000e+00, ptr %23, align 8, !tbaa !11
  call void @srand(i32 noundef 42) #4
  store i64 0, ptr %7, align 8, !tbaa !13
  br label %24

24:                                               ; preds = %49, %2
  %25 = load i64, ptr %7, align 8, !tbaa !13
  %26 = icmp slt i64 %25, 16000
  br i1 %26, label %27, label %52

27:                                               ; preds = %24
  store i64 0, ptr %8, align 8, !tbaa !13
  br label %28

28:                                               ; preds = %45, %27
  %29 = load i64, ptr %8, align 8, !tbaa !13
  %30 = icmp slt i64 %29, 16000
  br i1 %30, label %31, label %48

31:                                               ; preds = %28
  %32 = call i32 @rand() #4
  %33 = and i32 %32, 1
  %34 = icmp ne i32 %33, 0
  %35 = zext i1 %34 to i64
  %36 = select i1 %34, i32 1, i32 0
  %37 = load i64, ptr %7, align 8, !tbaa !13
  %38 = getelementptr inbounds [16000 x [16000 x i32]], ptr @life, i64 0, i64 %37
  %39 = load i64, ptr %8, align 8, !tbaa !13
  %40 = getelementptr inbounds [16000 x i32], ptr %38, i64 0, i64 %39
  store i32 %36, ptr %40, align 4, !tbaa !5
  %41 = load i64, ptr %7, align 8, !tbaa !13
  %42 = getelementptr inbounds [16000 x [16000 x i32]], ptr getelementptr inbounds ([2 x [16000 x [16000 x i32]]], ptr @life, i64 0, i64 1), i64 0, i64 %41
  %43 = load i64, ptr %8, align 8, !tbaa !13
  %44 = getelementptr inbounds [16000 x i32], ptr %42, i64 0, i64 %43
  store i32 0, ptr %44, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %31
  %46 = load i64, ptr %8, align 8, !tbaa !13
  %47 = add nsw i64 %46, 1
  store i64 %47, ptr %8, align 8, !tbaa !13
  br label %28, !llvm.loop !15

48:                                               ; preds = %28
  br label %49

49:                                               ; preds = %48
  %50 = load i64, ptr %7, align 8, !tbaa !13
  %51 = add nsw i64 %50, 1
  store i64 %51, ptr %7, align 8, !tbaa !13
  br label %24, !llvm.loop !17

52:                                               ; preds = %24
  store i64 0, ptr %6, align 8, !tbaa !13
  br label %53

53:                                               ; preds = %173, %52
  %54 = load i64, ptr %6, align 8, !tbaa !13
  %55 = icmp slt i64 %54, 500
  br i1 %55, label %56, label %176

56:                                               ; preds = %53
  store i64 1, ptr %7, align 8, !tbaa !13
  br label %57

57:                                               ; preds = %169, %56
  %58 = load i64, ptr %7, align 8, !tbaa !13
  %59 = icmp slt i64 %58, 15999
  br i1 %59, label %60, label %172

60:                                               ; preds = %57
  store i64 1, ptr %8, align 8, !tbaa !13
  br label %61

61:                                               ; preds = %165, %60
  %62 = load i64, ptr %8, align 8, !tbaa !13
  %63 = icmp slt i64 %62, 15999
  br i1 %63, label %64, label %168

64:                                               ; preds = %61
  %65 = load i64, ptr %6, align 8, !tbaa !13
  %66 = srem i64 %65, 2
  %67 = getelementptr inbounds [2 x [16000 x [16000 x i32]]], ptr @life, i64 0, i64 %66
  %68 = load i64, ptr %7, align 8, !tbaa !13
  %69 = getelementptr inbounds [16000 x [16000 x i32]], ptr %67, i64 0, i64 %68
  %70 = load i64, ptr %8, align 8, !tbaa !13
  %71 = getelementptr inbounds [16000 x i32], ptr %69, i64 0, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = load i64, ptr %6, align 8, !tbaa !13
  %74 = srem i64 %73, 2
  %75 = getelementptr inbounds [2 x [16000 x [16000 x i32]]], ptr @life, i64 0, i64 %74
  %76 = load i64, ptr %7, align 8, !tbaa !13
  %77 = sub nsw i64 %76, 1
  %78 = getelementptr inbounds [16000 x [16000 x i32]], ptr %75, i64 0, i64 %77
  %79 = load i64, ptr %8, align 8, !tbaa !13
  %80 = add nsw i64 %79, 1
  %81 = getelementptr inbounds [16000 x i32], ptr %78, i64 0, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = load i64, ptr %6, align 8, !tbaa !13
  %84 = srem i64 %83, 2
  %85 = getelementptr inbounds [2 x [16000 x [16000 x i32]]], ptr @life, i64 0, i64 %84
  %86 = load i64, ptr %7, align 8, !tbaa !13
  %87 = sub nsw i64 %86, 1
  %88 = getelementptr inbounds [16000 x [16000 x i32]], ptr %85, i64 0, i64 %87
  %89 = load i64, ptr %8, align 8, !tbaa !13
  %90 = getelementptr inbounds [16000 x i32], ptr %88, i64 0, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = add nsw i32 %82, %91
  %93 = load i64, ptr %6, align 8, !tbaa !13
  %94 = srem i64 %93, 2
  %95 = getelementptr inbounds [2 x [16000 x [16000 x i32]]], ptr @life, i64 0, i64 %94
  %96 = load i64, ptr %7, align 8, !tbaa !13
  %97 = sub nsw i64 %96, 1
  %98 = getelementptr inbounds [16000 x [16000 x i32]], ptr %95, i64 0, i64 %97
  %99 = load i64, ptr %8, align 8, !tbaa !13
  %100 = sub nsw i64 %99, 1
  %101 = getelementptr inbounds [16000 x i32], ptr %98, i64 0, i64 %100
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %103 = add nsw i32 %92, %102
  %104 = load i64, ptr %6, align 8, !tbaa !13
  %105 = srem i64 %104, 2
  %106 = getelementptr inbounds [2 x [16000 x [16000 x i32]]], ptr @life, i64 0, i64 %105
  %107 = load i64, ptr %7, align 8, !tbaa !13
  %108 = getelementptr inbounds [16000 x [16000 x i32]], ptr %106, i64 0, i64 %107
  %109 = load i64, ptr %8, align 8, !tbaa !13
  %110 = add nsw i64 %109, 1
  %111 = getelementptr inbounds [16000 x i32], ptr %108, i64 0, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = add nsw i32 %103, %112
  %114 = load i64, ptr %6, align 8, !tbaa !13
  %115 = srem i64 %114, 2
  %116 = getelementptr inbounds [2 x [16000 x [16000 x i32]]], ptr @life, i64 0, i64 %115
  %117 = load i64, ptr %7, align 8, !tbaa !13
  %118 = getelementptr inbounds [16000 x [16000 x i32]], ptr %116, i64 0, i64 %117
  %119 = load i64, ptr %8, align 8, !tbaa !13
  %120 = sub nsw i64 %119, 1
  %121 = getelementptr inbounds [16000 x i32], ptr %118, i64 0, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !5
  %123 = add nsw i32 %113, %122
  %124 = load i64, ptr %6, align 8, !tbaa !13
  %125 = srem i64 %124, 2
  %126 = getelementptr inbounds [2 x [16000 x [16000 x i32]]], ptr @life, i64 0, i64 %125
  %127 = load i64, ptr %7, align 8, !tbaa !13
  %128 = add nsw i64 %127, 1
  %129 = getelementptr inbounds [16000 x [16000 x i32]], ptr %126, i64 0, i64 %128
  %130 = load i64, ptr %8, align 8, !tbaa !13
  %131 = add nsw i64 %130, 1
  %132 = getelementptr inbounds [16000 x i32], ptr %129, i64 0, i64 %131
  %133 = load i32, ptr %132, align 4, !tbaa !5
  %134 = add nsw i32 %123, %133
  %135 = load i64, ptr %6, align 8, !tbaa !13
  %136 = srem i64 %135, 2
  %137 = getelementptr inbounds [2 x [16000 x [16000 x i32]]], ptr @life, i64 0, i64 %136
  %138 = load i64, ptr %7, align 8, !tbaa !13
  %139 = add nsw i64 %138, 1
  %140 = getelementptr inbounds [16000 x [16000 x i32]], ptr %137, i64 0, i64 %139
  %141 = load i64, ptr %8, align 8, !tbaa !13
  %142 = getelementptr inbounds [16000 x i32], ptr %140, i64 0, i64 %141
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = add nsw i32 %134, %143
  %145 = load i64, ptr %6, align 8, !tbaa !13
  %146 = srem i64 %145, 2
  %147 = getelementptr inbounds [2 x [16000 x [16000 x i32]]], ptr @life, i64 0, i64 %146
  %148 = load i64, ptr %7, align 8, !tbaa !13
  %149 = add nsw i64 %148, 1
  %150 = getelementptr inbounds [16000 x [16000 x i32]], ptr %147, i64 0, i64 %149
  %151 = load i64, ptr %8, align 8, !tbaa !13
  %152 = sub nsw i64 %151, 1
  %153 = getelementptr inbounds [16000 x i32], ptr %150, i64 0, i64 %152
  %154 = load i32, ptr %153, align 4, !tbaa !5
  %155 = add nsw i32 %144, %154
  %156 = call i32 @b2s23(i32 noundef %72, i32 noundef %155)
  %157 = load i64, ptr %6, align 8, !tbaa !13
  %158 = add nsw i64 %157, 1
  %159 = srem i64 %158, 2
  %160 = getelementptr inbounds [2 x [16000 x [16000 x i32]]], ptr @life, i64 0, i64 %159
  %161 = load i64, ptr %7, align 8, !tbaa !13
  %162 = getelementptr inbounds [16000 x [16000 x i32]], ptr %160, i64 0, i64 %161
  %163 = load i64, ptr %8, align 8, !tbaa !13
  %164 = getelementptr inbounds [16000 x i32], ptr %162, i64 0, i64 %163
  store i32 %156, ptr %164, align 4, !tbaa !5
  br label %165

165:                                              ; preds = %64
  %166 = load i64, ptr %8, align 8, !tbaa !13
  %167 = add nsw i64 %166, 1
  store i64 %167, ptr %8, align 8, !tbaa !13
  br label %61, !llvm.loop !18

168:                                              ; preds = %61
  br label %169

169:                                              ; preds = %168
  %170 = load i64, ptr %7, align 8, !tbaa !13
  %171 = add nsw i64 %170, 1
  store i64 %171, ptr %7, align 8, !tbaa !13
  br label %57, !llvm.loop !19

172:                                              ; preds = %57
  br label %173

173:                                              ; preds = %172
  %174 = load i64, ptr %6, align 8, !tbaa !13
  %175 = add nsw i64 %174, 1
  store i64 %175, ptr %6, align 8, !tbaa !13
  br label %53, !llvm.loop !20

176:                                              ; preds = %53
  %177 = call noalias ptr @fopen(ptr noundef @.str.3, ptr noundef @.str.4)
  %178 = icmp ne ptr %177, null
  br i1 %178, label %179, label %180

179:                                              ; preds = %176
  call void @print_points(i32 noundef 500)
  br label %180

180:                                              ; preds = %179, %176
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  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 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  ret i32 0
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) #2

; Function Attrs: nounwind
declare i32 @rand() #2

declare noalias ptr @fopen(ptr noundef, ptr noundef) #3

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


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

@life = external dso_local local_unnamed_addr global [2 x [16000 x [16000 x i32]]], align 16
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  tail call void @srand(i32 noundef 42) #3
  br label %.preheader50

.preheader50:                                     ; preds = %2, %9
  %.04452 = phi i64 [ 0, %2 ], [ %10, %9 ]
  br label %3

3:                                                ; preds = %.preheader50, %3
  %.04551 = phi i64 [ 0, %.preheader50 ], [ %8, %3 ]
  %4 = tail call i32 @rand() #3
  %5 = and i32 %4, 1
  %6 = getelementptr inbounds [16000 x [16000 x i32]], ptr @life, i64 0, i64 %.04452, i64 %.04551
  store i32 %5, ptr %6, align 4, !tbaa !5
  %7 = getelementptr inbounds [16000 x [16000 x i32]], ptr getelementptr inbounds (i8, ptr @life, i64 1024000000), i64 0, i64 %.04452, i64 %.04551
  store i32 0, ptr %7, align 4, !tbaa !5
  %8 = add nuw nsw i64 %.04551, 1
  %exitcond.not = icmp eq i64 %8, 16000
  br i1 %exitcond.not, label %9, label %3, !llvm.loop !9

9:                                                ; preds = %3
  %10 = add nuw nsw i64 %.04452, 1
  %exitcond56.not = icmp eq i64 %10, 16000
  br i1 %exitcond56.not, label %.preheader48, label %.preheader50, !llvm.loop !11

.preheader48:                                     ; preds = %9, %46
  %.055 = phi i64 [ %47, %46 ], [ 0, %9 ]
  %11 = and i64 %.055, 1
  %12 = xor i64 %11, 1
  br label %.preheader

.preheader:                                       ; preds = %.preheader48, %45
  %.154 = phi i64 [ 1, %.preheader48 ], [ %14, %45 ]
  %13 = add nsw i64 %.154, -1
  %14 = add nuw nsw i64 %.154, 1
  br label %15

15:                                               ; preds = %.preheader, %15
  %.14653 = phi i64 [ 1, %.preheader ], [ %18, %15 ]
  %16 = getelementptr inbounds [2 x [16000 x [16000 x i32]]], ptr @life, i64 0, i64 %11, i64 %.154, i64 %.14653
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = add nuw nsw i64 %.14653, 1
  %19 = getelementptr inbounds [2 x [16000 x [16000 x i32]]], ptr @life, i64 0, i64 %11, i64 %13, i64 %18
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = getelementptr inbounds [2 x [16000 x [16000 x i32]]], ptr @life, i64 0, i64 %11, i64 %13, i64 %.14653
  %22 = load i32, ptr %21, align 4, !tbaa !5
  %23 = add nsw i32 %22, %20
  %24 = add nsw i64 %.14653, -1
  %25 = getelementptr inbounds [2 x [16000 x [16000 x i32]]], ptr @life, i64 0, i64 %11, i64 %13, i64 %24
  %26 = load i32, ptr %25, align 4, !tbaa !5
  %27 = add nsw i32 %23, %26
  %28 = getelementptr inbounds [2 x [16000 x [16000 x i32]]], ptr @life, i64 0, i64 %11, i64 %.154, i64 %18
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %30 = add nsw i32 %27, %29
  %31 = getelementptr inbounds [2 x [16000 x [16000 x i32]]], ptr @life, i64 0, i64 %11, i64 %.154, i64 %24
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = add nsw i32 %30, %32
  %34 = getelementptr inbounds [2 x [16000 x [16000 x i32]]], ptr @life, i64 0, i64 %11, i64 %14, i64 %18
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = add nsw i32 %33, %35
  %37 = getelementptr inbounds [2 x [16000 x [16000 x i32]]], ptr @life, i64 0, i64 %11, i64 %14, i64 %.14653
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = add nsw i32 %36, %38
  %40 = getelementptr inbounds [2 x [16000 x [16000 x i32]]], ptr @life, i64 0, i64 %11, i64 %14, i64 %24
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = add nsw i32 %39, %41
  %43 = tail call i32 @b2s23(i32 noundef %17, i32 noundef %42)
  %44 = getelementptr inbounds [2 x [16000 x [16000 x i32]]], ptr @life, i64 0, i64 %12, i64 %.154, i64 %.14653
  store i32 %43, ptr %44, align 4, !tbaa !5
  %exitcond57.not = icmp eq i64 %18, 15999
  br i1 %exitcond57.not, label %45, label %15, !llvm.loop !12

45:                                               ; preds = %15
  %exitcond58.not = icmp eq i64 %14, 15999
  br i1 %exitcond58.not, label %46, label %.preheader, !llvm.loop !13

46:                                               ; preds = %45
  %47 = add nuw nsw i64 %.055, 1
  %exitcond59.not = icmp eq i64 %47, 500
  br i1 %exitcond59.not, label %48, label %.preheader48, !llvm.loop !14

48:                                               ; preds = %46
  %49 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4)
  %.not = icmp eq ptr %49, null
  br i1 %.not, label %51, label %50

50:                                               ; preds = %48
  tail call void @print_points(i32 noundef 500)
  br label %51

51:                                               ; preds = %50, %48
  ret i32 0
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

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 = { 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 = { 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 #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/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


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