; LLVM IR from ADJA/algos :: Graphs (HungarianMatching)

; 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
@a = external dso_local global [105 x [105 x i32]], align 16
@u = external dso_local global [105 x i32], align 16
@v = external dso_local global [105 x i32], align 16
@link = external dso_local global [105 x i32], align 16
@par = external dso_local global [105 x i32], align 16
@used = external dso_local global [105 x i32], align 16
@minval = external dso_local global [105 x i32], align 16
@.str = 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
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %15 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %16

16:                                               ; preds = %39, %0
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = load i32, ptr @n, align 4, !tbaa !5
  %19 = icmp sle i32 %17, %18
  br i1 %19, label %21, label %20

20:                                               ; preds = %16
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  br label %42

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

22:                                               ; preds = %35, %21
  %23 = load i32, ptr %4, align 4, !tbaa !5
  %24 = load i32, ptr @n, align 4, !tbaa !5
  %25 = icmp sle i32 %23, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %22
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  br label %38

27:                                               ; preds = %22
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [105 x [105 x i32]], ptr @a, i64 0, i64 %29
  %31 = load i32, ptr %4, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [105 x i32], ptr %30, i64 0, i64 %32
  %34 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %33)
  br label %35

35:                                               ; preds = %27
  %36 = load i32, ptr %4, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %4, align 4, !tbaa !5
  br label %22, !llvm.loop !9

38:                                               ; preds = %26
  br label %39

39:                                               ; preds = %38
  %40 = load i32, ptr %2, align 4, !tbaa !5
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %2, align 4, !tbaa !5
  br label %16, !llvm.loop !11

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

43:                                               ; preds = %203, %42
  %44 = load i32, ptr %5, align 4, !tbaa !5
  %45 = load i32, ptr @n, align 4, !tbaa !5
  %46 = icmp sle i32 %44, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %206

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

49:                                               ; preds = %60, %48
  %50 = load i32, ptr %6, align 4, !tbaa !5
  %51 = icmp slt i32 %50, 105
  br i1 %51, label %53, label %52

52:                                               ; preds = %49
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %63

53:                                               ; preds = %49
  %54 = load i32, ptr %6, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [105 x i32], ptr @used, i64 0, i64 %55
  store i32 0, ptr %56, align 4, !tbaa !5
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [105 x i32], ptr @minval, i64 0, i64 %58
  store i32 1000000000, ptr %59, align 4, !tbaa !5
  br label %60

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

63:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !5
  %64 = load i32, ptr %5, align 4, !tbaa !5
  %65 = load i32, ptr %7, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [105 x i32], ptr @par, i64 0, i64 %66
  store i32 %64, ptr %67, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %179, %63
  %69 = load i32, ptr %7, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [105 x i32], ptr @used, i64 0, i64 %70
  store i32 1, ptr %71, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 1000000000, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %72 = load i32, ptr %7, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [105 x i32], ptr @par, i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !5
  store i32 %75, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %135, %68
  %77 = load i32, ptr %11, align 4, !tbaa !5
  %78 = load i32, ptr @n, align 4, !tbaa !5
  %79 = icmp sle i32 %77, %78
  br i1 %79, label %81, label %80

80:                                               ; preds = %76
  store i32 16, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %138

81:                                               ; preds = %76
  %82 = load i32, ptr %11, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [105 x i32], ptr @used, i64 0, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %134, label %87

87:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %88 = load i32, ptr %10, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [105 x [105 x i32]], ptr @a, i64 0, i64 %89
  %91 = load i32, ptr %11, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [105 x i32], ptr %90, i64 0, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = load i32, ptr %10, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [105 x i32], ptr @u, i64 0, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = sub nsw i32 %94, %98
  %100 = load i32, ptr %11, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [105 x i32], ptr @v, i64 0, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = sub nsw i32 %99, %103
  store i32 %104, ptr %12, align 4, !tbaa !5
  %105 = load i32, ptr %12, align 4, !tbaa !5
  %106 = load i32, ptr %11, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [105 x i32], ptr @minval, i64 0, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = icmp slt i32 %105, %109
  br i1 %110, label %111, label %120

111:                                              ; preds = %87
  %112 = load i32, ptr %12, align 4, !tbaa !5
  %113 = load i32, ptr %11, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [105 x i32], ptr @minval, i64 0, i64 %114
  store i32 %112, ptr %115, align 4, !tbaa !5
  %116 = load i32, ptr %7, align 4, !tbaa !5
  %117 = load i32, ptr %11, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [105 x i32], ptr @link, i64 0, i64 %118
  store i32 %116, ptr %119, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %111, %87
  %121 = load i32, ptr %11, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [105 x i32], ptr @minval, i64 0, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = load i32, ptr %9, align 4, !tbaa !5
  %126 = icmp slt i32 %124, %125
  br i1 %126, label %127, label %133

127:                                              ; preds = %120
  %128 = load i32, ptr %11, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [105 x i32], ptr @minval, i64 0, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !5
  store i32 %131, ptr %9, align 4, !tbaa !5
  %132 = load i32, ptr %11, align 4, !tbaa !5
  store i32 %132, ptr %8, align 4, !tbaa !5
  br label %133

133:                                              ; preds = %127, %120
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %134

134:                                              ; preds = %133, %81
  br label %135

135:                                              ; preds = %134
  %136 = load i32, ptr %11, align 4, !tbaa !5
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %11, align 4, !tbaa !5
  br label %76, !llvm.loop !13

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

139:                                              ; preds = %174, %138
  %140 = load i32, ptr %13, align 4, !tbaa !5
  %141 = load i32, ptr @n, align 4, !tbaa !5
  %142 = icmp sle i32 %140, %141
  br i1 %142, label %144, label %143

143:                                              ; preds = %139
  store i32 19, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %177

144:                                              ; preds = %139
  %145 = load i32, ptr %13, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [105 x i32], ptr @used, i64 0, i64 %146
  %148 = load i32, ptr %147, align 4, !tbaa !5
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %150, label %166

150:                                              ; preds = %144
  %151 = load i32, ptr %9, align 4, !tbaa !5
  %152 = load i32, ptr %13, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [105 x i32], ptr @par, i64 0, i64 %153
  %155 = load i32, ptr %154, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [105 x i32], ptr @u, i64 0, i64 %156
  %158 = load i32, ptr %157, align 4, !tbaa !5
  %159 = add nsw i32 %158, %151
  store i32 %159, ptr %157, align 4, !tbaa !5
  %160 = load i32, ptr %9, align 4, !tbaa !5
  %161 = load i32, ptr %13, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [105 x i32], ptr @v, i64 0, i64 %162
  %164 = load i32, ptr %163, align 4, !tbaa !5
  %165 = sub nsw i32 %164, %160
  store i32 %165, ptr %163, align 4, !tbaa !5
  br label %173

166:                                              ; preds = %144
  %167 = load i32, ptr %9, align 4, !tbaa !5
  %168 = load i32, ptr %13, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [105 x i32], ptr @minval, i64 0, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = sub nsw i32 %171, %167
  store i32 %172, ptr %170, align 4, !tbaa !5
  br label %173

173:                                              ; preds = %166, %150
  br label %174

174:                                              ; preds = %173
  %175 = load i32, ptr %13, align 4, !tbaa !5
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %13, align 4, !tbaa !5
  br label %139, !llvm.loop !14

177:                                              ; preds = %143
  %178 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %178, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %179

179:                                              ; preds = %177
  %180 = load i32, ptr %7, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [105 x i32], ptr @par, i64 0, i64 %181
  %183 = load i32, ptr %182, align 4, !tbaa !5
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %68, label %185, !llvm.loop !15

185:                                              ; preds = %179
  br label %186

186:                                              ; preds = %199, %185
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  %187 = load i32, ptr %7, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [105 x i32], ptr @link, i64 0, i64 %188
  %190 = load i32, ptr %189, align 4, !tbaa !5
  store i32 %190, ptr %14, align 4, !tbaa !5
  %191 = load i32, ptr %14, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [105 x i32], ptr @par, i64 0, i64 %192
  %194 = load i32, ptr %193, align 4, !tbaa !5
  %195 = load i32, ptr %7, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [105 x i32], ptr @par, i64 0, i64 %196
  store i32 %194, ptr %197, align 4, !tbaa !5
  %198 = load i32, ptr %14, align 4, !tbaa !5
  store i32 %198, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  br label %199

199:                                              ; preds = %186
  %200 = load i32, ptr %7, align 4, !tbaa !5
  %201 = icmp sgt i32 %200, 0
  br i1 %201, label %186, label %202, !llvm.loop !16

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

203:                                              ; preds = %202
  %204 = load i32, ptr %5, align 4, !tbaa !5
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %5, align 4, !tbaa !5
  br label %43, !llvm.loop !17

206:                                              ; preds = %47
  %207 = load i32, ptr @v, align 16, !tbaa !5
  %208 = sub nsw i32 0, %207
  %209 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %208)
  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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !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
@a = external dso_local global [105 x [105 x i32]], align 16
@u = external dso_local local_unnamed_addr global [105 x i32], align 16
@v = external dso_local local_unnamed_addr global [105 x i32], align 16
@link = external dso_local local_unnamed_addr global [105 x i32], align 16
@par = external dso_local local_unnamed_addr global [105 x i32], align 16
@used = external dso_local local_unnamed_addr global [105 x i32], align 16
@minval = external dso_local local_unnamed_addr global [105 x i32], align 16
@.str = 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 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %2 = load i32, ptr @n, align 4, !tbaa !5
  %.not78 = icmp slt i32 %2, 1
  br i1 %.not78, label %._crit_edge96, label %.preheader75

.preheader75:                                     ; preds = %0, %._crit_edge
  %3 = phi i32 [ %5, %._crit_edge ], [ %2, %0 ]
  %indvars.iv100 = phi i64 [ %indvars.iv.next101, %._crit_edge ], [ 1, %0 ]
  %.not6876 = icmp slt i32 %3, 1
  br i1 %.not6876, label %.preheader75.._crit_edge_crit_edge, label %.lr.ph

.preheader75.._crit_edge_crit_edge:               ; preds = %.preheader75
  %.pre = sext i32 %3 to i64
  br label %._crit_edge

.preheader74:                                     ; preds = %._crit_edge
  %.not6293 = icmp slt i32 %5, 1
  br i1 %.not6293, label %._crit_edge96, label %.preheader73.lr.ph

.preheader73.lr.ph:                               ; preds = %.preheader74
  %4 = add nuw i32 %5, 1
  %wide.trip.count = zext i32 %4 to i64
  %wide.trip.count113 = zext i32 %4 to i64
  br label %.preheader73

._crit_edge:                                      ; preds = %.lr.ph, %.preheader75.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.preheader75.._crit_edge_crit_edge ], [ %9, %.lr.ph ]
  %5 = phi i32 [ %3, %.preheader75.._crit_edge_crit_edge ], [ %8, %.lr.ph ]
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  %.not.not = icmp slt i64 %indvars.iv100, %.pre-phi
  br i1 %.not.not, label %.preheader75, label %.preheader74, !llvm.loop !9

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

.preheader73:                                     ; preds = %.preheader73.lr.ph, %63
  %.05395 = phi i32 [ undef, %.preheader73.lr.ph ], [ %.4, %63 ]
  %.05994 = phi i32 [ 1, %.preheader73.lr.ph ], [ %64, %63 ]
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(420) @used, i8 0, i64 420, i1 false), !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr @minval, align 16, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr getelementptr inbounds (i8, ptr @minval, i64 16), align 16, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr getelementptr inbounds (i8, ptr @minval, i64 32), align 16, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr getelementptr inbounds (i8, ptr @minval, i64 48), align 16, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr getelementptr inbounds (i8, ptr @minval, i64 64), align 16, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr getelementptr inbounds (i8, ptr @minval, i64 80), align 16, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr getelementptr inbounds (i8, ptr @minval, i64 96), align 16, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr getelementptr inbounds (i8, ptr @minval, i64 112), align 16, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr getelementptr inbounds (i8, ptr @minval, i64 128), align 16, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr getelementptr inbounds (i8, ptr @minval, i64 144), align 16, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr getelementptr inbounds (i8, ptr @minval, i64 160), align 16, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr getelementptr inbounds (i8, ptr @minval, i64 176), align 16, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr getelementptr inbounds (i8, ptr @minval, i64 192), align 16, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr getelementptr inbounds (i8, ptr @minval, i64 208), align 16, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr getelementptr inbounds (i8, ptr @minval, i64 224), align 16, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr getelementptr inbounds (i8, ptr @minval, i64 240), align 16, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr getelementptr inbounds (i8, ptr @minval, i64 256), align 16, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr getelementptr inbounds (i8, ptr @minval, i64 272), align 16, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr getelementptr inbounds (i8, ptr @minval, i64 288), align 16, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr getelementptr inbounds (i8, ptr @minval, i64 304), align 16, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr getelementptr inbounds (i8, ptr @minval, i64 320), align 16, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr getelementptr inbounds (i8, ptr @minval, i64 336), align 16, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr getelementptr inbounds (i8, ptr @minval, i64 352), align 16, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr getelementptr inbounds (i8, ptr @minval, i64 368), align 16, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr getelementptr inbounds (i8, ptr @minval, i64 384), align 16, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr getelementptr inbounds (i8, ptr @minval, i64 400), align 16, !tbaa !5
  store i32 1000000000, ptr getelementptr inbounds (i8, ptr @minval, i64 416), align 16, !tbaa !5
  store i32 %.05994, ptr @par, align 16, !tbaa !5
  br label %.lr.ph86

._crit_edge96:                                    ; preds = %63, %0, %.preheader74
  %10 = load i32, ptr @v, align 16, !tbaa !5
  %11 = sub nsw i32 0, %10
  %12 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %11)
  ret i32 0

.lr.ph86:                                         ; preds = %.preheader73, %._crit_edge92
  %13 = phi i32 [ %.05994, %.preheader73 ], [ %41, %._crit_edge92 ]
  %.056 = phi i32 [ 0, %.preheader73 ], [ %.4, %._crit_edge92 ]
  %.154 = phi i32 [ %.05395, %.preheader73 ], [ %.4, %._crit_edge92 ]
  %14 = sext i32 %.056 to i64
  %15 = getelementptr inbounds [105 x i32], ptr @used, i64 0, i64 %14
  store i32 1, ptr %15, align 4, !tbaa !5
  %16 = sext i32 %13 to i64
  %17 = getelementptr inbounds [105 x i32], ptr @u, i64 0, i64 %16
  br label %18

18:                                               ; preds = %.lr.ph86, %38
  %indvars.iv106 = phi i64 [ 0, %.lr.ph86 ], [ %indvars.iv.next107, %38 ]
  %.05283 = phi i32 [ 1000000000, %.lr.ph86 ], [ %.2, %38 ]
  %.25582 = phi i32 [ %.154, %.lr.ph86 ], [ %.4, %38 ]
  %19 = getelementptr inbounds [105 x i32], ptr @used, i64 0, i64 %indvars.iv106
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %.not67 = icmp eq i32 %20, 0
  br i1 %.not67, label %21, label %38

21:                                               ; preds = %18
  %22 = getelementptr inbounds [105 x [105 x i32]], ptr @a, i64 0, i64 %16, i64 %indvars.iv106
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = load i32, ptr %17, align 4, !tbaa !5
  %25 = getelementptr inbounds [105 x i32], ptr @v, i64 0, i64 %indvars.iv106
  %26 = load i32, ptr %25, align 4, !tbaa !5
  %27 = add i32 %24, %26
  %28 = sub i32 %23, %27
  %29 = getelementptr inbounds [105 x i32], ptr @minval, i64 0, i64 %indvars.iv106
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = icmp slt i32 %28, %30
  br i1 %31, label %32, label %34

32:                                               ; preds = %21
  store i32 %28, ptr %29, align 4, !tbaa !5
  %33 = getelementptr inbounds [105 x i32], ptr @link, i64 0, i64 %indvars.iv106
  store i32 %.056, ptr %33, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %32, %21
  %35 = phi i32 [ %28, %32 ], [ %30, %21 ]
  %36 = icmp slt i32 %35, %.05283
  %37 = trunc nuw nsw i64 %indvars.iv106 to i32
  %spec.select = select i1 %36, i32 %37, i32 %.25582
  %spec.select69 = tail call i32 @llvm.smin.i32(i32 %35, i32 %.05283)
  br label %38

38:                                               ; preds = %18, %34
  %.4 = phi i32 [ %.25582, %18 ], [ %spec.select, %34 ]
  %.2 = phi i32 [ %.05283, %18 ], [ %spec.select69, %34 ]
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %exitcond109.not = icmp eq i64 %indvars.iv.next107, %wide.trip.count
  br i1 %exitcond109.not, label %.lr.ph91, label %18, !llvm.loop !13

._crit_edge92:                                    ; preds = %51
  %39 = sext i32 %.4 to i64
  %40 = getelementptr inbounds [105 x i32], ptr @par, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %.not65 = icmp eq i32 %41, 0
  br i1 %.not65, label %.preheader72, label %.lr.ph86, !llvm.loop !14

.lr.ph91:                                         ; preds = %38, %51
  %indvars.iv110 = phi i64 [ %indvars.iv.next111, %51 ], [ 0, %38 ]
  %42 = getelementptr inbounds [105 x i32], ptr @used, i64 0, i64 %indvars.iv110
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %.not66 = icmp eq i32 %43, 0
  br i1 %.not66, label %51, label %44

44:                                               ; preds = %.lr.ph91
  %45 = getelementptr inbounds [105 x i32], ptr @par, i64 0, i64 %indvars.iv110
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [105 x i32], ptr @u, i64 0, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = add nsw i32 %49, %.2
  store i32 %50, ptr %48, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %.lr.ph91, %44
  %v.sink = phi ptr [ @v, %44 ], [ @minval, %.lr.ph91 ]
  %52 = getelementptr inbounds [105 x i32], ptr %v.sink, i64 0, i64 %indvars.iv110
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = sub nsw i32 %53, %.2
  store i32 %54, ptr %52, align 4, !tbaa !5
  %indvars.iv.next111 = add nuw nsw i64 %indvars.iv110, 1
  %exitcond114.not = icmp eq i64 %indvars.iv.next111, %wide.trip.count113
  br i1 %exitcond114.not, label %._crit_edge92, label %.lr.ph91, !llvm.loop !15

.preheader72:                                     ; preds = %._crit_edge92, %.preheader72
  %.157 = phi i32 [ %57, %.preheader72 ], [ %.4, %._crit_edge92 ]
  %55 = sext i32 %.157 to i64
  %56 = getelementptr inbounds [105 x i32], ptr @link, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [105 x i32], ptr @par, i64 0, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = getelementptr inbounds [105 x i32], ptr @par, i64 0, i64 %55
  store i32 %60, ptr %61, align 4, !tbaa !5
  %62 = icmp sgt i32 %57, 0
  br i1 %62, label %.preheader72, label %63, !llvm.loop !16

63:                                               ; preds = %.preheader72
  %64 = add nuw i32 %.05994, 1
  %exitcond115.not = icmp eq i32 %.05994, %5
  br i1 %exitcond115.not, label %._crit_edge96, label %.preheader73, !llvm.loop !17
}

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #2

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

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.unswitch.partial.disable"}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass