; LLVM IR from DionysiosB/CodeForces :: 0200-0299 (236B-EasyNumberChallenge)

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  store i64 1073741824, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !9
  %17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %3, ptr noundef %4, ptr noundef %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %18 = load i32, ptr %3, align 4, !tbaa !9
  %19 = load i32, ptr %4, align 4, !tbaa !9
  %20 = mul nsw i32 %18, %19
  %21 = load i32, ptr %5, align 4, !tbaa !9
  %22 = mul nsw i32 %20, %21
  %23 = sext i32 %22 to i64
  store i64 %23, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %24 = load i64, ptr %6, align 8, !tbaa !5
  %25 = add nsw i64 %24, 1
  %26 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %25, i64 8)
  %27 = extractvalue { i64, i1 } %26, 1
  %28 = extractvalue { i64, i1 } %26, 0
  %29 = select i1 %27, i64 -1, i64 %28
  %30 = call noalias noundef nonnull ptr @_Znam(i64 noundef %29) #6
  store ptr %30, ptr %7, align 8, !tbaa !11
  %31 = load ptr, ptr %7, align 8, !tbaa !11
  %32 = getelementptr inbounds i64, ptr %31, i64 1
  store i64 1, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 2, ptr %8, align 8, !tbaa !5
  br label %33

33:                                               ; preds = %42, %0
  %34 = load i64, ptr %8, align 8, !tbaa !5
  %35 = load i64, ptr %6, align 8, !tbaa !5
  %36 = icmp sle i64 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %45

38:                                               ; preds = %33
  %39 = load ptr, ptr %7, align 8, !tbaa !11
  %40 = load i64, ptr %8, align 8, !tbaa !5
  %41 = getelementptr inbounds i64, ptr %39, i64 %40
  store i64 2, ptr %41, align 8, !tbaa !5
  br label %42

42:                                               ; preds = %38
  %43 = load i64, ptr %8, align 8, !tbaa !5
  %44 = add nsw i64 %43, 1
  store i64 %44, ptr %8, align 8, !tbaa !5
  br label %33, !llvm.loop !13

45:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store i64 2, ptr %9, align 8, !tbaa !5
  br label %46

46:                                               ; preds = %71, %45
  %47 = load i64, ptr %9, align 8, !tbaa !5
  %48 = load i64, ptr %6, align 8, !tbaa !5
  %49 = sdiv i64 %48, 2
  %50 = icmp sle i64 %47, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %46
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %74

52:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %53 = load i64, ptr %9, align 8, !tbaa !5
  %54 = mul nsw i64 2, %53
  store i64 %54, ptr %11, align 8, !tbaa !5
  br label %55

55:                                               ; preds = %66, %52
  %56 = load i64, ptr %11, align 8, !tbaa !5
  %57 = load i64, ptr %6, align 8, !tbaa !5
  %58 = icmp sle i64 %56, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %70

60:                                               ; preds = %55
  %61 = load ptr, ptr %7, align 8, !tbaa !11
  %62 = load i64, ptr %11, align 8, !tbaa !5
  %63 = getelementptr inbounds i64, ptr %61, i64 %62
  %64 = load i64, ptr %63, align 8, !tbaa !5
  %65 = add nsw i64 %64, 1
  store i64 %65, ptr %63, align 8, !tbaa !5
  br label %66

66:                                               ; preds = %60
  %67 = load i64, ptr %9, align 8, !tbaa !5
  %68 = load i64, ptr %11, align 8, !tbaa !5
  %69 = add nsw i64 %68, %67
  store i64 %69, ptr %11, align 8, !tbaa !5
  br label %55, !llvm.loop !15

70:                                               ; preds = %59
  br label %71

71:                                               ; preds = %70
  %72 = load i64, ptr %9, align 8, !tbaa !5
  %73 = add nsw i64 %72, 1
  store i64 %73, ptr %9, align 8, !tbaa !5
  br label %46, !llvm.loop !16

74:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 0, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %115, %74
  %76 = load i32, ptr %13, align 4, !tbaa !9
  %77 = load i32, ptr %3, align 4, !tbaa !9
  %78 = icmp sle i32 %76, %77
  br i1 %78, label %80, label %79

79:                                               ; preds = %75
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %118

80:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 1, ptr %14, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %111, %80
  %82 = load i32, ptr %14, align 4, !tbaa !9
  %83 = load i32, ptr %4, align 4, !tbaa !9
  %84 = icmp sle i32 %82, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %81
  store i32 14, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %114

86:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 1, ptr %15, align 4, !tbaa !9
  br label %87

87:                                               ; preds = %107, %86
  %88 = load i32, ptr %15, align 4, !tbaa !9
  %89 = load i32, ptr %5, align 4, !tbaa !9
  %90 = icmp sle i32 %88, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %87
  store i32 17, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %110

92:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %93 = load i32, ptr %13, align 4, !tbaa !9
  %94 = load i32, ptr %14, align 4, !tbaa !9
  %95 = mul nsw i32 %93, %94
  %96 = load i32, ptr %15, align 4, !tbaa !9
  %97 = mul nsw i32 %95, %96
  %98 = sext i32 %97 to i64
  store i64 %98, ptr %16, align 8, !tbaa !5
  %99 = load ptr, ptr %7, align 8, !tbaa !11
  %100 = load i64, ptr %16, align 8, !tbaa !5
  %101 = getelementptr inbounds i64, ptr %99, i64 %100
  %102 = load i64, ptr %101, align 8, !tbaa !5
  %103 = load i64, ptr %12, align 8, !tbaa !5
  %104 = add nsw i64 %103, %102
  store i64 %104, ptr %12, align 8, !tbaa !5
  %105 = load i64, ptr %12, align 8, !tbaa !5
  %106 = srem i64 %105, 1073741824
  store i64 %106, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %107

107:                                              ; preds = %92
  %108 = load i32, ptr %15, align 4, !tbaa !9
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %15, align 4, !tbaa !9
  br label %87, !llvm.loop !17

110:                                              ; preds = %91
  br label %111

111:                                              ; preds = %110
  %112 = load i32, ptr %14, align 4, !tbaa !9
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %14, align 4, !tbaa !9
  br label %81, !llvm.loop !18

114:                                              ; preds = %85
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr %13, align 4, !tbaa !9
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %13, align 4, !tbaa !9
  br label %75, !llvm.loop !19

118:                                              ; preds = %79
  %119 = load i64, ptr %12, align 8, !tbaa !5
  %120 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %119)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  %121 = load i32, ptr %1, align 4
  ret i32 %121
}

; 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 { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #4

; 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 = { nobuiltin allocsize(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 #5 = { nounwind }
attributes #6 = { builtin allocsize(0) }

!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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}


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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  store i32 0, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  %4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %5 = load i32, ptr %1, align 4, !tbaa !5
  %6 = load i32, ptr %2, align 4, !tbaa !5
  %7 = mul nsw i32 %6, %5
  %8 = load i32, ptr %3, align 4, !tbaa !5
  %9 = mul nsw i32 %7, %8
  %10 = sext i32 %9 to i64
  %11 = add nsw i64 %10, 1
  %12 = icmp ugt i64 %11, 2305843009213693951
  %13 = shl nsw i64 %11, 3
  %14 = select i1 %12, i64 -1, i64 %13
  %15 = call noalias noundef nonnull ptr @_Znam(i64 noundef %14) #6
  %16 = getelementptr inbounds i8, ptr %15, i64 8
  store i64 1, ptr %16, align 8, !tbaa !9
  %.not46 = icmp slt i32 %9, 2
  br i1 %.not46, label %.preheader44, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %0
  %17 = add nsw i64 %10, -1
  %min.iters.check = icmp ult i32 %9, 5
  br i1 %min.iters.check, label %.lr.ph.preheader94, label %vector.ph

.lr.ph.preheader94:                               ; preds = %middle.block, %.lr.ph.preheader
  %.03647.ph = phi i64 [ 2, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %17, -4
  %ind.end = or disjoint i64 %n.vec, 2
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 2
  %18 = getelementptr inbounds i64, ptr %15, i64 %offset.idx
  %19 = getelementptr inbounds i8, ptr %18, i64 16
  store <2 x i64> <i64 2, i64 2>, ptr %18, align 8, !tbaa !9
  store <2 x i64> <i64 2, i64 2>, ptr %19, align 8, !tbaa !9
  %index.next = add nuw i64 %index, 4
  %20 = icmp eq i64 %index.next, %n.vec
  br i1 %20, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %17, %n.vec
  br i1 %cmp.n, label %.preheader45, label %.lr.ph.preheader94

.preheader45:                                     ; preds = %.lr.ph, %middle.block
  %.not3851 = icmp slt i32 %9, 4
  br i1 %.not3851, label %.preheader44, label %.lr.ph53.preheader

.lr.ph53.preheader:                               ; preds = %.preheader45
  %21 = lshr i64 %10, 1
  %smax = call i64 @llvm.smax.i64(i64 %21, i64 2)
  %22 = add nsw i64 %smax, -1
  %xtraiter = and i64 %22, 1
  %23 = icmp ult i32 %9, 6
  br i1 %23, label %.preheader44.loopexit.unr-lcssa, label %.lr.ph53.preheader.new

.lr.ph53.preheader.new:                           ; preds = %.lr.ph53.preheader
  %unroll_iter = and i64 %22, -2
  br label %.lr.ph53

.lr.ph:                                           ; preds = %.lr.ph.preheader94, %.lr.ph
  %.03647 = phi i64 [ %25, %.lr.ph ], [ %.03647.ph, %.lr.ph.preheader94 ]
  %24 = getelementptr inbounds i64, ptr %15, i64 %.03647
  store i64 2, ptr %24, align 8, !tbaa !9
  %25 = add nuw nsw i64 %.03647, 1
  %exitcond.not = icmp eq i64 %.03647, %10
  br i1 %exitcond.not, label %.preheader45, label %.lr.ph, !llvm.loop !15

.preheader44.loopexit.unr-lcssa:                  ; preds = %._crit_edge.1, %.lr.ph53.preheader
  %.03552.unr = phi i64 [ 2, %.lr.ph53.preheader ], [ %42, %._crit_edge.1 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %26 = shl nuw nsw i64 %.03552.unr, 1
  %.not4248.epil = icmp sgt i64 %26, %10
  %or.cond102 = select i1 %lcmp.mod.not, i1 true, i1 %.not4248.epil
  br i1 %or.cond102, label %.preheader44, label %.lr.ph50.epil

.lr.ph50.epil:                                    ; preds = %.preheader44.loopexit.unr-lcssa, %.lr.ph50.epil
  %.03449.epil = phi i64 [ %30, %.lr.ph50.epil ], [ %26, %.preheader44.loopexit.unr-lcssa ]
  %27 = getelementptr inbounds i64, ptr %15, i64 %.03449.epil
  %28 = load i64, ptr %27, align 8, !tbaa !9
  %29 = add nsw i64 %28, 1
  store i64 %29, ptr %27, align 8, !tbaa !9
  %30 = add nuw nsw i64 %.03449.epil, %.03552.unr
  %.not42.epil = icmp sgt i64 %30, %10
  br i1 %.not42.epil, label %.preheader44, label %.lr.ph50.epil, !llvm.loop !16

.preheader44:                                     ; preds = %.preheader44.loopexit.unr-lcssa, %.lr.ph50.epil, %0, %.preheader45
  %.not3964 = icmp slt i32 %5, 1
  %.not4059 = icmp slt i32 %6, 1
  %or.cond = or i1 %.not3964, %.not4059
  %.not4154 = icmp slt i32 %8, 1
  %or.cond93 = or i1 %or.cond, %.not4154
  br i1 %or.cond93, label %._crit_edge68, label %.preheader43.preheader

.preheader43.preheader:                           ; preds = %.preheader44
  %31 = add nuw i32 %6, 1
  %32 = add nuw i32 %5, 1
  %wide.trip.count90 = zext i32 %32 to i64
  %wide.trip.count85 = zext i32 %31 to i64
  %33 = zext nneg i32 %8 to i64
  %xtraiter95 = and i64 %33, 1
  %34 = icmp eq i32 %8, 1
  %unroll_iter98 = and i64 %33, 2147483646
  %lcmp.mod96.not = icmp eq i64 %xtraiter95, 0
  br label %.preheader43

.lr.ph53:                                         ; preds = %._crit_edge.1, %.lr.ph53.preheader.new
  %.03552 = phi i64 [ 2, %.lr.ph53.preheader.new ], [ %42, %._crit_edge.1 ]
  %niter = phi i64 [ 0, %.lr.ph53.preheader.new ], [ %niter.next.1, %._crit_edge.1 ]
  %35 = shl nuw nsw i64 %.03552, 1
  %.not4248 = icmp sgt i64 %35, %10
  br i1 %.not4248, label %._crit_edge, label %.lr.ph50

._crit_edge:                                      ; preds = %.lr.ph50, %.lr.ph53
  %36 = or disjoint i64 %.03552, 1
  %37 = shl nuw nsw i64 %36, 1
  %.not4248.1 = icmp sgt i64 %37, %10
  br i1 %.not4248.1, label %._crit_edge.1, label %.lr.ph50.1

.lr.ph50.1:                                       ; preds = %._crit_edge, %.lr.ph50.1
  %.03449.1 = phi i64 [ %41, %.lr.ph50.1 ], [ %37, %._crit_edge ]
  %38 = getelementptr inbounds i64, ptr %15, i64 %.03449.1
  %39 = load i64, ptr %38, align 8, !tbaa !9
  %40 = add nsw i64 %39, 1
  store i64 %40, ptr %38, align 8, !tbaa !9
  %41 = add nuw nsw i64 %.03449.1, %36
  %.not42.1 = icmp sgt i64 %41, %10
  br i1 %.not42.1, label %._crit_edge.1, label %.lr.ph50.1, !llvm.loop !16

._crit_edge.1:                                    ; preds = %.lr.ph50.1, %._crit_edge
  %42 = add nuw nsw i64 %.03552, 2
  %niter.next.1 = add nuw i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader44.loopexit.unr-lcssa, label %.lr.ph53, !llvm.loop !17

.lr.ph50:                                         ; preds = %.lr.ph53, %.lr.ph50
  %.03449 = phi i64 [ %46, %.lr.ph50 ], [ %35, %.lr.ph53 ]
  %43 = getelementptr inbounds i64, ptr %15, i64 %.03449
  %44 = load i64, ptr %43, align 8, !tbaa !9
  %45 = add nsw i64 %44, 1
  store i64 %45, ptr %43, align 8, !tbaa !9
  %46 = add nuw nsw i64 %.03449, %.03552
  %.not42 = icmp sgt i64 %46, %10
  br i1 %.not42, label %._crit_edge, label %.lr.ph50, !llvm.loop !16

.preheader43:                                     ; preds = %.preheader43.preheader, %._crit_edge62.split
  %indvars.iv87 = phi i64 [ 1, %.preheader43.preheader ], [ %indvars.iv.next88, %._crit_edge62.split ]
  %.03365 = phi i64 [ 0, %.preheader43.preheader ], [ %.lcssa, %._crit_edge62.split ]
  br label %.preheader

._crit_edge68:                                    ; preds = %._crit_edge62.split, %.preheader44
  %.033.lcssa = phi i64 [ 0, %.preheader44 ], [ %.lcssa, %._crit_edge62.split ]
  %47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %.033.lcssa)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret i32 0

.preheader:                                       ; preds = %.preheader43, %._crit_edge58
  %indvars.iv82 = phi i64 [ 1, %.preheader43 ], [ %indvars.iv.next83, %._crit_edge58 ]
  %.160 = phi i64 [ %.03365, %.preheader43 ], [ %.lcssa, %._crit_edge58 ]
  %48 = mul nuw nsw i64 %indvars.iv82, %indvars.iv87
  br i1 %34, label %._crit_edge58.unr-lcssa, label %.preheader.new

._crit_edge62.split:                              ; preds = %._crit_edge58
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %exitcond91.not = icmp eq i64 %indvars.iv.next88, %wide.trip.count90
  br i1 %exitcond91.not, label %._crit_edge68, label %.preheader43, !llvm.loop !18

._crit_edge58.unr-lcssa:                          ; preds = %.preheader.new, %.preheader
  %.lcssa.ph = phi i64 [ poison, %.preheader ], [ %63, %.preheader.new ]
  %indvars.iv.unr = phi i64 [ 1, %.preheader ], [ %indvars.iv.next.1, %.preheader.new ]
  %.255.unr = phi i64 [ %.160, %.preheader ], [ %63, %.preheader.new ]
  br i1 %lcmp.mod96.not, label %._crit_edge58, label %._crit_edge58.epilog-lcssa

._crit_edge58.epilog-lcssa:                       ; preds = %._crit_edge58.unr-lcssa
  %49 = mul nuw nsw i64 %48, %indvars.iv.unr
  %50 = getelementptr inbounds i64, ptr %15, i64 %49
  %51 = load i64, ptr %50, align 8, !tbaa !9
  %52 = add nsw i64 %51, %.255.unr
  %53 = srem i64 %52, 1073741824
  br label %._crit_edge58

._crit_edge58:                                    ; preds = %._crit_edge58.unr-lcssa, %._crit_edge58.epilog-lcssa
  %.lcssa = phi i64 [ %.lcssa.ph, %._crit_edge58.unr-lcssa ], [ %53, %._crit_edge58.epilog-lcssa ]
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  %exitcond86.not = icmp eq i64 %indvars.iv.next83, %wide.trip.count85
  br i1 %exitcond86.not, label %._crit_edge62.split, label %.preheader, !llvm.loop !19

.preheader.new:                                   ; preds = %.preheader, %.preheader.new
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.preheader.new ], [ 1, %.preheader ]
  %.255 = phi i64 [ %63, %.preheader.new ], [ %.160, %.preheader ]
  %niter99 = phi i64 [ %niter99.next.1, %.preheader.new ], [ 0, %.preheader ]
  %54 = mul nuw nsw i64 %48, %indvars.iv
  %55 = getelementptr inbounds i64, ptr %15, i64 %54
  %56 = load i64, ptr %55, align 8, !tbaa !9
  %57 = add nsw i64 %56, %.255
  %58 = srem i64 %57, 1073741824
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %59 = mul nuw nsw i64 %48, %indvars.iv.next
  %60 = getelementptr inbounds i64, ptr %15, i64 %59
  %61 = load i64, ptr %60, align 8, !tbaa !9
  %62 = add nsw i64 %61, %58
  %63 = srem i64 %62, 1073741824
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter99.next.1 = add i64 %niter99, 2
  %niter99.ncmp.1 = icmp eq i64 %niter99.next.1, %unroll_iter98
  br i1 %niter99.ncmp.1, label %._crit_edge58.unr-lcssa, label %.preheader.new, !llvm.loop !20
}

; 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #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 i64 @llvm.smax.i64(i64, i64) #4

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 = { 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 = { nobuiltin allocsize(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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }
attributes #6 = { builtin allocsize(0) }

!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 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !12, !14, !13}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}


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