; LLVM IR from tangjz/acm-icpc :: 51nod (1468)

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

@n = external dso_local global i32, align 4
@h = external dso_local global [16 x i32], align 16
@v = external dso_local global [16 x i64], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 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
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  br label %9

9:                                                ; preds = %13, %0
  %10 = load i32, ptr @n, align 4, !tbaa !5
  %11 = add nsw i32 %10, -1
  store i32 %11, ptr @n, align 4, !tbaa !5
  %12 = icmp ne i32 %10, 0
  br i1 %12, label %13, label %20

13:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3)
  %15 = load i32, ptr %3, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [16 x i64], ptr @v, i64 0, i64 %18
  store i64 %16, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  br label %9, !llvm.loop !11

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

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

24:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  br label %35

25:                                               ; preds = %21
  %26 = load i32, ptr %4, align 4, !tbaa !5
  %27 = shl i32 1, %26
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = shl i32 1, %28
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [16 x i32], ptr @h, i64 0, i64 %30
  store i32 %27, ptr %31, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %25
  %33 = load i32, ptr %4, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %4, align 4, !tbaa !5
  br label %21, !llvm.loop !13

35:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 2, ptr %5, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %47, %35
  %37 = load i32, ptr %5, align 4, !tbaa !5
  %38 = icmp slt i32 %37, 16
  br i1 %38, label %40, label %39

39:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %50

40:                                               ; preds = %36
  %41 = load i64, ptr @v, align 16, !tbaa !9
  %42 = load i32, ptr %5, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [16 x i64], ptr @v, i64 0, i64 %43
  %45 = load i64, ptr %44, align 8, !tbaa !9
  %46 = sub nsw i64 %45, %41
  store i64 %46, ptr %44, align 8, !tbaa !9
  br label %47

47:                                               ; preds = %40
  %48 = load i32, ptr %5, align 4, !tbaa !5
  %49 = add nsw i32 %48, 2
  store i32 %49, ptr %5, align 4, !tbaa !5
  br label %36, !llvm.loop !14

50:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %85, %50
  %52 = load i32, ptr %6, align 4, !tbaa !5
  %53 = icmp slt i32 %52, 16
  br i1 %53, label %55, label %54

54:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %88

55:                                               ; preds = %51
  %56 = load i32, ptr %6, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [16 x i32], ptr @h, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %84, label %61

61:                                               ; preds = %55
  %62 = load i32, ptr %6, align 4, !tbaa !5
  %63 = sub nsw i32 %62, 1
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [16 x i32], ptr @h, i64 0, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = load i32, ptr %6, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [16 x i32], ptr @h, i64 0, i64 %68
  store i32 %66, ptr %69, align 4, !tbaa !5
  %70 = load i32, ptr %6, align 4, !tbaa !5
  %71 = load i32, ptr %6, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [16 x i32], ptr @h, i64 0, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = xor i32 %70, %74
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [16 x i64], ptr @v, i64 0, i64 %76
  %78 = load i64, ptr %77, align 8, !tbaa !9
  %79 = load i32, ptr %6, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [16 x i64], ptr @v, i64 0, i64 %80
  %82 = load i64, ptr %81, align 8, !tbaa !9
  %83 = sub nsw i64 %82, %78
  store i64 %83, ptr %81, align 8, !tbaa !9
  br label %84

84:                                               ; preds = %61, %55
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %6, align 4, !tbaa !5
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %6, align 4, !tbaa !5
  br label %51, !llvm.loop !15

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

89:                                               ; preds = %105, %88
  %90 = load i32, ptr %7, align 4, !tbaa !5
  %91 = icmp slt i32 %90, 16
  br i1 %91, label %93, label %92

92:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %108

93:                                               ; preds = %89
  %94 = load i32, ptr %7, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [16 x i64], ptr @v, i64 0, i64 %95
  %97 = load i64, ptr %96, align 8, !tbaa !9
  %98 = load i32, ptr %7, align 4, !tbaa !5
  %99 = icmp eq i32 %98, 15
  %100 = zext i1 %99 to i64
  %101 = getelementptr inbounds [3 x i8], ptr @.str.3, i64 0, i64 %100
  %102 = load i8, ptr %101, align 1, !tbaa !16
  %103 = sext i8 %102 to i32
  %104 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %97, i32 noundef %103)
  br label %105

105:                                              ; preds = %93
  %106 = load i32, ptr %7, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %7, align 4, !tbaa !5
  br label %89, !llvm.loop !17

108:                                              ; preds = %92
  ret i32 0
}

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

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

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

declare i32 @printf(ptr noundef, ...) #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!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 = !{!7, !7, i64 0}
!17 = distinct !{!17, !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"

@n = external dso_local global i32, align 4
@h = external dso_local local_unnamed_addr global [16 x i32], align 16
@v = external dso_local local_unnamed_addr global [16 x i64], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %4 = load i32, ptr @n, align 4, !tbaa !5
  %5 = add nsw i32 %4, -1
  store i32 %5, ptr @n, align 4, !tbaa !5
  %.not26 = icmp eq i32 %4, 0
  br i1 %.not26, label %.preheader23.2, label %.lr.ph

.lr.ph:                                           ; preds = %0, %.lr.ph
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %7 = load i32, ptr %2, align 4, !tbaa !5
  %8 = sext i32 %7 to i64
  %9 = load i32, ptr %1, align 4, !tbaa !5
  %10 = sext i32 %9 to i64
  %11 = getelementptr inbounds [16 x i64], ptr @v, i64 0, i64 %10
  store i64 %8, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #3
  %12 = load i32, ptr @n, align 4, !tbaa !5
  %13 = add nsw i32 %12, -1
  store i32 %13, ptr @n, align 4, !tbaa !5
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %.preheader23.2, label %.lr.ph, !llvm.loop !11

.preheader23.2:                                   ; preds = %.lr.ph, %0
  store i32 1, ptr getelementptr inbounds (i8, ptr @h, i64 4), align 4, !tbaa !5
  store i32 2, ptr getelementptr inbounds (i8, ptr @h, i64 8), align 8, !tbaa !5
  store i32 4, ptr getelementptr inbounds (i8, ptr @h, i64 16), align 16, !tbaa !5
  store i32 8, ptr getelementptr inbounds (i8, ptr @h, i64 32), align 16, !tbaa !5
  %14 = load i64, ptr @v, align 16, !tbaa !9
  %15 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 16), align 16, !tbaa !9
  %16 = sub nsw i64 %15, %14
  store i64 %16, ptr getelementptr inbounds (i8, ptr @v, i64 16), align 16, !tbaa !9
  %17 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 32), align 16, !tbaa !9
  %18 = sub nsw i64 %17, %14
  store i64 %18, ptr getelementptr inbounds (i8, ptr @v, i64 32), align 16, !tbaa !9
  %19 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 48), align 16, !tbaa !9
  %20 = sub nsw i64 %19, %14
  store i64 %20, ptr getelementptr inbounds (i8, ptr @v, i64 48), align 16, !tbaa !9
  %21 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 64), align 16, !tbaa !9
  %22 = sub nsw i64 %21, %14
  store i64 %22, ptr getelementptr inbounds (i8, ptr @v, i64 64), align 16, !tbaa !9
  %23 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 80), align 16, !tbaa !9
  %24 = sub nsw i64 %23, %14
  store i64 %24, ptr getelementptr inbounds (i8, ptr @v, i64 80), align 16, !tbaa !9
  %25 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 96), align 16, !tbaa !9
  %26 = sub nsw i64 %25, %14
  store i64 %26, ptr getelementptr inbounds (i8, ptr @v, i64 96), align 16, !tbaa !9
  %27 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 112), align 16, !tbaa !9
  %28 = sub nsw i64 %27, %14
  store i64 %28, ptr getelementptr inbounds (i8, ptr @v, i64 112), align 16, !tbaa !9
  %29 = load i32, ptr getelementptr inbounds (i8, ptr @h, i64 12), align 4, !tbaa !5
  %.not22.2 = icmp eq i32 %29, 0
  br i1 %.not22.2, label %30, label %.preheader23.4

30:                                               ; preds = %.preheader23.2
  store i32 2, ptr getelementptr inbounds (i8, ptr @h, i64 12), align 4, !tbaa !5
  %31 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 8), align 8, !tbaa !9
  %32 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 24), align 8, !tbaa !9
  %33 = sub nsw i64 %32, %31
  store i64 %33, ptr getelementptr inbounds (i8, ptr @v, i64 24), align 8, !tbaa !9
  br label %.preheader23.4

.preheader23.4:                                   ; preds = %.preheader23.2, %30
  %34 = load i32, ptr getelementptr inbounds (i8, ptr @h, i64 20), align 4, !tbaa !5
  %.not22.4 = icmp eq i32 %34, 0
  br i1 %.not22.4, label %35, label %.preheader23.5

35:                                               ; preds = %.preheader23.4
  store i32 4, ptr getelementptr inbounds (i8, ptr @h, i64 20), align 4, !tbaa !5
  %36 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 8), align 8, !tbaa !9
  %37 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 40), align 8, !tbaa !9
  %38 = sub nsw i64 %37, %36
  store i64 %38, ptr getelementptr inbounds (i8, ptr @v, i64 40), align 8, !tbaa !9
  br label %.preheader23.5

.preheader23.5:                                   ; preds = %35, %.preheader23.4
  %39 = phi i32 [ 4, %35 ], [ %34, %.preheader23.4 ]
  %40 = load i32, ptr getelementptr inbounds (i8, ptr @h, i64 24), align 8, !tbaa !5
  %.not22.5 = icmp eq i32 %40, 0
  br i1 %.not22.5, label %41, label %.preheader23.6

41:                                               ; preds = %.preheader23.5
  store i32 %39, ptr getelementptr inbounds (i8, ptr @h, i64 24), align 8, !tbaa !5
  %42 = xor i32 %39, 6
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [16 x i64], ptr @v, i64 0, i64 %43
  %45 = load i64, ptr %44, align 8, !tbaa !9
  %46 = sub nsw i64 %20, %45
  store i64 %46, ptr getelementptr inbounds (i8, ptr @v, i64 48), align 16, !tbaa !9
  br label %.preheader23.6

.preheader23.6:                                   ; preds = %41, %.preheader23.5
  %47 = phi i32 [ %39, %41 ], [ %40, %.preheader23.5 ]
  %48 = load i32, ptr getelementptr inbounds (i8, ptr @h, i64 28), align 4, !tbaa !5
  %.not22.6 = icmp eq i32 %48, 0
  br i1 %.not22.6, label %49, label %.preheader23.8

49:                                               ; preds = %.preheader23.6
  store i32 %47, ptr getelementptr inbounds (i8, ptr @h, i64 28), align 4, !tbaa !5
  %50 = xor i32 %47, 7
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [16 x i64], ptr @v, i64 0, i64 %51
  %53 = load i64, ptr %52, align 8, !tbaa !9
  %54 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 56), align 8, !tbaa !9
  %55 = sub nsw i64 %54, %53
  store i64 %55, ptr getelementptr inbounds (i8, ptr @v, i64 56), align 8, !tbaa !9
  br label %.preheader23.8

.preheader23.8:                                   ; preds = %.preheader23.6, %49
  %56 = load i32, ptr getelementptr inbounds (i8, ptr @h, i64 36), align 4, !tbaa !5
  %.not22.8 = icmp eq i32 %56, 0
  br i1 %.not22.8, label %57, label %.preheader23.9

57:                                               ; preds = %.preheader23.8
  store i32 8, ptr getelementptr inbounds (i8, ptr @h, i64 36), align 4, !tbaa !5
  %58 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 8), align 8, !tbaa !9
  %59 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 72), align 8, !tbaa !9
  %60 = sub nsw i64 %59, %58
  store i64 %60, ptr getelementptr inbounds (i8, ptr @v, i64 72), align 8, !tbaa !9
  br label %.preheader23.9

.preheader23.9:                                   ; preds = %57, %.preheader23.8
  %61 = phi i32 [ 8, %57 ], [ %56, %.preheader23.8 ]
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @h, i64 40), align 8, !tbaa !5
  %.not22.9 = icmp eq i32 %62, 0
  br i1 %.not22.9, label %63, label %.preheader23.10

63:                                               ; preds = %.preheader23.9
  store i32 %61, ptr getelementptr inbounds (i8, ptr @h, i64 40), align 8, !tbaa !5
  %64 = xor i32 %61, 10
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [16 x i64], ptr @v, i64 0, i64 %65
  %67 = load i64, ptr %66, align 8, !tbaa !9
  %68 = sub nsw i64 %24, %67
  store i64 %68, ptr getelementptr inbounds (i8, ptr @v, i64 80), align 16, !tbaa !9
  br label %.preheader23.10

.preheader23.10:                                  ; preds = %63, %.preheader23.9
  %69 = phi i32 [ %61, %63 ], [ %62, %.preheader23.9 ]
  %70 = load i32, ptr getelementptr inbounds (i8, ptr @h, i64 44), align 4, !tbaa !5
  %.not22.10 = icmp eq i32 %70, 0
  br i1 %.not22.10, label %71, label %.preheader23.11

71:                                               ; preds = %.preheader23.10
  store i32 %69, ptr getelementptr inbounds (i8, ptr @h, i64 44), align 4, !tbaa !5
  %72 = xor i32 %69, 11
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [16 x i64], ptr @v, i64 0, i64 %73
  %75 = load i64, ptr %74, align 8, !tbaa !9
  %76 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 88), align 8, !tbaa !9
  %77 = sub nsw i64 %76, %75
  store i64 %77, ptr getelementptr inbounds (i8, ptr @v, i64 88), align 8, !tbaa !9
  br label %.preheader23.11

.preheader23.11:                                  ; preds = %71, %.preheader23.10
  %78 = phi i32 [ %69, %71 ], [ %70, %.preheader23.10 ]
  %79 = load i32, ptr getelementptr inbounds (i8, ptr @h, i64 48), align 16, !tbaa !5
  %.not22.11 = icmp eq i32 %79, 0
  br i1 %.not22.11, label %80, label %.preheader23.12

80:                                               ; preds = %.preheader23.11
  store i32 %78, ptr getelementptr inbounds (i8, ptr @h, i64 48), align 16, !tbaa !5
  %81 = xor i32 %78, 12
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [16 x i64], ptr @v, i64 0, i64 %82
  %84 = load i64, ptr %83, align 8, !tbaa !9
  %85 = sub nsw i64 %26, %84
  store i64 %85, ptr getelementptr inbounds (i8, ptr @v, i64 96), align 16, !tbaa !9
  br label %.preheader23.12

.preheader23.12:                                  ; preds = %80, %.preheader23.11
  %86 = phi i32 [ %78, %80 ], [ %79, %.preheader23.11 ]
  %87 = load i32, ptr getelementptr inbounds (i8, ptr @h, i64 52), align 4, !tbaa !5
  %.not22.12 = icmp eq i32 %87, 0
  br i1 %.not22.12, label %88, label %.preheader23.13

88:                                               ; preds = %.preheader23.12
  store i32 %86, ptr getelementptr inbounds (i8, ptr @h, i64 52), align 4, !tbaa !5
  %89 = xor i32 %86, 13
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [16 x i64], ptr @v, i64 0, i64 %90
  %92 = load i64, ptr %91, align 8, !tbaa !9
  %93 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 104), align 8, !tbaa !9
  %94 = sub nsw i64 %93, %92
  store i64 %94, ptr getelementptr inbounds (i8, ptr @v, i64 104), align 8, !tbaa !9
  br label %.preheader23.13

.preheader23.13:                                  ; preds = %88, %.preheader23.12
  %95 = phi i32 [ %86, %88 ], [ %87, %.preheader23.12 ]
  %96 = load i32, ptr getelementptr inbounds (i8, ptr @h, i64 56), align 8, !tbaa !5
  %.not22.13 = icmp eq i32 %96, 0
  br i1 %.not22.13, label %97, label %.preheader23.14

97:                                               ; preds = %.preheader23.13
  store i32 %95, ptr getelementptr inbounds (i8, ptr @h, i64 56), align 8, !tbaa !5
  %98 = xor i32 %95, 14
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [16 x i64], ptr @v, i64 0, i64 %99
  %101 = load i64, ptr %100, align 8, !tbaa !9
  %102 = sub nsw i64 %28, %101
  store i64 %102, ptr getelementptr inbounds (i8, ptr @v, i64 112), align 16, !tbaa !9
  br label %.preheader23.14

.preheader23.14:                                  ; preds = %97, %.preheader23.13
  %103 = phi i32 [ %95, %97 ], [ %96, %.preheader23.13 ]
  %104 = load i32, ptr getelementptr inbounds (i8, ptr @h, i64 60), align 4, !tbaa !5
  %.not22.14 = icmp eq i32 %104, 0
  br i1 %.not22.14, label %105, label %.preheader.preheader

105:                                              ; preds = %.preheader23.14
  store i32 %103, ptr getelementptr inbounds (i8, ptr @h, i64 60), align 4, !tbaa !5
  %106 = xor i32 %103, 15
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [16 x i64], ptr @v, i64 0, i64 %107
  %109 = load i64, ptr %108, align 8, !tbaa !9
  %110 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 120), align 8, !tbaa !9
  %111 = sub nsw i64 %110, %109
  store i64 %111, ptr getelementptr inbounds (i8, ptr @v, i64 120), align 8, !tbaa !9
  br label %.preheader.preheader

.preheader.preheader:                             ; preds = %105, %.preheader23.14
  %112 = load i8, ptr @.str.3, align 1, !tbaa !13
  %113 = sext i8 %112 to i32
  %114 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %14, i32 noundef %113)
  %115 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 8), align 8, !tbaa !9
  %116 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %115, i32 noundef %113)
  %117 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 16), align 16, !tbaa !9
  %118 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %117, i32 noundef %113)
  %119 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 24), align 8, !tbaa !9
  %120 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %119, i32 noundef %113)
  %121 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 32), align 16, !tbaa !9
  %122 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %121, i32 noundef %113)
  %123 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 40), align 8, !tbaa !9
  %124 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %123, i32 noundef %113)
  %125 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 48), align 16, !tbaa !9
  %126 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %125, i32 noundef %113)
  %127 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 56), align 8, !tbaa !9
  %128 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %127, i32 noundef %113)
  %129 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 64), align 16, !tbaa !9
  %130 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %129, i32 noundef %113)
  %131 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 72), align 8, !tbaa !9
  %132 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %131, i32 noundef %113)
  %133 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 80), align 16, !tbaa !9
  %134 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %133, i32 noundef %113)
  %135 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 88), align 8, !tbaa !9
  %136 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %135, i32 noundef %113)
  %137 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 96), align 16, !tbaa !9
  %138 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %137, i32 noundef %113)
  %139 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 104), align 8, !tbaa !9
  %140 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %139, i32 noundef %113)
  %141 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 112), align 16, !tbaa !9
  %142 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %141, i32 noundef %113)
  %143 = load i64, ptr getelementptr inbounds (i8, ptr @v, i64 120), align 8, !tbaa !9
  %144 = load i8, ptr getelementptr inbounds (i8, ptr @.str.3, i64 1), align 1, !tbaa !13
  %145 = sext i8 %144 to i32
  %146 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %143, i32 noundef %145)
  ret i32 0
}

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

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

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

; 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" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!7, !7, i64 0}


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