; LLVM IR from Dev-XYS/Algorithms :: Bigraph-Matching(Improved-Shortest-Augmenting-Path) (main)

; 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.vertex = type { i32, i32 }
%struct.edge = type { i32, i32, i32 }

@V = external dso_local global [1010 x %struct.vertex], align 16
@E = external dso_local global [502010 x %struct.edge], align 16
@nl = external dso_local global i32, align 4
@nr = external dso_local global i32, align 4
@iec = external dso_local global i32, align 4
@src = external dso_local global i32, align 4
@sink = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z4initv() #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z8add_edgeiii(i32 noundef, i32 noundef, 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 uwtable
declare dso_local noundef i32 @_Z8max_flowv() #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %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
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @nl, ptr noundef @nr, ptr noundef @iec)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %12

12:                                               ; preds = %27, %0
  %13 = load i32, ptr %4, align 4, !tbaa !5
  %14 = load i32, ptr @iec, align 4, !tbaa !5
  %15 = icmp slt i32 %13, %14
  br i1 %15, label %17, label %16

16:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %30

17:                                               ; preds = %12
  %18 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3)
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = load i32, ptr @nl, align 4, !tbaa !5
  %22 = add nsw i32 %20, %21
  call void @_Z8add_edgeiii(i32 noundef %19, i32 noundef %22, i32 noundef 1)
  %23 = load i32, ptr %3, align 4, !tbaa !5
  %24 = load i32, ptr @nl, align 4, !tbaa !5
  %25 = add nsw i32 %23, %24
  %26 = load i32, ptr %2, align 4, !tbaa !5
  call void @_Z8add_edgeiii(i32 noundef %25, i32 noundef %26, i32 noundef 0)
  br label %27

27:                                               ; preds = %17
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr %4, align 4, !tbaa !5
  br label %12, !llvm.loop !9

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

31:                                               ; preds = %41, %30
  %32 = load i32, ptr %5, align 4, !tbaa !5
  %33 = load i32, ptr @nl, align 4, !tbaa !5
  %34 = icmp sle i32 %32, %33
  br i1 %34, label %36, label %35

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

36:                                               ; preds = %31
  %37 = load i32, ptr @src, align 4, !tbaa !5
  %38 = load i32, ptr %5, align 4, !tbaa !5
  call void @_Z8add_edgeiii(i32 noundef %37, i32 noundef %38, i32 noundef 1)
  %39 = load i32, ptr %5, align 4, !tbaa !5
  %40 = load i32, ptr @src, align 4, !tbaa !5
  call void @_Z8add_edgeiii(i32 noundef %39, i32 noundef %40, i32 noundef 0)
  br label %41

41:                                               ; preds = %36
  %42 = load i32, ptr %5, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %5, align 4, !tbaa !5
  br label %31, !llvm.loop !11

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

45:                                               ; preds = %59, %44
  %46 = load i32, ptr %6, align 4, !tbaa !5
  %47 = load i32, ptr @nr, align 4, !tbaa !5
  %48 = icmp sle i32 %46, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %62

50:                                               ; preds = %45
  %51 = load i32, ptr %6, align 4, !tbaa !5
  %52 = load i32, ptr @nl, align 4, !tbaa !5
  %53 = add nsw i32 %51, %52
  %54 = load i32, ptr @sink, align 4, !tbaa !5
  call void @_Z8add_edgeiii(i32 noundef %53, i32 noundef %54, i32 noundef 1)
  %55 = load i32, ptr @sink, align 4, !tbaa !5
  %56 = load i32, ptr %6, align 4, !tbaa !5
  %57 = load i32, ptr @nl, align 4, !tbaa !5
  %58 = add nsw i32 %56, %57
  call void @_Z8add_edgeiii(i32 noundef %55, i32 noundef %58, i32 noundef 0)
  br label %59

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

62:                                               ; preds = %49
  call void @_Z4initv()
  %63 = call noundef i32 @_Z8max_flowv()
  %64 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %63)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %120, %62
  %66 = load i32, ptr %7, align 4, !tbaa !5
  %67 = load i32, ptr @nl, align 4, !tbaa !5
  %68 = icmp sle i32 %66, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %65
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %123

70:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #5
  store i8 0, ptr %9, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %71 = load i32, ptr %7, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [1010 x %struct.vertex], ptr @V, i64 0, i64 %72
  %74 = getelementptr inbounds %struct.vertex, ptr %73, i32 0, i32 0
  %75 = load i32, ptr %74, align 8, !tbaa !15
  store i32 %75, ptr %10, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %105, %70
  %77 = load i32, ptr %10, align 4, !tbaa !5
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %80, label %79

79:                                               ; preds = %76
  store i32 14, ptr %8, align 4
  br label %111

80:                                               ; preds = %76
  %81 = load i32, ptr %10, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [502010 x %struct.edge], ptr @E, i64 0, i64 %82
  %84 = getelementptr inbounds %struct.edge, ptr %83, i32 0, i32 0
  %85 = load i32, ptr %84, align 4, !tbaa !17
  %86 = load i32, ptr @src, align 4, !tbaa !5
  %87 = icmp ne i32 %85, %86
  br i1 %87, label %88, label %104

88:                                               ; preds = %80
  %89 = load i32, ptr %10, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [502010 x %struct.edge], ptr @E, i64 0, i64 %90
  %92 = getelementptr inbounds %struct.edge, ptr %91, i32 0, i32 2
  %93 = load i32, ptr %92, align 4, !tbaa !19
  %94 = icmp eq i32 %93, 0
  br i1 %94, label %95, label %104

95:                                               ; preds = %88
  %96 = load i32, ptr %10, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [502010 x %struct.edge], ptr @E, i64 0, i64 %97
  %99 = getelementptr inbounds %struct.edge, ptr %98, i32 0, i32 0
  %100 = load i32, ptr %99, align 4, !tbaa !17
  %101 = load i32, ptr @nl, align 4, !tbaa !5
  %102 = sub nsw i32 %100, %101
  %103 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %102)
  store i8 1, ptr %9, align 1, !tbaa !13
  store i32 14, ptr %8, align 4
  br label %111

104:                                              ; preds = %88, %80
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %10, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [502010 x %struct.edge], ptr @E, i64 0, i64 %107
  %109 = getelementptr inbounds %struct.edge, ptr %108, i32 0, i32 1
  %110 = load i32, ptr %109, align 4, !tbaa !20
  store i32 %110, ptr %10, align 4, !tbaa !5
  br label %76, !llvm.loop !21

111:                                              ; preds = %95, %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %112

112:                                              ; preds = %111
  %113 = load i8, ptr %9, align 1, !tbaa !13, !range !22, !noundef !23
  %114 = trunc i8 %113 to i1
  %115 = zext i1 %114 to i32
  %116 = icmp eq i32 %115, 0
  br i1 %116, label %117, label %119

117:                                              ; preds = %112
  %118 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  br label %119

119:                                              ; preds = %117, %112
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  br label %120

120:                                              ; preds = %119
  %121 = load i32, ptr %7, align 4, !tbaa !5
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %7, align 4, !tbaa !5
  br label %65, !llvm.loop !24

123:                                              ; preds = %69
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %124 = load i32, ptr %1, align 4
  ret i32 %124
}

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { "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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTS6vertex", !6, i64 0, !6, i64 4}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTS4edge", !6, i64 0, !6, i64 4, !6, i64 8}
!19 = !{!18, !6, i64 8}
!20 = !{!18, !6, i64 4}
!21 = distinct !{!21, !10}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = distinct !{!24, !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"

%struct.vertex = type { i32, i32 }
%struct.edge = type { i32, i32, i32 }

@V = external dso_local local_unnamed_addr global [1010 x %struct.vertex], align 16
@E = external dso_local local_unnamed_addr global [502010 x %struct.edge], align 16
@nl = external dso_local global i32, align 4
@nr = external dso_local global i32, align 4
@iec = external dso_local global i32, align 4
@src = external dso_local local_unnamed_addr global i32, align 4
@sink = external dso_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z4initv() local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z8add_edgeiii(i32 noundef, i32 noundef, 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 uwtable
declare dso_local noundef i32 @_Z8max_flowv() local_unnamed_addr #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @nl, ptr noundef nonnull @nr, ptr noundef nonnull @iec)
  %4 = load i32, ptr @iec, align 4, !tbaa !5
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.lr.ph, label %.preheader30

.preheader30:                                     ; preds = %.lr.ph, %0
  %6 = load i32, ptr @nl, align 4, !tbaa !5
  %.not32 = icmp slt i32 %6, 1
  br i1 %.not32, label %.preheader, label %.lr.ph34

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.02431 = phi i32 [ %16, %.lr.ph ], [ 0, %0 ]
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %8 = load i32, ptr %1, align 4, !tbaa !5
  %9 = load i32, ptr %2, align 4, !tbaa !5
  %10 = load i32, ptr @nl, align 4, !tbaa !5
  %11 = add nsw i32 %10, %9
  call void @_Z8add_edgeiii(i32 noundef %8, i32 noundef %11, i32 noundef 1)
  %12 = load i32, ptr %2, align 4, !tbaa !5
  %13 = load i32, ptr @nl, align 4, !tbaa !5
  %14 = add nsw i32 %13, %12
  %15 = load i32, ptr %1, align 4, !tbaa !5
  call void @_Z8add_edgeiii(i32 noundef %14, i32 noundef %15, i32 noundef 0)
  %16 = add nuw nsw i32 %.02431, 1
  %17 = load i32, ptr @iec, align 4, !tbaa !5
  %18 = icmp slt i32 %16, %17
  br i1 %18, label %.lr.ph, label %.preheader30, !llvm.loop !9

.preheader:                                       ; preds = %.lr.ph34, %.preheader30
  %19 = load i32, ptr @nr, align 4, !tbaa !5
  %.not2635 = icmp slt i32 %19, 1
  br i1 %.not2635, label %._crit_edge, label %.lr.ph37

.lr.ph34:                                         ; preds = %.preheader30, %.lr.ph34
  %.02333 = phi i32 [ %22, %.lr.ph34 ], [ 1, %.preheader30 ]
  %20 = load i32, ptr @src, align 4, !tbaa !5
  call void @_Z8add_edgeiii(i32 noundef %20, i32 noundef %.02333, i32 noundef 1)
  %21 = load i32, ptr @src, align 4, !tbaa !5
  call void @_Z8add_edgeiii(i32 noundef %.02333, i32 noundef %21, i32 noundef 0)
  %22 = add nuw nsw i32 %.02333, 1
  %23 = load i32, ptr @nl, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.02333, %23
  br i1 %.not.not, label %.lr.ph34, label %.preheader, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph37, %.preheader
  call void @_Z4initv()
  %24 = call noundef i32 @_Z8max_flowv()
  %25 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %24)
  %26 = load i32, ptr @nl, align 4, !tbaa !5
  %.not2743 = icmp slt i32 %26, 1
  br i1 %.not2743, label %._crit_edge47, label %.lr.ph46

.lr.ph37:                                         ; preds = %.preheader, %.lr.ph37
  %.02236 = phi i32 [ %33, %.lr.ph37 ], [ 1, %.preheader ]
  %27 = load i32, ptr @nl, align 4, !tbaa !5
  %28 = add nsw i32 %27, %.02236
  %29 = load i32, ptr @sink, align 4, !tbaa !5
  call void @_Z8add_edgeiii(i32 noundef %28, i32 noundef %29, i32 noundef 1)
  %30 = load i32, ptr @sink, align 4, !tbaa !5
  %31 = load i32, ptr @nl, align 4, !tbaa !5
  %32 = add nsw i32 %31, %.02236
  call void @_Z8add_edgeiii(i32 noundef %30, i32 noundef %32, i32 noundef 0)
  %33 = add nuw nsw i32 %.02236, 1
  %34 = load i32, ptr @nr, align 4, !tbaa !5
  %.not26.not = icmp slt i32 %.02236, %34
  br i1 %.not26.not, label %.lr.ph37, label %._crit_edge, !llvm.loop !12

._crit_edge47:                                    ; preds = %52, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret i32 0

.lr.ph46:                                         ; preds = %._crit_edge, %52
  %indvars.iv = phi i64 [ %indvars.iv.next, %52 ], [ 1, %._crit_edge ]
  %35 = phi i32 [ %53, %52 ], [ %26, %._crit_edge ]
  %36 = getelementptr inbounds [1010 x %struct.vertex], ptr @V, i64 0, i64 %indvars.iv
  %.038 = load i32, ptr %36, align 8, !tbaa !5
  %.not28.not39 = icmp eq i32 %.038, 0
  br i1 %.not28.not39, label %.critedge, label %.lr.ph42

.lr.ph42:                                         ; preds = %.lr.ph46
  %37 = load i32, ptr @src, align 4, !tbaa !5
  br label %38

38:                                               ; preds = %.lr.ph42, %49
  %.040 = phi i32 [ %.038, %.lr.ph42 ], [ %.0, %49 ]
  %39 = sext i32 %.040 to i64
  %40 = getelementptr inbounds [502010 x %struct.edge], ptr @E, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !13
  %.not29 = icmp eq i32 %41, %37
  br i1 %.not29, label %49, label %42

42:                                               ; preds = %38
  %43 = getelementptr inbounds i8, ptr %40, i64 8
  %44 = load i32, ptr %43, align 4, !tbaa !15
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %46, label %49

46:                                               ; preds = %42
  %47 = sub nsw i32 %41, %35
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %47)
  br label %52

49:                                               ; preds = %38, %42
  %50 = getelementptr inbounds i8, ptr %40, i64 4
  %.0 = load i32, ptr %50, align 4, !tbaa !5
  %.not28.not = icmp eq i32 %.0, 0
  br i1 %.not28.not, label %.critedge, label %38, !llvm.loop !16

.critedge:                                        ; preds = %49, %.lr.ph46
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %52

52:                                               ; preds = %46, %.critedge
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %53 = load i32, ptr @nl, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %.not27.not = icmp slt i64 %indvars.iv, %54
  br i1 %.not27.not, label %.lr.ph46, label %._crit_edge47, !llvm.loop !17
}

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { 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 #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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTS4edge", !6, i64 0, !6, i64 4, !6, i64 8}
!15 = !{!14, !6, i64 8}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}


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