; LLVM IR from tangjz/acm-icpc :: projecteuler (509)

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

@f = external dso_local global [5 x [65 x i32]], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 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 i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  br label %12

12:                                               ; preds = %152, %0
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  %14 = icmp eq i32 %13, 1
  br i1 %14, label %15, label %156

15:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 1, ptr %3, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 16 @f, i8 0, i64 1300, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %16

16:                                               ; preds = %44, %15
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = zext i32 %17 to i64
  %19 = shl i64 1, %18
  %20 = load i64, ptr %2, align 8, !tbaa !9
  %21 = icmp sle i64 %19, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %47

23:                                               ; preds = %16
  %24 = load i64, ptr %2, align 8, !tbaa !9
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = zext i32 %25 to i64
  %27 = ashr i64 %24, %26
  %28 = add nsw i64 %27, 1
  %29 = ashr i64 %28, 1
  %30 = srem i64 %29, 1234567890
  %31 = trunc i64 %30 to i32
  %32 = load i32, ptr %4, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [65 x i32], ptr getelementptr inbounds ([5 x [65 x i32]], ptr @f, i64 0, i64 1), i64 0, i64 %33
  store i32 %31, ptr %34, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %40, %23
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = icmp sle i32 %36, %37
  br i1 %38, label %39, label %43

39:                                               ; preds = %35
  br label %40

40:                                               ; preds = %39
  %41 = load i32, ptr %3, align 4, !tbaa !5
  %42 = shl i32 %41, 1
  store i32 %42, ptr %3, align 4, !tbaa !5
  br label %35, !llvm.loop !11

43:                                               ; preds = %35
  br label %44

44:                                               ; preds = %43
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %4, align 4, !tbaa !5
  br label %16, !llvm.loop !13

47:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %88, %47
  %49 = load i32, ptr %5, align 4, !tbaa !5
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %53, label %52

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

53:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %84, %53
  %55 = load i32, ptr %7, align 4, !tbaa !5
  %56 = load i32, ptr %3, align 4, !tbaa !5
  %57 = icmp slt i32 %55, %56
  br i1 %57, label %59, label %58

58:                                               ; preds = %54
  store i32 13, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %87

59:                                               ; preds = %54
  %60 = load i32, ptr %5, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [65 x i32], ptr getelementptr inbounds ([5 x [65 x i32]], ptr @f, i64 0, i64 2), i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = load i32, ptr %7, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [65 x i32], ptr getelementptr inbounds ([5 x [65 x i32]], ptr @f, i64 0, i64 1), i64 0, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = load i32, ptr %5, align 4, !tbaa !5
  %71 = load i32, ptr %7, align 4, !tbaa !5
  %72 = xor i32 %70, %71
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [65 x i32], ptr getelementptr inbounds ([5 x [65 x i32]], ptr @f, i64 0, i64 1), i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = mul nsw i64 %69, %76
  %78 = add nsw i64 %64, %77
  %79 = srem i64 %78, 1234567890
  %80 = trunc i64 %79 to i32
  %81 = load i32, ptr %5, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [65 x i32], ptr getelementptr inbounds ([5 x [65 x i32]], ptr @f, i64 0, i64 2), i64 0, i64 %82
  store i32 %80, ptr %83, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %59
  %85 = load i32, ptr %7, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %7, align 4, !tbaa !5
  br label %54, !llvm.loop !14

87:                                               ; preds = %58
  br label %88

88:                                               ; preds = %87
  %89 = load i32, ptr %5, align 4, !tbaa !5
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %5, align 4, !tbaa !5
  br label %48, !llvm.loop !15

91:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %92

92:                                               ; preds = %132, %91
  %93 = load i32, ptr %8, align 4, !tbaa !5
  %94 = load i32, ptr %3, align 4, !tbaa !5
  %95 = icmp slt i32 %93, %94
  br i1 %95, label %97, label %96

96:                                               ; preds = %92
  store i32 16, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %135

97:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %128, %97
  %99 = load i32, ptr %9, align 4, !tbaa !5
  %100 = load i32, ptr %3, align 4, !tbaa !5
  %101 = icmp slt i32 %99, %100
  br i1 %101, label %103, label %102

102:                                              ; preds = %98
  store i32 19, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %131

103:                                              ; preds = %98
  %104 = load i32, ptr %8, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [65 x i32], ptr getelementptr inbounds ([5 x [65 x i32]], ptr @f, i64 0, i64 3), i64 0, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = load i32, ptr %9, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [65 x i32], ptr getelementptr inbounds ([5 x [65 x i32]], ptr @f, i64 0, i64 2), i64 0, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = load i32, ptr %8, align 4, !tbaa !5
  %115 = load i32, ptr %9, align 4, !tbaa !5
  %116 = xor i32 %114, %115
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [65 x i32], ptr getelementptr inbounds ([5 x [65 x i32]], ptr @f, i64 0, i64 1), i64 0, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = mul nsw i64 %113, %120
  %122 = add nsw i64 %108, %121
  %123 = srem i64 %122, 1234567890
  %124 = trunc i64 %123 to i32
  %125 = load i32, ptr %8, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [65 x i32], ptr getelementptr inbounds ([5 x [65 x i32]], ptr @f, i64 0, i64 3), i64 0, i64 %126
  store i32 %124, ptr %127, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %103
  %129 = load i32, ptr %9, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %9, align 4, !tbaa !5
  br label %98, !llvm.loop !16

131:                                              ; preds = %102
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %8, align 4, !tbaa !5
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %8, align 4, !tbaa !5
  br label %92, !llvm.loop !17

135:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  store i64 0, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %136

136:                                              ; preds = %149, %135
  %137 = load i32, ptr %11, align 4, !tbaa !5
  %138 = load i32, ptr %3, align 4, !tbaa !5
  %139 = icmp slt i32 %137, %138
  br i1 %139, label %141, label %140

140:                                              ; preds = %136
  store i32 22, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %152

141:                                              ; preds = %136
  %142 = load i32, ptr %11, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [65 x i32], ptr getelementptr inbounds ([5 x [65 x i32]], ptr @f, i64 0, i64 3), i64 0, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = load i64, ptr %10, align 8, !tbaa !9
  %148 = add nsw i64 %147, %146
  store i64 %148, ptr %10, align 8, !tbaa !9
  br label %149

149:                                              ; preds = %141
  %150 = load i32, ptr %11, align 4, !tbaa !5
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %11, align 4, !tbaa !5
  br label %136, !llvm.loop !18

152:                                              ; preds = %140
  %153 = load i64, ptr %10, align 8, !tbaa !9
  %154 = srem i64 %153, 1234567890
  %155 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %154)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %12, !llvm.loop !19

156:                                              ; preds = %12
  store i32 0, ptr %1, align 4
  store i32 1, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  %157 = load i32, ptr %1, align 4
  ret i32 %157
}

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 nounwind willreturn memory(argmem: write) }
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 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}


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

@f = external dso_local local_unnamed_addr global [5 x [65 x i32]], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  %2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %3 = icmp eq i32 %2, 1
  br i1 %3, label %.lr.ph65, label %._crit_edge66

.lr.ph65:                                         ; preds = %0, %._crit_edge
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1300) @f, i8 0, i64 1300, i1 false)
  %4 = load i64, ptr %1, align 8, !tbaa !5
  %.not49 = icmp slt i64 %4, 1
  br i1 %.not49, label %.preheader45.us.preheader, label %.lr.ph

.preheader48:                                     ; preds = %31
  %5 = icmp sgt i32 %.1, 0
  br i1 %5, label %.preheader45.us.preheader, label %._crit_edge

.preheader45.us.preheader:                        ; preds = %.lr.ph65, %.preheader48
  %.042.lcssa93 = phi i32 [ %.1, %.preheader48 ], [ 1, %.lr.ph65 ]
  %wide.trip.count74 = zext nneg i32 %.042.lcssa93 to i64
  br label %.preheader45.us

.preheader45.us:                                  ; preds = %.preheader45.us.preheader, %._crit_edge.us
  %indvars.iv71 = phi i64 [ 0, %.preheader45.us.preheader ], [ %indvars.iv.next72, %._crit_edge.us ]
  %6 = getelementptr inbounds [65 x i32], ptr getelementptr inbounds (i8, ptr @f, i64 520), i64 0, i64 %indvars.iv71
  %.promoted.us = load i32, ptr %6, align 4, !tbaa !9
  br label %7

7:                                                ; preds = %.preheader45.us, %7
  %indvars.iv68 = phi i64 [ 0, %.preheader45.us ], [ %indvars.iv.next69, %7 ]
  %8 = phi i32 [ %.promoted.us, %.preheader45.us ], [ %21, %7 ]
  %9 = sext i32 %8 to i64
  %10 = getelementptr inbounds [65 x i32], ptr getelementptr inbounds (i8, ptr @f, i64 260), i64 0, i64 %indvars.iv68
  %11 = load i32, ptr %10, align 4, !tbaa !9
  %12 = sext i32 %11 to i64
  %13 = xor i64 %indvars.iv68, %indvars.iv71
  %14 = and i64 %13, 4294967295
  %15 = getelementptr inbounds [65 x i32], ptr getelementptr inbounds (i8, ptr @f, i64 260), i64 0, i64 %14
  %16 = load i32, ptr %15, align 4, !tbaa !9
  %17 = sext i32 %16 to i64
  %18 = mul nsw i64 %17, %12
  %19 = add nsw i64 %18, %9
  %20 = srem i64 %19, 1234567890
  %21 = trunc nsw i64 %20 to i32
  store i32 %21, ptr %6, align 4, !tbaa !9
  %indvars.iv.next69 = add nuw nsw i64 %indvars.iv68, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next69, %wide.trip.count74
  br i1 %exitcond.not, label %._crit_edge.us, label %7, !llvm.loop !11

._crit_edge.us:                                   ; preds = %7
  %indvars.iv.next72 = add nuw nsw i64 %indvars.iv71, 1
  %exitcond75.not = icmp eq i64 %indvars.iv.next72, %wide.trip.count74
  br i1 %exitcond75.not, label %.preheader.us.preheader, label %.preheader45.us, !llvm.loop !13

.lr.ph:                                           ; preds = %.lr.ph65, %31
  %indvars.iv = phi i64 [ %indvars.iv.next, %31 ], [ 0, %.lr.ph65 ]
  %.04250 = phi i32 [ %.1, %31 ], [ 1, %.lr.ph65 ]
  %22 = lshr i64 %4, %indvars.iv
  %23 = add nuw nsw i64 %22, 1
  %24 = lshr i64 %23, 1
  %25 = urem i64 %24, 1234567890
  %26 = trunc nuw nsw i64 %25 to i32
  %27 = getelementptr inbounds [65 x i32], ptr getelementptr inbounds (i8, ptr @f, i64 260), i64 0, i64 %indvars.iv
  store i32 %26, ptr %27, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %28, %.lr.ph
  %.1 = phi i32 [ %.04250, %.lr.ph ], [ %30, %28 ]
  %29 = sext i32 %.1 to i64
  %.not44 = icmp slt i64 %indvars.iv, %29
  %30 = shl i32 %.1, 1
  br i1 %.not44, label %31, label %28, !llvm.loop !14

31:                                               ; preds = %28
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %32 = shl nuw i64 2, %indvars.iv
  %.not = icmp sgt i64 %32, %4
  br i1 %.not, label %.preheader48, label %.lr.ph, !llvm.loop !15

.preheader.us.preheader:                          ; preds = %._crit_edge.us
  %wide.trip.count84 = zext nneg i32 %.042.lcssa93 to i64
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us59
  %indvars.iv81 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next82, %._crit_edge.us59 ]
  %33 = getelementptr inbounds [65 x i32], ptr getelementptr inbounds (i8, ptr @f, i64 780), i64 0, i64 %indvars.iv81
  %.promoted.us58 = load i32, ptr %33, align 4, !tbaa !9
  br label %34

34:                                               ; preds = %.preheader.us, %34
  %indvars.iv76 = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next77, %34 ]
  %35 = phi i32 [ %.promoted.us58, %.preheader.us ], [ %48, %34 ]
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [65 x i32], ptr getelementptr inbounds (i8, ptr @f, i64 520), i64 0, i64 %indvars.iv76
  %38 = load i32, ptr %37, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  %40 = xor i64 %indvars.iv76, %indvars.iv81
  %41 = and i64 %40, 4294967295
  %42 = getelementptr inbounds [65 x i32], ptr getelementptr inbounds (i8, ptr @f, i64 260), i64 0, i64 %41
  %43 = load i32, ptr %42, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = mul nsw i64 %44, %39
  %46 = add nsw i64 %45, %36
  %47 = srem i64 %46, 1234567890
  %48 = trunc nsw i64 %47 to i32
  store i32 %48, ptr %33, align 4, !tbaa !9
  %indvars.iv.next77 = add nuw nsw i64 %indvars.iv76, 1
  %exitcond80.not = icmp eq i64 %indvars.iv.next77, %wide.trip.count84
  br i1 %exitcond80.not, label %._crit_edge.us59, label %34, !llvm.loop !16

._crit_edge.us59:                                 ; preds = %34
  %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1
  %exitcond85.not = icmp eq i64 %indvars.iv.next82, %wide.trip.count84
  br i1 %exitcond85.not, label %.preheader46, label %.preheader.us, !llvm.loop !17

.preheader46:                                     ; preds = %._crit_edge.us59
  %49 = icmp ugt i32 %.042.lcssa93, 1
  br i1 %49, label %.lr.ph62.preheader, label %._crit_edge

.lr.ph62.preheader:                               ; preds = %.preheader46
  %wide.trip.count89 = zext nneg i32 %.042.lcssa93 to i64
  %50 = add nsw i64 %wide.trip.count74, -1
  %min.iters.check = icmp ult i32 %.042.lcssa93, 5
  br i1 %min.iters.check, label %.lr.ph62.preheader99, label %vector.ph

.lr.ph62.preheader99:                             ; preds = %middle.block, %.lr.ph62.preheader
  %indvars.iv86.ph = phi i64 [ 1, %.lr.ph62.preheader ], [ %ind.end, %middle.block ]
  %.03660.ph = phi i64 [ 0, %.lr.ph62.preheader ], [ %58, %middle.block ]
  br label %.lr.ph62

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

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %55, %vector.body ]
  %vec.phi97 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %56, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %51 = getelementptr inbounds [65 x i32], ptr getelementptr inbounds (i8, ptr @f, i64 780), i64 0, i64 %offset.idx
  %52 = getelementptr inbounds i8, ptr %51, i64 8
  %wide.load = load <2 x i32>, ptr %51, align 16, !tbaa !9
  %wide.load98 = load <2 x i32>, ptr %52, align 8, !tbaa !9
  %53 = sext <2 x i32> %wide.load to <2 x i64>
  %54 = sext <2 x i32> %wide.load98 to <2 x i64>
  %55 = add <2 x i64> %vec.phi, %53
  %56 = add <2 x i64> %vec.phi97, %54
  %index.next = add nuw i64 %index, 4
  %57 = icmp eq i64 %index.next, %n.vec
  br i1 %57, label %middle.block, label %vector.body, !llvm.loop !18

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %56, %55
  %58 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %cmp.n = icmp eq i64 %50, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph62.preheader99

._crit_edge:                                      ; preds = %.lr.ph62, %middle.block, %.preheader48, %.preheader46
  %.036.lcssa = phi i64 [ 0, %.preheader46 ], [ 0, %.preheader48 ], [ %58, %middle.block ], [ %66, %.lr.ph62 ]
  %59 = srem i64 %.036.lcssa, 1234567890
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %59)
  %61 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %62 = icmp eq i32 %61, 1
  br i1 %62, label %.lr.ph65, label %._crit_edge66, !llvm.loop !21

.lr.ph62:                                         ; preds = %.lr.ph62.preheader99, %.lr.ph62
  %indvars.iv86 = phi i64 [ %indvars.iv.next87, %.lr.ph62 ], [ %indvars.iv86.ph, %.lr.ph62.preheader99 ]
  %.03660 = phi i64 [ %66, %.lr.ph62 ], [ %.03660.ph, %.lr.ph62.preheader99 ]
  %63 = getelementptr inbounds [65 x i32], ptr getelementptr inbounds (i8, ptr @f, i64 780), i64 0, i64 %indvars.iv86
  %64 = load i32, ptr %63, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  %66 = add nsw i64 %.03660, %65
  %indvars.iv.next87 = add nuw nsw i64 %indvars.iv86, 1
  %exitcond90.not = icmp eq i64 %indvars.iv.next87, %wide.trip.count89
  br i1 %exitcond90.not, label %._crit_edge, label %.lr.ph62, !llvm.loop !22

._crit_edge66:                                    ; preds = %._crit_edge, %0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  ret i32 0
}

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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.vector.reduce.add.v2i64(<2 x i64>) #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 nounwind willreturn memory(argmem: write) }
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 = !{!"long 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12, !19, !20}
!19 = !{!"llvm.loop.isvectorized", i32 1}
!20 = !{!"llvm.loop.unroll.runtime.disable"}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12, !20, !19}


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