; LLVM IR from tangjz/acm-icpc :: TDL_training/2015-11-29 (D - Equipment - lzy)

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

@T = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@m = external dso_local global [9 x i32], align 16
@r = external dso_local global [10009 x [9 x i32]], align 16
@g = external dso_local global [10009 x [32 x i32]], align 16
@f = external dso_local global [10009 x [9 x [32 x i32]]], align 16
@.str = external hidden unnamed_addr constant [3 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

; 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
  store i32 0, ptr %1, align 4
  %12 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @T)
  br label %13

13:                                               ; preds = %227, %119, %0
  %14 = load i32, ptr @T, align 4, !tbaa !5
  %15 = add nsw i32 %14, -1
  store i32 %15, ptr @T, align 4, !tbaa !5
  %16 = icmp ne i32 %14, 0
  br i1 %16, label %17, label %237

17:                                               ; preds = %13
  %18 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @n, ptr noundef @k)
  call void @llvm.memset.p0.i64(ptr align 16 @m, i8 0, i64 36, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @g, i8 0, i64 1281152, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %113, %17
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = load i32, ptr @n, align 4, !tbaa !5
  %22 = icmp sle i32 %20, %21
  br i1 %22, label %24, label %23

23:                                               ; preds = %19
  store i32 4, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %116

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

25:                                               ; preds = %66, %24
  %26 = load i32, ptr %4, align 4, !tbaa !5
  %27 = icmp slt i32 %26, 5
  br i1 %27, label %29, label %28

28:                                               ; preds = %25
  store i32 7, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %69

29:                                               ; preds = %25
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [10009 x [9 x i32]], ptr @r, i64 0, i64 %31
  %33 = getelementptr inbounds [9 x i32], ptr %32, i64 0, i64 0
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds i32, ptr %33, i64 %35
  %37 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %36)
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [9 x i32], ptr @m, i64 0, i64 %39
  %41 = load i32, ptr %2, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [10009 x [9 x i32]], ptr @r, i64 0, i64 %42
  %44 = load i32, ptr %4, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [9 x i32], ptr %43, i64 0, i64 %45
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %40, ptr noundef nonnull align 4 dereferenceable(4) %46)
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = load i32, ptr %4, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [9 x i32], ptr @m, i64 0, i64 %50
  store i32 %48, ptr %51, align 4, !tbaa !5
  %52 = load i32, ptr %2, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [10009 x [9 x i32]], ptr @r, i64 0, i64 %53
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [9 x i32], ptr %54, i64 0, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = load i32, ptr %2, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [10009 x [32 x i32]], ptr @g, i64 0, i64 %60
  %62 = load i32, ptr %4, align 4, !tbaa !5
  %63 = shl i32 1, %62
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [32 x i32], ptr %61, i64 0, i64 %64
  store i32 %58, ptr %65, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %29
  %67 = load i32, ptr %4, align 4, !tbaa !5
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %4, align 4, !tbaa !5
  br label %25, !llvm.loop !9

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

70:                                               ; preds = %109, %69
  %71 = load i32, ptr %5, align 4, !tbaa !5
  %72 = icmp slt i32 %71, 5
  br i1 %72, label %74, label %73

73:                                               ; preds = %70
  store i32 10, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %112

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

75:                                               ; preds = %105, %74
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = icmp slt i32 %76, 32
  br i1 %77, label %79, label %78

78:                                               ; preds = %75
  store i32 13, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %108

79:                                               ; preds = %75
  %80 = load i32, ptr %6, align 4, !tbaa !5
  %81 = load i32, ptr %5, align 4, !tbaa !5
  %82 = shl i32 1, %81
  %83 = and i32 %80, %82
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %104, label %85

85:                                               ; preds = %79
  %86 = load i32, ptr %2, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [10009 x [32 x i32]], ptr @g, i64 0, i64 %87
  %89 = load i32, ptr %6, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [32 x i32], ptr %88, i64 0, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = load i32, ptr %2, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [10009 x [32 x i32]], ptr @g, i64 0, i64 %94
  %96 = load i32, ptr %6, align 4, !tbaa !5
  %97 = load i32, ptr %5, align 4, !tbaa !5
  %98 = shl i32 1, %97
  %99 = or i32 %96, %98
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [32 x i32], ptr %95, i64 0, i64 %100
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %103 = add nsw i32 %102, %92
  store i32 %103, ptr %101, align 4, !tbaa !5
  br label %104

104:                                              ; preds = %85, %79
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %6, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %6, align 4, !tbaa !5
  br label %75, !llvm.loop !11

108:                                              ; preds = %78
  br label %109

109:                                              ; preds = %108
  %110 = load i32, ptr %5, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %5, align 4, !tbaa !5
  br label %70, !llvm.loop !12

112:                                              ; preds = %73
  br label %113

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

116:                                              ; preds = %23
  %117 = load i32, ptr @k, align 4, !tbaa !5
  %118 = icmp sge i32 %117, 5
  br i1 %118, label %119, label %130

119:                                              ; preds = %116
  %120 = load i32, ptr @m, align 16, !tbaa !5
  %121 = load i32, ptr getelementptr inbounds ([9 x i32], ptr @m, i64 0, i64 1), align 4, !tbaa !5
  %122 = add nsw i32 %120, %121
  %123 = load i32, ptr getelementptr inbounds ([9 x i32], ptr @m, i64 0, i64 2), align 8, !tbaa !5
  %124 = add nsw i32 %122, %123
  %125 = load i32, ptr getelementptr inbounds ([9 x i32], ptr @m, i64 0, i64 3), align 4, !tbaa !5
  %126 = add nsw i32 %124, %125
  %127 = load i32, ptr getelementptr inbounds ([9 x i32], ptr @m, i64 0, i64 4), align 16, !tbaa !5
  %128 = add nsw i32 %126, %127
  %129 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %128)
  br label %13, !llvm.loop !14

130:                                              ; preds = %116
  call void @llvm.memset.p0.i64(ptr align 16 @f, i8 0, i64 1152, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %131

131:                                              ; preds = %224, %130
  %132 = load i32, ptr %7, align 4, !tbaa !5
  %133 = load i32, ptr @n, align 4, !tbaa !5
  %134 = icmp sle i32 %132, %133
  br i1 %134, label %136, label %135

135:                                              ; preds = %131
  store i32 16, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %227

136:                                              ; preds = %131
  %137 = load i32, ptr %7, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [10009 x [9 x [32 x i32]]], ptr @f, i64 0, i64 %138
  %140 = getelementptr inbounds [9 x [32 x i32]], ptr %139, i64 0, i64 0
  %141 = load i32, ptr %7, align 4, !tbaa !5
  %142 = sub nsw i32 %141, 1
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [10009 x [9 x [32 x i32]]], ptr @f, i64 0, i64 %143
  %145 = getelementptr inbounds [9 x [32 x i32]], ptr %144, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %140, ptr align 16 %145, i64 1152, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %146

146:                                              ; preds = %220, %136
  %147 = load i32, ptr %8, align 4, !tbaa !5
  %148 = load i32, ptr @k, align 4, !tbaa !5
  %149 = icmp sle i32 %147, %148
  br i1 %149, label %151, label %150

150:                                              ; preds = %146
  store i32 19, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %223

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

152:                                              ; preds = %216, %151
  %153 = load i32, ptr %9, align 4, !tbaa !5
  %154 = icmp slt i32 %153, 32
  br i1 %154, label %156, label %155

155:                                              ; preds = %152
  store i32 22, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %219

156:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %157

157:                                              ; preds = %212, %156
  %158 = load i32, ptr %10, align 4, !tbaa !5
  %159 = icmp slt i32 %158, 32
  br i1 %159, label %161, label %160

160:                                              ; preds = %157
  store i32 25, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %215

161:                                              ; preds = %157
  %162 = load i32, ptr %9, align 4, !tbaa !5
  %163 = load i32, ptr %10, align 4, !tbaa !5
  %164 = and i32 %162, %163
  %165 = icmp ne i32 %164, 0
  br i1 %165, label %211, label %166

166:                                              ; preds = %161
  %167 = load i32, ptr %7, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [10009 x [9 x [32 x i32]]], ptr @f, i64 0, i64 %168
  %170 = load i32, ptr %8, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [9 x [32 x i32]], ptr %169, i64 0, i64 %171
  %173 = load i32, ptr %9, align 4, !tbaa !5
  %174 = load i32, ptr %10, align 4, !tbaa !5
  %175 = or i32 %173, %174
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [32 x i32], ptr %172, i64 0, i64 %176
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %178 = load i32, ptr %7, align 4, !tbaa !5
  %179 = sub nsw i32 %178, 1
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [10009 x [9 x [32 x i32]]], ptr @f, i64 0, i64 %180
  %182 = load i32, ptr %8, align 4, !tbaa !5
  %183 = sub nsw i32 %182, 1
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [9 x [32 x i32]], ptr %181, i64 0, i64 %184
  %186 = load i32, ptr %9, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [32 x i32], ptr %185, i64 0, i64 %187
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = load i32, ptr %7, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [10009 x [32 x i32]], ptr @g, i64 0, i64 %191
  %193 = load i32, ptr %10, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [32 x i32], ptr %192, i64 0, i64 %194
  %196 = load i32, ptr %195, align 4, !tbaa !5
  %197 = add nsw i32 %189, %196
  store i32 %197, ptr %11, align 4, !tbaa !5
  %198 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %177, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %199 = load i32, ptr %198, align 4, !tbaa !5
  %200 = load i32, ptr %7, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [10009 x [9 x [32 x i32]]], ptr @f, i64 0, i64 %201
  %203 = load i32, ptr %8, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [9 x [32 x i32]], ptr %202, i64 0, i64 %204
  %206 = load i32, ptr %9, align 4, !tbaa !5
  %207 = load i32, ptr %10, align 4, !tbaa !5
  %208 = or i32 %206, %207
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [32 x i32], ptr %205, i64 0, i64 %209
  store i32 %199, ptr %210, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %211

211:                                              ; preds = %166, %161
  br label %212

212:                                              ; preds = %211
  %213 = load i32, ptr %10, align 4, !tbaa !5
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %10, align 4, !tbaa !5
  br label %157, !llvm.loop !15

215:                                              ; preds = %160
  br label %216

216:                                              ; preds = %215
  %217 = load i32, ptr %9, align 4, !tbaa !5
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %9, align 4, !tbaa !5
  br label %152, !llvm.loop !16

219:                                              ; preds = %155
  br label %220

220:                                              ; preds = %219
  %221 = load i32, ptr %8, align 4, !tbaa !5
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %8, align 4, !tbaa !5
  br label %146, !llvm.loop !17

223:                                              ; preds = %150
  br label %224

224:                                              ; preds = %223
  %225 = load i32, ptr %7, align 4, !tbaa !5
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %7, align 4, !tbaa !5
  br label %131, !llvm.loop !18

227:                                              ; preds = %135
  %228 = load i32, ptr @n, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [10009 x [9 x [32 x i32]]], ptr @f, i64 0, i64 %229
  %231 = load i32, ptr @k, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [9 x [32 x i32]], ptr %230, i64 0, i64 %232
  %234 = getelementptr inbounds [32 x i32], ptr %233, i64 0, i64 31
  %235 = load i32, ptr %234, align 4, !tbaa !5
  %236 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %235)
  br label %13, !llvm.loop !14

237:                                              ; preds = %13
  ret i32 0
}

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

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

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

; 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) #5

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 nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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}
!18 = distinct !{!18, !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"

@T = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@m = external dso_local global [9 x i32], align 16
@r = external dso_local global [10009 x [9 x i32]], align 16
@g = external dso_local local_unnamed_addr global [10009 x [32 x i32]], align 16
@f = external dso_local global [10009 x [9 x [32 x i32]]], align 16
@.str = external hidden unnamed_addr constant [3 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

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @T)
  %3 = load i32, ptr @T, align 4, !tbaa !5
  %4 = add nsw i32 %3, -1
  store i32 %4, ptr @T, align 4, !tbaa !5
  %.not81 = icmp eq i32 %3, 0
  br i1 %.not81, label %._crit_edge84, label %.lr.ph83

.lr.ph83:                                         ; preds = %0, %.backedge
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @n, ptr noundef nonnull @k)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(36) @m, i8 0, i64 36, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1281152) @g, i8 0, i64 1281152, i1 false)
  %6 = load i32, ptr @n, align 4, !tbaa !5
  %.not5870 = icmp slt i32 %6, 1
  br i1 %.not5870, label %._crit_edge, label %.preheader66

.preheader66:                                     ; preds = %.lr.ph83, %85
  %indvars.iv90 = phi i64 [ %indvars.iv.next91, %85 ], [ 1, %.lr.ph83 ]
  %7 = getelementptr inbounds [10009 x [9 x i32]], ptr @r, i64 0, i64 %indvars.iv90
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %7)
  %9 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @m, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %10 = load i32, ptr %9, align 4, !tbaa !5
  store i32 %10, ptr @m, align 16, !tbaa !5
  %11 = load i32, ptr %7, align 4, !tbaa !5
  %12 = getelementptr inbounds [10009 x [32 x i32]], ptr @g, i64 0, i64 %indvars.iv90, i64 1
  store i32 %11, ptr %12, align 4, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %7, i64 4
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %13)
  %15 = getelementptr inbounds [10009 x [9 x i32]], ptr @r, i64 0, i64 %indvars.iv90, i64 1
  %16 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @m, i64 4), ptr noundef nonnull align 4 dereferenceable(4) %15)
  %17 = load i32, ptr %16, align 4, !tbaa !5
  store i32 %17, ptr getelementptr inbounds (i8, ptr @m, i64 4), align 4, !tbaa !5
  %18 = load i32, ptr %15, align 4, !tbaa !5
  %19 = getelementptr inbounds [10009 x [32 x i32]], ptr @g, i64 0, i64 %indvars.iv90, i64 2
  store i32 %18, ptr %19, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %7, i64 8
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %20)
  %22 = getelementptr inbounds [10009 x [9 x i32]], ptr @r, i64 0, i64 %indvars.iv90, i64 2
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @m, i64 8), ptr noundef nonnull align 4 dereferenceable(4) %22)
  %24 = load i32, ptr %23, align 4, !tbaa !5
  store i32 %24, ptr getelementptr inbounds (i8, ptr @m, i64 8), align 8, !tbaa !5
  %25 = load i32, ptr %22, align 4, !tbaa !5
  %26 = getelementptr inbounds [10009 x [32 x i32]], ptr @g, i64 0, i64 %indvars.iv90, i64 4
  store i32 %25, ptr %26, align 16, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %7, i64 12
  %28 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %27)
  %29 = getelementptr inbounds [10009 x [9 x i32]], ptr @r, i64 0, i64 %indvars.iv90, i64 3
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @m, i64 12), ptr noundef nonnull align 4 dereferenceable(4) %29)
  %31 = load i32, ptr %30, align 4, !tbaa !5
  store i32 %31, ptr getelementptr inbounds (i8, ptr @m, i64 12), align 4, !tbaa !5
  %32 = load i32, ptr %29, align 4, !tbaa !5
  %33 = getelementptr inbounds [10009 x [32 x i32]], ptr @g, i64 0, i64 %indvars.iv90, i64 8
  store i32 %32, ptr %33, align 16, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %7, i64 16
  %35 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %34)
  %36 = getelementptr inbounds [10009 x [9 x i32]], ptr @r, i64 0, i64 %indvars.iv90, i64 4
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @m, i64 16), ptr noundef nonnull align 4 dereferenceable(4) %36)
  %38 = load i32, ptr %37, align 4, !tbaa !5
  store i32 %38, ptr getelementptr inbounds (i8, ptr @m, i64 16), align 16, !tbaa !5
  %39 = load i32, ptr %36, align 4, !tbaa !5
  %40 = getelementptr inbounds [10009 x [32 x i32]], ptr @g, i64 0, i64 %indvars.iv90, i64 16
  store i32 %39, ptr %40, align 16, !tbaa !5
  br label %88

._crit_edge:                                      ; preds = %85, %.lr.ph83
  %41 = phi i32 [ 0, %.lr.ph83 ], [ %38, %85 ]
  %42 = phi i32 [ %6, %.lr.ph83 ], [ %86, %85 ]
  %43 = load i32, ptr @k, align 4, !tbaa !5
  %44 = icmp sgt i32 %43, 4
  br i1 %44, label %99, label %105

.preheader64.1:                                   ; preds = %98, %54
  %indvars.iv.1 = phi i64 [ %indvars.iv.next.1, %54 ], [ 0, %98 ]
  %45 = and i64 %indvars.iv.1, 2
  %.not62.1 = icmp eq i64 %45, 0
  br i1 %.not62.1, label %46, label %54

46:                                               ; preds = %.preheader64.1
  %47 = getelementptr inbounds [10009 x [32 x i32]], ptr @g, i64 0, i64 %indvars.iv90, i64 %indvars.iv.1
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = and i64 %indvars.iv.1, 4294967293
  %50 = or disjoint i64 %49, 2
  %51 = getelementptr inbounds [10009 x [32 x i32]], ptr @g, i64 0, i64 %indvars.iv90, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = add nsw i32 %52, %48
  store i32 %53, ptr %51, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %46, %.preheader64.1
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %exitcond.1.not = icmp eq i64 %indvars.iv.next.1, 32
  br i1 %exitcond.1.not, label %.preheader64.2, label %.preheader64.1, !llvm.loop !9

.preheader64.2:                                   ; preds = %54, %64
  %indvars.iv.2 = phi i64 [ %indvars.iv.next.2, %64 ], [ 0, %54 ]
  %55 = and i64 %indvars.iv.2, 4
  %.not62.2 = icmp eq i64 %55, 0
  br i1 %.not62.2, label %56, label %64

56:                                               ; preds = %.preheader64.2
  %57 = getelementptr inbounds [10009 x [32 x i32]], ptr @g, i64 0, i64 %indvars.iv90, i64 %indvars.iv.2
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = and i64 %indvars.iv.2, 4294967291
  %60 = or disjoint i64 %59, 4
  %61 = getelementptr inbounds [10009 x [32 x i32]], ptr @g, i64 0, i64 %indvars.iv90, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = add nsw i32 %62, %58
  store i32 %63, ptr %61, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %56, %.preheader64.2
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv.2, 1
  %exitcond.2.not = icmp eq i64 %indvars.iv.next.2, 32
  br i1 %exitcond.2.not, label %.preheader64.3, label %.preheader64.2, !llvm.loop !9

.preheader64.3:                                   ; preds = %64, %74
  %indvars.iv.3 = phi i64 [ %indvars.iv.next.3, %74 ], [ 0, %64 ]
  %65 = and i64 %indvars.iv.3, 8
  %.not62.3 = icmp eq i64 %65, 0
  br i1 %.not62.3, label %66, label %74

66:                                               ; preds = %.preheader64.3
  %67 = getelementptr inbounds [10009 x [32 x i32]], ptr @g, i64 0, i64 %indvars.iv90, i64 %indvars.iv.3
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = and i64 %indvars.iv.3, 4294967287
  %70 = or disjoint i64 %69, 8
  %71 = getelementptr inbounds [10009 x [32 x i32]], ptr @g, i64 0, i64 %indvars.iv90, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = add nsw i32 %72, %68
  store i32 %73, ptr %71, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %66, %.preheader64.3
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv.3, 1
  %exitcond.3.not = icmp eq i64 %indvars.iv.next.3, 32
  br i1 %exitcond.3.not, label %.preheader64.4, label %.preheader64.3, !llvm.loop !9

.preheader64.4:                                   ; preds = %74, %84
  %indvars.iv.4 = phi i64 [ %indvars.iv.next.4, %84 ], [ 0, %74 ]
  %75 = and i64 %indvars.iv.4, 16
  %.not62.4 = icmp eq i64 %75, 0
  br i1 %.not62.4, label %76, label %84

76:                                               ; preds = %.preheader64.4
  %77 = getelementptr inbounds [10009 x [32 x i32]], ptr @g, i64 0, i64 %indvars.iv90, i64 %indvars.iv.4
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = and i64 %indvars.iv.4, 4294967279
  %80 = or disjoint i64 %79, 16
  %81 = getelementptr inbounds [10009 x [32 x i32]], ptr @g, i64 0, i64 %indvars.iv90, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = add nsw i32 %82, %78
  store i32 %83, ptr %81, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %76, %.preheader64.4
  %indvars.iv.next.4 = add nuw nsw i64 %indvars.iv.4, 1
  %exitcond.4.not = icmp eq i64 %indvars.iv.next.4, 32
  br i1 %exitcond.4.not, label %85, label %.preheader64.4, !llvm.loop !9

85:                                               ; preds = %84
  %indvars.iv.next91 = add nuw nsw i64 %indvars.iv90, 1
  %86 = load i32, ptr @n, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %.not58.not = icmp slt i64 %indvars.iv90, %87
  br i1 %.not58.not, label %.preheader66, label %._crit_edge, !llvm.loop !11

88:                                               ; preds = %.preheader66, %98
  %indvars.iv = phi i64 [ 0, %.preheader66 ], [ %indvars.iv.next, %98 ]
  %89 = and i64 %indvars.iv, 1
  %.not62 = icmp eq i64 %89, 0
  br i1 %.not62, label %90, label %98

90:                                               ; preds = %88
  %91 = getelementptr inbounds [10009 x [32 x i32]], ptr @g, i64 0, i64 %indvars.iv90, i64 %indvars.iv
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = and i64 %indvars.iv, 4294967294
  %94 = or disjoint i64 %93, 1
  %95 = getelementptr inbounds [10009 x [32 x i32]], ptr @g, i64 0, i64 %indvars.iv90, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = add nsw i32 %96, %92
  store i32 %97, ptr %95, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %88, %90
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 32
  br i1 %exitcond.not, label %.preheader64.1, label %88, !llvm.loop !9

99:                                               ; preds = %._crit_edge
  %100 = load <4 x i32>, ptr @m, align 16, !tbaa !5
  %101 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %100)
  %op.rdx = add i32 %101, %41
  br label %.backedge

.backedge:                                        ; preds = %99, %._crit_edge80
  %.sink = phi i32 [ %op.rdx, %99 ], [ %122, %._crit_edge80 ]
  %102 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %.sink)
  %103 = load i32, ptr @T, align 4, !tbaa !5
  %104 = add nsw i32 %103, -1
  store i32 %104, ptr @T, align 4, !tbaa !5
  %.not = icmp eq i32 %103, 0
  br i1 %.not, label %._crit_edge84, label %.lr.ph83, !llvm.loop !12

105:                                              ; preds = %._crit_edge
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1152) @f, i8 0, i64 1152, i1 false)
  %.not5977 = icmp slt i32 %42, 1
  br i1 %.not5977, label %._crit_edge80, label %.lr.ph

.lr.ph:                                           ; preds = %105
  %106 = icmp slt i32 %43, 1
  br i1 %106, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph
  %107 = zext nneg i32 %42 to i64
  %xtraiter = and i64 %107, 1
  %108 = icmp eq i32 %42, 1
  br i1 %108, label %._crit_edge80.loopexit.unr-lcssa, label %.lr.ph.split.us.new

.lr.ph.split.us.new:                              ; preds = %.lr.ph.split.us
  %unroll_iter = and i64 %107, 2147483646
  br label %109

109:                                              ; preds = %109, %.lr.ph.split.us.new
  %indvars.iv107 = phi i64 [ 1, %.lr.ph.split.us.new ], [ %indvars.iv.next108.1, %109 ]
  %niter = phi i64 [ 0, %.lr.ph.split.us.new ], [ %niter.next.1, %109 ]
  %110 = getelementptr inbounds [10009 x [9 x [32 x i32]]], ptr @f, i64 0, i64 %indvars.iv107
  %111 = add nsw i64 %indvars.iv107, -1
  %112 = getelementptr inbounds [10009 x [9 x [32 x i32]]], ptr @f, i64 0, i64 %111
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(1152) %110, ptr noundef nonnull align 16 dereferenceable(1152) %112, i64 1152, i1 false)
  %indvars.iv.next108 = add nuw nsw i64 %indvars.iv107, 1
  %113 = getelementptr inbounds [10009 x [9 x [32 x i32]]], ptr @f, i64 0, i64 %indvars.iv.next108
  %114 = getelementptr inbounds [10009 x [9 x [32 x i32]]], ptr @f, i64 0, i64 %indvars.iv107
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(1152) %113, ptr noundef nonnull align 16 dereferenceable(1152) %114, i64 1152, i1 false)
  %indvars.iv.next108.1 = add nuw nsw i64 %indvars.iv107, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge80.loopexit.unr-lcssa, label %109, !llvm.loop !13

._crit_edge80.loopexit.unr-lcssa:                 ; preds = %109, %.lr.ph.split.us
  %indvars.iv107.unr = phi i64 [ 1, %.lr.ph.split.us ], [ %indvars.iv.next108.1, %109 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge80, label %._crit_edge80.loopexit.epilog-lcssa

._crit_edge80.loopexit.epilog-lcssa:              ; preds = %._crit_edge80.loopexit.unr-lcssa
  %115 = getelementptr inbounds [10009 x [9 x [32 x i32]]], ptr @f, i64 0, i64 %indvars.iv107.unr
  %116 = add nsw i64 %indvars.iv107.unr, -1
  %117 = getelementptr inbounds [10009 x [9 x [32 x i32]]], ptr @f, i64 0, i64 %116
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(1152) %115, ptr noundef nonnull align 16 dereferenceable(1152) %117, i64 1152, i1 false)
  br label %._crit_edge80

._crit_edge80:                                    ; preds = %._crit_edge76, %._crit_edge80.loopexit.epilog-lcssa, %._crit_edge80.loopexit.unr-lcssa, %105
  %118 = phi i32 [ %43, %105 ], [ %43, %._crit_edge80.loopexit.unr-lcssa ], [ %43, %._crit_edge80.loopexit.epilog-lcssa ], [ %130, %._crit_edge76 ]
  %.lcssa = phi i32 [ %42, %105 ], [ %42, %._crit_edge80.loopexit.unr-lcssa ], [ %42, %._crit_edge80.loopexit.epilog-lcssa ], [ %129, %._crit_edge76 ]
  %119 = sext i32 %.lcssa to i64
  %120 = sext i32 %118 to i64
  %121 = getelementptr inbounds [10009 x [9 x [32 x i32]]], ptr @f, i64 0, i64 %119, i64 %120, i64 31
  %122 = load i32, ptr %121, align 4, !tbaa !5
  br label %.backedge

.lr.ph.split:                                     ; preds = %.lr.ph, %._crit_edge76
  %123 = phi i32 [ %129, %._crit_edge76 ], [ %42, %.lr.ph ]
  %124 = phi i32 [ %130, %._crit_edge76 ], [ %43, %.lr.ph ]
  %indvars.iv104 = phi i64 [ %indvars.iv.next105, %._crit_edge76 ], [ 1, %.lr.ph ]
  %125 = getelementptr inbounds [10009 x [9 x [32 x i32]]], ptr @f, i64 0, i64 %indvars.iv104
  %126 = add nsw i64 %indvars.iv104, -1
  %127 = getelementptr inbounds [10009 x [9 x [32 x i32]]], ptr @f, i64 0, i64 %126
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(1152) %125, ptr noundef nonnull align 16 dereferenceable(1152) %127, i64 1152, i1 false)
  %.not6074 = icmp slt i32 %124, 1
  br i1 %.not6074, label %._crit_edge76, label %.preheader63

.preheader63:                                     ; preds = %.lr.ph.split, %133
  %indvars.iv101 = phi i64 [ %indvars.iv.next102, %133 ], [ 1, %.lr.ph.split ]
  %128 = add nsw i64 %indvars.iv101, -1
  br label %.preheader

._crit_edge76.loopexit:                           ; preds = %133
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %._crit_edge76

._crit_edge76:                                    ; preds = %._crit_edge76.loopexit, %.lr.ph.split
  %129 = phi i32 [ %.pre, %._crit_edge76.loopexit ], [ %123, %.lr.ph.split ]
  %130 = phi i32 [ %134, %._crit_edge76.loopexit ], [ %124, %.lr.ph.split ]
  %indvars.iv.next105 = add nuw nsw i64 %indvars.iv104, 1
  %131 = sext i32 %129 to i64
  %.not59.not = icmp slt i64 %indvars.iv104, %131
  br i1 %.not59.not, label %.lr.ph.split, label %._crit_edge80, !llvm.loop !14

.preheader:                                       ; preds = %.preheader63, %136
  %indvars.iv97 = phi i64 [ 0, %.preheader63 ], [ %indvars.iv.next98, %136 ]
  %132 = getelementptr inbounds [10009 x [9 x [32 x i32]]], ptr @f, i64 0, i64 %126, i64 %128, i64 %indvars.iv97
  br label %137

133:                                              ; preds = %136
  %indvars.iv.next102 = add nuw nsw i64 %indvars.iv101, 1
  %134 = load i32, ptr @k, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %.not60.not = icmp slt i64 %indvars.iv101, %135
  br i1 %.not60.not, label %.preheader63, label %._crit_edge76.loopexit, !llvm.loop !16

136:                                              ; preds = %150
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  %exitcond100.not = icmp eq i64 %indvars.iv.next98, 32
  br i1 %exitcond100.not, label %133, label %.preheader, !llvm.loop !17

137:                                              ; preds = %.preheader, %150
  %indvars.iv93 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next94, %150 ]
  %138 = and i64 %indvars.iv93, %indvars.iv97
  %139 = and i64 %138, 4294967295
  %.not61 = icmp eq i64 %139, 0
  br i1 %.not61, label %140, label %150

140:                                              ; preds = %137
  %141 = or i64 %indvars.iv93, %indvars.iv97
  %142 = and i64 %141, 4294967295
  %143 = getelementptr inbounds [10009 x [9 x [32 x i32]]], ptr @f, i64 0, i64 %indvars.iv104, i64 %indvars.iv101, i64 %142
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  %144 = load i32, ptr %132, align 4, !tbaa !5
  %145 = getelementptr inbounds [10009 x [32 x i32]], ptr @g, i64 0, i64 %indvars.iv104, i64 %indvars.iv93
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = add nsw i32 %146, %144
  store i32 %147, ptr %1, align 4, !tbaa !5
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %143, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %149 = load i32, ptr %148, align 4, !tbaa !5
  store i32 %149, ptr %143, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  br label %150

150:                                              ; preds = %137, %140
  %indvars.iv.next94 = add nuw nsw i64 %indvars.iv93, 1
  %exitcond96.not = icmp eq i64 %indvars.iv.next94, 32
  br i1 %exitcond96.not, label %136, label %137, !llvm.loop !18

._crit_edge84:                                    ; preds = %.backedge, %0
  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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

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

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

; 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) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #6

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 nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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}
!15 = !{!"llvm.loop.unswitch.partial.disable"}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}


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