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

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

%struct.Node = type { [3 x i32] }

@n = external dso_local global i32, align 4
@a = external dso_local global [100001 x %struct.Node], align 16
@b = external dso_local global %struct.Node, align 4
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 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 %struct.Node, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %struct.Node, align 4
  store i32 0, ptr %1, align 4
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 1, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  br label %10

10:                                               ; preds = %33, %0
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = load i32, ptr @n, align 4, !tbaa !5
  %13 = icmp sle i32 %11, %12
  br i1 %13, label %15, label %14

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

15:                                               ; preds = %10
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %3)
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = sub nsw i32 %17, 1
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [100001 x %struct.Node], ptr @a, i64 0, i64 %19
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [100001 x %struct.Node], ptr @a, i64 0, i64 %22
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %20, i64 12, i1 false), !tbaa.struct !9
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [100001 x %struct.Node], ptr @a, i64 0, i64 %25
  %27 = getelementptr inbounds %struct.Node, ptr %26, i32 0, i32 0
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [3 x i32], ptr %27, i64 0, i64 %29
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %30, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %15
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %2, align 4, !tbaa !5
  br label %10, !llvm.loop !11

36:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 12, ptr %4) #5
  %37 = getelementptr inbounds %struct.Node, ptr %4, i32 0, i32 0
  %38 = load i32, ptr @n, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [100001 x %struct.Node], ptr @a, i64 0, i64 %39
  %41 = getelementptr inbounds %struct.Node, ptr %40, i32 0, i32 0
  %42 = getelementptr inbounds [3 x i32], ptr %41, i64 0, i64 0
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = ashr i32 %43, 1
  store i32 %44, ptr %37, align 4, !tbaa !5
  %45 = getelementptr inbounds i32, ptr %37, i64 1
  %46 = load i32, ptr @n, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [100001 x %struct.Node], ptr @a, i64 0, i64 %47
  %49 = getelementptr inbounds %struct.Node, ptr %48, i32 0, i32 0
  %50 = getelementptr inbounds [3 x i32], ptr %49, i64 0, i64 1
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = ashr i32 %51, 1
  store i32 %52, ptr %45, align 4, !tbaa !5
  %53 = getelementptr inbounds i32, ptr %37, i64 2
  %54 = load i32, ptr @n, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [100001 x %struct.Node], ptr @a, i64 0, i64 %55
  %57 = getelementptr inbounds %struct.Node, ptr %56, i32 0, i32 0
  %58 = getelementptr inbounds [3 x i32], ptr %57, i64 0, i64 2
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = ashr i32 %59, 1
  store i32 %60, ptr %53, align 4, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 @b, ptr align 4 %4, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 12, ptr %4) #5
  %61 = load i32, ptr @n, align 4, !tbaa !5
  %62 = ashr i32 %61, 1
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [100001 x %struct.Node], ptr @a, i64 0, i64 %63
  %65 = call noundef zeroext i1 @_ZNK4NodeeqERKS_(ptr noundef nonnull align 4 dereferenceable(12) %64, ptr noundef nonnull align 4 dereferenceable(12) @b)
  br i1 %65, label %66, label %68

66:                                               ; preds = %36
  %67 = call i32 @puts(ptr noundef @.str.1)
  store i32 0, ptr %1, align 4
  br label %135

68:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 1, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %128, %68
  %70 = load i32, ptr %5, align 4, !tbaa !5
  %71 = load i32, ptr @n, align 4, !tbaa !5
  %72 = icmp sle i32 %70, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %69
  store i32 5, ptr %7, align 4
  br label %131

74:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #5
  %75 = getelementptr inbounds %struct.Node, ptr %8, i32 0, i32 0
  %76 = load i32, ptr %5, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [100001 x %struct.Node], ptr @a, i64 0, i64 %77
  %79 = getelementptr inbounds %struct.Node, ptr %78, i32 0, i32 0
  %80 = getelementptr inbounds [3 x i32], ptr %79, i64 0, i64 0
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = load i32, ptr @b, align 4, !tbaa !5
  %83 = sub nsw i32 %81, %82
  store i32 %83, ptr %75, align 4, !tbaa !5
  %84 = getelementptr inbounds i32, ptr %75, i64 1
  %85 = load i32, ptr %5, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [100001 x %struct.Node], ptr @a, i64 0, i64 %86
  %88 = getelementptr inbounds %struct.Node, ptr %87, i32 0, i32 0
  %89 = getelementptr inbounds [3 x i32], ptr %88, i64 0, i64 1
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @b, i64 0, i64 1), align 4, !tbaa !5
  %92 = sub nsw i32 %90, %91
  store i32 %92, ptr %84, align 4, !tbaa !5
  %93 = getelementptr inbounds i32, ptr %75, i64 2
  %94 = load i32, ptr %5, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [100001 x %struct.Node], ptr @a, i64 0, i64 %95
  %97 = getelementptr inbounds %struct.Node, ptr %96, i32 0, i32 0
  %98 = getelementptr inbounds [3 x i32], ptr %97, i64 0, i64 2
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @b, i64 0, i64 2), align 4, !tbaa !5
  %101 = sub nsw i32 %99, %100
  store i32 %101, ptr %93, align 4, !tbaa !5
  br label %102

102:                                              ; preds = %114, %74
  %103 = load i32, ptr %6, align 4, !tbaa !5
  %104 = load i32, ptr %5, align 4, !tbaa !5
  %105 = icmp slt i32 %103, %104
  br i1 %105, label %106, label %111

106:                                              ; preds = %102
  %107 = load i32, ptr %6, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [100001 x %struct.Node], ptr @a, i64 0, i64 %108
  %110 = call noundef zeroext i1 @_ZNK4NodeltERKS_(ptr noundef nonnull align 4 dereferenceable(12) %109, ptr noundef nonnull align 4 dereferenceable(12) %8)
  br label %111

111:                                              ; preds = %106, %102
  %112 = phi i1 [ false, %102 ], [ %110, %106 ]
  br i1 %112, label %113, label %117

113:                                              ; preds = %111
  br label %114

114:                                              ; preds = %113
  %115 = load i32, ptr %6, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %6, align 4, !tbaa !5
  br label %102, !llvm.loop !13

117:                                              ; preds = %111
  %118 = load i32, ptr %6, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [100001 x %struct.Node], ptr @a, i64 0, i64 %119
  %121 = call noundef zeroext i1 @_ZNK4NodeeqERKS_(ptr noundef nonnull align 4 dereferenceable(12) %120, ptr noundef nonnull align 4 dereferenceable(12) %8)
  br i1 %121, label %122, label %124

122:                                              ; preds = %117
  %123 = call i32 @puts(ptr noundef @.str.2)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %125

124:                                              ; preds = %117
  store i32 0, ptr %7, align 4
  br label %125

125:                                              ; preds = %124, %122
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #5
  %126 = load i32, ptr %7, align 4
  switch i32 %126, label %131 [
    i32 0, label %127
  ]

127:                                              ; preds = %125
  br label %128

128:                                              ; preds = %127
  %129 = load i32, ptr %5, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %5, align 4, !tbaa !5
  br label %69, !llvm.loop !14

131:                                              ; preds = %125, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  %132 = load i32, ptr %7, align 4
  switch i32 %132, label %137 [
    i32 5, label %133
    i32 1, label %135
  ]

133:                                              ; preds = %131
  %134 = call i32 @puts(ptr noundef @.str.3)
  store i32 0, ptr %1, align 4
  br label %135

135:                                              ; preds = %133, %131, %66
  %136 = load i32, ptr %1, align 4
  ret i32 %136

137:                                              ; preds = %131
  unreachable
}

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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4NodeeqERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #4 align 2

declare i32 @puts(ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4NodeltERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #4 align 2

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress 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 #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 12, !10}
!10 = !{!7, !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !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"

%struct.Node = type { [3 x i32] }

@n = external dso_local global i32, align 4
@a = external dso_local global [100001 x %struct.Node], align 16
@b = external dso_local global %struct.Node, align 4
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca %struct.Node, align 8
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  %4 = load i32, ptr @n, align 4, !tbaa !5
  %.not30 = icmp slt i32 %4, 1
  br i1 %.not30, label %.._crit_edge_crit_edge, label %.lr.ph

.._crit_edge_crit_edge:                           ; preds = %0
  %.pre51 = sext i32 %4 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.._crit_edge_crit_edge
  %.pre-phi52 = phi i64 [ %.pre51, %.._crit_edge_crit_edge ], [ %27, %.lr.ph ]
  %.lcssa = phi i32 [ %4, %.._crit_edge_crit_edge ], [ %26, %.lr.ph ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  %5 = getelementptr inbounds [100001 x %struct.Node], ptr @a, i64 0, i64 %.pre-phi52
  %6 = getelementptr inbounds i8, ptr %5, i64 8
  %7 = load i32, ptr %6, align 4, !tbaa !5
  %8 = ashr i32 %7, 1
  %9 = load <2 x i32>, ptr %5, align 4, !tbaa !5
  %10 = ashr <2 x i32> %9, <i32 1, i32 1>
  store <2 x i32> %10, ptr @b, align 4
  store i32 %8, ptr getelementptr inbounds (i8, ptr @b, i64 8), align 4, !tbaa !9
  %11 = ashr i32 %.lcssa, 1
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds [100001 x %struct.Node], ptr @a, i64 0, i64 %12
  %14 = call noundef zeroext i1 @_ZNK4NodeeqERKS_(ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(12) @b)
  br i1 %14, label %28, label %.preheader

.preheader:                                       ; preds = %._crit_edge
  %15 = load i32, ptr @n, align 4, !tbaa !5
  %.not2438 = icmp slt i32 %15, 1
  br i1 %.not2438, label %._crit_edge42, label %.lr.ph41

.lr.ph41:                                         ; preds = %.preheader
  %16 = getelementptr inbounds i8, ptr %2, i64 8
  br label %30

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %18 = add nsw i64 %indvars.iv, -1
  %19 = getelementptr inbounds [100001 x %struct.Node], ptr @a, i64 0, i64 %18
  %20 = getelementptr inbounds [100001 x %struct.Node], ptr @a, i64 0, i64 %indvars.iv
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(12) %19, i64 12, i1 false), !tbaa.struct !10
  %21 = load i32, ptr %1, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [3 x i32], ptr %20, i64 0, i64 %22
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr %23, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %26 = load i32, ptr @n, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %.not.not = icmp slt i64 %indvars.iv, %27
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !11

28:                                               ; preds = %._crit_edge
  %29 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %51

30:                                               ; preds = %.lr.ph41, %.critedge26
  %indvars.iv48 = phi i64 [ 1, %.lr.ph41 ], [ %indvars.iv.next49, %.critedge26 ]
  %.01840 = phi i32 [ 0, %.lr.ph41 ], [ %.119.lcssa, %.critedge26 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #5
  %31 = getelementptr inbounds [100001 x %struct.Node], ptr @a, i64 0, i64 %indvars.iv48
  %32 = load <2 x i32>, ptr %31, align 4, !tbaa !5
  %33 = load <2 x i32>, ptr @b, align 4, !tbaa !5
  %34 = sub nsw <2 x i32> %32, %33
  store <2 x i32> %34, ptr %2, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %31, i64 8
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = load i32, ptr getelementptr inbounds (i8, ptr @b, i64 8), align 4, !tbaa !5
  %38 = sub nsw i32 %36, %37
  store i32 %38, ptr %16, align 8, !tbaa !5
  %39 = sext i32 %.01840 to i64
  %40 = icmp sgt i64 %indvars.iv48, %39
  br i1 %40, label %.lr.ph34, label %.critedge

.lr.ph34:                                         ; preds = %30, %43
  %indvars.iv45 = phi i64 [ %indvars.iv.next46, %43 ], [ %39, %30 ]
  %41 = getelementptr inbounds [100001 x %struct.Node], ptr @a, i64 0, i64 %indvars.iv45
  %42 = call noundef zeroext i1 @_ZNK4NodeltERKS_(ptr noundef nonnull align 4 dereferenceable(12) %41, ptr noundef nonnull align 4 dereferenceable(12) %2)
  br i1 %42, label %43, label %.critedge.loopexit

43:                                               ; preds = %.lr.ph34
  %indvars.iv.next46 = add nsw i64 %indvars.iv45, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next46, %indvars.iv48
  br i1 %exitcond.not, label %.critedge.loopexit, label %.lr.ph34, !llvm.loop !13

.critedge.loopexit:                               ; preds = %43, %.lr.ph34
  %.119.lcssa.ph.in = phi i64 [ %indvars.iv45, %.lr.ph34 ], [ %indvars.iv48, %43 ]
  %.119.lcssa.ph = trunc i64 %.119.lcssa.ph.in to i32
  %sext = shl i64 %.119.lcssa.ph.in, 32
  %.pre = ashr exact i64 %sext, 32
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %30
  %.pre-phi = phi i64 [ %.pre, %.critedge.loopexit ], [ %39, %30 ]
  %.119.lcssa = phi i32 [ %.119.lcssa.ph, %.critedge.loopexit ], [ %.01840, %30 ]
  %44 = getelementptr inbounds [100001 x %struct.Node], ptr @a, i64 0, i64 %.pre-phi
  %45 = call noundef zeroext i1 @_ZNK4NodeeqERKS_(ptr noundef nonnull align 4 dereferenceable(12) %44, ptr noundef nonnull align 4 dereferenceable(12) %2)
  br i1 %45, label %48, label %.critedge26

.critedge26:                                      ; preds = %.critedge
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #5
  %indvars.iv.next49 = add nuw nsw i64 %indvars.iv48, 1
  %46 = load i32, ptr @n, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %.not24.not = icmp slt i64 %indvars.iv48, %47
  br i1 %.not24.not, label %30, label %._crit_edge42, !llvm.loop !14

48:                                               ; preds = %.critedge
  %49 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.2)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #5
  br label %51

._crit_edge42:                                    ; preds = %.critedge26, %.preheader
  %50 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %51

51:                                               ; preds = %48, %._crit_edge42, %28
  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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4NodeeqERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4NodeltERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4 align 2

attributes #0 = { mustprogress 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress 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 #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{i64 0, i64 12, !9}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass