; LLVM IR from tangjz/acm-icpc :: TDL_training/2015-11-22/upsolved (I - Inspection - 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"

@n = external dso_local global i32, align 4
@a = external dso_local global i32, align 4
@s = external dso_local global i32, align 4
@t = external dso_local global i32, align 4
@S = external dso_local global i32, align 4
@T = external dso_local global i32, align 4
@sum = external dso_local global i32, align 4
@f0 = external dso_local global i32, align 4
@f1 = external dso_local global i32, align 4
@b = external dso_local global [109 x [109 x i32]], align 16
@c = external dso_local global [109 x [109 x i32]], align 16
@f = external dso_local global [109 x [109 x i32]], align 16
@p = external dso_local global [109 x i32], align 16
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsii(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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3bfsii(i32 noundef, i32 noundef) #4

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #6 {
  %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
  br label %15

15:                                               ; preds = %422, %0
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @n)
  %17 = icmp eq i32 %16, 1
  br i1 %17, label %18, label %427

18:                                               ; preds = %15
  call void @llvm.memset.p0.i64(ptr align 16 @b, i8 0, i64 47524, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @c, i8 0, i64 47524, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @f, i8 0, i64 47524, i1 false)
  %19 = load i32, ptr @n, align 4, !tbaa !5
  %20 = add nsw i32 %19, 1
  store i32 %20, ptr @s, align 4, !tbaa !5
  %21 = load i32, ptr @n, align 4, !tbaa !5
  %22 = add nsw i32 %21, 2
  store i32 %22, ptr @t, align 4, !tbaa !5
  %23 = load i32, ptr @n, align 4, !tbaa !5
  %24 = add nsw i32 %23, 3
  store i32 %24, ptr @S, align 4, !tbaa !5
  %25 = load i32, ptr @n, align 4, !tbaa !5
  %26 = add nsw i32 %25, 4
  store i32 %26, ptr @T, align 4, !tbaa !5
  %27 = load i32, ptr @S, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [109 x [109 x i32]], ptr @c, i64 0, i64 %28
  %30 = load i32, ptr @s, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [109 x i32], ptr %29, i64 0, i64 %31
  store i32 536870911, ptr %32, align 4, !tbaa !5
  %33 = load i32, ptr @t, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [109 x [109 x i32]], ptr @c, i64 0, i64 %34
  %36 = load i32, ptr @T, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [109 x i32], ptr %35, i64 0, i64 %37
  store i32 536870911, ptr %38, align 4, !tbaa !5
  store i32 0, ptr @sum, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 1, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  br label %39

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

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

44:                                               ; preds = %39
  %45 = load i32, ptr %2, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [109 x [109 x i32]], ptr @c, i64 0, i64 %46
  %48 = load i32, ptr @t, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [109 x i32], ptr %47, i64 0, i64 %49
  store i32 65536, ptr %50, align 4, !tbaa !5
  %51 = load i32, ptr @s, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [109 x [109 x i32]], ptr @c, i64 0, i64 %52
  %54 = load i32, ptr %2, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [109 x i32], ptr %53, i64 0, i64 %55
  store i32 65536, ptr %56, align 4, !tbaa !5
  %57 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @a)
  br label %58

58:                                               ; preds = %62, %44
  %59 = load i32, ptr @a, align 4, !tbaa !5
  %60 = add nsw i32 %59, -1
  store i32 %60, ptr @a, align 4, !tbaa !5
  %61 = icmp ne i32 %59, 0
  br i1 %61, label %62, label %96

62:                                               ; preds = %58
  %63 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %3)
  %64 = load i32, ptr @sum, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr @sum, align 4, !tbaa !5
  %66 = load i32, ptr %2, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [109 x [109 x i32]], ptr @b, i64 0, i64 %67
  %69 = load i32, ptr %3, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [109 x i32], ptr %68, i64 0, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %71, align 4, !tbaa !5
  %74 = load i32, ptr %2, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [109 x [109 x i32]], ptr @c, i64 0, i64 %75
  %77 = load i32, ptr %3, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [109 x i32], ptr %76, i64 0, i64 %78
  store i32 65536, ptr %79, align 4, !tbaa !5
  %80 = load i32, ptr @S, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [109 x [109 x i32]], ptr @c, i64 0, i64 %81
  %83 = load i32, ptr %3, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [109 x i32], ptr %82, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %85, align 4, !tbaa !5
  %88 = load i32, ptr %2, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [109 x [109 x i32]], ptr @c, i64 0, i64 %89
  %91 = load i32, ptr @T, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [109 x i32], ptr %90, i64 0, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %93, align 4, !tbaa !5
  br label %58, !llvm.loop !9

96:                                               ; preds = %58
  br label %97

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

100:                                              ; preds = %43
  %101 = load i32, ptr @n, align 4, !tbaa !5
  %102 = add nsw i32 %101, 4
  store i32 %102, ptr @n, align 4, !tbaa !5
  store i32 0, ptr @f0, align 4, !tbaa !5
  br label %103

103:                                              ; preds = %212, %100
  %104 = load i32, ptr @S, align 4, !tbaa !5
  %105 = load i32, ptr @T, align 4, !tbaa !5
  %106 = call noundef zeroext i1 @_Z3bfsii(i32 noundef %104, i32 noundef %105)
  br i1 %106, label %107, label %216

107:                                              ; preds = %103
  store i32 536870911, ptr @a, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  %108 = load i32, ptr @T, align 4, !tbaa !5
  store i32 %108, ptr %4, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %158, %107
  %110 = load i32, ptr %4, align 4, !tbaa !5
  %111 = load i32, ptr @S, align 4, !tbaa !5
  %112 = icmp ne i32 %110, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %164

114:                                              ; preds = %109
  %115 = load i32, ptr %4, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [109 x i32], ptr @p, i64 0, i64 %116
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = icmp slt i32 %118, 0
  br i1 %119, label %120, label %133

120:                                              ; preds = %114
  %121 = load i32, ptr %4, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %122
  %124 = load i32, ptr %4, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [109 x i32], ptr @p, i64 0, i64 %125
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %128 = sub nsw i32 0, %127
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [109 x i32], ptr %123, i64 0, i64 %129
  %131 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @a, ptr noundef nonnull align 4 dereferenceable(4) %130)
  %132 = load i32, ptr %131, align 4, !tbaa !5
  store i32 %132, ptr @a, align 4, !tbaa !5
  br label %157

133:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  %134 = load i32, ptr %4, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [109 x i32], ptr @p, i64 0, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [109 x [109 x i32]], ptr @c, i64 0, i64 %138
  %140 = load i32, ptr %4, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [109 x i32], ptr %139, i64 0, i64 %141
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = load i32, ptr %4, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [109 x i32], ptr @p, i64 0, i64 %145
  %147 = load i32, ptr %146, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %148
  %150 = load i32, ptr %4, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [109 x i32], ptr %149, i64 0, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !5
  %154 = sub nsw i32 %143, %153
  store i32 %154, ptr %5, align 4, !tbaa !5
  %155 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @a, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %156 = load i32, ptr %155, align 4, !tbaa !5
  store i32 %156, ptr @a, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %157

157:                                              ; preds = %133, %120
  br label %158

158:                                              ; preds = %157
  %159 = load i32, ptr %4, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [109 x i32], ptr @p, i64 0, i64 %160
  %162 = load i32, ptr %161, align 4, !tbaa !5
  %163 = call i32 @llvm.abs.i32(i32 %162, i1 true)
  store i32 %163, ptr %4, align 4, !tbaa !5
  br label %109, !llvm.loop !12

164:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  %165 = load i32, ptr @T, align 4, !tbaa !5
  store i32 %165, ptr %6, align 4, !tbaa !5
  br label %166

166:                                              ; preds = %205, %164
  %167 = load i32, ptr %6, align 4, !tbaa !5
  %168 = load i32, ptr @S, align 4, !tbaa !5
  %169 = icmp ne i32 %167, %168
  br i1 %169, label %171, label %170

170:                                              ; preds = %166
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %211

171:                                              ; preds = %166
  %172 = load i32, ptr %6, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [109 x i32], ptr @p, i64 0, i64 %173
  %175 = load i32, ptr %174, align 4, !tbaa !5
  %176 = icmp slt i32 %175, 0
  br i1 %176, label %177, label %191

177:                                              ; preds = %171
  %178 = load i32, ptr @a, align 4, !tbaa !5
  %179 = load i32, ptr %6, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %180
  %182 = load i32, ptr %6, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [109 x i32], ptr @p, i64 0, i64 %183
  %185 = load i32, ptr %184, align 4, !tbaa !5
  %186 = sub nsw i32 0, %185
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [109 x i32], ptr %181, i64 0, i64 %187
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = sub nsw i32 %189, %178
  store i32 %190, ptr %188, align 4, !tbaa !5
  br label %204

191:                                              ; preds = %171
  %192 = load i32, ptr @a, align 4, !tbaa !5
  %193 = load i32, ptr %6, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [109 x i32], ptr @p, i64 0, i64 %194
  %196 = load i32, ptr %195, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %197
  %199 = load i32, ptr %6, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [109 x i32], ptr %198, i64 0, i64 %200
  %202 = load i32, ptr %201, align 4, !tbaa !5
  %203 = add nsw i32 %202, %192
  store i32 %203, ptr %201, align 4, !tbaa !5
  br label %204

204:                                              ; preds = %191, %177
  br label %205

205:                                              ; preds = %204
  %206 = load i32, ptr %6, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [109 x i32], ptr @p, i64 0, i64 %207
  %209 = load i32, ptr %208, align 4, !tbaa !5
  %210 = call i32 @llvm.abs.i32(i32 %209, i1 true)
  store i32 %210, ptr %6, align 4, !tbaa !5
  br label %166, !llvm.loop !13

211:                                              ; preds = %170
  br label %212

212:                                              ; preds = %211
  %213 = load i32, ptr @a, align 4, !tbaa !5
  %214 = load i32, ptr @f0, align 4, !tbaa !5
  %215 = add nsw i32 %214, %213
  store i32 %215, ptr @f0, align 4, !tbaa !5
  br label %103, !llvm.loop !14

216:                                              ; preds = %103
  %217 = load i32, ptr @sum, align 4, !tbaa !5
  %218 = load i32, ptr @f0, align 4, !tbaa !5
  %219 = sub nsw i32 %218, %217
  store i32 %219, ptr @f0, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 16 @c, i8 0, i64 47524, i1 false)
  %220 = load i32, ptr @n, align 4, !tbaa !5
  %221 = sub nsw i32 %220, 2
  store i32 %221, ptr @n, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %222

222:                                              ; preds = %266, %216
  %223 = load i32, ptr %7, align 4, !tbaa !5
  %224 = load i32, ptr @n, align 4, !tbaa !5
  %225 = icmp sle i32 %223, %224
  br i1 %225, label %227, label %226

226:                                              ; preds = %222
  store i32 18, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %269

227:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %228

228:                                              ; preds = %262, %227
  %229 = load i32, ptr %9, align 4, !tbaa !5
  %230 = load i32, ptr @n, align 4, !tbaa !5
  %231 = icmp sle i32 %229, %230
  br i1 %231, label %233, label %232

232:                                              ; preds = %228
  store i32 21, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %265

233:                                              ; preds = %228
  %234 = load i32, ptr %7, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %235
  %237 = load i32, ptr %9, align 4, !tbaa !5
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds [109 x i32], ptr %236, i64 0, i64 %238
  %240 = load i32, ptr %239, align 4, !tbaa !5
  %241 = load i32, ptr %7, align 4, !tbaa !5
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [109 x [109 x i32]], ptr @b, i64 0, i64 %242
  %244 = load i32, ptr %9, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [109 x i32], ptr %243, i64 0, i64 %245
  %247 = load i32, ptr %246, align 4, !tbaa !5
  %248 = add nsw i32 %247, %240
  store i32 %248, ptr %246, align 4, !tbaa !5
  %249 = load i32, ptr %9, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %250
  %252 = load i32, ptr %7, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [109 x i32], ptr %251, i64 0, i64 %253
  %255 = load i32, ptr %254, align 4, !tbaa !5
  %256 = load i32, ptr %7, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [109 x [109 x i32]], ptr @c, i64 0, i64 %257
  %259 = load i32, ptr %9, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [109 x i32], ptr %258, i64 0, i64 %260
  store i32 %255, ptr %261, align 4, !tbaa !5
  br label %262

262:                                              ; preds = %233
  %263 = load i32, ptr %9, align 4, !tbaa !5
  %264 = add nsw i32 %263, 1
  store i32 %264, ptr %9, align 4, !tbaa !5
  br label %228, !llvm.loop !15

265:                                              ; preds = %232
  br label %266

266:                                              ; preds = %265
  %267 = load i32, ptr %7, align 4, !tbaa !5
  %268 = add nsw i32 %267, 1
  store i32 %268, ptr %7, align 4, !tbaa !5
  br label %222, !llvm.loop !16

269:                                              ; preds = %226
  call void @llvm.memset.p0.i64(ptr align 16 @f, i8 0, i64 47524, i1 false)
  store i32 0, ptr @f1, align 4, !tbaa !5
  br label %270

270:                                              ; preds = %379, %269
  %271 = load i32, ptr @t, align 4, !tbaa !5
  %272 = load i32, ptr @s, align 4, !tbaa !5
  %273 = call noundef zeroext i1 @_Z3bfsii(i32 noundef %271, i32 noundef %272)
  br i1 %273, label %274, label %383

274:                                              ; preds = %270
  store i32 536870911, ptr @a, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %275 = load i32, ptr @s, align 4, !tbaa !5
  store i32 %275, ptr %10, align 4, !tbaa !5
  br label %276

276:                                              ; preds = %325, %274
  %277 = load i32, ptr %10, align 4, !tbaa !5
  %278 = load i32, ptr @t, align 4, !tbaa !5
  %279 = icmp ne i32 %277, %278
  br i1 %279, label %281, label %280

280:                                              ; preds = %276
  store i32 27, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %331

281:                                              ; preds = %276
  %282 = load i32, ptr %10, align 4, !tbaa !5
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [109 x i32], ptr @p, i64 0, i64 %283
  %285 = load i32, ptr %284, align 4, !tbaa !5
  %286 = icmp slt i32 %285, 0
  br i1 %286, label %287, label %300

287:                                              ; preds = %281
  %288 = load i32, ptr %10, align 4, !tbaa !5
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %289
  %291 = load i32, ptr %10, align 4, !tbaa !5
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds [109 x i32], ptr @p, i64 0, i64 %292
  %294 = load i32, ptr %293, align 4, !tbaa !5
  %295 = sub nsw i32 0, %294
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds [109 x i32], ptr %290, i64 0, i64 %296
  %298 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @a, ptr noundef nonnull align 4 dereferenceable(4) %297)
  %299 = load i32, ptr %298, align 4, !tbaa !5
  store i32 %299, ptr @a, align 4, !tbaa !5
  br label %324

300:                                              ; preds = %281
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %301 = load i32, ptr %10, align 4, !tbaa !5
  %302 = sext i32 %301 to i64
  %303 = getelementptr inbounds [109 x i32], ptr @p, i64 0, i64 %302
  %304 = load i32, ptr %303, align 4, !tbaa !5
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [109 x [109 x i32]], ptr @c, i64 0, i64 %305
  %307 = load i32, ptr %10, align 4, !tbaa !5
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds [109 x i32], ptr %306, i64 0, i64 %308
  %310 = load i32, ptr %309, align 4, !tbaa !5
  %311 = load i32, ptr %10, align 4, !tbaa !5
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds [109 x i32], ptr @p, i64 0, i64 %312
  %314 = load i32, ptr %313, align 4, !tbaa !5
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %315
  %317 = load i32, ptr %10, align 4, !tbaa !5
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds [109 x i32], ptr %316, i64 0, i64 %318
  %320 = load i32, ptr %319, align 4, !tbaa !5
  %321 = sub nsw i32 %310, %320
  store i32 %321, ptr %11, align 4, !tbaa !5
  %322 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @a, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %323 = load i32, ptr %322, align 4, !tbaa !5
  store i32 %323, ptr @a, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %324

324:                                              ; preds = %300, %287
  br label %325

325:                                              ; preds = %324
  %326 = load i32, ptr %10, align 4, !tbaa !5
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [109 x i32], ptr @p, i64 0, i64 %327
  %329 = load i32, ptr %328, align 4, !tbaa !5
  %330 = call i32 @llvm.abs.i32(i32 %329, i1 true)
  store i32 %330, ptr %10, align 4, !tbaa !5
  br label %276, !llvm.loop !17

331:                                              ; preds = %280
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %332 = load i32, ptr @s, align 4, !tbaa !5
  store i32 %332, ptr %12, align 4, !tbaa !5
  br label %333

333:                                              ; preds = %372, %331
  %334 = load i32, ptr %12, align 4, !tbaa !5
  %335 = load i32, ptr @t, align 4, !tbaa !5
  %336 = icmp ne i32 %334, %335
  br i1 %336, label %338, label %337

337:                                              ; preds = %333
  store i32 30, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %378

338:                                              ; preds = %333
  %339 = load i32, ptr %12, align 4, !tbaa !5
  %340 = sext i32 %339 to i64
  %341 = getelementptr inbounds [109 x i32], ptr @p, i64 0, i64 %340
  %342 = load i32, ptr %341, align 4, !tbaa !5
  %343 = icmp slt i32 %342, 0
  br i1 %343, label %344, label %358

344:                                              ; preds = %338
  %345 = load i32, ptr @a, align 4, !tbaa !5
  %346 = load i32, ptr %12, align 4, !tbaa !5
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %347
  %349 = load i32, ptr %12, align 4, !tbaa !5
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds [109 x i32], ptr @p, i64 0, i64 %350
  %352 = load i32, ptr %351, align 4, !tbaa !5
  %353 = sub nsw i32 0, %352
  %354 = sext i32 %353 to i64
  %355 = getelementptr inbounds [109 x i32], ptr %348, i64 0, i64 %354
  %356 = load i32, ptr %355, align 4, !tbaa !5
  %357 = sub nsw i32 %356, %345
  store i32 %357, ptr %355, align 4, !tbaa !5
  br label %371

358:                                              ; preds = %338
  %359 = load i32, ptr @a, align 4, !tbaa !5
  %360 = load i32, ptr %12, align 4, !tbaa !5
  %361 = sext i32 %360 to i64
  %362 = getelementptr inbounds [109 x i32], ptr @p, i64 0, i64 %361
  %363 = load i32, ptr %362, align 4, !tbaa !5
  %364 = sext i32 %363 to i64
  %365 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %364
  %366 = load i32, ptr %12, align 4, !tbaa !5
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds [109 x i32], ptr %365, i64 0, i64 %367
  %369 = load i32, ptr %368, align 4, !tbaa !5
  %370 = add nsw i32 %369, %359
  store i32 %370, ptr %368, align 4, !tbaa !5
  br label %371

371:                                              ; preds = %358, %344
  br label %372

372:                                              ; preds = %371
  %373 = load i32, ptr %12, align 4, !tbaa !5
  %374 = sext i32 %373 to i64
  %375 = getelementptr inbounds [109 x i32], ptr @p, i64 0, i64 %374
  %376 = load i32, ptr %375, align 4, !tbaa !5
  %377 = call i32 @llvm.abs.i32(i32 %376, i1 true)
  store i32 %377, ptr %12, align 4, !tbaa !5
  br label %333, !llvm.loop !18

378:                                              ; preds = %337
  br label %379

379:                                              ; preds = %378
  %380 = load i32, ptr @a, align 4, !tbaa !5
  %381 = load i32, ptr @f1, align 4, !tbaa !5
  %382 = add nsw i32 %381, %380
  store i32 %382, ptr @f1, align 4, !tbaa !5
  br label %270, !llvm.loop !19

383:                                              ; preds = %270
  %384 = load i32, ptr @f0, align 4, !tbaa !5
  %385 = load i32, ptr @f1, align 4, !tbaa !5
  %386 = sub nsw i32 %384, %385
  %387 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %386)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %388

388:                                              ; preds = %419, %383
  %389 = load i32, ptr %13, align 4, !tbaa !5
  %390 = load i32, ptr @n, align 4, !tbaa !5
  %391 = icmp sle i32 %389, %390
  br i1 %391, label %393, label %392

392:                                              ; preds = %388
  store i32 33, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %422

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

394:                                              ; preds = %415, %393
  %395 = load i32, ptr %14, align 4, !tbaa !5
  %396 = load i32, ptr @n, align 4, !tbaa !5
  %397 = icmp sle i32 %395, %396
  br i1 %397, label %399, label %398

398:                                              ; preds = %394
  store i32 36, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %418

399:                                              ; preds = %394
  %400 = load i32, ptr %14, align 4, !tbaa !5
  %401 = sext i32 %400 to i64
  %402 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %401
  %403 = load i32, ptr %13, align 4, !tbaa !5
  %404 = sext i32 %403 to i64
  %405 = getelementptr inbounds [109 x i32], ptr %402, i64 0, i64 %404
  %406 = load i32, ptr %405, align 4, !tbaa !5
  %407 = load i32, ptr %13, align 4, !tbaa !5
  %408 = sext i32 %407 to i64
  %409 = getelementptr inbounds [109 x [109 x i32]], ptr @b, i64 0, i64 %408
  %410 = load i32, ptr %14, align 4, !tbaa !5
  %411 = sext i32 %410 to i64
  %412 = getelementptr inbounds [109 x i32], ptr %409, i64 0, i64 %411
  %413 = load i32, ptr %412, align 4, !tbaa !5
  %414 = sub nsw i32 %413, %406
  store i32 %414, ptr %412, align 4, !tbaa !5
  br label %415

415:                                              ; preds = %399
  %416 = load i32, ptr %14, align 4, !tbaa !5
  %417 = add nsw i32 %416, 1
  store i32 %417, ptr %14, align 4, !tbaa !5
  br label %394, !llvm.loop !20

418:                                              ; preds = %398
  br label %419

419:                                              ; preds = %418
  %420 = load i32, ptr %13, align 4, !tbaa !5
  %421 = add nsw i32 %420, 1
  store i32 %421, ptr %13, align 4, !tbaa !5
  br label %388, !llvm.loop !21

422:                                              ; preds = %392
  %423 = load i32, ptr @s, align 4, !tbaa !5
  %424 = load i32, ptr @f0, align 4, !tbaa !5
  %425 = load i32, ptr @f1, align 4, !tbaa !5
  %426 = sub nsw i32 %424, %425
  call void @_Z3dfsii(i32 noundef %423, i32 noundef %426)
  br label %15, !llvm.loop !22

427:                                              ; preds = %15
  ret i32 0
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #7

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !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 i32, align 4
@s = external dso_local local_unnamed_addr global i32, align 4
@t = external dso_local local_unnamed_addr global i32, align 4
@S = external dso_local local_unnamed_addr global i32, align 4
@T = external dso_local local_unnamed_addr global i32, align 4
@sum = external dso_local local_unnamed_addr global i32, align 4
@f0 = external dso_local local_unnamed_addr global i32, align 4
@f1 = external dso_local local_unnamed_addr global i32, align 4
@b = external dso_local local_unnamed_addr global [109 x [109 x i32]], align 16
@c = external dso_local local_unnamed_addr global [109 x [109 x i32]], align 16
@f = external dso_local global [109 x [109 x i32]], align 16
@p = external dso_local local_unnamed_addr global [109 x i32], align 16
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsii(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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3bfsii(i32 noundef, i32 noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #6 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @n)
  %5 = icmp eq i32 %4, 1
  br i1 %5, label %.lr.ph134, label %._crit_edge135

.lr.ph134:                                        ; preds = %0, %._crit_edge132.split
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(47524) @b, i8 0, i64 47524, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(47524) @c, i8 0, i64 47524, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(47524) @f, i8 0, i64 47524, i1 false)
  %6 = load i32, ptr @n, align 4, !tbaa !5
  %7 = add nsw i32 %6, 1
  store i32 %7, ptr @s, align 4, !tbaa !5
  %8 = add nsw i32 %6, 2
  store i32 %8, ptr @t, align 4, !tbaa !5
  %9 = add nsw i32 %6, 3
  store i32 %9, ptr @S, align 4, !tbaa !5
  %10 = add nsw i32 %6, 4
  store i32 %10, ptr @T, align 4, !tbaa !5
  %11 = sext i32 %9 to i64
  %12 = sext i32 %7 to i64
  %13 = getelementptr inbounds [109 x [109 x i32]], ptr @c, i64 0, i64 %11, i64 %12
  store i32 536870911, ptr %13, align 4, !tbaa !5
  %14 = sext i32 %8 to i64
  %15 = sext i32 %10 to i64
  %16 = getelementptr inbounds [109 x [109 x i32]], ptr @c, i64 0, i64 %14, i64 %15
  store i32 536870911, ptr %16, align 4, !tbaa !5
  store i32 0, ptr @sum, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  %.not86 = icmp slt i32 %6, 1
  br i1 %.not86, label %._crit_edge90, label %.lr.ph89

._crit_edge90.loopexit:                           ; preds = %._crit_edge
  %.pre = load i32, ptr @S, align 4, !tbaa !5
  %.pre159 = load i32, ptr @T, align 4, !tbaa !5
  %.pre162 = add nsw i32 %50, 4
  br label %._crit_edge90

._crit_edge90:                                    ; preds = %._crit_edge90.loopexit, %.lr.ph134
  %.pre-phi = phi i32 [ %.pre162, %._crit_edge90.loopexit ], [ %10, %.lr.ph134 ]
  %17 = phi i32 [ %.pre159, %._crit_edge90.loopexit ], [ %10, %.lr.ph134 ]
  %18 = phi i32 [ %.pre, %._crit_edge90.loopexit ], [ %9, %.lr.ph134 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  store i32 %.pre-phi, ptr @n, align 4, !tbaa !5
  store i32 0, ptr @f0, align 4, !tbaa !5
  %19 = call noundef zeroext i1 @_Z3bfsii(i32 noundef %18, i32 noundef %17)
  br i1 %19, label %.lr.ph103, label %._crit_edge104

.lr.ph89:                                         ; preds = %.lr.ph134, %._crit_edge
  %indvars.iv = phi i64 [ %indvars.iv.next, %._crit_edge ], [ 1, %.lr.ph134 ]
  %20 = load i32, ptr @t, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [109 x [109 x i32]], ptr @c, i64 0, i64 %indvars.iv, i64 %21
  store i32 65536, ptr %22, align 4, !tbaa !5
  %23 = load i32, ptr @s, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [109 x [109 x i32]], ptr @c, i64 0, i64 %24, i64 %indvars.iv
  store i32 65536, ptr %25, align 4, !tbaa !5
  %26 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @a)
  %27 = load i32, ptr @a, align 4, !tbaa !5
  %28 = add nsw i32 %27, -1
  store i32 %28, ptr @a, align 4, !tbaa !5
  %.not8185 = icmp eq i32 %27, 0
  br i1 %.not8185, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph89, %.lr.ph
  %29 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1)
  %30 = load i32, ptr @sum, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr @sum, align 4, !tbaa !5
  %32 = load i32, ptr %1, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [109 x [109 x i32]], ptr @b, i64 0, i64 %indvars.iv, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %34, align 4, !tbaa !5
  %37 = getelementptr inbounds [109 x [109 x i32]], ptr @c, i64 0, i64 %indvars.iv, i64 %33
  store i32 65536, ptr %37, align 4, !tbaa !5
  %38 = load i32, ptr @S, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [109 x [109 x i32]], ptr @c, i64 0, i64 %39, i64 %33
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %40, align 4, !tbaa !5
  %43 = load i32, ptr @T, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [109 x [109 x i32]], ptr @c, i64 0, i64 %indvars.iv, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %45, align 4, !tbaa !5
  %48 = load i32, ptr @a, align 4, !tbaa !5
  %49 = add nsw i32 %48, -1
  store i32 %49, ptr @a, align 4, !tbaa !5
  %.not81 = icmp eq i32 %48, 0
  br i1 %.not81, label %._crit_edge, label %.lr.ph, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph89
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %50 = load i32, ptr @n, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %.not.not = icmp slt i64 %indvars.iv, %51
  br i1 %.not.not, label %.lr.ph89, label %._crit_edge90.loopexit, !llvm.loop !11

.lr.ph103:                                        ; preds = %._crit_edge90, %._crit_edge101
  store i32 536870911, ptr @a, align 4, !tbaa !5
  %52 = load i32, ptr @T, align 4, !tbaa !5
  %53 = load i32, ptr @S, align 4, !tbaa !5
  %.not7991 = icmp eq i32 %52, %53
  br i1 %.not7991, label %._crit_edge101, label %.lr.ph94

._crit_edge95:                                    ; preds = %73
  %.pre160 = load i32, ptr @T, align 4, !tbaa !5
  %.not8097 = icmp eq i32 %.pre160, %75
  br i1 %.not8097, label %._crit_edge101, label %.lr.ph100

.lr.ph94:                                         ; preds = %.lr.ph103, %73
  %.06592 = phi i32 [ %75, %73 ], [ %52, %.lr.ph103 ]
  %54 = sext i32 %.06592 to i64
  %55 = getelementptr inbounds [109 x i32], ptr @p, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = icmp slt i32 %56, 0
  br i1 %57, label %58, label %64

58:                                               ; preds = %.lr.ph94
  %59 = sub nsw i32 0, %56
  %60 = zext nneg i32 %59 to i64
  %61 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %54, i64 %60
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @a, ptr noundef nonnull align 4 dereferenceable(4) %61)
  %63 = load i32, ptr %62, align 4, !tbaa !5
  br label %73

64:                                               ; preds = %.lr.ph94
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %65 = zext nneg i32 %56 to i64
  %66 = getelementptr inbounds [109 x [109 x i32]], ptr @c, i64 0, i64 %65, i64 %54
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %65, i64 %54
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = sub nsw i32 %67, %69
  store i32 %70, ptr %2, align 4, !tbaa !5
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @a, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %72 = load i32, ptr %71, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  br label %73

73:                                               ; preds = %58, %64
  %.sink = phi i32 [ %63, %58 ], [ %72, %64 ]
  store i32 %.sink, ptr @a, align 4
  %74 = load i32, ptr %55, align 4, !tbaa !5
  %75 = call i32 @llvm.abs.i32(i32 %74, i1 true)
  %76 = load i32, ptr @S, align 4, !tbaa !5
  %.not79 = icmp eq i32 %75, %76
  br i1 %.not79, label %._crit_edge95, label %.lr.ph94, !llvm.loop !12

._crit_edge101:                                   ; preds = %98, %.lr.ph103, %._crit_edge95
  %77 = phi i32 [ %.pre160, %._crit_edge95 ], [ %52, %.lr.ph103 ], [ %.pre160, %98 ]
  %78 = phi i32 [ %.sink, %._crit_edge95 ], [ 536870911, %.lr.ph103 ], [ %.sink, %98 ]
  %79 = phi i32 [ %75, %._crit_edge95 ], [ %52, %.lr.ph103 ], [ %75, %98 ]
  %80 = load i32, ptr @f0, align 4, !tbaa !5
  %81 = add nsw i32 %80, %78
  store i32 %81, ptr @f0, align 4, !tbaa !5
  %82 = call noundef zeroext i1 @_Z3bfsii(i32 noundef %79, i32 noundef %77)
  br i1 %82, label %.lr.ph103, label %._crit_edge104, !llvm.loop !13

.lr.ph100:                                        ; preds = %._crit_edge95, %98
  %.06498 = phi i32 [ %99, %98 ], [ %.pre160, %._crit_edge95 ]
  %83 = sext i32 %.06498 to i64
  %84 = getelementptr inbounds [109 x i32], ptr @p, i64 0, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = icmp slt i32 %85, 0
  br i1 %86, label %87, label %93

87:                                               ; preds = %.lr.ph100
  %88 = sub nsw i32 0, %85
  %89 = zext nneg i32 %88 to i64
  %90 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %83, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = sub nsw i32 %91, %.sink
  store i32 %92, ptr %90, align 4, !tbaa !5
  br label %98

93:                                               ; preds = %.lr.ph100
  %94 = zext nneg i32 %85 to i64
  %95 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %94, i64 %83
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = add nsw i32 %96, %.sink
  store i32 %97, ptr %95, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %87, %93
  %99 = call i32 @llvm.abs.i32(i32 %85, i1 true)
  %.not80 = icmp eq i32 %99, %75
  br i1 %.not80, label %._crit_edge101, label %.lr.ph100, !llvm.loop !14

._crit_edge104:                                   ; preds = %._crit_edge101, %._crit_edge90
  %100 = load i32, ptr @sum, align 4, !tbaa !5
  %101 = load i32, ptr @f0, align 4, !tbaa !5
  %102 = sub nsw i32 %101, %100
  store i32 %102, ptr @f0, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(47524) @c, i8 0, i64 47524, i1 false)
  %103 = load i32, ptr @n, align 4, !tbaa !5
  %104 = add nsw i32 %103, -2
  store i32 %104, ptr @n, align 4, !tbaa !5
  %.not72109 = icmp slt i32 %103, 3
  br i1 %.not72109, label %._crit_edge111.split, label %.preheader82.preheader

.preheader82.preheader:                           ; preds = %._crit_edge104
  %105 = add nsw i32 %103, -1
  %wide.trip.count146 = zext nneg i32 %105 to i64
  %106 = add nsw i64 %wide.trip.count146, -1
  %min.iters.check172 = icmp ult i64 %106, 4
  %n.vec175 = and i64 %106, -4
  %ind.end176 = or disjoint i64 %n.vec175, 1
  %cmp.n184 = icmp eq i64 %106, %n.vec175
  br label %.preheader82

.preheader82:                                     ; preds = %.preheader82.preheader, %._crit_edge108
  %indvars.iv143 = phi i64 [ 1, %.preheader82.preheader ], [ %indvars.iv.next144, %._crit_edge108 ]
  br i1 %min.iters.check172, label %scalar.ph171.preheader, label %vector.body178

scalar.ph171.preheader:                           ; preds = %middle.block170, %.preheader82
  %indvars.iv140.ph = phi i64 [ 1, %.preheader82 ], [ %ind.end176, %middle.block170 ]
  br label %scalar.ph171

vector.body178:                                   ; preds = %.preheader82, %vector.body178
  %index179 = phi i64 [ %index.next183, %vector.body178 ], [ 0, %.preheader82 ]
  %offset.idx180 = or disjoint i64 %index179, 1
  %107 = or disjoint i64 %index179, 2
  %108 = or disjoint i64 %index179, 3
  %109 = add i64 %index179, 4
  %110 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %indvars.iv143, i64 %offset.idx180
  %wide.load181 = load <4 x i32>, ptr %110, align 4, !tbaa !5
  %111 = getelementptr inbounds [109 x [109 x i32]], ptr @b, i64 0, i64 %indvars.iv143, i64 %offset.idx180
  %wide.load182 = load <4 x i32>, ptr %111, align 4, !tbaa !5
  %112 = add nsw <4 x i32> %wide.load182, %wide.load181
  store <4 x i32> %112, ptr %111, align 4, !tbaa !5
  %113 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %offset.idx180, i64 %indvars.iv143
  %114 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %107, i64 %indvars.iv143
  %115 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %108, i64 %indvars.iv143
  %116 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %109, i64 %indvars.iv143
  %117 = load i32, ptr %113, align 4, !tbaa !5
  %118 = load i32, ptr %114, align 4, !tbaa !5
  %119 = load i32, ptr %115, align 4, !tbaa !5
  %120 = load i32, ptr %116, align 4, !tbaa !5
  %121 = insertelement <4 x i32> poison, i32 %117, i64 0
  %122 = insertelement <4 x i32> %121, i32 %118, i64 1
  %123 = insertelement <4 x i32> %122, i32 %119, i64 2
  %124 = insertelement <4 x i32> %123, i32 %120, i64 3
  %125 = getelementptr inbounds [109 x [109 x i32]], ptr @c, i64 0, i64 %indvars.iv143, i64 %offset.idx180
  store <4 x i32> %124, ptr %125, align 4, !tbaa !5
  %index.next183 = add nuw i64 %index179, 4
  %126 = icmp eq i64 %index.next183, %n.vec175
  br i1 %126, label %middle.block170, label %vector.body178, !llvm.loop !15

middle.block170:                                  ; preds = %vector.body178
  br i1 %cmp.n184, label %._crit_edge108, label %scalar.ph171.preheader

._crit_edge111.split:                             ; preds = %._crit_edge108, %._crit_edge104
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(47524) @f, i8 0, i64 47524, i1 false)
  store i32 0, ptr @f1, align 4, !tbaa !5
  %127 = load i32, ptr @t, align 4, !tbaa !5
  %128 = load i32, ptr @s, align 4, !tbaa !5
  %129 = call noundef zeroext i1 @_Z3bfsii(i32 noundef %127, i32 noundef %128)
  br i1 %129, label %.lr.ph124, label %._crit_edge125

._crit_edge108:                                   ; preds = %scalar.ph171, %middle.block170
  %indvars.iv.next144 = add nuw nsw i64 %indvars.iv143, 1
  %exitcond147.not = icmp eq i64 %indvars.iv.next144, %wide.trip.count146
  br i1 %exitcond147.not, label %._crit_edge111.split, label %.preheader82, !llvm.loop !18

scalar.ph171:                                     ; preds = %scalar.ph171.preheader, %scalar.ph171
  %indvars.iv140 = phi i64 [ %indvars.iv.next141, %scalar.ph171 ], [ %indvars.iv140.ph, %scalar.ph171.preheader ]
  %130 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %indvars.iv143, i64 %indvars.iv140
  %131 = load i32, ptr %130, align 4, !tbaa !5
  %132 = getelementptr inbounds [109 x [109 x i32]], ptr @b, i64 0, i64 %indvars.iv143, i64 %indvars.iv140
  %133 = load i32, ptr %132, align 4, !tbaa !5
  %134 = add nsw i32 %133, %131
  store i32 %134, ptr %132, align 4, !tbaa !5
  %135 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %indvars.iv140, i64 %indvars.iv143
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = getelementptr inbounds [109 x [109 x i32]], ptr @c, i64 0, i64 %indvars.iv143, i64 %indvars.iv140
  store i32 %136, ptr %137, align 4, !tbaa !5
  %indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next141, %wide.trip.count146
  br i1 %exitcond.not, label %._crit_edge108, label %scalar.ph171, !llvm.loop !19

.lr.ph124:                                        ; preds = %._crit_edge111.split, %._crit_edge122
  store i32 536870911, ptr @a, align 4, !tbaa !5
  %138 = load i32, ptr @s, align 4, !tbaa !5
  %139 = load i32, ptr @t, align 4, !tbaa !5
  %.not76112 = icmp eq i32 %138, %139
  br i1 %.not76112, label %._crit_edge122, label %.lr.ph115

._crit_edge116:                                   ; preds = %159
  %.pre161 = load i32, ptr @s, align 4, !tbaa !5
  %.not77118 = icmp eq i32 %.pre161, %161
  br i1 %.not77118, label %._crit_edge122, label %.lr.ph121

.lr.ph115:                                        ; preds = %.lr.ph124, %159
  %.061113 = phi i32 [ %161, %159 ], [ %138, %.lr.ph124 ]
  %140 = sext i32 %.061113 to i64
  %141 = getelementptr inbounds [109 x i32], ptr @p, i64 0, i64 %140
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = icmp slt i32 %142, 0
  br i1 %143, label %144, label %150

144:                                              ; preds = %.lr.ph115
  %145 = sub nsw i32 0, %142
  %146 = zext nneg i32 %145 to i64
  %147 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %140, i64 %146
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @a, ptr noundef nonnull align 4 dereferenceable(4) %147)
  %149 = load i32, ptr %148, align 4, !tbaa !5
  br label %159

150:                                              ; preds = %.lr.ph115
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  %151 = zext nneg i32 %142 to i64
  %152 = getelementptr inbounds [109 x [109 x i32]], ptr @c, i64 0, i64 %151, i64 %140
  %153 = load i32, ptr %152, align 4, !tbaa !5
  %154 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %151, i64 %140
  %155 = load i32, ptr %154, align 4, !tbaa !5
  %156 = sub nsw i32 %153, %155
  store i32 %156, ptr %3, align 4, !tbaa !5
  %157 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @a, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %158 = load i32, ptr %157, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  br label %159

159:                                              ; preds = %144, %150
  %.sink158 = phi i32 [ %149, %144 ], [ %158, %150 ]
  store i32 %.sink158, ptr @a, align 4
  %160 = load i32, ptr %141, align 4, !tbaa !5
  %161 = call i32 @llvm.abs.i32(i32 %160, i1 true)
  %162 = load i32, ptr @t, align 4, !tbaa !5
  %.not76 = icmp eq i32 %161, %162
  br i1 %.not76, label %._crit_edge116, label %.lr.ph115, !llvm.loop !20

._crit_edge122:                                   ; preds = %184, %.lr.ph124, %._crit_edge116
  %163 = phi i32 [ %.pre161, %._crit_edge116 ], [ %138, %.lr.ph124 ], [ %.pre161, %184 ]
  %164 = phi i32 [ %.sink158, %._crit_edge116 ], [ 536870911, %.lr.ph124 ], [ %.sink158, %184 ]
  %165 = phi i32 [ %161, %._crit_edge116 ], [ %138, %.lr.ph124 ], [ %161, %184 ]
  %166 = load i32, ptr @f1, align 4, !tbaa !5
  %167 = add nsw i32 %166, %164
  store i32 %167, ptr @f1, align 4, !tbaa !5
  %168 = call noundef zeroext i1 @_Z3bfsii(i32 noundef %165, i32 noundef %163)
  br i1 %168, label %.lr.ph124, label %._crit_edge125, !llvm.loop !21

.lr.ph121:                                        ; preds = %._crit_edge116, %184
  %.060119 = phi i32 [ %185, %184 ], [ %.pre161, %._crit_edge116 ]
  %169 = sext i32 %.060119 to i64
  %170 = getelementptr inbounds [109 x i32], ptr @p, i64 0, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = icmp slt i32 %171, 0
  br i1 %172, label %173, label %179

173:                                              ; preds = %.lr.ph121
  %174 = sub nsw i32 0, %171
  %175 = zext nneg i32 %174 to i64
  %176 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %169, i64 %175
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = sub nsw i32 %177, %.sink158
  store i32 %178, ptr %176, align 4, !tbaa !5
  br label %184

179:                                              ; preds = %.lr.ph121
  %180 = zext nneg i32 %171 to i64
  %181 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %180, i64 %169
  %182 = load i32, ptr %181, align 4, !tbaa !5
  %183 = add nsw i32 %182, %.sink158
  store i32 %183, ptr %181, align 4, !tbaa !5
  br label %184

184:                                              ; preds = %173, %179
  %185 = call i32 @llvm.abs.i32(i32 %171, i1 true)
  %.not77 = icmp eq i32 %185, %161
  br i1 %.not77, label %._crit_edge122, label %.lr.ph121, !llvm.loop !22

._crit_edge125:                                   ; preds = %._crit_edge122, %._crit_edge111.split
  %186 = load i32, ptr @f0, align 4, !tbaa !5
  %187 = load i32, ptr @f1, align 4, !tbaa !5
  %188 = sub nsw i32 %186, %187
  %189 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %188)
  %190 = load i32, ptr @n, align 4, !tbaa !5
  %.not74130 = icmp slt i32 %190, 1
  br i1 %.not74130, label %._crit_edge132.split, label %.preheader.preheader

.preheader.preheader:                             ; preds = %._crit_edge125
  %191 = add nuw i32 %190, 1
  %wide.trip.count156 = zext i32 %191 to i64
  %192 = zext nneg i32 %190 to i64
  %min.iters.check = icmp ult i32 %190, 8
  %n.vec = and i64 %192, 2147483640
  %ind.end = or disjoint i64 %n.vec, 1
  %cmp.n = icmp eq i64 %n.vec, %192
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge129
  %indvars.iv153 = phi i64 [ 1, %.preheader.preheader ], [ %indvars.iv.next154, %._crit_edge129 ]
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.body

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader
  %indvars.iv148.ph = phi i64 [ 1, %.preheader ], [ %ind.end, %middle.block ]
  br label %scalar.ph

vector.body:                                      ; preds = %.preheader, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.preheader ]
  %offset.idx = or disjoint i64 %index, 1
  %193 = or disjoint i64 %index, 2
  %194 = or disjoint i64 %index, 3
  %195 = or disjoint i64 %index, 4
  %196 = or disjoint i64 %index, 5
  %197 = or disjoint i64 %index, 6
  %198 = or disjoint i64 %index, 7
  %199 = add i64 %index, 8
  %200 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %offset.idx, i64 %indvars.iv153
  %201 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %193, i64 %indvars.iv153
  %202 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %194, i64 %indvars.iv153
  %203 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %195, i64 %indvars.iv153
  %204 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %196, i64 %indvars.iv153
  %205 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %197, i64 %indvars.iv153
  %206 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %198, i64 %indvars.iv153
  %207 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %199, i64 %indvars.iv153
  %208 = load i32, ptr %200, align 4, !tbaa !5
  %209 = load i32, ptr %201, align 4, !tbaa !5
  %210 = load i32, ptr %202, align 4, !tbaa !5
  %211 = load i32, ptr %203, align 4, !tbaa !5
  %212 = insertelement <4 x i32> poison, i32 %208, i64 0
  %213 = insertelement <4 x i32> %212, i32 %209, i64 1
  %214 = insertelement <4 x i32> %213, i32 %210, i64 2
  %215 = insertelement <4 x i32> %214, i32 %211, i64 3
  %216 = load i32, ptr %204, align 4, !tbaa !5
  %217 = load i32, ptr %205, align 4, !tbaa !5
  %218 = load i32, ptr %206, align 4, !tbaa !5
  %219 = load i32, ptr %207, align 4, !tbaa !5
  %220 = insertelement <4 x i32> poison, i32 %216, i64 0
  %221 = insertelement <4 x i32> %220, i32 %217, i64 1
  %222 = insertelement <4 x i32> %221, i32 %218, i64 2
  %223 = insertelement <4 x i32> %222, i32 %219, i64 3
  %224 = getelementptr inbounds [109 x [109 x i32]], ptr @b, i64 0, i64 %indvars.iv153, i64 %offset.idx
  %225 = getelementptr inbounds i8, ptr %224, i64 16
  %wide.load = load <4 x i32>, ptr %224, align 4, !tbaa !5
  %wide.load169 = load <4 x i32>, ptr %225, align 4, !tbaa !5
  %226 = sub nsw <4 x i32> %wide.load, %215
  %227 = sub nsw <4 x i32> %wide.load169, %223
  store <4 x i32> %226, ptr %224, align 4, !tbaa !5
  store <4 x i32> %227, ptr %225, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %228 = icmp eq i64 %index.next, %n.vec
  br i1 %228, label %middle.block, label %vector.body, !llvm.loop !23

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge129, label %scalar.ph.preheader

._crit_edge132.split:                             ; preds = %._crit_edge129, %._crit_edge125
  %229 = load i32, ptr @s, align 4, !tbaa !5
  %230 = load i32, ptr @f0, align 4, !tbaa !5
  %231 = load i32, ptr @f1, align 4, !tbaa !5
  %232 = sub nsw i32 %230, %231
  call void @_Z3dfsii(i32 noundef %229, i32 noundef %232)
  %233 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @n)
  %234 = icmp eq i32 %233, 1
  br i1 %234, label %.lr.ph134, label %._crit_edge135, !llvm.loop !24

._crit_edge129:                                   ; preds = %scalar.ph, %middle.block
  %indvars.iv.next154 = add nuw nsw i64 %indvars.iv153, 1
  %exitcond157.not = icmp eq i64 %indvars.iv.next154, %wide.trip.count156
  br i1 %exitcond157.not, label %._crit_edge132.split, label %.preheader, !llvm.loop !25

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv148 = phi i64 [ %indvars.iv.next149, %scalar.ph ], [ %indvars.iv148.ph, %scalar.ph.preheader ]
  %235 = getelementptr inbounds [109 x [109 x i32]], ptr @f, i64 0, i64 %indvars.iv148, i64 %indvars.iv153
  %236 = load i32, ptr %235, align 4, !tbaa !5
  %237 = getelementptr inbounds [109 x [109 x i32]], ptr @b, i64 0, i64 %indvars.iv153, i64 %indvars.iv148
  %238 = load i32, ptr %237, align 4, !tbaa !5
  %239 = sub nsw i32 %238, %236
  store i32 %239, ptr %237, align 4, !tbaa !5
  %indvars.iv.next149 = add nuw nsw i64 %indvars.iv148, 1
  %exitcond152.not = icmp eq i64 %indvars.iv.next149, %wide.trip.count156
  br i1 %exitcond152.not, label %._crit_edge129, label %scalar.ph, !llvm.loop !26

._crit_edge135:                                   ; preds = %._crit_edge132.split, %0
  ret i32 0
}

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #7

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 #7 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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, !17}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10, !17, !16}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10, !16, !17}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10, !17, !16}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,MergedLoadStoreMotionPass,SROAPass,SimplifyCFGPass,TailCallElimPass