; LLVM IR from lzyrapx/Competitive-Programming :: LibreOJ (106（Splay）（104基础上加区间）)

; 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
@left = external dso_local global i32, align 4
@right = external dso_local global i32, align 4
@qc = external dso_local global i32, align 4
@qv = external dso_local global i32, align 4
@A = external dso_local global [50010 x i32], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z7InsertXiii(i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z7DeleteXiii(i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z5RankXiii(i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z5NumbXv() #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4PreXiii(i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4SucXiii(i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5Buildiii(i32 noundef, i32 noundef, i32 noundef) #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
  store i32 0, ptr %1, align 4
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m)
  %9 = load i32, ptr @n, align 4, !tbaa !5
  call void @_Z5Buildiii(i32 noundef 1, i32 noundef 1, i32 noundef %9)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %10

10:                                               ; preds = %20, %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 %2) #4
  br label %23

15:                                               ; preds = %10
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds [50010 x i32], ptr @A, i64 0, i64 %17
  %19 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %18)
  br label %20

20:                                               ; preds = %15
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = add nsw i32 %21, 1
  store i32 %22, ptr %2, align 4, !tbaa !5
  br label %10, !llvm.loop !9

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

24:                                               ; preds = %36, %23
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = load i32, ptr @n, align 4, !tbaa !5
  %27 = icmp sle i32 %25, %26
  br i1 %27, label %29, label %28

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

29:                                               ; preds = %24
  %30 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %30, ptr @qv, align 4, !tbaa !5
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [50010 x i32], ptr @A, i64 0, i64 %32
  %34 = load i32, ptr %33, align 4, !tbaa !5
  store i32 %34, ptr @qc, align 4, !tbaa !5
  %35 = load i32, ptr @n, align 4, !tbaa !5
  call void @_Z7InsertXiii(i32 noundef 1, i32 noundef 1, i32 noundef %35)
  br label %36

36:                                               ; preds = %29
  %37 = load i32, ptr %3, align 4, !tbaa !5
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %3, align 4, !tbaa !5
  br label %24, !llvm.loop !11

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

40:                                               ; preds = %97, %39
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = load i32, ptr @m, align 4, !tbaa !5
  %43 = icmp sle i32 %41, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %100

45:                                               ; preds = %40
  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
  %46 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %5)
  %47 = load i32, ptr %5, align 4, !tbaa !5
  %48 = icmp eq i32 %47, 1
  br i1 %48, label %49, label %55

49:                                               ; preds = %45
  %50 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef @left, ptr noundef @right, ptr noundef @qc)
  %51 = load i32, ptr @n, align 4, !tbaa !5
  %52 = call noundef i32 @_Z5RankXiii(i32 noundef 1, i32 noundef 1, i32 noundef %51)
  %53 = add nsw i32 %52, 1
  %54 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %53)
  br label %55

55:                                               ; preds = %49, %45
  %56 = load i32, ptr %5, align 4, !tbaa !5
  %57 = icmp eq i32 %56, 2
  br i1 %57, label %58, label %62

58:                                               ; preds = %55
  %59 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef @left, ptr noundef @right, ptr noundef @qv)
  %60 = call noundef i32 @_Z5NumbXv()
  %61 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %60)
  br label %62

62:                                               ; preds = %58, %55
  %63 = load i32, ptr %5, align 4, !tbaa !5
  %64 = icmp eq i32 %63, 3
  br i1 %64, label %65, label %80

65:                                               ; preds = %62
  %66 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %6, ptr noundef %7)
  %67 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %67, ptr @qv, align 4, !tbaa !5
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [50010 x i32], ptr @A, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !5
  store i32 %71, ptr @qc, align 4, !tbaa !5
  %72 = load i32, ptr @n, align 4, !tbaa !5
  call void @_Z7DeleteXiii(i32 noundef 1, i32 noundef 1, i32 noundef %72)
  %73 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %73, ptr @qv, align 4, !tbaa !5
  %74 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %74, ptr @qc, align 4, !tbaa !5
  %75 = load i32, ptr @n, align 4, !tbaa !5
  call void @_Z7InsertXiii(i32 noundef 1, i32 noundef 1, i32 noundef %75)
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = load i32, ptr %6, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [50010 x i32], ptr @A, i64 0, i64 %78
  store i32 %76, ptr %79, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %65, %62
  %81 = load i32, ptr %5, align 4, !tbaa !5
  %82 = icmp eq i32 %81, 4
  br i1 %82, label %83, label %88

83:                                               ; preds = %80
  %84 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef @left, ptr noundef @right, ptr noundef @qc)
  %85 = load i32, ptr @n, align 4, !tbaa !5
  %86 = call noundef i32 @_Z4PreXiii(i32 noundef 1, i32 noundef 1, i32 noundef %85)
  %87 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %86)
  br label %88

88:                                               ; preds = %83, %80
  %89 = load i32, ptr %5, align 4, !tbaa !5
  %90 = icmp eq i32 %89, 5
  br i1 %90, label %91, label %96

91:                                               ; preds = %88
  %92 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef @left, ptr noundef @right, ptr noundef @qc)
  %93 = load i32, ptr @n, align 4, !tbaa !5
  %94 = call noundef i32 @_Z4SucXiii(i32 noundef 1, i32 noundef 1, i32 noundef %93)
  %95 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %94)
  br label %96

96:                                               ; preds = %91, %88
  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
  br label %97

97:                                               ; preds = %96
  %98 = load i32, ptr %4, align 4, !tbaa !5
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %4, align 4, !tbaa !5
  br label %40, !llvm.loop !12

100:                                              ; preds = %44
  ret i32 0
}

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

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

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

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@left = external dso_local global i32, align 4
@right = external dso_local global i32, align 4
@qc = external dso_local global i32, align 4
@qv = external dso_local global i32, align 4
@A = external dso_local global [50010 x i32], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z7InsertXiii(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z7DeleteXiii(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z5RankXiii(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z5NumbXv() local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4PreXiii(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4SucXiii(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5Buildiii(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #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 = load i32, ptr @n, align 4, !tbaa !5
  tail call void @_Z5Buildiii(i32 noundef 1, i32 noundef 1, i32 noundef %5)
  %6 = load i32, ptr @n, align 4, !tbaa !5
  %.not15 = icmp slt i32 %6, 1
  br i1 %.not15, label %.preheader, label %.lr.ph

.preheader14:                                     ; preds = %.lr.ph
  %.not1117 = icmp slt i32 %9, 1
  br i1 %.not1117, label %.preheader, label %.lr.ph19

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %7 = getelementptr inbounds [50010 x i32], ptr @A, i64 0, i64 %indvars.iv
  %8 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %7)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %9 = load i32, ptr @n, align 4, !tbaa !5
  %10 = sext i32 %9 to i64
  %.not.not = icmp slt i64 %indvars.iv, %10
  br i1 %.not.not, label %.lr.ph, label %.preheader14, !llvm.loop !9

.preheader:                                       ; preds = %.lr.ph19, %0, %.preheader14
  %11 = load i32, ptr @m, align 4, !tbaa !5
  %.not1220 = icmp slt i32 %11, 1
  br i1 %.not1220, label %._crit_edge, label %.lr.ph22

.lr.ph19:                                         ; preds = %.preheader14, %.lr.ph19
  %indvars.iv24 = phi i64 [ %indvars.iv.next25, %.lr.ph19 ], [ 1, %.preheader14 ]
  %12 = phi i32 [ %16, %.lr.ph19 ], [ %9, %.preheader14 ]
  %13 = trunc nuw nsw i64 %indvars.iv24 to i32
  store i32 %13, ptr @qv, align 4, !tbaa !5
  %14 = getelementptr inbounds [50010 x i32], ptr @A, i64 0, i64 %indvars.iv24
  %15 = load i32, ptr %14, align 4, !tbaa !5
  store i32 %15, ptr @qc, align 4, !tbaa !5
  tail call void @_Z7InsertXiii(i32 noundef 1, i32 noundef 1, i32 noundef %12)
  %indvars.iv.next25 = add nuw nsw i64 %indvars.iv24, 1
  %16 = load i32, ptr @n, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %.not11.not = icmp slt i64 %indvars.iv24, %17
  br i1 %.not11.not, label %.lr.ph19, label %.preheader, !llvm.loop !11

._crit_edge:                                      ; preds = %67, %.preheader
  ret i32 0

.lr.ph22:                                         ; preds = %.preheader, %67
  %.021 = phi i32 [ %68, %67 ], [ 1, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  %18 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1)
  %19 = load i32, ptr %1, align 4, !tbaa !5
  %20 = icmp eq i32 %19, 1
  br i1 %20, label %21, label %27

21:                                               ; preds = %.lr.ph22
  %22 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull @left, ptr noundef nonnull @right, ptr noundef nonnull @qc)
  %23 = load i32, ptr @n, align 4, !tbaa !5
  %24 = call noundef i32 @_Z5RankXiii(i32 noundef 1, i32 noundef 1, i32 noundef %23)
  %25 = add nsw i32 %24, 1
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %25)
  %.pr = load i32, ptr %1, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %21, %.lr.ph22
  %28 = phi i32 [ %.pr, %21 ], [ %19, %.lr.ph22 ]
  %29 = icmp eq i32 %28, 2
  br i1 %29, label %30, label %34

30:                                               ; preds = %27
  %31 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull @left, ptr noundef nonnull @right, ptr noundef nonnull @qv)
  %32 = call noundef i32 @_Z5NumbXv()
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %32)
  %.pre = load i32, ptr %1, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %30, %27
  %35 = phi i32 [ %.pre, %30 ], [ %28, %27 ]
  %36 = icmp eq i32 %35, 3
  br i1 %36, label %37, label %51

37:                                               ; preds = %34
  %38 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %39 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %39, ptr @qv, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [50010 x i32], ptr @A, i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !5
  store i32 %42, ptr @qc, align 4, !tbaa !5
  %43 = load i32, ptr @n, align 4, !tbaa !5
  call void @_Z7DeleteXiii(i32 noundef 1, i32 noundef 1, i32 noundef %43)
  %44 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %44, ptr @qv, align 4, !tbaa !5
  %45 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %45, ptr @qc, align 4, !tbaa !5
  %46 = load i32, ptr @n, align 4, !tbaa !5
  call void @_Z7InsertXiii(i32 noundef 1, i32 noundef 1, i32 noundef %46)
  %47 = load i32, ptr %3, align 4, !tbaa !5
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [50010 x i32], ptr @A, i64 0, i64 %49
  store i32 %47, ptr %50, align 4, !tbaa !5
  %.pr13 = load i32, ptr %1, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %37, %34
  %52 = phi i32 [ %.pr13, %37 ], [ %35, %34 ]
  %53 = icmp eq i32 %52, 4
  br i1 %53, label %54, label %59

54:                                               ; preds = %51
  %55 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull @left, ptr noundef nonnull @right, ptr noundef nonnull @qc)
  %56 = load i32, ptr @n, align 4, !tbaa !5
  %57 = call noundef i32 @_Z4PreXiii(i32 noundef 1, i32 noundef 1, i32 noundef %56)
  %58 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %57)
  %.pre27 = load i32, ptr %1, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %54, %51
  %60 = phi i32 [ %.pre27, %54 ], [ %52, %51 ]
  %61 = icmp eq i32 %60, 5
  br i1 %61, label %62, label %67

62:                                               ; preds = %59
  %63 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull @left, ptr noundef nonnull @right, ptr noundef nonnull @qc)
  %64 = load i32, ptr @n, align 4, !tbaa !5
  %65 = call noundef i32 @_Z4SucXiii(i32 noundef 1, i32 noundef 1, i32 noundef %64)
  %66 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %65)
  br label %67

67:                                               ; preds = %62, %59
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  %68 = add nuw nsw i32 %.021, 1
  %69 = load i32, ptr @m, align 4, !tbaa !5
  %.not12.not = icmp slt i32 %.021, %69
  br i1 %.not12.not, label %.lr.ph22, label %._crit_edge, !llvm.loop !12
}

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

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

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


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