; LLVM IR from tangjz/acm-icpc :: lydsy (1599)

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

@s = external dso_local global [3 x i32], align 4
@f = external dso_local global [81 x i32], align 16
@v = external dso_local global i32, align 4
@ans = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @s, ptr noundef getelementptr inbounds ([3 x i32], ptr @s, i64 0, i64 1), ptr noundef getelementptr inbounds ([3 x i32], ptr @s, i64 0, i64 2))
  store i32 1, ptr @f, align 16, !tbaa !5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %6

6:                                                ; preds = %58, %0
  %7 = load i32, ptr %2, align 4, !tbaa !5
  %8 = icmp slt i32 %7, 3
  br i1 %8, label %9, label %61

9:                                                ; preds = %6
  %10 = load i32, ptr %2, align 4, !tbaa !5
  %11 = sext i32 %10 to i64
  %12 = getelementptr inbounds [3 x i32], ptr @s, i64 0, i64 %11
  %13 = load i32, ptr %12, align 4, !tbaa !5
  %14 = load i32, ptr @v, align 4, !tbaa !5
  %15 = add nsw i32 %14, %13
  store i32 %15, ptr @v, align 4, !tbaa !5
  %16 = load i32, ptr @v, align 4, !tbaa !5
  store i32 %16, ptr %3, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %54, %9
  %18 = load i32, ptr %3, align 4, !tbaa !5
  %19 = icmp sge i32 %18, 0
  br i1 %19, label %20, label %57

20:                                               ; preds = %17
  %21 = load i32, ptr %3, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %22
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %26, label %53

26:                                               ; preds = %20
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %46, %26
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [3 x i32], ptr @s, i64 0, i64 %30
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = icmp sle i32 %28, %32
  br i1 %33, label %34, label %49

34:                                               ; preds = %27
  %35 = load i32, ptr %3, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = add nsw i32 %39, %40
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = add nsw i32 %44, %38
  store i32 %45, ptr %43, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %34
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %4, align 4, !tbaa !5
  br label %27, !llvm.loop !9

49:                                               ; preds = %27
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %51
  store i32 0, ptr %52, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %49, %20
  br label %54

54:                                               ; preds = %53
  %55 = load i32, ptr %3, align 4, !tbaa !5
  %56 = add nsw i32 %55, -1
  store i32 %56, ptr %3, align 4, !tbaa !5
  br label %17, !llvm.loop !11

57:                                               ; preds = %17
  br label %58

58:                                               ; preds = %57
  %59 = load i32, ptr %2, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %2, align 4, !tbaa !5
  br label %6, !llvm.loop !12

61:                                               ; preds = %6
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %79, %61
  %63 = load i32, ptr %2, align 4, !tbaa !5
  %64 = load i32, ptr @v, align 4, !tbaa !5
  %65 = icmp sle i32 %63, %64
  br i1 %65, label %66, label %82

66:                                               ; preds = %62
  %67 = load i32, ptr %2, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = load i32, ptr @ans, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = icmp sgt i32 %70, %74
  br i1 %75, label %76, label %78

76:                                               ; preds = %66
  %77 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %77, ptr @ans, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %76, %66
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %2, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %2, align 4, !tbaa !5
  br label %62, !llvm.loop !13

82:                                               ; preds = %62
  %83 = load i32, ptr @ans, align 4, !tbaa !5
  %84 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %83)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  ret i32 0
}

; 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

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

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

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


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

@s = external dso_local global [3 x i32], align 4
@f = external dso_local local_unnamed_addr global [81 x i32], align 16
@v = external dso_local local_unnamed_addr global i32, align 4
@ans = external dso_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @s, ptr noundef nonnull getelementptr inbounds (i8, ptr @s, i64 4), ptr noundef nonnull getelementptr inbounds (i8, ptr @s, i64 8))
  store i32 1, ptr @f, align 16, !tbaa !5
  %v.promoted = load i32, ptr @v, align 4, !tbaa !5
  %2 = load i32, ptr @s, align 4, !tbaa !5
  %.fr = freeze i32 %2
  %3 = add nsw i32 %v.promoted, %.fr
  %4 = icmp sgt i32 %3, -1
  br i1 %4, label %.lr.ph27, label %._crit_edge28

.lr.ph.preheader:                                 ; preds = %._crit_edge28.2
  %5 = add i32 %.fr, %.fr.1
  %6 = add i32 %5, %.fr.2
  %7 = add i32 %6, %v.promoted
  %8 = add i32 %7, 1
  %wide.trip.count51 = zext i32 %8 to i64
  %9 = add nsw i64 %wide.trip.count51, -1
  %xtraiter = and i64 %9, 1
  %10 = icmp eq i32 %8, 2
  br i1 %10, label %._crit_edge35.loopexit.unr-lcssa, label %.lr.ph.preheader.new

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

.lr.ph27:                                         ; preds = %0
  %.not2022 = icmp slt i32 %.fr, 1
  br i1 %.not2022, label %.lr.ph27.split.us.preheader, label %.lr.ph27.split.preheader

.lr.ph27.split.preheader:                         ; preds = %.lr.ph27
  %11 = add nuw i32 %.fr, 1
  %12 = zext nneg i32 %3 to i64
  %wide.trip.count = zext i32 %11 to i64
  %13 = zext nneg i32 %.fr to i64
  %min.iters.check = icmp ult i32 %.fr, 8
  %n.vec = and i64 %13, 2147483640
  %ind.end = or disjoint i64 %n.vec, 1
  %cmp.n = icmp eq i64 %n.vec, %13
  br label %.lr.ph27.split

.lr.ph27.split.us.preheader:                      ; preds = %.lr.ph27
  %14 = zext nneg i32 %3 to i64
  %15 = add i32 %.fr, %v.promoted
  %16 = add i32 %15, 1
  %17 = zext i32 %16 to i64
  %min.iters.check64 = icmp ult i32 %16, 8
  br i1 %min.iters.check64, label %.lr.ph27.split.us.preheader196, label %vector.ph65

vector.ph65:                                      ; preds = %.lr.ph27.split.us.preheader
  %n.vec67 = and i64 %17, 4294967288
  %ind.end68 = sub nsw i64 %14, %n.vec67
  br label %vector.body70

vector.body70:                                    ; preds = %pred.store.continue89, %vector.ph65
  %index71 = phi i64 [ 0, %vector.ph65 ], [ %index.next90, %pred.store.continue89 ]
  %offset.idx72 = sub i64 %14, %index71
  %18 = add i64 %offset.idx72, -4
  %19 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %offset.idx72
  %20 = getelementptr inbounds i8, ptr %19, i64 -12
  %21 = getelementptr inbounds i8, ptr %19, i64 -28
  %wide.load73 = load <4 x i32>, ptr %20, align 4, !tbaa !5
  %reverse = shufflevector <4 x i32> %wide.load73, <4 x i32> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
  %wide.load74 = load <4 x i32>, ptr %21, align 4, !tbaa !5
  %reverse75 = shufflevector <4 x i32> %wide.load74, <4 x i32> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
  %22 = icmp ne <4 x i32> %reverse, zeroinitializer
  %23 = icmp ne <4 x i32> %reverse75, zeroinitializer
  %24 = extractelement <4 x i1> %22, i64 0
  br i1 %24, label %pred.store.if, label %pred.store.continue

pred.store.if:                                    ; preds = %vector.body70
  %25 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %offset.idx72
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %pred.store.continue

pred.store.continue:                              ; preds = %pred.store.if, %vector.body70
  %26 = extractelement <4 x i1> %22, i64 1
  br i1 %26, label %pred.store.if76, label %pred.store.continue77

pred.store.if76:                                  ; preds = %pred.store.continue
  %27 = add i64 %offset.idx72, -1
  %28 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %27
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %pred.store.continue77

pred.store.continue77:                            ; preds = %pred.store.if76, %pred.store.continue
  %29 = extractelement <4 x i1> %22, i64 2
  br i1 %29, label %pred.store.if78, label %pred.store.continue79

pred.store.if78:                                  ; preds = %pred.store.continue77
  %30 = add i64 %offset.idx72, -2
  %31 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %30
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %pred.store.continue79

pred.store.continue79:                            ; preds = %pred.store.if78, %pred.store.continue77
  %32 = extractelement <4 x i1> %22, i64 3
  br i1 %32, label %pred.store.if80, label %pred.store.continue81

pred.store.if80:                                  ; preds = %pred.store.continue79
  %33 = add i64 %offset.idx72, -3
  %34 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %33
  store i32 0, ptr %34, align 4, !tbaa !5
  br label %pred.store.continue81

pred.store.continue81:                            ; preds = %pred.store.if80, %pred.store.continue79
  %35 = extractelement <4 x i1> %23, i64 0
  br i1 %35, label %pred.store.if82, label %pred.store.continue83

pred.store.if82:                                  ; preds = %pred.store.continue81
  %36 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %18
  store i32 0, ptr %36, align 4, !tbaa !5
  br label %pred.store.continue83

pred.store.continue83:                            ; preds = %pred.store.if82, %pred.store.continue81
  %37 = extractelement <4 x i1> %23, i64 1
  br i1 %37, label %pred.store.if84, label %pred.store.continue85

pred.store.if84:                                  ; preds = %pred.store.continue83
  %38 = add i64 %offset.idx72, -5
  %39 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %38
  store i32 0, ptr %39, align 4, !tbaa !5
  br label %pred.store.continue85

pred.store.continue85:                            ; preds = %pred.store.if84, %pred.store.continue83
  %40 = extractelement <4 x i1> %23, i64 2
  br i1 %40, label %pred.store.if86, label %pred.store.continue87

pred.store.if86:                                  ; preds = %pred.store.continue85
  %41 = add i64 %offset.idx72, -6
  %42 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %41
  store i32 0, ptr %42, align 4, !tbaa !5
  br label %pred.store.continue87

pred.store.continue87:                            ; preds = %pred.store.if86, %pred.store.continue85
  %43 = extractelement <4 x i1> %23, i64 3
  br i1 %43, label %pred.store.if88, label %pred.store.continue89

pred.store.if88:                                  ; preds = %pred.store.continue87
  %44 = add i64 %offset.idx72, -7
  %45 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %44
  store i32 0, ptr %45, align 4, !tbaa !5
  br label %pred.store.continue89

pred.store.continue89:                            ; preds = %pred.store.if88, %pred.store.continue87
  %index.next90 = add nuw i64 %index71, 8
  %46 = icmp eq i64 %index.next90, %n.vec67
  br i1 %46, label %middle.block62, label %vector.body70, !llvm.loop !9

middle.block62:                                   ; preds = %pred.store.continue89
  %cmp.n91 = icmp eq i64 %n.vec67, %17
  br i1 %cmp.n91, label %._crit_edge28, label %.lr.ph27.split.us.preheader196

.lr.ph27.split.us.preheader196:                   ; preds = %middle.block62, %.lr.ph27.split.us.preheader
  %indvars.iv41.ph = phi i64 [ %14, %.lr.ph27.split.us.preheader ], [ %ind.end68, %middle.block62 ]
  br label %.lr.ph27.split.us

.lr.ph27.split.us:                                ; preds = %.lr.ph27.split.us.preheader196, %49
  %indvars.iv41 = phi i64 [ %indvars.iv.next42, %49 ], [ %indvars.iv41.ph, %.lr.ph27.split.us.preheader196 ]
  %47 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %indvars.iv41
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %.not19.us = icmp eq i32 %48, 0
  br i1 %.not19.us, label %49, label %.preheader21.us

49:                                               ; preds = %.preheader21.us, %.lr.ph27.split.us
  %indvars.iv.next42 = add nsw i64 %indvars.iv41, -1
  %50 = trunc nuw i64 %indvars.iv41 to i32
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %.lr.ph27.split.us, label %._crit_edge28, !llvm.loop !13

.preheader21.us:                                  ; preds = %.lr.ph27.split.us
  store i32 0, ptr %47, align 4, !tbaa !5
  br label %49

.lr.ph27.split:                                   ; preds = %.lr.ph27.split.preheader, %64
  %indvars.iv38 = phi i64 [ %12, %.lr.ph27.split.preheader ], [ %indvars.iv.next39, %64 ]
  %52 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %indvars.iv38
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %.not19 = icmp eq i32 %53, 0
  br i1 %.not19, label %64, label %.preheader21.preheader

.preheader21.preheader:                           ; preds = %.lr.ph27.split
  br i1 %min.iters.check, label %.preheader21.preheader197, label %vector.ph

vector.ph:                                        ; preds = %.preheader21.preheader
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %53, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  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, 1
  %54 = add nuw nsw i64 %offset.idx, %indvars.iv38
  %55 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %54
  %56 = getelementptr inbounds i8, ptr %55, i64 16
  %wide.load = load <4 x i32>, ptr %55, align 4, !tbaa !5
  %wide.load61 = load <4 x i32>, ptr %56, align 4, !tbaa !5
  %57 = add nsw <4 x i32> %wide.load, %broadcast.splat
  %58 = add nsw <4 x i32> %wide.load61, %broadcast.splat
  store <4 x i32> %57, ptr %55, align 4, !tbaa !5
  store <4 x i32> %58, ptr %56, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %59 = icmp eq i64 %index.next, %n.vec
  br i1 %59, label %middle.block, label %vector.body, !llvm.loop !14

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge, label %.preheader21.preheader197

.preheader21.preheader197:                        ; preds = %middle.block, %.preheader21.preheader
  %indvars.iv.ph = phi i64 [ 1, %.preheader21.preheader ], [ %ind.end, %middle.block ]
  br label %.preheader21

.preheader21:                                     ; preds = %.preheader21.preheader197, %.preheader21
  %indvars.iv = phi i64 [ %indvars.iv.next, %.preheader21 ], [ %indvars.iv.ph, %.preheader21.preheader197 ]
  %60 = add nuw nsw i64 %indvars.iv, %indvars.iv38
  %61 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = add nsw i32 %62, %53
  store i32 %63, ptr %61, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.preheader21, !llvm.loop !15

._crit_edge:                                      ; preds = %.preheader21, %middle.block
  store i32 0, ptr %52, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %.lr.ph27.split, %._crit_edge
  %indvars.iv.next39 = add nsw i64 %indvars.iv38, -1
  %65 = trunc nuw i64 %indvars.iv38 to i32
  %66 = icmp sgt i32 %65, 0
  br i1 %66, label %.lr.ph27.split, label %._crit_edge28, !llvm.loop !16

._crit_edge28:                                    ; preds = %64, %49, %middle.block62, %0
  %67 = load i32, ptr getelementptr inbounds (i8, ptr @s, i64 4), align 4, !tbaa !5
  %.fr.1 = freeze i32 %67
  %68 = add nsw i32 %3, %.fr.1
  %69 = icmp sgt i32 %68, -1
  br i1 %69, label %.lr.ph27.1, label %._crit_edge28.1

.lr.ph27.1:                                       ; preds = %._crit_edge28
  %.not2022.1 = icmp slt i32 %.fr.1, 1
  br i1 %.not2022.1, label %.lr.ph27.split.us.preheader.1, label %.lr.ph27.split.preheader.1

.lr.ph27.split.preheader.1:                       ; preds = %.lr.ph27.1
  %70 = add nuw i32 %.fr.1, 1
  %71 = zext nneg i32 %68 to i64
  %wide.trip.count.1 = zext i32 %70 to i64
  %72 = zext nneg i32 %.fr.1 to i64
  %min.iters.check94 = icmp ult i32 %.fr.1, 8
  %n.vec97 = and i64 %72, 2147483640
  %ind.end98 = or disjoint i64 %n.vec97, 1
  %cmp.n108 = icmp eq i64 %n.vec97, %72
  br label %.lr.ph27.split.1

.lr.ph27.split.1:                                 ; preds = %85, %.lr.ph27.split.preheader.1
  %indvars.iv38.1 = phi i64 [ %71, %.lr.ph27.split.preheader.1 ], [ %indvars.iv.next39.1, %85 ]
  %73 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %indvars.iv38.1
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %.not19.1 = icmp eq i32 %74, 0
  br i1 %.not19.1, label %85, label %.preheader21.1.preheader

.preheader21.1.preheader:                         ; preds = %.lr.ph27.split.1
  br i1 %min.iters.check94, label %.preheader21.1.preheader194, label %vector.ph95

vector.ph95:                                      ; preds = %.preheader21.1.preheader
  %broadcast.splatinsert105 = insertelement <4 x i32> poison, i32 %74, i64 0
  %broadcast.splat106 = shufflevector <4 x i32> %broadcast.splatinsert105, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body100

vector.body100:                                   ; preds = %vector.body100, %vector.ph95
  %index101 = phi i64 [ 0, %vector.ph95 ], [ %index.next107, %vector.body100 ]
  %offset.idx102 = or disjoint i64 %index101, 1
  %75 = add nuw nsw i64 %offset.idx102, %indvars.iv38.1
  %76 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %75
  %77 = getelementptr inbounds i8, ptr %76, i64 16
  %wide.load103 = load <4 x i32>, ptr %76, align 4, !tbaa !5
  %wide.load104 = load <4 x i32>, ptr %77, align 4, !tbaa !5
  %78 = add nsw <4 x i32> %wide.load103, %broadcast.splat106
  %79 = add nsw <4 x i32> %wide.load104, %broadcast.splat106
  store <4 x i32> %78, ptr %76, align 4, !tbaa !5
  store <4 x i32> %79, ptr %77, align 4, !tbaa !5
  %index.next107 = add nuw i64 %index101, 8
  %80 = icmp eq i64 %index.next107, %n.vec97
  br i1 %80, label %middle.block92, label %vector.body100, !llvm.loop !17

middle.block92:                                   ; preds = %vector.body100
  br i1 %cmp.n108, label %._crit_edge.1, label %.preheader21.1.preheader194

.preheader21.1.preheader194:                      ; preds = %middle.block92, %.preheader21.1.preheader
  %indvars.iv.1.ph = phi i64 [ 1, %.preheader21.1.preheader ], [ %ind.end98, %middle.block92 ]
  br label %.preheader21.1

.preheader21.1:                                   ; preds = %.preheader21.1.preheader194, %.preheader21.1
  %indvars.iv.1 = phi i64 [ %indvars.iv.next.1, %.preheader21.1 ], [ %indvars.iv.1.ph, %.preheader21.1.preheader194 ]
  %81 = add nuw nsw i64 %indvars.iv.1, %indvars.iv38.1
  %82 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = add nsw i32 %83, %74
  store i32 %84, ptr %82, align 4, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %exitcond.1.not = icmp eq i64 %indvars.iv.next.1, %wide.trip.count.1
  br i1 %exitcond.1.not, label %._crit_edge.1, label %.preheader21.1, !llvm.loop !18

._crit_edge.1:                                    ; preds = %.preheader21.1, %middle.block92
  store i32 0, ptr %73, align 4, !tbaa !5
  br label %85

85:                                               ; preds = %._crit_edge.1, %.lr.ph27.split.1
  %indvars.iv.next39.1 = add nsw i64 %indvars.iv38.1, -1
  %86 = trunc nuw i64 %indvars.iv38.1 to i32
  %87 = icmp sgt i32 %86, 0
  br i1 %87, label %.lr.ph27.split.1, label %._crit_edge28.1, !llvm.loop !16

.lr.ph27.split.us.preheader.1:                    ; preds = %.lr.ph27.1
  %88 = zext nneg i32 %68 to i64
  %89 = add i32 %.fr, %.fr.1
  %90 = add i32 %89, %v.promoted
  %91 = add i32 %90, 1
  %92 = zext i32 %91 to i64
  %min.iters.check111 = icmp ult i32 %91, 8
  br i1 %min.iters.check111, label %.lr.ph27.split.us.1.preheader, label %vector.ph112

vector.ph112:                                     ; preds = %.lr.ph27.split.us.preheader.1
  %n.vec114 = and i64 %92, 4294967288
  %ind.end115 = sub nsw i64 %88, %n.vec114
  br label %vector.body117

vector.body117:                                   ; preds = %pred.store.continue139, %vector.ph112
  %index118 = phi i64 [ 0, %vector.ph112 ], [ %index.next140, %pred.store.continue139 ]
  %offset.idx119 = sub i64 %88, %index118
  %93 = add i64 %offset.idx119, -4
  %94 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %offset.idx119
  %95 = getelementptr inbounds i8, ptr %94, i64 -12
  %96 = getelementptr inbounds i8, ptr %94, i64 -28
  %wide.load120 = load <4 x i32>, ptr %95, align 4, !tbaa !5
  %reverse121 = shufflevector <4 x i32> %wide.load120, <4 x i32> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
  %wide.load122 = load <4 x i32>, ptr %96, align 4, !tbaa !5
  %reverse123 = shufflevector <4 x i32> %wide.load122, <4 x i32> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
  %97 = icmp ne <4 x i32> %reverse121, zeroinitializer
  %98 = icmp ne <4 x i32> %reverse123, zeroinitializer
  %99 = extractelement <4 x i1> %97, i64 0
  br i1 %99, label %pred.store.if124, label %pred.store.continue125

pred.store.if124:                                 ; preds = %vector.body117
  %100 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %offset.idx119
  store i32 0, ptr %100, align 4, !tbaa !5
  br label %pred.store.continue125

pred.store.continue125:                           ; preds = %pred.store.if124, %vector.body117
  %101 = extractelement <4 x i1> %97, i64 1
  br i1 %101, label %pred.store.if126, label %pred.store.continue127

pred.store.if126:                                 ; preds = %pred.store.continue125
  %102 = add i64 %offset.idx119, -1
  %103 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %102
  store i32 0, ptr %103, align 4, !tbaa !5
  br label %pred.store.continue127

pred.store.continue127:                           ; preds = %pred.store.if126, %pred.store.continue125
  %104 = extractelement <4 x i1> %97, i64 2
  br i1 %104, label %pred.store.if128, label %pred.store.continue129

pred.store.if128:                                 ; preds = %pred.store.continue127
  %105 = add i64 %offset.idx119, -2
  %106 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %105
  store i32 0, ptr %106, align 4, !tbaa !5
  br label %pred.store.continue129

pred.store.continue129:                           ; preds = %pred.store.if128, %pred.store.continue127
  %107 = extractelement <4 x i1> %97, i64 3
  br i1 %107, label %pred.store.if130, label %pred.store.continue131

pred.store.if130:                                 ; preds = %pred.store.continue129
  %108 = add i64 %offset.idx119, -3
  %109 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %108
  store i32 0, ptr %109, align 4, !tbaa !5
  br label %pred.store.continue131

pred.store.continue131:                           ; preds = %pred.store.if130, %pred.store.continue129
  %110 = extractelement <4 x i1> %98, i64 0
  br i1 %110, label %pred.store.if132, label %pred.store.continue133

pred.store.if132:                                 ; preds = %pred.store.continue131
  %111 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %93
  store i32 0, ptr %111, align 4, !tbaa !5
  br label %pred.store.continue133

pred.store.continue133:                           ; preds = %pred.store.if132, %pred.store.continue131
  %112 = extractelement <4 x i1> %98, i64 1
  br i1 %112, label %pred.store.if134, label %pred.store.continue135

pred.store.if134:                                 ; preds = %pred.store.continue133
  %113 = add i64 %offset.idx119, -5
  %114 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %113
  store i32 0, ptr %114, align 4, !tbaa !5
  br label %pred.store.continue135

pred.store.continue135:                           ; preds = %pred.store.if134, %pred.store.continue133
  %115 = extractelement <4 x i1> %98, i64 2
  br i1 %115, label %pred.store.if136, label %pred.store.continue137

pred.store.if136:                                 ; preds = %pred.store.continue135
  %116 = add i64 %offset.idx119, -6
  %117 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %116
  store i32 0, ptr %117, align 4, !tbaa !5
  br label %pred.store.continue137

pred.store.continue137:                           ; preds = %pred.store.if136, %pred.store.continue135
  %118 = extractelement <4 x i1> %98, i64 3
  br i1 %118, label %pred.store.if138, label %pred.store.continue139

pred.store.if138:                                 ; preds = %pred.store.continue137
  %119 = add i64 %offset.idx119, -7
  %120 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %119
  store i32 0, ptr %120, align 4, !tbaa !5
  br label %pred.store.continue139

pred.store.continue139:                           ; preds = %pred.store.if138, %pred.store.continue137
  %index.next140 = add nuw i64 %index118, 8
  %121 = icmp eq i64 %index.next140, %n.vec114
  br i1 %121, label %middle.block109, label %vector.body117, !llvm.loop !19

middle.block109:                                  ; preds = %pred.store.continue139
  %cmp.n141 = icmp eq i64 %n.vec114, %92
  br i1 %cmp.n141, label %._crit_edge28.1, label %.lr.ph27.split.us.1.preheader

.lr.ph27.split.us.1.preheader:                    ; preds = %middle.block109, %.lr.ph27.split.us.preheader.1
  %indvars.iv41.1.ph = phi i64 [ %88, %.lr.ph27.split.us.preheader.1 ], [ %ind.end115, %middle.block109 ]
  br label %.lr.ph27.split.us.1

.lr.ph27.split.us.1:                              ; preds = %.lr.ph27.split.us.1.preheader, %124
  %indvars.iv41.1 = phi i64 [ %indvars.iv.next42.1, %124 ], [ %indvars.iv41.1.ph, %.lr.ph27.split.us.1.preheader ]
  %122 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %indvars.iv41.1
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %.not19.us.1 = icmp eq i32 %123, 0
  br i1 %.not19.us.1, label %124, label %.preheader21.us.1

.preheader21.us.1:                                ; preds = %.lr.ph27.split.us.1
  store i32 0, ptr %122, align 4, !tbaa !5
  br label %124

124:                                              ; preds = %.preheader21.us.1, %.lr.ph27.split.us.1
  %indvars.iv.next42.1 = add nsw i64 %indvars.iv41.1, -1
  %125 = trunc nuw i64 %indvars.iv41.1 to i32
  %126 = icmp sgt i32 %125, 0
  br i1 %126, label %.lr.ph27.split.us.1, label %._crit_edge28.1, !llvm.loop !20

._crit_edge28.1:                                  ; preds = %85, %124, %middle.block109, %._crit_edge28
  %127 = load i32, ptr getelementptr inbounds (i8, ptr @s, i64 8), align 4, !tbaa !5
  %.fr.2 = freeze i32 %127
  %128 = add nsw i32 %68, %.fr.2
  %129 = icmp sgt i32 %128, -1
  br i1 %129, label %.lr.ph27.2, label %._crit_edge28.2.thread

._crit_edge28.2.thread:                           ; preds = %._crit_edge28.1
  store i32 %128, ptr @v, align 4, !tbaa !5
  %ans.promoted53 = load i32, ptr @ans, align 4, !tbaa !5
  br label %._crit_edge35

.lr.ph27.2:                                       ; preds = %._crit_edge28.1
  %.not2022.2 = icmp slt i32 %.fr.2, 1
  br i1 %.not2022.2, label %.lr.ph27.split.us.preheader.2, label %.lr.ph27.split.preheader.2

.lr.ph27.split.preheader.2:                       ; preds = %.lr.ph27.2
  %130 = add nuw i32 %.fr.2, 1
  %131 = zext nneg i32 %128 to i64
  %wide.trip.count.2 = zext i32 %130 to i64
  %132 = zext nneg i32 %.fr.2 to i64
  %min.iters.check144 = icmp ult i32 %.fr.2, 8
  %n.vec147 = and i64 %132, 2147483640
  %ind.end148 = or disjoint i64 %n.vec147, 1
  %cmp.n158 = icmp eq i64 %n.vec147, %132
  br label %.lr.ph27.split.2

.lr.ph27.split.2:                                 ; preds = %145, %.lr.ph27.split.preheader.2
  %indvars.iv38.2 = phi i64 [ %131, %.lr.ph27.split.preheader.2 ], [ %indvars.iv.next39.2, %145 ]
  %133 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %indvars.iv38.2
  %134 = load i32, ptr %133, align 4, !tbaa !5
  %.not19.2 = icmp eq i32 %134, 0
  br i1 %.not19.2, label %145, label %.preheader21.2.preheader

.preheader21.2.preheader:                         ; preds = %.lr.ph27.split.2
  br i1 %min.iters.check144, label %.preheader21.2.preheader192, label %vector.ph145

vector.ph145:                                     ; preds = %.preheader21.2.preheader
  %broadcast.splatinsert155 = insertelement <4 x i32> poison, i32 %134, i64 0
  %broadcast.splat156 = shufflevector <4 x i32> %broadcast.splatinsert155, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body150

vector.body150:                                   ; preds = %vector.body150, %vector.ph145
  %index151 = phi i64 [ 0, %vector.ph145 ], [ %index.next157, %vector.body150 ]
  %offset.idx152 = or disjoint i64 %index151, 1
  %135 = add nuw nsw i64 %offset.idx152, %indvars.iv38.2
  %136 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %135
  %137 = getelementptr inbounds i8, ptr %136, i64 16
  %wide.load153 = load <4 x i32>, ptr %136, align 4, !tbaa !5
  %wide.load154 = load <4 x i32>, ptr %137, align 4, !tbaa !5
  %138 = add nsw <4 x i32> %wide.load153, %broadcast.splat156
  %139 = add nsw <4 x i32> %wide.load154, %broadcast.splat156
  store <4 x i32> %138, ptr %136, align 4, !tbaa !5
  store <4 x i32> %139, ptr %137, align 4, !tbaa !5
  %index.next157 = add nuw i64 %index151, 8
  %140 = icmp eq i64 %index.next157, %n.vec147
  br i1 %140, label %middle.block142, label %vector.body150, !llvm.loop !21

middle.block142:                                  ; preds = %vector.body150
  br i1 %cmp.n158, label %._crit_edge.2, label %.preheader21.2.preheader192

.preheader21.2.preheader192:                      ; preds = %middle.block142, %.preheader21.2.preheader
  %indvars.iv.2.ph = phi i64 [ 1, %.preheader21.2.preheader ], [ %ind.end148, %middle.block142 ]
  br label %.preheader21.2

.preheader21.2:                                   ; preds = %.preheader21.2.preheader192, %.preheader21.2
  %indvars.iv.2 = phi i64 [ %indvars.iv.next.2, %.preheader21.2 ], [ %indvars.iv.2.ph, %.preheader21.2.preheader192 ]
  %141 = add nuw nsw i64 %indvars.iv.2, %indvars.iv38.2
  %142 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %141
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = add nsw i32 %143, %134
  store i32 %144, ptr %142, align 4, !tbaa !5
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv.2, 1
  %exitcond.2.not = icmp eq i64 %indvars.iv.next.2, %wide.trip.count.2
  br i1 %exitcond.2.not, label %._crit_edge.2, label %.preheader21.2, !llvm.loop !22

._crit_edge.2:                                    ; preds = %.preheader21.2, %middle.block142
  store i32 0, ptr %133, align 4, !tbaa !5
  br label %145

145:                                              ; preds = %._crit_edge.2, %.lr.ph27.split.2
  %indvars.iv.next39.2 = add nsw i64 %indvars.iv38.2, -1
  %146 = trunc nuw i64 %indvars.iv38.2 to i32
  %147 = icmp sgt i32 %146, 0
  br i1 %147, label %.lr.ph27.split.2, label %._crit_edge28.2, !llvm.loop !16

.lr.ph27.split.us.preheader.2:                    ; preds = %.lr.ph27.2
  %148 = zext nneg i32 %128 to i64
  %149 = add i32 %.fr, %.fr.1
  %150 = add i32 %149, %.fr.2
  %151 = add i32 %150, %v.promoted
  %152 = add i32 %151, 1
  %153 = zext i32 %152 to i64
  %min.iters.check161 = icmp ult i32 %152, 8
  br i1 %min.iters.check161, label %.lr.ph27.split.us.2.preheader, label %vector.ph162

vector.ph162:                                     ; preds = %.lr.ph27.split.us.preheader.2
  %n.vec164 = and i64 %153, 4294967288
  %ind.end165 = sub nsw i64 %148, %n.vec164
  br label %vector.body167

vector.body167:                                   ; preds = %pred.store.continue189, %vector.ph162
  %index168 = phi i64 [ 0, %vector.ph162 ], [ %index.next190, %pred.store.continue189 ]
  %offset.idx169 = sub i64 %148, %index168
  %154 = add i64 %offset.idx169, -4
  %155 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %offset.idx169
  %156 = getelementptr inbounds i8, ptr %155, i64 -12
  %157 = getelementptr inbounds i8, ptr %155, i64 -28
  %wide.load170 = load <4 x i32>, ptr %156, align 4, !tbaa !5
  %reverse171 = shufflevector <4 x i32> %wide.load170, <4 x i32> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
  %wide.load172 = load <4 x i32>, ptr %157, align 4, !tbaa !5
  %reverse173 = shufflevector <4 x i32> %wide.load172, <4 x i32> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
  %158 = icmp ne <4 x i32> %reverse171, zeroinitializer
  %159 = icmp ne <4 x i32> %reverse173, zeroinitializer
  %160 = extractelement <4 x i1> %158, i64 0
  br i1 %160, label %pred.store.if174, label %pred.store.continue175

pred.store.if174:                                 ; preds = %vector.body167
  %161 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %offset.idx169
  store i32 0, ptr %161, align 4, !tbaa !5
  br label %pred.store.continue175

pred.store.continue175:                           ; preds = %pred.store.if174, %vector.body167
  %162 = extractelement <4 x i1> %158, i64 1
  br i1 %162, label %pred.store.if176, label %pred.store.continue177

pred.store.if176:                                 ; preds = %pred.store.continue175
  %163 = add i64 %offset.idx169, -1
  %164 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %163
  store i32 0, ptr %164, align 4, !tbaa !5
  br label %pred.store.continue177

pred.store.continue177:                           ; preds = %pred.store.if176, %pred.store.continue175
  %165 = extractelement <4 x i1> %158, i64 2
  br i1 %165, label %pred.store.if178, label %pred.store.continue179

pred.store.if178:                                 ; preds = %pred.store.continue177
  %166 = add i64 %offset.idx169, -2
  %167 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %166
  store i32 0, ptr %167, align 4, !tbaa !5
  br label %pred.store.continue179

pred.store.continue179:                           ; preds = %pred.store.if178, %pred.store.continue177
  %168 = extractelement <4 x i1> %158, i64 3
  br i1 %168, label %pred.store.if180, label %pred.store.continue181

pred.store.if180:                                 ; preds = %pred.store.continue179
  %169 = add i64 %offset.idx169, -3
  %170 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %169
  store i32 0, ptr %170, align 4, !tbaa !5
  br label %pred.store.continue181

pred.store.continue181:                           ; preds = %pred.store.if180, %pred.store.continue179
  %171 = extractelement <4 x i1> %159, i64 0
  br i1 %171, label %pred.store.if182, label %pred.store.continue183

pred.store.if182:                                 ; preds = %pred.store.continue181
  %172 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %154
  store i32 0, ptr %172, align 4, !tbaa !5
  br label %pred.store.continue183

pred.store.continue183:                           ; preds = %pred.store.if182, %pred.store.continue181
  %173 = extractelement <4 x i1> %159, i64 1
  br i1 %173, label %pred.store.if184, label %pred.store.continue185

pred.store.if184:                                 ; preds = %pred.store.continue183
  %174 = add i64 %offset.idx169, -5
  %175 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %174
  store i32 0, ptr %175, align 4, !tbaa !5
  br label %pred.store.continue185

pred.store.continue185:                           ; preds = %pred.store.if184, %pred.store.continue183
  %176 = extractelement <4 x i1> %159, i64 2
  br i1 %176, label %pred.store.if186, label %pred.store.continue187

pred.store.if186:                                 ; preds = %pred.store.continue185
  %177 = add i64 %offset.idx169, -6
  %178 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %177
  store i32 0, ptr %178, align 4, !tbaa !5
  br label %pred.store.continue187

pred.store.continue187:                           ; preds = %pred.store.if186, %pred.store.continue185
  %179 = extractelement <4 x i1> %159, i64 3
  br i1 %179, label %pred.store.if188, label %pred.store.continue189

pred.store.if188:                                 ; preds = %pred.store.continue187
  %180 = add i64 %offset.idx169, -7
  %181 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %180
  store i32 0, ptr %181, align 4, !tbaa !5
  br label %pred.store.continue189

pred.store.continue189:                           ; preds = %pred.store.if188, %pred.store.continue187
  %index.next190 = add nuw i64 %index168, 8
  %182 = icmp eq i64 %index.next190, %n.vec164
  br i1 %182, label %middle.block159, label %vector.body167, !llvm.loop !23

middle.block159:                                  ; preds = %pred.store.continue189
  %cmp.n191 = icmp eq i64 %n.vec164, %153
  br i1 %cmp.n191, label %._crit_edge28.2, label %.lr.ph27.split.us.2.preheader

.lr.ph27.split.us.2.preheader:                    ; preds = %middle.block159, %.lr.ph27.split.us.preheader.2
  %indvars.iv41.2.ph = phi i64 [ %148, %.lr.ph27.split.us.preheader.2 ], [ %ind.end165, %middle.block159 ]
  br label %.lr.ph27.split.us.2

.lr.ph27.split.us.2:                              ; preds = %.lr.ph27.split.us.2.preheader, %185
  %indvars.iv41.2 = phi i64 [ %indvars.iv.next42.2, %185 ], [ %indvars.iv41.2.ph, %.lr.ph27.split.us.2.preheader ]
  %183 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %indvars.iv41.2
  %184 = load i32, ptr %183, align 4, !tbaa !5
  %.not19.us.2 = icmp eq i32 %184, 0
  br i1 %.not19.us.2, label %185, label %.preheader21.us.2

.preheader21.us.2:                                ; preds = %.lr.ph27.split.us.2
  store i32 0, ptr %183, align 4, !tbaa !5
  br label %185

185:                                              ; preds = %.preheader21.us.2, %.lr.ph27.split.us.2
  %indvars.iv.next42.2 = add nsw i64 %indvars.iv41.2, -1
  %186 = trunc nuw i64 %indvars.iv41.2 to i32
  %187 = icmp sgt i32 %186, 0
  br i1 %187, label %.lr.ph27.split.us.2, label %._crit_edge28.2, !llvm.loop !24

._crit_edge28.2:                                  ; preds = %145, %185, %middle.block159
  store i32 %128, ptr @v, align 4, !tbaa !5
  %ans.promoted = load i32, ptr @ans, align 4, !tbaa !5
  %.not32 = icmp eq i32 %128, 0
  br i1 %.not32, label %._crit_edge35, label %.lr.ph.preheader

.lr.ph:                                           ; preds = %204, %.lr.ph.preheader.new
  %indvars.iv48 = phi i64 [ 1, %.lr.ph.preheader.new ], [ %indvars.iv.next49.1, %204 ]
  %.13133 = phi i32 [ %ans.promoted, %.lr.ph.preheader.new ], [ %.130.1, %204 ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %204 ]
  %188 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %indvars.iv48
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = sext i32 %.13133 to i64
  %191 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %190
  %192 = load i32, ptr %191, align 4, !tbaa !5
  %193 = icmp sgt i32 %189, %192
  br i1 %193, label %194, label %.lr.ph.1

194:                                              ; preds = %.lr.ph
  %195 = trunc nuw nsw i64 %indvars.iv48 to i32
  store i32 %195, ptr @ans, align 4, !tbaa !5
  br label %.lr.ph.1

.lr.ph.1:                                         ; preds = %.lr.ph, %194
  %.130 = phi i32 [ %.13133, %.lr.ph ], [ %195, %194 ]
  %indvars.iv.next49 = add nuw nsw i64 %indvars.iv48, 1
  %196 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %indvars.iv.next49
  %197 = load i32, ptr %196, align 4, !tbaa !5
  %198 = sext i32 %.130 to i64
  %199 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %198
  %200 = load i32, ptr %199, align 4, !tbaa !5
  %201 = icmp sgt i32 %197, %200
  br i1 %201, label %202, label %204

202:                                              ; preds = %.lr.ph.1
  %203 = trunc nuw nsw i64 %indvars.iv.next49 to i32
  store i32 %203, ptr @ans, align 4, !tbaa !5
  br label %204

204:                                              ; preds = %202, %.lr.ph.1
  %.130.1 = phi i32 [ %.130, %.lr.ph.1 ], [ %203, %202 ]
  %indvars.iv.next49.1 = add nuw nsw i64 %indvars.iv48, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge35.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !25

._crit_edge35.loopexit.unr-lcssa:                 ; preds = %204, %.lr.ph.preheader
  %.130.lcssa.ph = phi i32 [ poison, %.lr.ph.preheader ], [ %.130.1, %204 ]
  %indvars.iv48.unr = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next49.1, %204 ]
  %.13133.unr = phi i32 [ %ans.promoted, %.lr.ph.preheader ], [ %.130.1, %204 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge35, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge35.loopexit.unr-lcssa
  %205 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %indvars.iv48.unr
  %206 = load i32, ptr %205, align 4, !tbaa !5
  %207 = sext i32 %.13133.unr to i64
  %208 = getelementptr inbounds [81 x i32], ptr @f, i64 0, i64 %207
  %209 = load i32, ptr %208, align 4, !tbaa !5
  %210 = icmp sgt i32 %206, %209
  br i1 %210, label %211, label %._crit_edge35

211:                                              ; preds = %.lr.ph.epil
  %212 = trunc nuw nsw i64 %indvars.iv48.unr to i32
  store i32 %212, ptr @ans, align 4, !tbaa !5
  br label %._crit_edge35

._crit_edge35:                                    ; preds = %._crit_edge35.loopexit.unr-lcssa, %211, %.lr.ph.epil, %._crit_edge28.2.thread, %._crit_edge28.2
  %213 = phi i32 [ %ans.promoted, %._crit_edge28.2 ], [ %ans.promoted53, %._crit_edge28.2.thread ], [ %.130.lcssa.ph, %._crit_edge35.loopexit.unr-lcssa ], [ %.13133.unr, %.lr.ph.epil ], [ %212, %211 ]
  %214 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %213)
  ret i32 0
}

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

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

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 = { 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" }

!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 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !12, !11}
!14 = distinct !{!14, !10, !11, !12}
!15 = distinct !{!15, !10, !12, !11}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10, !11, !12}
!18 = distinct !{!18, !10, !12, !11}
!19 = distinct !{!19, !10, !11, !12}
!20 = distinct !{!20, !10, !12, !11}
!21 = distinct !{!21, !10, !11, !12}
!22 = distinct !{!22, !10, !12, !11}
!23 = distinct !{!23, !10, !11, !12}
!24 = distinct !{!24, !10, !12, !11}
!25 = distinct !{!25, !10}


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