; LLVM IR from reyadussalahin/problem-solving :: CONTEST/random_contest/Y2019/practice_for_preli/FHeWhoMustNotBeLate (Solution)

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

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [16 x i8], align 16
  %3 = alloca [1024 x i32], align 16
  %4 = alloca [1024 x i32], align 16
  %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 i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 4096, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4096, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %19 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %156, %0
  %21 = load i32, ptr %6, align 4, !tbaa !5
  %22 = load i32, ptr %5, align 4, !tbaa !5
  %23 = icmp slt i32 %21, %22
  br i1 %23, label %25, label %24

24:                                               ; preds = %20
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %159

25:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %26 = getelementptr inbounds [16 x i8], ptr %2, i64 0, i64 0
  %27 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %26)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %28 = load i32, ptr %10, align 4, !tbaa !5
  %29 = load i32, ptr %9, align 4, !tbaa !5
  %30 = mul nsw i32 %28, %29
  %31 = load i32, ptr %11, align 4, !tbaa !5
  %32 = add nsw i32 %30, %31
  store i32 %32, ptr %12, align 4, !tbaa !5
  %33 = getelementptr inbounds [16 x i8], ptr %2, i64 0, i64 0
  %34 = load i8, ptr %33, align 16, !tbaa !9
  %35 = sext i8 %34 to i32
  %36 = icmp eq i32 %35, 80
  br i1 %36, label %37, label %48

37:                                               ; preds = %25
  %38 = getelementptr inbounds [16 x i8], ptr %2, i64 0, i64 1
  %39 = load i8, ptr %38, align 1, !tbaa !9
  %40 = sext i8 %39 to i32
  %41 = icmp eq i32 %40, 77
  br i1 %41, label %42, label %48

42:                                               ; preds = %37
  %43 = load i32, ptr %12, align 4, !tbaa !5
  %44 = load i32, ptr %8, align 4, !tbaa !5
  %45 = load i32, ptr %9, align 4, !tbaa !5
  %46 = mul nsw i32 %44, %45
  %47 = add nsw i32 %43, %46
  store i32 %47, ptr %12, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %42, %37, %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %49 = load i32, ptr %8, align 4, !tbaa !5
  %50 = mul nsw i32 2, %49
  %51 = load i32, ptr %9, align 4, !tbaa !5
  %52 = mul nsw i32 %50, %51
  store i32 %52, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %129, %48
  %54 = load i32, ptr %15, align 4, !tbaa !5
  %55 = load i32, ptr %8, align 4, !tbaa !5
  %56 = load i32, ptr %8, align 4, !tbaa !5
  %57 = add nsw i32 %55, %56
  %58 = icmp sle i32 %54, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %53
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %132

60:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %61 = load i32, ptr %15, align 4, !tbaa !5
  %62 = sitofp i32 %61 to double
  %63 = fmul double 1.000000e+00, %62
  %64 = load i32, ptr %8, align 4, !tbaa !5
  %65 = sitofp i32 %64 to double
  %66 = fmul double %63, %65
  %67 = load i32, ptr %9, align 4, !tbaa !5
  %68 = sitofp i32 %67 to double
  %69 = fmul double %66, %68
  %70 = load i32, ptr %8, align 4, !tbaa !5
  %71 = sub nsw i32 %70, 1
  %72 = sitofp i32 %71 to double
  %73 = fdiv double %69, %72
  store double %73, ptr %16, align 8, !tbaa !10
  %74 = load i32, ptr %12, align 4, !tbaa !5
  %75 = sitofp i32 %74 to double
  %76 = load double, ptr %16, align 8, !tbaa !10
  %77 = fcmp olt double %75, %76
  br i1 %77, label %78, label %128

78:                                               ; preds = %60
  %79 = load double, ptr %16, align 8, !tbaa !10
  %80 = load i32, ptr %13, align 4, !tbaa !5
  %81 = sitofp i32 %80 to double
  %82 = fcmp olt double %79, %81
  br i1 %82, label %83, label %128

83:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %84 = load double, ptr %16, align 8, !tbaa !10
  %85 = load i32, ptr %12, align 4, !tbaa !5
  %86 = sitofp i32 %85 to double
  %87 = fsub double %84, %86
  store double %87, ptr %17, align 8, !tbaa !10
  %88 = load double, ptr %17, align 8, !tbaa !10
  %89 = load i32, ptr %9, align 4, !tbaa !5
  %90 = sitofp i32 %89 to double
  %91 = fdiv double %88, %90
  %92 = fptosi double %91 to i32
  %93 = load i32, ptr %14, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [1024 x i32], ptr %3, i64 0, i64 %94
  store i32 %92, ptr %95, align 4, !tbaa !5
  %96 = load double, ptr %17, align 8, !tbaa !10
  %97 = load i32, ptr %14, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [1024 x i32], ptr %3, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = load i32, ptr %9, align 4, !tbaa !5
  %102 = mul nsw i32 %100, %101
  %103 = sitofp i32 %102 to double
  %104 = fsub double %96, %103
  %105 = call double @llvm.round.f64(double %104)
  %106 = fptosi double %105 to i32
  %107 = load i32, ptr %14, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [1024 x i32], ptr %4, i64 0, i64 %108
  store i32 %106, ptr %109, align 4, !tbaa !5
  %110 = load i32, ptr %14, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [1024 x i32], ptr %4, i64 0, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = load i32, ptr %9, align 4, !tbaa !5
  %115 = icmp eq i32 %113, %114
  br i1 %115, label %116, label %125

116:                                              ; preds = %83
  %117 = load i32, ptr %14, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [1024 x i32], ptr %3, i64 0, i64 %118
  %120 = load i32, ptr %119, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %119, align 4, !tbaa !5
  %122 = load i32, ptr %14, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [1024 x i32], ptr %4, i64 0, i64 %123
  store i32 0, ptr %124, align 4, !tbaa !5
  br label %125

125:                                              ; preds = %116, %83
  %126 = load i32, ptr %14, align 4, !tbaa !5
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %128

128:                                              ; preds = %125, %78, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %15, align 4, !tbaa !5
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %15, align 4, !tbaa !5
  br label %53, !llvm.loop !12

132:                                              ; preds = %59
  %133 = load i32, ptr %6, align 4, !tbaa !5
  %134 = add nsw i32 %133, 1
  %135 = load i32, ptr %14, align 4, !tbaa !5
  %136 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %134, i32 noundef %135)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %137

137:                                              ; preds = %152, %132
  %138 = load i32, ptr %18, align 4, !tbaa !5
  %139 = load i32, ptr %14, align 4, !tbaa !5
  %140 = icmp slt i32 %138, %139
  br i1 %140, label %142, label %141

141:                                              ; preds = %137
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %155

142:                                              ; preds = %137
  %143 = load i32, ptr %18, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [1024 x i32], ptr %3, i64 0, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = load i32, ptr %18, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [1024 x i32], ptr %4, i64 0, i64 %148
  %150 = load i32, ptr %149, align 4, !tbaa !5
  %151 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %146, i32 noundef %150)
  br label %152

152:                                              ; preds = %142
  %153 = load i32, ptr %18, align 4, !tbaa !5
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %18, align 4, !tbaa !5
  br label %137, !llvm.loop !14

155:                                              ; preds = %141
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %156

156:                                              ; preds = %155
  %157 = load i32, ptr %6, align 4, !tbaa !5
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %6, align 4, !tbaa !5
  br label %20, !llvm.loop !15

159:                                              ; preds = %24
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4096, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4096, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #4
  %160 = load i32, ptr %1, align 4
  ret i32 %160
}

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

declare i32 @__isoc99_scanf(ptr noundef, ...) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.round.f64(double) #3

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

declare i32 @printf(ptr noundef, ...) #2

attributes #0 = { mustprogress norecurse 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 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}


; 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 [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [16 x i8], align 16
  %2 = alloca [1024 x i32], align 16
  %3 = alloca [1024 x i32], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %4)
  %10 = load i32, ptr %4, align 4, !tbaa !5
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.lr.ph48, label %._crit_edge49

.lr.ph48:                                         ; preds = %0
  %12 = getelementptr inbounds i8, ptr %1, i64 1
  br label %13

._crit_edge49:                                    ; preds = %._crit_edge45, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #5
  ret i32 0

13:                                               ; preds = %.lr.ph48, %._crit_edge45
  %.03146 = phi i32 [ 0, %.lr.ph48 ], [ %66, %._crit_edge45 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %1)
  %15 = load i32, ptr %6, align 4, !tbaa !5
  %16 = load i32, ptr %5, align 4
  %.not39 = icmp slt i32 %16, 0
  br i1 %.not39, label %._crit_edge.thread, label %.lr.ph

._crit_edge.thread:                               ; preds = %13
  %17 = add nuw nsw i32 %.03146, 1
  %18 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %17, i32 noundef 0)
  br label %._crit_edge45

.lr.ph:                                           ; preds = %13
  %19 = shl nuw i32 %16, 1
  %20 = mul nsw i32 %19, %15
  %21 = load i32, ptr %7, align 4, !tbaa !5
  %22 = mul nsw i32 %15, %21
  %23 = load i32, ptr %8, align 4, !tbaa !5
  %24 = add nsw i32 %22, %23
  %25 = load i8, ptr %1, align 16, !tbaa !9
  %26 = icmp eq i8 %25, 80
  %27 = load i8, ptr %12, align 1
  %28 = icmp eq i8 %27, 77
  %or.cond = select i1 %26, i1 %28, i1 false
  %29 = mul nsw i32 %16, %15
  %30 = select i1 %or.cond, i32 %29, i32 0
  %.034 = add nsw i32 %24, %30
  %31 = uitofp nneg i32 %16 to double
  %32 = sitofp i32 %15 to double
  %33 = add nsw i32 %16, -1
  %34 = sitofp i32 %33 to double
  %35 = sitofp i32 %.034 to double
  %36 = sitofp i32 %20 to double
  %smax = call i32 @llvm.smax.i32(i32 %19, i32 0)
  br label %40

._crit_edge:                                      ; preds = %64
  %37 = add nuw nsw i32 %.03146, 1
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %37, i32 noundef %.1)
  %39 = icmp sgt i32 %.1, 0
  br i1 %39, label %.lr.ph44.preheader, label %._crit_edge45

.lr.ph44.preheader:                               ; preds = %._crit_edge
  %wide.trip.count = zext nneg i32 %.1 to i64
  br label %.lr.ph44

40:                                               ; preds = %.lr.ph, %64
  %.03241 = phi i32 [ 0, %.lr.ph ], [ %65, %64 ]
  %.03340 = phi i32 [ 0, %.lr.ph ], [ %.1, %64 ]
  %41 = uitofp nneg i32 %.03241 to double
  %42 = fmul double %31, %41
  %43 = fmul double %42, %32
  %44 = fdiv double %43, %34
  %45 = fcmp ogt double %44, %35
  %46 = fcmp olt double %44, %36
  %or.cond38 = select i1 %45, i1 %46, i1 false
  br i1 %or.cond38, label %47, label %64

47:                                               ; preds = %40
  %48 = fsub double %44, %35
  %49 = fdiv double %48, %32
  %50 = fptosi double %49 to i32
  %51 = sext i32 %.03340 to i64
  %52 = getelementptr inbounds [1024 x i32], ptr %2, i64 0, i64 %51
  store i32 %50, ptr %52, align 4, !tbaa !5
  %53 = mul nsw i32 %15, %50
  %54 = sitofp i32 %53 to double
  %55 = fsub double %48, %54
  %56 = call double @llvm.round.f64(double %55)
  %57 = fptosi double %56 to i32
  %58 = getelementptr inbounds [1024 x i32], ptr %3, i64 0, i64 %51
  store i32 %57, ptr %58, align 4, !tbaa !5
  %59 = icmp eq i32 %15, %57
  br i1 %59, label %60, label %62

60:                                               ; preds = %47
  %61 = add nsw i32 %50, 1
  store i32 %61, ptr %52, align 4, !tbaa !5
  store i32 0, ptr %58, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %60, %47
  %63 = add nsw i32 %.03340, 1
  br label %64

64:                                               ; preds = %62, %40
  %.1 = phi i32 [ %63, %62 ], [ %.03340, %40 ]
  %65 = add nuw nsw i32 %.03241, 1
  %exitcond.not = icmp eq i32 %.03241, %smax
  br i1 %exitcond.not, label %._crit_edge, label %40, !llvm.loop !10

._crit_edge45:                                    ; preds = %.lr.ph44, %._crit_edge.thread, %._crit_edge
  %66 = phi i32 [ %17, %._crit_edge.thread ], [ %37, %._crit_edge ], [ %37, %.lr.ph44 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  %67 = load i32, ptr %4, align 4, !tbaa !5
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %13, label %._crit_edge49, !llvm.loop !12

.lr.ph44:                                         ; preds = %.lr.ph44.preheader, %.lr.ph44
  %indvars.iv = phi i64 [ 0, %.lr.ph44.preheader ], [ %indvars.iv.next, %.lr.ph44 ]
  %69 = getelementptr inbounds [1024 x i32], ptr %2, i64 0, i64 %indvars.iv
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = getelementptr inbounds [1024 x i32], ptr %3, i64 0, i64 %indvars.iv
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %70, i32 noundef %72)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond51.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond51.not, label %._crit_edge45, label %.lr.ph44, !llvm.loop !13
}

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.round.f64(double) #3

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4

attributes #0 = { mustprogress nofree norecurse 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 = { 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}


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