; LLVM IR from tangjz/acm-icpc :: TDL_training/2016-07-06 (F - Fury - 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"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@u = external dso_local global i32, align 4
@v = external dso_local global i32, align 4
@f = external dso_local global [309 x i32], align 16
@lnk = external dso_local global [309 x %"class.std::vector"], align 16
@dfn = external dso_local global [309 x i32], align 16
@g = external dso_local global [309 x [309 x i8]], align 16
@h = external dso_local global [309 x [309 x i8]], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsi(i32 noundef) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %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
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %23 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m)
  br label %24

24:                                               ; preds = %28, %0
  %25 = load i32, ptr @m, align 4, !tbaa !5
  %26 = add nsw i32 %25, -1
  store i32 %26, ptr @m, align 4, !tbaa !5
  %27 = icmp ne i32 %25, 0
  br i1 %27, label %28, label %33

28:                                               ; preds = %24
  %29 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @u, ptr noundef @v)
  %30 = load i32, ptr @u, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [309 x %"class.std::vector"], ptr @lnk, i64 0, i64 %31
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 4 dereferenceable(4) @v)
  br label %24, !llvm.loop !9

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

34:                                               ; preds = %48, %33
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = load i32, ptr @n, align 4, !tbaa !5
  %37 = icmp sle i32 %35, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %51

39:                                               ; preds = %34
  %40 = load i32, ptr %2, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [309 x i32], ptr @dfn, i64 0, i64 %41
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %47, label %45

45:                                               ; preds = %39
  %46 = load i32, ptr %2, align 4, !tbaa !5
  call void @_Z3dfsi(i32 noundef %46)
  br label %47

47:                                               ; preds = %45, %39
  br label %48

48:                                               ; preds = %47
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %2, align 4, !tbaa !5
  br label %34, !llvm.loop !11

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

52:                                               ; preds = %88, %51
  %53 = load i32, ptr %3, align 4, !tbaa !5
  %54 = load i32, ptr @n, align 4, !tbaa !5
  %55 = icmp sle i32 %53, %54
  br i1 %55, label %57, label %56

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

57:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %58 = load i32, ptr %3, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [309 x %"class.std::vector"], ptr @lnk, i64 0, i64 %59
  store ptr %60, ptr %5, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %61 = load ptr, ptr %5, align 8, !tbaa !12
  %62 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #6
  %63 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %62, ptr %63, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %64 = load ptr, ptr %5, align 8, !tbaa !12
  %65 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %64) #6
  %66 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  store ptr %65, ptr %66, align 8
  br label %67

67:                                               ; preds = %85, %57
  %68 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %68, label %70, label %69

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

70:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %72 = load i32, ptr %71, align 4, !tbaa !5
  store i32 %72, ptr %8, align 4, !tbaa !5
  %73 = load i32, ptr %3, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [309 x i32], ptr @f, i64 0, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [309 x [309 x i8]], ptr @g, i64 0, i64 %77
  %79 = load i32, ptr %8, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [309 x i32], ptr @f, i64 0, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [309 x i8], ptr %78, i64 0, i64 %83
  store i8 1, ptr %84, align 1, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %85

85:                                               ; preds = %70
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br label %67

87:                                               ; preds = %69
  br label %88

88:                                               ; preds = %87
  %89 = load i32, ptr %3, align 4, !tbaa !5
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %3, align 4, !tbaa !5
  br label %52, !llvm.loop !16

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

92:                                               ; preds = %104, %91
  %93 = load i32, ptr %9, align 4, !tbaa !5
  %94 = load i32, ptr @n, align 4, !tbaa !5
  %95 = icmp sle i32 %93, %94
  br i1 %95, label %97, label %96

96:                                               ; preds = %92
  store i32 12, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %107

97:                                               ; preds = %92
  %98 = load i32, ptr %9, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [309 x [309 x i8]], ptr @g, i64 0, i64 %99
  %101 = load i32, ptr %9, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [309 x i8], ptr %100, i64 0, i64 %102
  store i8 0, ptr %103, align 1, !tbaa !14
  br label %104

104:                                              ; preds = %97
  %105 = load i32, ptr %9, align 4, !tbaa !5
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %9, align 4, !tbaa !5
  br label %92, !llvm.loop !17

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

108:                                              ; preds = %155, %107
  %109 = load i32, ptr %10, align 4, !tbaa !5
  %110 = load i32, ptr @n, align 4, !tbaa !5
  %111 = icmp sle i32 %109, %110
  br i1 %111, label %113, label %112

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

113:                                              ; preds = %108
  %114 = load i32, ptr %10, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [309 x i32], ptr @f, i64 0, i64 %115
  %117 = load i32, ptr %116, align 4, !tbaa !5
  %118 = load i32, ptr %10, align 4, !tbaa !5
  %119 = icmp eq i32 %117, %118
  br i1 %119, label %120, label %154

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

121:                                              ; preds = %150, %120
  %122 = load i32, ptr %11, align 4, !tbaa !5
  %123 = load i32, ptr @n, align 4, !tbaa !5
  %124 = icmp sle i32 %122, %123
  br i1 %124, label %126, label %125

125:                                              ; preds = %121
  store i32 18, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %153

126:                                              ; preds = %121
  %127 = load i32, ptr %11, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [309 x i32], ptr @f, i64 0, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = load i32, ptr %11, align 4, !tbaa !5
  %132 = icmp eq i32 %130, %131
  br i1 %132, label %133, label %149

133:                                              ; preds = %126
  %134 = load i32, ptr %10, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [309 x [309 x i8]], ptr @g, i64 0, i64 %135
  %137 = load i32, ptr %11, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [309 x i8], ptr %136, i64 0, i64 %138
  %140 = load i8, ptr %139, align 1, !tbaa !14, !range !18, !noundef !19
  %141 = trunc i8 %140 to i1
  %142 = load i32, ptr %10, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [309 x [309 x i8]], ptr @h, i64 0, i64 %143
  %145 = load i32, ptr %11, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [309 x i8], ptr %144, i64 0, i64 %146
  %148 = zext i1 %141 to i8
  store i8 %148, ptr %147, align 1, !tbaa !14
  br label %149

149:                                              ; preds = %133, %126
  br label %150

150:                                              ; preds = %149
  %151 = load i32, ptr %11, align 4, !tbaa !5
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %11, align 4, !tbaa !5
  br label %121, !llvm.loop !20

153:                                              ; preds = %125
  br label %154

154:                                              ; preds = %153, %113
  br label %155

155:                                              ; preds = %154
  %156 = load i32, ptr %10, align 4, !tbaa !5
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %10, align 4, !tbaa !5
  br label %108, !llvm.loop !21

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

159:                                              ; preds = %241, %158
  %160 = load i32, ptr %12, align 4, !tbaa !5
  %161 = load i32, ptr @n, align 4, !tbaa !5
  %162 = icmp sle i32 %160, %161
  br i1 %162, label %164, label %163

163:                                              ; preds = %159
  store i32 21, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %244

164:                                              ; preds = %159
  %165 = load i32, ptr %12, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [309 x i32], ptr @f, i64 0, i64 %166
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %169 = load i32, ptr %12, align 4, !tbaa !5
  %170 = icmp eq i32 %168, %169
  br i1 %170, label %171, label %240

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

172:                                              ; preds = %236, %171
  %173 = load i32, ptr %13, align 4, !tbaa !5
  %174 = load i32, ptr @n, align 4, !tbaa !5
  %175 = icmp sle i32 %173, %174
  br i1 %175, label %177, label %176

176:                                              ; preds = %172
  store i32 24, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %239

177:                                              ; preds = %172
  %178 = load i32, ptr %13, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [309 x i32], ptr @f, i64 0, i64 %179
  %181 = load i32, ptr %180, align 4, !tbaa !5
  %182 = load i32, ptr %13, align 4, !tbaa !5
  %183 = icmp eq i32 %181, %182
  br i1 %183, label %184, label %235

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

185:                                              ; preds = %231, %184
  %186 = load i32, ptr %14, align 4, !tbaa !5
  %187 = load i32, ptr @n, align 4, !tbaa !5
  %188 = icmp sle i32 %186, %187
  br i1 %188, label %190, label %189

189:                                              ; preds = %185
  store i32 27, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %234

190:                                              ; preds = %185
  %191 = load i32, ptr %14, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [309 x i32], ptr @f, i64 0, i64 %192
  %194 = load i32, ptr %193, align 4, !tbaa !5
  %195 = load i32, ptr %14, align 4, !tbaa !5
  %196 = icmp eq i32 %194, %195
  br i1 %196, label %197, label %230

197:                                              ; preds = %190
  %198 = load i32, ptr %13, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [309 x [309 x i8]], ptr @h, i64 0, i64 %199
  %201 = load i32, ptr %12, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [309 x i8], ptr %200, i64 0, i64 %202
  %204 = load i8, ptr %203, align 1, !tbaa !14, !range !18, !noundef !19
  %205 = trunc i8 %204 to i1
  br i1 %205, label %206, label %215

206:                                              ; preds = %197
  %207 = load i32, ptr %12, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [309 x [309 x i8]], ptr @h, i64 0, i64 %208
  %210 = load i32, ptr %14, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [309 x i8], ptr %209, i64 0, i64 %211
  %213 = load i8, ptr %212, align 1, !tbaa !14, !range !18, !noundef !19
  %214 = trunc i8 %213 to i1
  br label %215

215:                                              ; preds = %206, %197
  %216 = phi i1 [ false, %197 ], [ %214, %206 ]
  %217 = zext i1 %216 to i32
  %218 = load i32, ptr %13, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [309 x [309 x i8]], ptr @h, i64 0, i64 %219
  %221 = load i32, ptr %14, align 4, !tbaa !5
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [309 x i8], ptr %220, i64 0, i64 %222
  %224 = load i8, ptr %223, align 1, !tbaa !14, !range !18, !noundef !19
  %225 = trunc i8 %224 to i1
  %226 = zext i1 %225 to i32
  %227 = or i32 %226, %217
  %228 = icmp ne i32 %227, 0
  %229 = zext i1 %228 to i8
  store i8 %229, ptr %223, align 1, !tbaa !14
  br label %230

230:                                              ; preds = %215, %190
  br label %231

231:                                              ; preds = %230
  %232 = load i32, ptr %14, align 4, !tbaa !5
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %14, align 4, !tbaa !5
  br label %185, !llvm.loop !22

234:                                              ; preds = %189
  br label %235

235:                                              ; preds = %234, %177
  br label %236

236:                                              ; preds = %235
  %237 = load i32, ptr %13, align 4, !tbaa !5
  %238 = add nsw i32 %237, 1
  store i32 %238, ptr %13, align 4, !tbaa !5
  br label %172, !llvm.loop !23

239:                                              ; preds = %176
  br label %240

240:                                              ; preds = %239, %164
  br label %241

241:                                              ; preds = %240
  %242 = load i32, ptr %12, align 4, !tbaa !5
  %243 = add nsw i32 %242, 1
  store i32 %243, ptr %12, align 4, !tbaa !5
  br label %159, !llvm.loop !24

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

245:                                              ; preds = %257, %244
  %246 = load i32, ptr %15, align 4, !tbaa !5
  %247 = load i32, ptr @n, align 4, !tbaa !5
  %248 = icmp sle i32 %246, %247
  br i1 %248, label %250, label %249

249:                                              ; preds = %245
  store i32 30, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %260

250:                                              ; preds = %245
  %251 = load i32, ptr %15, align 4, !tbaa !5
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [309 x [309 x i8]], ptr @h, i64 0, i64 %252
  %254 = load i32, ptr %15, align 4, !tbaa !5
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [309 x i8], ptr %253, i64 0, i64 %255
  store i8 0, ptr %256, align 1, !tbaa !14
  br label %257

257:                                              ; preds = %250
  %258 = load i32, ptr %15, align 4, !tbaa !5
  %259 = add nsw i32 %258, 1
  store i32 %259, ptr %15, align 4, !tbaa !5
  br label %245, !llvm.loop !25

260:                                              ; preds = %249
  store i32 0, ptr @m, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 1, ptr %16, align 4, !tbaa !5
  br label %261

261:                                              ; preds = %347, %260
  %262 = load i32, ptr %16, align 4, !tbaa !5
  %263 = load i32, ptr @n, align 4, !tbaa !5
  %264 = icmp sle i32 %262, %263
  br i1 %264, label %266, label %265

265:                                              ; preds = %261
  store i32 33, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %350

266:                                              ; preds = %261
  %267 = load i32, ptr %16, align 4, !tbaa !5
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds [309 x i32], ptr @f, i64 0, i64 %268
  %270 = load i32, ptr %269, align 4, !tbaa !5
  %271 = load i32, ptr %16, align 4, !tbaa !5
  %272 = icmp eq i32 %270, %271
  br i1 %272, label %273, label %346

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

274:                                              ; preds = %342, %273
  %275 = load i32, ptr %17, align 4, !tbaa !5
  %276 = load i32, ptr @n, align 4, !tbaa !5
  %277 = icmp sle i32 %275, %276
  br i1 %277, label %279, label %278

278:                                              ; preds = %274
  store i32 36, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %345

279:                                              ; preds = %274
  %280 = load i32, ptr %17, align 4, !tbaa !5
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds [309 x i32], ptr @f, i64 0, i64 %281
  %283 = load i32, ptr %282, align 4, !tbaa !5
  %284 = load i32, ptr %17, align 4, !tbaa !5
  %285 = icmp eq i32 %283, %284
  br i1 %285, label %286, label %341

286:                                              ; preds = %279
  %287 = load i32, ptr %16, align 4, !tbaa !5
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds [309 x [309 x i8]], ptr @g, i64 0, i64 %288
  %290 = load i32, ptr %17, align 4, !tbaa !5
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [309 x i8], ptr %289, i64 0, i64 %291
  %293 = load i8, ptr %292, align 1, !tbaa !14, !range !18, !noundef !19
  %294 = trunc i8 %293 to i1
  br i1 %294, label %295, label %340

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

296:                                              ; preds = %335, %295
  %297 = load i32, ptr %18, align 4, !tbaa !5
  %298 = load i32, ptr @n, align 4, !tbaa !5
  %299 = icmp sle i32 %297, %298
  br i1 %299, label %301, label %300

300:                                              ; preds = %296
  store i32 39, ptr %4, align 4
  br label %338

301:                                              ; preds = %296
  %302 = load i32, ptr %18, align 4, !tbaa !5
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds [309 x i32], ptr @f, i64 0, i64 %303
  %305 = load i32, ptr %304, align 4, !tbaa !5
  %306 = load i32, ptr %18, align 4, !tbaa !5
  %307 = icmp eq i32 %305, %306
  br i1 %307, label %308, label %334

308:                                              ; preds = %301
  %309 = load i32, ptr %16, align 4, !tbaa !5
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [309 x [309 x i8]], ptr @h, i64 0, i64 %310
  %312 = load i32, ptr %18, align 4, !tbaa !5
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds [309 x i8], ptr %311, i64 0, i64 %313
  %315 = load i8, ptr %314, align 1, !tbaa !14, !range !18, !noundef !19
  %316 = trunc i8 %315 to i1
  br i1 %316, label %317, label %333

317:                                              ; preds = %308
  %318 = load i32, ptr %18, align 4, !tbaa !5
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds [309 x [309 x i8]], ptr @h, i64 0, i64 %319
  %321 = load i32, ptr %17, align 4, !tbaa !5
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds [309 x i8], ptr %320, i64 0, i64 %322
  %324 = load i8, ptr %323, align 1, !tbaa !14, !range !18, !noundef !19
  %325 = trunc i8 %324 to i1
  br i1 %325, label %326, label %333

326:                                              ; preds = %317
  %327 = load i32, ptr %16, align 4, !tbaa !5
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds [309 x [309 x i8]], ptr @g, i64 0, i64 %328
  %330 = load i32, ptr %17, align 4, !tbaa !5
  %331 = sext i32 %330 to i64
  %332 = getelementptr inbounds [309 x i8], ptr %329, i64 0, i64 %331
  store i8 0, ptr %332, align 1, !tbaa !14
  store i32 39, ptr %4, align 4
  br label %338

333:                                              ; preds = %317, %308
  br label %334

334:                                              ; preds = %333, %301
  br label %335

335:                                              ; preds = %334
  %336 = load i32, ptr %18, align 4, !tbaa !5
  %337 = add nsw i32 %336, 1
  store i32 %337, ptr %18, align 4, !tbaa !5
  br label %296, !llvm.loop !26

338:                                              ; preds = %326, %300
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %339

339:                                              ; preds = %338
  br label %340

340:                                              ; preds = %339, %286
  br label %341

341:                                              ; preds = %340, %279
  br label %342

342:                                              ; preds = %341
  %343 = load i32, ptr %17, align 4, !tbaa !5
  %344 = add nsw i32 %343, 1
  store i32 %344, ptr %17, align 4, !tbaa !5
  br label %274, !llvm.loop !27

345:                                              ; preds = %278
  br label %346

346:                                              ; preds = %345, %266
  br label %347

347:                                              ; preds = %346
  %348 = load i32, ptr %16, align 4, !tbaa !5
  %349 = add nsw i32 %348, 1
  store i32 %349, ptr %16, align 4, !tbaa !5
  br label %261, !llvm.loop !28

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

351:                                              ; preds = %378, %350
  %352 = load i32, ptr %19, align 4, !tbaa !5
  %353 = load i32, ptr @n, align 4, !tbaa !5
  %354 = icmp sle i32 %352, %353
  br i1 %354, label %356, label %355

355:                                              ; preds = %351
  store i32 42, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %381

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

357:                                              ; preds = %374, %356
  %358 = load i32, ptr %20, align 4, !tbaa !5
  %359 = load i32, ptr @n, align 4, !tbaa !5
  %360 = icmp sle i32 %358, %359
  br i1 %360, label %362, label %361

361:                                              ; preds = %357
  store i32 45, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %377

362:                                              ; preds = %357
  %363 = load i32, ptr %19, align 4, !tbaa !5
  %364 = sext i32 %363 to i64
  %365 = getelementptr inbounds [309 x [309 x i8]], ptr @g, i64 0, i64 %364
  %366 = load i32, ptr %20, align 4, !tbaa !5
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds [309 x i8], ptr %365, i64 0, i64 %367
  %369 = load i8, ptr %368, align 1, !tbaa !14, !range !18, !noundef !19
  %370 = trunc i8 %369 to i1
  %371 = zext i1 %370 to i32
  %372 = load i32, ptr @m, align 4, !tbaa !5
  %373 = add nsw i32 %372, %371
  store i32 %373, ptr @m, align 4, !tbaa !5
  br label %374

374:                                              ; preds = %362
  %375 = load i32, ptr %20, align 4, !tbaa !5
  %376 = add nsw i32 %375, 1
  store i32 %376, ptr %20, align 4, !tbaa !5
  br label %357, !llvm.loop !29

377:                                              ; preds = %361
  br label %378

378:                                              ; preds = %377
  %379 = load i32, ptr %19, align 4, !tbaa !5
  %380 = add nsw i32 %379, 1
  store i32 %380, ptr %19, align 4, !tbaa !5
  br label %351, !llvm.loop !30

381:                                              ; preds = %355
  %382 = load i32, ptr @n, align 4, !tbaa !5
  %383 = load i32, ptr @m, align 4, !tbaa !5
  %384 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %382, i32 noundef %383)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 1, ptr %21, align 4, !tbaa !5
  br label %385

385:                                              ; preds = %414, %381
  %386 = load i32, ptr %21, align 4, !tbaa !5
  %387 = load i32, ptr @n, align 4, !tbaa !5
  %388 = icmp sle i32 %386, %387
  br i1 %388, label %390, label %389

389:                                              ; preds = %385
  store i32 48, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %417

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

391:                                              ; preds = %410, %390
  %392 = load i32, ptr %22, align 4, !tbaa !5
  %393 = load i32, ptr @n, align 4, !tbaa !5
  %394 = icmp sle i32 %392, %393
  br i1 %394, label %396, label %395

395:                                              ; preds = %391
  store i32 51, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %413

396:                                              ; preds = %391
  %397 = load i32, ptr %21, align 4, !tbaa !5
  %398 = sext i32 %397 to i64
  %399 = getelementptr inbounds [309 x [309 x i8]], ptr @g, i64 0, i64 %398
  %400 = load i32, ptr %22, align 4, !tbaa !5
  %401 = sext i32 %400 to i64
  %402 = getelementptr inbounds [309 x i8], ptr %399, i64 0, i64 %401
  %403 = load i8, ptr %402, align 1, !tbaa !14, !range !18, !noundef !19
  %404 = trunc i8 %403 to i1
  br i1 %404, label %405, label %409

405:                                              ; preds = %396
  %406 = load i32, ptr %21, align 4, !tbaa !5
  %407 = load i32, ptr %22, align 4, !tbaa !5
  %408 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %406, i32 noundef %407)
  br label %409

409:                                              ; preds = %405, %396
  br label %410

410:                                              ; preds = %409
  %411 = load i32, ptr %22, align 4, !tbaa !5
  %412 = add nsw i32 %411, 1
  store i32 %412, ptr %22, align 4, !tbaa !5
  br label %391, !llvm.loop !31

413:                                              ; preds = %395
  br label %414

414:                                              ; preds = %413
  %415 = load i32, ptr %21, align 4, !tbaa !5
  %416 = add nsw i32 %415, 1
  store i32 %416, ptr %21, align 4, !tbaa !5
  br label %385, !llvm.loop !32

417:                                              ; preds = %389
  ret i32 0
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

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

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 = { 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 #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 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 #5 = { "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 #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 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !10}
!29 = distinct !{!29, !10}
!30 = distinct !{!30, !10}
!31 = distinct !{!31, !10}
!32 = distinct !{!32, !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"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@u = external dso_local global i32, align 4
@v = external dso_local global i32, align 4
@f = external dso_local local_unnamed_addr global [309 x i32], align 16
@lnk = external dso_local global [309 x %"class.std::vector"], align 16
@dfn = external dso_local local_unnamed_addr global [309 x i32], align 16
@g = external dso_local local_unnamed_addr global [309 x [309 x i8]], align 16
@h = external dso_local local_unnamed_addr global [309 x [309 x i8]], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsi(i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 {
  %1 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %4 = load i32, ptr @m, align 4, !tbaa !5
  %5 = add nsw i32 %4, -1
  store i32 %5, ptr @m, align 4, !tbaa !5
  %.not132 = icmp eq i32 %4, 0
  br i1 %.not132, label %.preheader131, label %.lr.ph

.preheader131:                                    ; preds = %.lr.ph, %0
  %6 = load i32, ptr @n, align 4, !tbaa !5
  %.not98133 = icmp slt i32 %6, 1
  br i1 %.not98133, label %.preheader116.thread.sink.split, label %.lr.ph135

.lr.ph:                                           ; preds = %0, %.lr.ph
  %7 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @u, ptr noundef nonnull @v)
  %8 = load i32, ptr @u, align 4, !tbaa !5
  %9 = sext i32 %8 to i64
  %10 = getelementptr inbounds [309 x %"class.std::vector"], ptr @lnk, i64 0, i64 %9
  tail call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(4) @v)
  %11 = load i32, ptr @m, align 4, !tbaa !5
  %12 = add nsw i32 %11, -1
  store i32 %12, ptr @m, align 4, !tbaa !5
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %.preheader131, label %.lr.ph, !llvm.loop !9

.preheader130:                                    ; preds = %18
  %.not99137 = icmp slt i32 %19, 1
  br i1 %.not99137, label %.preheader116.thread.sink.split, label %.lr.ph139

.lr.ph135:                                        ; preds = %.preheader131, %18
  %13 = phi i32 [ %19, %18 ], [ %6, %.preheader131 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %18 ], [ 1, %.preheader131 ]
  %14 = getelementptr inbounds [309 x i32], ptr @dfn, i64 0, i64 %indvars.iv
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %.not114 = icmp eq i32 %15, 0
  br i1 %.not114, label %16, label %18

16:                                               ; preds = %.lr.ph135
  %17 = trunc nuw nsw i64 %indvars.iv to i32
  tail call void @_Z3dfsi(i32 noundef %17)
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %.lr.ph135, %16
  %19 = phi i32 [ %13, %.lr.ph135 ], [ %.pre, %16 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %20 = sext i32 %19 to i64
  %.not98.not = icmp slt i64 %indvars.iv, %20
  br i1 %.not98.not, label %.lr.ph135, label %.preheader130, !llvm.loop !11

.preheader129:                                    ; preds = %._crit_edge
  %.not100140 = icmp slt i32 %28, 1
  br i1 %.not100140, label %.preheader116.thread.sink.split, label %.lr.ph142.preheader

.lr.ph142.preheader:                              ; preds = %.preheader129
  %21 = zext nneg i32 %28 to i64
  %xtraiter = and i64 %21, 3
  %22 = icmp ult i32 %28, 4
  br i1 %22, label %.preheader128.unr-lcssa, label %.lr.ph142.preheader.new

.lr.ph142.preheader.new:                          ; preds = %.lr.ph142.preheader
  %unroll_iter = and i64 %21, 2147483644
  br label %.lr.ph142

.lr.ph139:                                        ; preds = %.preheader130, %._crit_edge
  %indvars.iv198 = phi i64 [ %indvars.iv.next199, %._crit_edge ], [ 1, %.preheader130 ]
  %23 = getelementptr inbounds [309 x %"class.std::vector"], ptr @lnk, i64 0, i64 %indvars.iv198
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  %24 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  store ptr %24, ptr %1, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  %25 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  store ptr %25, ptr %2, align 8
  %26 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #7
  br i1 %26, label %.lr.ph136, label %._crit_edge

.lr.ph136:                                        ; preds = %.lr.ph139
  %27 = getelementptr inbounds [309 x i32], ptr @f, i64 0, i64 %indvars.iv198
  br label %30

._crit_edge:                                      ; preds = %30, %.lr.ph139
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  %indvars.iv.next199 = add nuw nsw i64 %indvars.iv198, 1
  %28 = load i32, ptr @n, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %.not99.not = icmp slt i64 %indvars.iv198, %29
  br i1 %.not99.not, label %.lr.ph139, label %.preheader129, !llvm.loop !12

30:                                               ; preds = %.lr.ph136, %30
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #7
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = load i32, ptr %27, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = sext i32 %32 to i64
  %36 = getelementptr inbounds [309 x i32], ptr @f, i64 0, i64 %35
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [309 x [309 x i8]], ptr @g, i64 0, i64 %34, i64 %38
  store i8 1, ptr %39, align 1, !tbaa !13
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #7
  %41 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #7
  br i1 %41, label %30, label %._crit_edge

.preheader128.unr-lcssa:                          ; preds = %.lr.ph142, %.lr.ph142.preheader
  %indvars.iv201.unr = phi i64 [ 1, %.lr.ph142.preheader ], [ %indvars.iv.next202.3, %.lr.ph142 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader128, label %.lr.ph142.epil

.lr.ph142.epil:                                   ; preds = %.preheader128.unr-lcssa, %.lr.ph142.epil
  %indvars.iv201.epil = phi i64 [ %indvars.iv.next202.epil, %.lr.ph142.epil ], [ %indvars.iv201.unr, %.preheader128.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph142.epil ], [ 0, %.preheader128.unr-lcssa ]
  %42 = getelementptr inbounds [309 x [309 x i8]], ptr @g, i64 0, i64 %indvars.iv201.epil, i64 %indvars.iv201.epil
  store i8 0, ptr %42, align 1, !tbaa !13
  %indvars.iv.next202.epil = add nuw nsw i64 %indvars.iv201.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader128, label %.lr.ph142.epil, !llvm.loop !15

.preheader128:                                    ; preds = %.lr.ph142.epil, %.preheader128.unr-lcssa
  br i1 %.not100140, label %.preheader116.thread.sink.split, label %.lr.ph148.split.preheader

.lr.ph148.split.preheader:                        ; preds = %.preheader128
  %43 = add nuw i32 %28, 1
  %wide.trip.count212 = zext i32 %43 to i64
  %xtraiter305 = and i64 %21, 1
  %44 = icmp eq i32 %28, 1
  %unroll_iter308 = and i64 %21, 2147483646
  %lcmp.mod307.not = icmp eq i64 %xtraiter305, 0
  br label %.lr.ph148.split

.lr.ph142:                                        ; preds = %.lr.ph142, %.lr.ph142.preheader.new
  %indvars.iv201 = phi i64 [ 1, %.lr.ph142.preheader.new ], [ %indvars.iv.next202.3, %.lr.ph142 ]
  %niter = phi i64 [ 0, %.lr.ph142.preheader.new ], [ %niter.next.3, %.lr.ph142 ]
  %45 = getelementptr inbounds [309 x [309 x i8]], ptr @g, i64 0, i64 %indvars.iv201, i64 %indvars.iv201
  store i8 0, ptr %45, align 1, !tbaa !13
  %indvars.iv.next202 = add nuw nsw i64 %indvars.iv201, 1
  %46 = getelementptr inbounds [309 x [309 x i8]], ptr @g, i64 0, i64 %indvars.iv.next202, i64 %indvars.iv.next202
  store i8 0, ptr %46, align 1, !tbaa !13
  %indvars.iv.next202.1 = add nuw nsw i64 %indvars.iv201, 2
  %47 = getelementptr inbounds [309 x [309 x i8]], ptr @g, i64 0, i64 %indvars.iv.next202.1, i64 %indvars.iv.next202.1
  store i8 0, ptr %47, align 1, !tbaa !13
  %indvars.iv.next202.2 = add nuw nsw i64 %indvars.iv201, 3
  %48 = getelementptr inbounds [309 x [309 x i8]], ptr @g, i64 0, i64 %indvars.iv.next202.2, i64 %indvars.iv.next202.2
  store i8 0, ptr %48, align 1, !tbaa !13
  %indvars.iv.next202.3 = add nuw nsw i64 %indvars.iv201, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader128.unr-lcssa, label %.lr.ph142, !llvm.loop !17

.preheader125:                                    ; preds = %..loopexit127_crit_edge
  br i1 %.not100140, label %.preheader116.thread.sink.split, label %.lr.ph157.split.preheader

.lr.ph157.split.preheader:                        ; preds = %.preheader125
  %49 = add nuw i32 %28, 1
  %wide.trip.count227 = zext i32 %49 to i64
  br label %.lr.ph157.split

.lr.ph148.split:                                  ; preds = %.lr.ph148.split.preheader, %..loopexit127_crit_edge
  %indvars.iv209 = phi i64 [ 1, %.lr.ph148.split.preheader ], [ %indvars.iv.next210, %..loopexit127_crit_edge ]
  %50 = getelementptr inbounds [309 x i32], ptr @f, i64 0, i64 %indvars.iv209
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = zext i32 %51 to i64
  %53 = icmp eq i64 %indvars.iv209, %52
  br i1 %53, label %.preheader126.preheader, label %..loopexit127_crit_edge

.preheader126.preheader:                          ; preds = %.lr.ph148.split
  br i1 %44, label %..loopexit127_crit_edge.loopexit.unr-lcssa, label %.preheader126

.preheader126:                                    ; preds = %.preheader126.preheader, %70
  %indvars.iv204 = phi i64 [ %indvars.iv.next205.1, %70 ], [ 1, %.preheader126.preheader ]
  %niter309 = phi i64 [ %niter309.next.1, %70 ], [ 0, %.preheader126.preheader ]
  %54 = getelementptr inbounds [309 x i32], ptr @f, i64 0, i64 %indvars.iv204
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = zext i32 %55 to i64
  %57 = icmp eq i64 %indvars.iv204, %56
  br i1 %57, label %58, label %.preheader126.1

58:                                               ; preds = %.preheader126
  %59 = getelementptr inbounds [309 x [309 x i8]], ptr @g, i64 0, i64 %indvars.iv209, i64 %indvars.iv204
  %60 = load i8, ptr %59, align 1, !tbaa !13, !range !18, !noundef !19
  %61 = getelementptr inbounds [309 x [309 x i8]], ptr @h, i64 0, i64 %indvars.iv209, i64 %indvars.iv204
  store i8 %60, ptr %61, align 1, !tbaa !13
  br label %.preheader126.1

.preheader126.1:                                  ; preds = %.preheader126, %58
  %indvars.iv.next205 = add nuw nsw i64 %indvars.iv204, 1
  %62 = getelementptr inbounds [309 x i32], ptr @f, i64 0, i64 %indvars.iv.next205
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = zext i32 %63 to i64
  %65 = icmp eq i64 %indvars.iv.next205, %64
  br i1 %65, label %66, label %70

66:                                               ; preds = %.preheader126.1
  %67 = getelementptr inbounds [309 x [309 x i8]], ptr @g, i64 0, i64 %indvars.iv209, i64 %indvars.iv.next205
  %68 = load i8, ptr %67, align 1, !tbaa !13, !range !18, !noundef !19
  %69 = getelementptr inbounds [309 x [309 x i8]], ptr @h, i64 0, i64 %indvars.iv209, i64 %indvars.iv.next205
  store i8 %68, ptr %69, align 1, !tbaa !13
  br label %70

70:                                               ; preds = %66, %.preheader126.1
  %indvars.iv.next205.1 = add nuw nsw i64 %indvars.iv204, 2
  %niter309.next.1 = add i64 %niter309, 2
  %niter309.ncmp.1 = icmp eq i64 %niter309.next.1, %unroll_iter308
  br i1 %niter309.ncmp.1, label %..loopexit127_crit_edge.loopexit.unr-lcssa, label %.preheader126, !llvm.loop !20

..loopexit127_crit_edge.loopexit.unr-lcssa:       ; preds = %70, %.preheader126.preheader
  %indvars.iv204.unr = phi i64 [ 1, %.preheader126.preheader ], [ %indvars.iv.next205.1, %70 ]
  br i1 %lcmp.mod307.not, label %..loopexit127_crit_edge, label %.preheader126.epil

.preheader126.epil:                               ; preds = %..loopexit127_crit_edge.loopexit.unr-lcssa
  %71 = getelementptr inbounds [309 x i32], ptr @f, i64 0, i64 %indvars.iv204.unr
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = zext i32 %72 to i64
  %74 = icmp eq i64 %indvars.iv204.unr, %73
  br i1 %74, label %75, label %..loopexit127_crit_edge

75:                                               ; preds = %.preheader126.epil
  %76 = getelementptr inbounds [309 x [309 x i8]], ptr @g, i64 0, i64 %indvars.iv209, i64 %indvars.iv204.unr
  %77 = load i8, ptr %76, align 1, !tbaa !13, !range !18, !noundef !19
  %78 = getelementptr inbounds [309 x [309 x i8]], ptr @h, i64 0, i64 %indvars.iv209, i64 %indvars.iv204.unr
  store i8 %77, ptr %78, align 1, !tbaa !13
  br label %..loopexit127_crit_edge

..loopexit127_crit_edge:                          ; preds = %..loopexit127_crit_edge.loopexit.unr-lcssa, %75, %.preheader126.epil, %.lr.ph148.split
  %indvars.iv.next210 = add nuw nsw i64 %indvars.iv209, 1
  %exitcond213.not = icmp eq i64 %indvars.iv.next210, %wide.trip.count212
  br i1 %exitcond213.not, label %.preheader125, label %.lr.ph148.split, !llvm.loop !21

.preheader120:                                    ; preds = %..loopexit124_crit_edge.split
  br i1 %.not100140, label %.preheader116.thread.sink.split, label %.lr.ph160.preheader

.lr.ph160.preheader:                              ; preds = %.preheader120
  %xtraiter310 = and i64 %21, 3
  %79 = icmp ult i32 %28, 4
  br i1 %79, label %._crit_edge161.unr-lcssa, label %.lr.ph160.preheader.new

.lr.ph160.preheader.new:                          ; preds = %.lr.ph160.preheader
  %unroll_iter313 = and i64 %21, 2147483644
  br label %.lr.ph160

.lr.ph157.split:                                  ; preds = %.lr.ph157.split.preheader, %..loopexit124_crit_edge.split
  %indvars.iv224 = phi i64 [ 1, %.lr.ph157.split.preheader ], [ %indvars.iv.next225, %..loopexit124_crit_edge.split ]
  %80 = getelementptr inbounds [309 x i32], ptr @f, i64 0, i64 %indvars.iv224
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = zext i32 %81 to i64
  %83 = icmp eq i64 %indvars.iv224, %82
  br i1 %83, label %.preheader123, label %..loopexit124_crit_edge.split

.preheader123:                                    ; preds = %.lr.ph157.split, %..loopexit122_crit_edge
  %indvars.iv219 = phi i64 [ %indvars.iv.next220, %..loopexit122_crit_edge ], [ 1, %.lr.ph157.split ]
  %84 = getelementptr inbounds [309 x i32], ptr @f, i64 0, i64 %indvars.iv219
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = zext i32 %85 to i64
  %87 = icmp eq i64 %indvars.iv219, %86
  br i1 %87, label %.preheader121, label %..loopexit122_crit_edge

.preheader121:                                    ; preds = %.preheader123
  %88 = getelementptr inbounds [309 x [309 x i8]], ptr @h, i64 0, i64 %indvars.iv219, i64 %indvars.iv224
  br label %89

89:                                               ; preds = %.preheader121, %105
  %indvars.iv214 = phi i64 [ 1, %.preheader121 ], [ %indvars.iv.next215, %105 ]
  %90 = getelementptr inbounds [309 x i32], ptr @f, i64 0, i64 %indvars.iv214
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = zext i32 %91 to i64
  %93 = icmp eq i64 %indvars.iv214, %92
  br i1 %93, label %94, label %105

94:                                               ; preds = %89
  %95 = load i8, ptr %88, align 1, !tbaa !13, !range !18, !noundef !19
  %96 = trunc nuw i8 %95 to i1
  br i1 %96, label %97, label %100

97:                                               ; preds = %94
  %98 = getelementptr inbounds [309 x [309 x i8]], ptr @h, i64 0, i64 %indvars.iv224, i64 %indvars.iv214
  %99 = load i8, ptr %98, align 1, !tbaa !13, !range !18, !noundef !19
  br label %100

100:                                              ; preds = %97, %94
  %101 = phi i8 [ 0, %94 ], [ %99, %97 ]
  %102 = getelementptr inbounds [309 x [309 x i8]], ptr @h, i64 0, i64 %indvars.iv219, i64 %indvars.iv214
  %103 = load i8, ptr %102, align 1, !tbaa !13, !range !18, !noundef !19
  %104 = or i8 %103, %101
  store i8 %104, ptr %102, align 1, !tbaa !13
  br label %105

105:                                              ; preds = %89, %100
  %indvars.iv.next215 = add nuw nsw i64 %indvars.iv214, 1
  %exitcond218.not = icmp eq i64 %indvars.iv.next215, %wide.trip.count227
  br i1 %exitcond218.not, label %..loopexit122_crit_edge, label %89, !llvm.loop !22

..loopexit122_crit_edge:                          ; preds = %105, %.preheader123
  %indvars.iv.next220 = add nuw nsw i64 %indvars.iv219, 1
  %exitcond223.not = icmp eq i64 %indvars.iv.next220, %wide.trip.count227
  br i1 %exitcond223.not, label %..loopexit124_crit_edge.split, label %.preheader123, !llvm.loop !23

..loopexit124_crit_edge.split:                    ; preds = %..loopexit122_crit_edge, %.lr.ph157.split
  %indvars.iv.next225 = add nuw nsw i64 %indvars.iv224, 1
  %exitcond228.not = icmp eq i64 %indvars.iv.next225, %wide.trip.count227
  br i1 %exitcond228.not, label %.preheader120, label %.lr.ph157.split, !llvm.loop !24

._crit_edge161.unr-lcssa:                         ; preds = %.lr.ph160, %.lr.ph160.preheader
  %indvars.iv229.unr = phi i64 [ 1, %.lr.ph160.preheader ], [ %indvars.iv.next230.3, %.lr.ph160 ]
  %lcmp.mod312.not = icmp eq i64 %xtraiter310, 0
  br i1 %lcmp.mod312.not, label %._crit_edge161, label %.lr.ph160.epil

.lr.ph160.epil:                                   ; preds = %._crit_edge161.unr-lcssa, %.lr.ph160.epil
  %indvars.iv229.epil = phi i64 [ %indvars.iv.next230.epil, %.lr.ph160.epil ], [ %indvars.iv229.unr, %._crit_edge161.unr-lcssa ]
  %epil.iter311 = phi i64 [ %epil.iter311.next, %.lr.ph160.epil ], [ 0, %._crit_edge161.unr-lcssa ]
  %106 = getelementptr inbounds [309 x [309 x i8]], ptr @h, i64 0, i64 %indvars.iv229.epil, i64 %indvars.iv229.epil
  store i8 0, ptr %106, align 1, !tbaa !13
  %indvars.iv.next230.epil = add nuw nsw i64 %indvars.iv229.epil, 1
  %epil.iter311.next = add i64 %epil.iter311, 1
  %epil.iter311.cmp.not = icmp eq i64 %epil.iter311.next, %xtraiter310
  br i1 %epil.iter311.cmp.not, label %._crit_edge161, label %.lr.ph160.epil, !llvm.loop !25

._crit_edge161:                                   ; preds = %.lr.ph160.epil, %._crit_edge161.unr-lcssa
  store i32 0, ptr @m, align 4, !tbaa !5
  br i1 %.not100140, label %.preheader116.thread, label %.lr.ph171.split.preheader

.lr.ph171.split.preheader:                        ; preds = %._crit_edge161
  %107 = add nuw i32 %28, 1
  %wide.trip.count247 = zext i32 %107 to i64
  br label %.lr.ph171.split

.lr.ph160:                                        ; preds = %.lr.ph160, %.lr.ph160.preheader.new
  %indvars.iv229 = phi i64 [ 1, %.lr.ph160.preheader.new ], [ %indvars.iv.next230.3, %.lr.ph160 ]
  %niter314 = phi i64 [ 0, %.lr.ph160.preheader.new ], [ %niter314.next.3, %.lr.ph160 ]
  %108 = getelementptr inbounds [309 x [309 x i8]], ptr @h, i64 0, i64 %indvars.iv229, i64 %indvars.iv229
  store i8 0, ptr %108, align 1, !tbaa !13
  %indvars.iv.next230 = add nuw nsw i64 %indvars.iv229, 1
  %109 = getelementptr inbounds [309 x [309 x i8]], ptr @h, i64 0, i64 %indvars.iv.next230, i64 %indvars.iv.next230
  store i8 0, ptr %109, align 1, !tbaa !13
  %indvars.iv.next230.1 = add nuw nsw i64 %indvars.iv229, 2
  %110 = getelementptr inbounds [309 x [309 x i8]], ptr @h, i64 0, i64 %indvars.iv.next230.1, i64 %indvars.iv.next230.1
  store i8 0, ptr %110, align 1, !tbaa !13
  %indvars.iv.next230.2 = add nuw nsw i64 %indvars.iv229, 3
  %111 = getelementptr inbounds [309 x [309 x i8]], ptr @h, i64 0, i64 %indvars.iv.next230.2, i64 %indvars.iv.next230.2
  store i8 0, ptr %111, align 1, !tbaa !13
  %indvars.iv.next230.3 = add nuw nsw i64 %indvars.iv229, 4
  %niter314.next.3 = add i64 %niter314, 4
  %niter314.ncmp.3 = icmp eq i64 %niter314.next.3, %unroll_iter313
  br i1 %niter314.ncmp.3, label %._crit_edge161.unr-lcssa, label %.lr.ph160, !llvm.loop !26

.preheader116:                                    ; preds = %..loopexit119_crit_edge.split
  br i1 %.not100140, label %.preheader116.thread, label %.preheader115.preheader

.preheader115.preheader:                          ; preds = %.preheader116
  %112 = add nuw i32 %28, 1
  %wide.trip.count257 = zext i32 %112 to i64
  %113 = zext nneg i32 %28 to i64
  %min.iters.check = icmp ult i32 %28, 8
  %n.vec = and i64 %113, 2147483640
  %ind.end = or disjoint i64 %n.vec, 1
  %cmp.n = icmp eq i64 %n.vec, %113
  br label %.preheader115

.lr.ph171.split:                                  ; preds = %.lr.ph171.split.preheader, %..loopexit119_crit_edge.split
  %indvars.iv244 = phi i64 [ 1, %.lr.ph171.split.preheader ], [ %indvars.iv.next245, %..loopexit119_crit_edge.split ]
  %114 = getelementptr inbounds [309 x i32], ptr @f, i64 0, i64 %indvars.iv244
  %115 = load i32, ptr %114, align 4, !tbaa !5
  %116 = zext i32 %115 to i64
  %117 = icmp eq i64 %indvars.iv244, %116
  br i1 %117, label %.preheader118, label %..loopexit119_crit_edge.split

.preheader118:                                    ; preds = %.lr.ph171.split, %..loopexit_crit_edge
  %indvars.iv239 = phi i64 [ %indvars.iv.next240, %..loopexit_crit_edge ], [ 1, %.lr.ph171.split ]
  %118 = getelementptr inbounds [309 x i32], ptr @f, i64 0, i64 %indvars.iv239
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = zext i32 %119 to i64
  %121 = icmp eq i64 %indvars.iv239, %120
  br i1 %121, label %122, label %..loopexit_crit_edge

122:                                              ; preds = %.preheader118
  %123 = getelementptr inbounds [309 x [309 x i8]], ptr @g, i64 0, i64 %indvars.iv244, i64 %indvars.iv239
  %124 = load i8, ptr %123, align 1, !tbaa !13, !range !18, !noundef !19
  %125 = trunc nuw i8 %124 to i1
  br i1 %125, label %.preheader117, label %..loopexit_crit_edge

.preheader117:                                    ; preds = %122, %139
  %indvars.iv234 = phi i64 [ %indvars.iv.next235, %139 ], [ 1, %122 ]
  %126 = getelementptr inbounds [309 x i32], ptr @f, i64 0, i64 %indvars.iv234
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %128 = zext i32 %127 to i64
  %129 = icmp eq i64 %indvars.iv234, %128
  br i1 %129, label %130, label %139

130:                                              ; preds = %.preheader117
  %131 = getelementptr inbounds [309 x [309 x i8]], ptr @h, i64 0, i64 %indvars.iv244, i64 %indvars.iv234
  %132 = load i8, ptr %131, align 1, !tbaa !13, !range !18, !noundef !19
  %133 = trunc nuw i8 %132 to i1
  br i1 %133, label %134, label %139

134:                                              ; preds = %130
  %135 = getelementptr inbounds [309 x [309 x i8]], ptr @h, i64 0, i64 %indvars.iv234, i64 %indvars.iv239
  %136 = load i8, ptr %135, align 1, !tbaa !13, !range !18, !noundef !19
  %137 = trunc nuw i8 %136 to i1
  br i1 %137, label %138, label %139

138:                                              ; preds = %134
  store i8 0, ptr %123, align 1, !tbaa !13
  br label %..loopexit_crit_edge

139:                                              ; preds = %.preheader117, %134, %130
  %indvars.iv.next235 = add nuw nsw i64 %indvars.iv234, 1
  %exitcond238.not = icmp eq i64 %indvars.iv.next235, %wide.trip.count247
  br i1 %exitcond238.not, label %..loopexit_crit_edge, label %.preheader117, !llvm.loop !27

..loopexit_crit_edge:                             ; preds = %139, %138, %.preheader118, %122
  %indvars.iv.next240 = add nuw nsw i64 %indvars.iv239, 1
  %exitcond243.not = icmp eq i64 %indvars.iv.next240, %wide.trip.count247
  br i1 %exitcond243.not, label %..loopexit119_crit_edge.split, label %.preheader118, !llvm.loop !28

..loopexit119_crit_edge.split:                    ; preds = %..loopexit_crit_edge, %.lr.ph171.split
  %indvars.iv.next245 = add nuw nsw i64 %indvars.iv244, 1
  %exitcond248.not = icmp eq i64 %indvars.iv.next245, %wide.trip.count247
  br i1 %exitcond248.not, label %.preheader116, label %.lr.ph171.split, !llvm.loop !29

.preheader115:                                    ; preds = %.preheader115.preheader, %._crit_edge175
  %indvars.iv254 = phi i64 [ 1, %.preheader115.preheader ], [ %indvars.iv.next255, %._crit_edge175 ]
  %.lcssa176179181 = phi i32 [ 0, %.preheader115.preheader ], [ %.lcssa295, %._crit_edge175 ]
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader115
  %indvars.iv249.ph = phi i64 [ 1, %.preheader115 ], [ %ind.end, %middle.block ]
  %.ph = phi i32 [ %.lcssa176179181, %.preheader115 ], [ %148, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.preheader115
  %140 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %.lcssa176179181, i64 0
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ %140, %vector.ph ], [ %145, %vector.body ]
  %vec.phi298 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %146, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %141 = getelementptr inbounds [309 x [309 x i8]], ptr @g, i64 0, i64 %indvars.iv254, i64 %offset.idx
  %142 = getelementptr inbounds i8, ptr %141, i64 4
  %wide.load = load <4 x i8>, ptr %141, align 1, !tbaa !13
  %wide.load299 = load <4 x i8>, ptr %142, align 1, !tbaa !13
  %143 = zext <4 x i8> %wide.load to <4 x i32>
  %144 = zext <4 x i8> %wide.load299 to <4 x i32>
  %145 = add <4 x i32> %vec.phi, %143
  %146 = add <4 x i32> %vec.phi298, %144
  %index.next = add nuw i64 %index, 8
  %147 = icmp eq i64 %index.next, %n.vec
  br i1 %147, label %middle.block, label %vector.body, !llvm.loop !30

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %146, %145
  %148 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  br i1 %cmp.n, label %._crit_edge175, label %scalar.ph.preheader

.preheader116.thread.sink.split:                  ; preds = %._crit_edge175, %.preheader129, %.preheader131, %.preheader130, %.preheader128, %.preheader125, %.preheader120
  %.sink = phi i32 [ 0, %.preheader120 ], [ 0, %.preheader125 ], [ 0, %.preheader128 ], [ 0, %.preheader130 ], [ 0, %.preheader131 ], [ 0, %.preheader129 ], [ %.lcssa295, %._crit_edge175 ]
  %.lcssa269274279284287291.ph = phi i32 [ %28, %.preheader120 ], [ %28, %.preheader125 ], [ %28, %.preheader128 ], [ %19, %.preheader130 ], [ %6, %.preheader131 ], [ %28, %.preheader129 ], [ %28, %._crit_edge175 ]
  store i32 %.sink, ptr @m, align 4, !tbaa !5
  br label %.preheader116.thread

.preheader116.thread:                             ; preds = %.preheader116.thread.sink.split, %._crit_edge161, %.preheader116
  %.lcssa269274279284287291 = phi i32 [ %28, %.preheader116 ], [ %28, %._crit_edge161 ], [ %.lcssa269274279284287291.ph, %.preheader116.thread.sink.split ]
  %149 = phi i32 [ 0, %.preheader116 ], [ 0, %._crit_edge161 ], [ %.sink, %.preheader116.thread.sink.split ]
  %150 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %.lcssa269274279284287291, i32 noundef %149)
  %151 = load i32, ptr @n, align 4, !tbaa !5
  %.not106188 = icmp slt i32 %151, 1
  br i1 %.not106188, label %._crit_edge190, label %.preheader

._crit_edge175:                                   ; preds = %scalar.ph, %middle.block
  %.lcssa295 = phi i32 [ %148, %middle.block ], [ %156, %scalar.ph ]
  %indvars.iv.next255 = add nuw nsw i64 %indvars.iv254, 1
  %exitcond258.not = icmp eq i64 %indvars.iv.next255, %wide.trip.count257
  br i1 %exitcond258.not, label %.preheader116.thread.sink.split, label %.preheader115, !llvm.loop !33

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv249 = phi i64 [ %indvars.iv.next250, %scalar.ph ], [ %indvars.iv249.ph, %scalar.ph.preheader ]
  %152 = phi i32 [ %156, %scalar.ph ], [ %.ph, %scalar.ph.preheader ]
  %153 = getelementptr inbounds [309 x [309 x i8]], ptr @g, i64 0, i64 %indvars.iv254, i64 %indvars.iv249
  %154 = load i8, ptr %153, align 1, !tbaa !13, !range !18, !noundef !19
  %155 = zext nneg i8 %154 to i32
  %156 = add nsw i32 %152, %155
  %indvars.iv.next250 = add nuw nsw i64 %indvars.iv249, 1
  %exitcond253.not = icmp eq i64 %indvars.iv.next250, %wide.trip.count257
  br i1 %exitcond253.not, label %._crit_edge175, label %scalar.ph, !llvm.loop !34

.preheader:                                       ; preds = %.preheader116.thread, %._crit_edge187
  %157 = phi i32 [ %159, %._crit_edge187 ], [ %151, %.preheader116.thread ]
  %indvars.iv262 = phi i64 [ %indvars.iv.next263, %._crit_edge187 ], [ 1, %.preheader116.thread ]
  %.not107184 = icmp slt i32 %157, 1
  br i1 %.not107184, label %._crit_edge187, label %.lr.ph186

.lr.ph186:                                        ; preds = %.preheader
  %158 = trunc nuw nsw i64 %indvars.iv262 to i32
  br label %161

._crit_edge190:                                   ; preds = %._crit_edge187, %.preheader116.thread
  ret i32 0

._crit_edge187:                                   ; preds = %170, %.preheader
  %159 = phi i32 [ %157, %.preheader ], [ %171, %170 ]
  %indvars.iv.next263 = add nuw nsw i64 %indvars.iv262, 1
  %160 = sext i32 %159 to i64
  %.not106.not = icmp slt i64 %indvars.iv262, %160
  br i1 %.not106.not, label %.preheader, label %._crit_edge190, !llvm.loop !35

161:                                              ; preds = %.lr.ph186, %170
  %162 = phi i32 [ %157, %.lr.ph186 ], [ %171, %170 ]
  %163 = phi i32 [ %157, %.lr.ph186 ], [ %172, %170 ]
  %indvars.iv259 = phi i64 [ 1, %.lr.ph186 ], [ %indvars.iv.next260, %170 ]
  %164 = getelementptr inbounds [309 x [309 x i8]], ptr @g, i64 0, i64 %indvars.iv262, i64 %indvars.iv259
  %165 = load i8, ptr %164, align 1, !tbaa !13, !range !18, !noundef !19
  %166 = trunc nuw i8 %165 to i1
  br i1 %166, label %167, label %170

167:                                              ; preds = %161
  %168 = trunc nuw nsw i64 %indvars.iv259 to i32
  %169 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %158, i32 noundef %168)
  %.pre265 = load i32, ptr @n, align 4, !tbaa !5
  br label %170

170:                                              ; preds = %161, %167
  %171 = phi i32 [ %162, %161 ], [ %.pre265, %167 ]
  %172 = phi i32 [ %163, %161 ], [ %.pre265, %167 ]
  %indvars.iv.next260 = add nuw nsw i64 %indvars.iv259, 1
  %173 = sext i32 %172 to i64
  %.not107.not = icmp slt i64 %indvars.iv259, %173
  br i1 %.not107.not, label %161, label %._crit_edge187, !llvm.loop !37
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 #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 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 #5 = { 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 #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 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = distinct !{!17, !10}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !16}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !10}
!29 = distinct !{!29, !10}
!30 = distinct !{!30, !10, !31, !32}
!31 = !{!"llvm.loop.isvectorized", i32 1}
!32 = !{!"llvm.loop.unroll.runtime.disable"}
!33 = distinct !{!33, !10}
!34 = distinct !{!34, !10, !32, !31}
!35 = distinct !{!35, !10, !36}
!36 = !{!"llvm.loop.unswitch.partial.disable"}
!37 = distinct !{!37, !10}


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