; LLVM IR from tangjz/acm-icpc :: self_training/2015-02-07 (N)

; 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
@m = external dso_local global i32, align 4
@fa = external dso_local global [100001 x i32], align 16
@dist = external dso_local global [100001 x i64], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4findi(i32 noundef) #0

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %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
  %8 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  br label %9

9:                                                ; preds = %113, %0
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m)
  %11 = icmp eq i32 %10, 2
  br i1 %11, label %12, label %114

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

13:                                               ; preds = %26, %12
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = load i32, ptr @n, align 4, !tbaa !5
  %16 = icmp sle i32 %14, %15
  br i1 %16, label %18, label %17

17:                                               ; preds = %13
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %29

18:                                               ; preds = %13
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [100001 x i32], ptr @fa, i64 0, i64 %21
  store i32 %19, ptr %22, align 4, !tbaa !5
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [100001 x i64], ptr @dist, i64 0, i64 %24
  store i64 0, ptr %25, align 8, !tbaa !9
  br label %26

26:                                               ; preds = %18
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = add nsw i32 %27, 1
  store i32 %28, ptr %2, align 4, !tbaa !5
  br label %13, !llvm.loop !11

29:                                               ; preds = %17
  br label %30

30:                                               ; preds = %81, %29
  %31 = load i32, ptr @m, align 4, !tbaa !5
  %32 = add nsw i32 %31, -1
  store i32 %32, ptr @m, align 4, !tbaa !5
  %33 = icmp ne i32 %31, 0
  br i1 %33, label %34, label %82

34:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %35 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %3, ptr noundef %4, ptr noundef %5)
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = sub nsw i32 %36, 1
  %38 = call noundef i32 @_Z4findi(i32 noundef %37)
  store i32 %38, ptr %6, align 4, !tbaa !5
  %39 = load i32, ptr %4, align 4, !tbaa !5
  %40 = call noundef i32 @_Z4findi(i32 noundef %39)
  store i32 %40, ptr %7, align 4, !tbaa !5
  %41 = icmp ne i32 %38, %40
  br i1 %41, label %42, label %64

42:                                               ; preds = %34
  %43 = load i32, ptr %6, align 4, !tbaa !5
  %44 = load i32, ptr %7, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [100001 x i32], ptr @fa, i64 0, i64 %45
  store i32 %43, ptr %46, align 4, !tbaa !5
  %47 = load i32, ptr %5, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = load i32, ptr %3, align 4, !tbaa !5
  %50 = sub nsw i32 %49, 1
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [100001 x i64], ptr @dist, i64 0, i64 %51
  %53 = load i64, ptr %52, align 8, !tbaa !9
  %54 = add nsw i64 %48, %53
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [100001 x i64], ptr @dist, i64 0, i64 %56
  %58 = load i64, ptr %57, align 8, !tbaa !9
  %59 = sub nsw i64 %54, %58
  %60 = load i32, ptr %7, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [100001 x i64], ptr @dist, i64 0, i64 %61
  store i64 %59, ptr %62, align 8, !tbaa !9
  %63 = call i32 @puts(ptr noundef @.str.2)
  br label %81

64:                                               ; preds = %34
  %65 = load i32, ptr %4, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [100001 x i64], ptr @dist, i64 0, i64 %66
  %68 = load i64, ptr %67, align 8, !tbaa !9
  %69 = load i32, ptr %3, align 4, !tbaa !5
  %70 = sub nsw i32 %69, 1
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [100001 x i64], ptr @dist, i64 0, i64 %71
  %73 = load i64, ptr %72, align 8, !tbaa !9
  %74 = sub nsw i64 %68, %73
  %75 = load i32, ptr %5, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = icmp eq i64 %74, %76
  %78 = zext i1 %77 to i64
  %79 = select i1 %77, ptr @.str.2, ptr @.str.3
  %80 = call i32 @puts(ptr noundef %79)
  br label %81

81:                                               ; preds = %64, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %30, !llvm.loop !13

82:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %83

83:                                               ; preds = %110, %82
  %84 = load i32, ptr %8, align 4, !tbaa !5
  %85 = load i32, ptr @n, align 4, !tbaa !5
  %86 = icmp sle i32 %84, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %113

88:                                               ; preds = %83
  %89 = load i32, ptr %8, align 4, !tbaa !5
  %90 = sub nsw i32 %89, 1
  %91 = call noundef i32 @_Z4findi(i32 noundef %90)
  %92 = load i32, ptr %8, align 4, !tbaa !5
  %93 = call noundef i32 @_Z4findi(i32 noundef %92)
  %94 = icmp ne i32 %91, %93
  br i1 %94, label %95, label %97

95:                                               ; preds = %88
  %96 = call i32 @puts(ptr noundef @.str.4)
  br label %109

97:                                               ; preds = %88
  %98 = load i32, ptr %8, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [100001 x i64], ptr @dist, i64 0, i64 %99
  %101 = load i64, ptr %100, align 8, !tbaa !9
  %102 = load i32, ptr %8, align 4, !tbaa !5
  %103 = sub nsw i32 %102, 1
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [100001 x i64], ptr @dist, i64 0, i64 %104
  %106 = load i64, ptr %105, align 8, !tbaa !9
  %107 = sub nsw i64 %101, %106
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i64 noundef %107)
  br label %109

109:                                              ; preds = %97, %95
  br label %110

110:                                              ; preds = %109
  %111 = load i32, ptr %8, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %8, align 4, !tbaa !5
  br label %83, !llvm.loop !14

113:                                              ; preds = %87
  br label %9, !llvm.loop !15

114:                                              ; preds = %9
  ret i32 0
}

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

declare i32 @puts(ptr noundef) #3

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

attributes #0 = { mustprogress 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 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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}


; 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
@m = external dso_local global i32, align 4
@fa = external dso_local local_unnamed_addr global [100001 x i32], align 16
@dist = external dso_local local_unnamed_addr global [100001 x i64], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4findi(i32 noundef) local_unnamed_addr #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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %5 = icmp eq i32 %4, 2
  br i1 %5, label %.preheader22, label %._crit_edge

.loopexit:                                        ; preds = %76, %.preheader
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %7 = icmp eq i32 %6, 2
  br i1 %7, label %.preheader22, label %._crit_edge, !llvm.loop !5

.preheader22:                                     ; preds = %0, %.loopexit
  %8 = load i32, ptr @n, align 4, !tbaa !7
  %.not23 = icmp slt i32 %8, 0
  br i1 %.not23, label %.preheader21, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader22
  %9 = add nuw i32 %8, 1
  %10 = zext i32 %9 to i64
  %11 = shl nuw nsw i64 %10, 3
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) @dist, i8 0, i64 %11, i1 false), !tbaa !11
  %min.iters.check = icmp ult i32 %8, 7
  br i1 %min.iters.check, label %.lr.ph.preheader35, label %vector.ph

.lr.ph.preheader35:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %10, 4294967288
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %12 = getelementptr inbounds [100001 x i32], ptr @fa, i64 0, i64 %index
  %13 = getelementptr inbounds i8, ptr %12, i64 16
  store <4 x i32> %vec.ind, ptr %12, align 16, !tbaa !7
  store <4 x i32> %step.add, ptr %13, align 16, !tbaa !7
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %14 = icmp eq i64 %index.next, %n.vec
  br i1 %14, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %10
  br i1 %cmp.n, label %.preheader21, label %.lr.ph.preheader35

.preheader21:                                     ; preds = %.lr.ph, %middle.block, %.preheader22
  %15 = load i32, ptr @m, align 4, !tbaa !7
  %16 = add nsw i32 %15, -1
  store i32 %16, ptr @m, align 4, !tbaa !7
  %.not1725 = icmp eq i32 %15, 0
  br i1 %.not1725, label %.preheader, label %.lr.ph26

.lr.ph:                                           ; preds = %.lr.ph.preheader35, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader35 ]
  %17 = getelementptr inbounds [100001 x i32], ptr @fa, i64 0, i64 %indvars.iv
  %18 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %18, ptr %17, align 4, !tbaa !7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %10
  br i1 %exitcond.not, label %.preheader21, label %.lr.ph, !llvm.loop !16

.preheader.loopexit:                              ; preds = %58
  %.pre = load i32, ptr @n, align 4, !tbaa !7
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit, %.preheader21
  %19 = phi i32 [ %.pre, %.preheader.loopexit ], [ %8, %.preheader21 ]
  %.not1827 = icmp slt i32 %19, 1
  br i1 %.not1827, label %.loopexit, label %.lr.ph29

.lr.ph26:                                         ; preds = %.preheader21, %58
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %21 = load i32, ptr %1, align 4, !tbaa !7
  %22 = add nsw i32 %21, -1
  %23 = call noundef i32 @_Z4findi(i32 noundef %22)
  %24 = load i32, ptr %2, align 4, !tbaa !7
  %25 = call noundef i32 @_Z4findi(i32 noundef %24)
  %.not20 = icmp eq i32 %23, %25
  br i1 %.not20, label %43, label %26

26:                                               ; preds = %.lr.ph26
  %27 = sext i32 %25 to i64
  %28 = getelementptr inbounds [100001 x i32], ptr @fa, i64 0, i64 %27
  store i32 %23, ptr %28, align 4, !tbaa !7
  %29 = load i32, ptr %3, align 4, !tbaa !7
  %30 = sext i32 %29 to i64
  %31 = load i32, ptr %1, align 4, !tbaa !7
  %32 = add nsw i32 %31, -1
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [100001 x i64], ptr @dist, i64 0, i64 %33
  %35 = load i64, ptr %34, align 8, !tbaa !11
  %36 = add nsw i64 %35, %30
  %37 = load i32, ptr %2, align 4, !tbaa !7
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [100001 x i64], ptr @dist, i64 0, i64 %38
  %40 = load i64, ptr %39, align 8, !tbaa !11
  %41 = sub i64 %36, %40
  %42 = getelementptr inbounds [100001 x i64], ptr @dist, i64 0, i64 %27
  store i64 %41, ptr %42, align 8, !tbaa !11
  br label %58

43:                                               ; preds = %.lr.ph26
  %44 = load i32, ptr %2, align 4, !tbaa !7
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [100001 x i64], ptr @dist, i64 0, i64 %45
  %47 = load i64, ptr %46, align 8, !tbaa !11
  %48 = load i32, ptr %1, align 4, !tbaa !7
  %49 = add nsw i32 %48, -1
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [100001 x i64], ptr @dist, i64 0, i64 %50
  %52 = load i64, ptr %51, align 8, !tbaa !11
  %53 = sub nsw i64 %47, %52
  %54 = load i32, ptr %3, align 4, !tbaa !7
  %55 = sext i32 %54 to i64
  %56 = icmp eq i64 %53, %55
  %57 = select i1 %56, ptr @.str.2, ptr @.str.3
  br label %58

58:                                               ; preds = %43, %26
  %.sink = phi ptr [ %57, %43 ], [ @.str.2, %26 ]
  %59 = call i32 @puts(ptr noundef nonnull dereferenceable(1) %.sink)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  %60 = load i32, ptr @m, align 4, !tbaa !7
  %61 = add nsw i32 %60, -1
  store i32 %61, ptr @m, align 4, !tbaa !7
  %.not17 = icmp eq i32 %60, 0
  br i1 %.not17, label %.preheader.loopexit, label %.lr.ph26, !llvm.loop !17

.lr.ph29:                                         ; preds = %.preheader, %76
  %indvars.iv31 = phi i64 [ %indvars.iv.next32, %76 ], [ 1, %.preheader ]
  %62 = add nsw i64 %indvars.iv31, -1
  %63 = trunc nuw nsw i64 %62 to i32
  %64 = call noundef i32 @_Z4findi(i32 noundef %63)
  %65 = trunc nuw nsw i64 %indvars.iv31 to i32
  %66 = call noundef i32 @_Z4findi(i32 noundef %65)
  %.not19 = icmp eq i32 %64, %66
  br i1 %.not19, label %69, label %67

67:                                               ; preds = %.lr.ph29
  %68 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %76

69:                                               ; preds = %.lr.ph29
  %70 = getelementptr inbounds [100001 x i64], ptr @dist, i64 0, i64 %indvars.iv31
  %71 = load i64, ptr %70, align 8, !tbaa !11
  %72 = getelementptr inbounds [100001 x i64], ptr @dist, i64 0, i64 %62
  %73 = load i64, ptr %72, align 8, !tbaa !11
  %74 = sub nsw i64 %71, %73
  %75 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i64 noundef %74)
  br label %76

76:                                               ; preds = %67, %69
  %indvars.iv.next32 = add nuw nsw i64 %indvars.iv31, 1
  %77 = load i32, ptr @n, align 4, !tbaa !7
  %78 = sext i32 %77 to i64
  %.not18.not = icmp slt i64 %indvars.iv31, %78
  br i1 %.not18.not, label %.lr.ph29, label %.loopexit, !llvm.loop !18

._crit_edge:                                      ; preds = %.loopexit, %0
  ret i32 0
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

attributes #0 = { mustprogress 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 = { 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 #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !9, i64 0}
!13 = distinct !{!13, !6, !14, !15}
!14 = !{!"llvm.loop.isvectorized", i32 1}
!15 = !{!"llvm.loop.unroll.runtime.disable"}
!16 = distinct !{!16, !6, !15, !14}
!17 = distinct !{!17, !6}
!18 = distinct !{!18, !6}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass