; LLVM IR from kazunetakahashi/atcoder :: 2017/1001_kupc2017 (D)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@f = external dso_local global [3 x [3 x i8]], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1

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

20:                                               ; preds = %415, %0
  %21 = load i32, ptr %3, align 4, !tbaa !5
  %22 = icmp slt i32 %21, 512
  br i1 %22, label %24, label %23

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

24:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #5
  store i8 0, ptr %5, align 1, !tbaa !9
  call void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef @f, ptr noundef getelementptr inbounds (i8, ptr @f, i64 9), ptr noundef nonnull align 1 dereferenceable(1) %5)
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %25

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

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

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

30:                                               ; preds = %52, %29
  %31 = load i32, ptr %7, align 4, !tbaa !5
  %32 = icmp slt i32 %31, 3
  br i1 %32, label %34, label %33

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

34:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %35 = load i32, ptr %6, align 4, !tbaa !5
  %36 = mul nsw i32 %35, 3
  %37 = load i32, ptr %7, align 4, !tbaa !5
  %38 = add nsw i32 %36, %37
  store i32 %38, ptr %8, align 4, !tbaa !5
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = load i32, ptr %8, align 4, !tbaa !5
  %41 = ashr i32 %39, %40
  %42 = and i32 %41, 1
  %43 = icmp eq i32 %42, 1
  br i1 %43, label %44, label %51

44:                                               ; preds = %34
  %45 = load i32, ptr %6, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %46
  %48 = load i32, ptr %7, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [3 x i8], ptr %47, i64 0, i64 %49
  store i8 1, ptr %50, align 1, !tbaa !9
  br label %51

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

52:                                               ; preds = %51
  %53 = load i32, ptr %7, align 4, !tbaa !5
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %7, align 4, !tbaa !5
  br label %30, !llvm.loop !11

55:                                               ; preds = %33
  br label %56

56:                                               ; preds = %55
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %6, align 4, !tbaa !5
  br label %25, !llvm.loop !13

59:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #5
  store i8 1, ptr %9, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %133, %59
  %61 = load i32, ptr %10, align 4, !tbaa !5
  %62 = icmp slt i32 %61, 1
  br i1 %62, label %64, label %63

63:                                               ; preds = %60
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %136

64:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %129, %64
  %66 = load i32, ptr %11, align 4, !tbaa !5
  %67 = icmp slt i32 %66, 3
  br i1 %67, label %69, label %68

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

69:                                               ; preds = %65
  %70 = load i32, ptr %10, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %71
  %73 = load i32, ptr %11, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [3 x i8], ptr %72, i64 0, i64 %74
  %76 = load i8, ptr %75, align 1, !tbaa !9, !range !14, !noundef !15
  %77 = trunc i8 %76 to i1
  br i1 %77, label %78, label %98

78:                                               ; preds = %69
  %79 = load i32, ptr %10, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %81
  %83 = load i32, ptr %11, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [3 x i8], ptr %82, i64 0, i64 %84
  %86 = load i8, ptr %85, align 1, !tbaa !9, !range !14, !noundef !15
  %87 = trunc i8 %86 to i1
  br i1 %87, label %88, label %98

88:                                               ; preds = %78
  %89 = load i32, ptr %10, align 4, !tbaa !5
  %90 = add nsw i32 %89, 2
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %91
  %93 = load i32, ptr %11, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [3 x i8], ptr %92, i64 0, i64 %94
  %96 = load i8, ptr %95, align 1, !tbaa !9, !range !14, !noundef !15
  %97 = trunc i8 %96 to i1
  br i1 %97, label %127, label %98

98:                                               ; preds = %88, %78, %69
  %99 = load i32, ptr %10, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %100
  %102 = load i32, ptr %11, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [3 x i8], ptr %101, i64 0, i64 %103
  %105 = load i8, ptr %104, align 1, !tbaa !9, !range !14, !noundef !15
  %106 = trunc i8 %105 to i1
  br i1 %106, label %128, label %107

107:                                              ; preds = %98
  %108 = load i32, ptr %10, align 4, !tbaa !5
  %109 = add nsw i32 %108, 1
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %110
  %112 = load i32, ptr %11, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [3 x i8], ptr %111, i64 0, i64 %113
  %115 = load i8, ptr %114, align 1, !tbaa !9, !range !14, !noundef !15
  %116 = trunc i8 %115 to i1
  br i1 %116, label %128, label %117

117:                                              ; preds = %107
  %118 = load i32, ptr %10, align 4, !tbaa !5
  %119 = add nsw i32 %118, 2
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %120
  %122 = load i32, ptr %11, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [3 x i8], ptr %121, i64 0, i64 %123
  %125 = load i8, ptr %124, align 1, !tbaa !9, !range !14, !noundef !15
  %126 = trunc i8 %125 to i1
  br i1 %126, label %128, label %127

127:                                              ; preds = %117, %88
  store i8 0, ptr %9, align 1, !tbaa !9
  br label %128

128:                                              ; preds = %127, %117, %107, %98
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %11, align 4, !tbaa !5
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %11, align 4, !tbaa !5
  br label %65, !llvm.loop !16

132:                                              ; preds = %68
  br label %133

133:                                              ; preds = %132
  %134 = load i32, ptr %10, align 4, !tbaa !5
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %10, align 4, !tbaa !5
  br label %60, !llvm.loop !17

136:                                              ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %137

137:                                              ; preds = %210, %136
  %138 = load i32, ptr %12, align 4, !tbaa !5
  %139 = icmp slt i32 %138, 1
  br i1 %139, label %141, label %140

140:                                              ; preds = %137
  store i32 17, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %213

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

142:                                              ; preds = %206, %141
  %143 = load i32, ptr %13, align 4, !tbaa !5
  %144 = icmp slt i32 %143, 3
  br i1 %144, label %146, label %145

145:                                              ; preds = %142
  store i32 20, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %209

146:                                              ; preds = %142
  %147 = load i32, ptr %13, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %148
  %150 = load i32, ptr %12, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [3 x i8], ptr %149, i64 0, i64 %151
  %153 = load i8, ptr %152, align 1, !tbaa !9, !range !14, !noundef !15
  %154 = trunc i8 %153 to i1
  br i1 %154, label %155, label %175

155:                                              ; preds = %146
  %156 = load i32, ptr %13, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %157
  %159 = load i32, ptr %12, align 4, !tbaa !5
  %160 = add nsw i32 %159, 1
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [3 x i8], ptr %158, i64 0, i64 %161
  %163 = load i8, ptr %162, align 1, !tbaa !9, !range !14, !noundef !15
  %164 = trunc i8 %163 to i1
  br i1 %164, label %165, label %175

165:                                              ; preds = %155
  %166 = load i32, ptr %13, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %167
  %169 = load i32, ptr %12, align 4, !tbaa !5
  %170 = add nsw i32 %169, 2
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [3 x i8], ptr %168, i64 0, i64 %171
  %173 = load i8, ptr %172, align 1, !tbaa !9, !range !14, !noundef !15
  %174 = trunc i8 %173 to i1
  br i1 %174, label %204, label %175

175:                                              ; preds = %165, %155, %146
  %176 = load i32, ptr %13, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %177
  %179 = load i32, ptr %12, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [3 x i8], ptr %178, i64 0, i64 %180
  %182 = load i8, ptr %181, align 1, !tbaa !9, !range !14, !noundef !15
  %183 = trunc i8 %182 to i1
  br i1 %183, label %205, label %184

184:                                              ; preds = %175
  %185 = load i32, ptr %13, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %186
  %188 = load i32, ptr %12, align 4, !tbaa !5
  %189 = add nsw i32 %188, 1
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [3 x i8], ptr %187, i64 0, i64 %190
  %192 = load i8, ptr %191, align 1, !tbaa !9, !range !14, !noundef !15
  %193 = trunc i8 %192 to i1
  br i1 %193, label %205, label %194

194:                                              ; preds = %184
  %195 = load i32, ptr %13, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %196
  %198 = load i32, ptr %12, align 4, !tbaa !5
  %199 = add nsw i32 %198, 2
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [3 x i8], ptr %197, i64 0, i64 %200
  %202 = load i8, ptr %201, align 1, !tbaa !9, !range !14, !noundef !15
  %203 = trunc i8 %202 to i1
  br i1 %203, label %205, label %204

204:                                              ; preds = %194, %165
  store i8 0, ptr %9, align 1, !tbaa !9
  br label %205

205:                                              ; preds = %204, %194, %184, %175
  br label %206

206:                                              ; preds = %205
  %207 = load i32, ptr %13, align 4, !tbaa !5
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %13, align 4, !tbaa !5
  br label %142, !llvm.loop !18

209:                                              ; preds = %145
  br label %210

210:                                              ; preds = %209
  %211 = load i32, ptr %12, align 4, !tbaa !5
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %12, align 4, !tbaa !5
  br label %137, !llvm.loop !19

213:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %214

214:                                              ; preds = %291, %213
  %215 = load i32, ptr %14, align 4, !tbaa !5
  %216 = icmp slt i32 %215, 1
  br i1 %216, label %218, label %217

217:                                              ; preds = %214
  store i32 23, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %294

218:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %219

219:                                              ; preds = %287, %218
  %220 = load i32, ptr %15, align 4, !tbaa !5
  %221 = icmp slt i32 %220, 1
  br i1 %221, label %223, label %222

222:                                              ; preds = %219
  store i32 26, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %290

223:                                              ; preds = %219
  %224 = load i32, ptr %14, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %225
  %227 = load i32, ptr %15, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [3 x i8], ptr %226, i64 0, i64 %228
  %230 = load i8, ptr %229, align 1, !tbaa !9, !range !14, !noundef !15
  %231 = trunc i8 %230 to i1
  br i1 %231, label %232, label %254

232:                                              ; preds = %223
  %233 = load i32, ptr %14, align 4, !tbaa !5
  %234 = add nsw i32 %233, 1
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %235
  %237 = load i32, ptr %15, align 4, !tbaa !5
  %238 = add nsw i32 %237, 1
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [3 x i8], ptr %236, i64 0, i64 %239
  %241 = load i8, ptr %240, align 1, !tbaa !9, !range !14, !noundef !15
  %242 = trunc i8 %241 to i1
  br i1 %242, label %243, label %254

243:                                              ; preds = %232
  %244 = load i32, ptr %14, align 4, !tbaa !5
  %245 = add nsw i32 %244, 2
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %246
  %248 = load i32, ptr %15, align 4, !tbaa !5
  %249 = add nsw i32 %248, 2
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [3 x i8], ptr %247, i64 0, i64 %250
  %252 = load i8, ptr %251, align 1, !tbaa !9, !range !14, !noundef !15
  %253 = trunc i8 %252 to i1
  br i1 %253, label %285, label %254

254:                                              ; preds = %243, %232, %223
  %255 = load i32, ptr %14, align 4, !tbaa !5
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %256
  %258 = load i32, ptr %15, align 4, !tbaa !5
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [3 x i8], ptr %257, i64 0, i64 %259
  %261 = load i8, ptr %260, align 1, !tbaa !9, !range !14, !noundef !15
  %262 = trunc i8 %261 to i1
  br i1 %262, label %286, label %263

263:                                              ; preds = %254
  %264 = load i32, ptr %14, align 4, !tbaa !5
  %265 = add nsw i32 %264, 1
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %266
  %268 = load i32, ptr %15, align 4, !tbaa !5
  %269 = add nsw i32 %268, 1
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [3 x i8], ptr %267, i64 0, i64 %270
  %272 = load i8, ptr %271, align 1, !tbaa !9, !range !14, !noundef !15
  %273 = trunc i8 %272 to i1
  br i1 %273, label %286, label %274

274:                                              ; preds = %263
  %275 = load i32, ptr %14, align 4, !tbaa !5
  %276 = add nsw i32 %275, 2
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %277
  %279 = load i32, ptr %15, align 4, !tbaa !5
  %280 = add nsw i32 %279, 2
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds [3 x i8], ptr %278, i64 0, i64 %281
  %283 = load i8, ptr %282, align 1, !tbaa !9, !range !14, !noundef !15
  %284 = trunc i8 %283 to i1
  br i1 %284, label %286, label %285

285:                                              ; preds = %274, %243
  store i8 0, ptr %9, align 1, !tbaa !9
  br label %286

286:                                              ; preds = %285, %274, %263, %254
  br label %287

287:                                              ; preds = %286
  %288 = load i32, ptr %15, align 4, !tbaa !5
  %289 = add nsw i32 %288, 1
  store i32 %289, ptr %15, align 4, !tbaa !5
  br label %219, !llvm.loop !20

290:                                              ; preds = %222
  br label %291

291:                                              ; preds = %290
  %292 = load i32, ptr %14, align 4, !tbaa !5
  %293 = add nsw i32 %292, 1
  store i32 %293, ptr %14, align 4, !tbaa !5
  br label %214, !llvm.loop !21

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

295:                                              ; preds = %372, %294
  %296 = load i32, ptr %16, align 4, !tbaa !5
  %297 = icmp slt i32 %296, 1
  br i1 %297, label %299, label %298

298:                                              ; preds = %295
  store i32 29, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %375

299:                                              ; preds = %295
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %300

300:                                              ; preds = %368, %299
  %301 = load i32, ptr %17, align 4, !tbaa !5
  %302 = icmp slt i32 %301, 1
  br i1 %302, label %304, label %303

303:                                              ; preds = %300
  store i32 32, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %371

304:                                              ; preds = %300
  %305 = load i32, ptr %16, align 4, !tbaa !5
  %306 = sub nsw i32 2, %305
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %307
  %309 = load i32, ptr %17, align 4, !tbaa !5
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [3 x i8], ptr %308, i64 0, i64 %310
  %312 = load i8, ptr %311, align 1, !tbaa !9, !range !14, !noundef !15
  %313 = trunc i8 %312 to i1
  br i1 %313, label %314, label %335

314:                                              ; preds = %304
  %315 = load i32, ptr %16, align 4, !tbaa !5
  %316 = sub nsw i32 1, %315
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %317
  %319 = load i32, ptr %17, align 4, !tbaa !5
  %320 = add nsw i32 %319, 1
  %321 = sext i32 %320 to i64
  %322 = getelementptr inbounds [3 x i8], ptr %318, i64 0, i64 %321
  %323 = load i8, ptr %322, align 1, !tbaa !9, !range !14, !noundef !15
  %324 = trunc i8 %323 to i1
  br i1 %324, label %325, label %335

325:                                              ; preds = %314
  %326 = load i32, ptr %16, align 4, !tbaa !5
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %327
  %329 = load i32, ptr %17, align 4, !tbaa !5
  %330 = add nsw i32 %329, 2
  %331 = sext i32 %330 to i64
  %332 = getelementptr inbounds [3 x i8], ptr %328, i64 0, i64 %331
  %333 = load i8, ptr %332, align 1, !tbaa !9, !range !14, !noundef !15
  %334 = trunc i8 %333 to i1
  br i1 %334, label %366, label %335

335:                                              ; preds = %325, %314, %304
  %336 = load i32, ptr %16, align 4, !tbaa !5
  %337 = sub nsw i32 2, %336
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %338
  %340 = load i32, ptr %17, align 4, !tbaa !5
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds [3 x i8], ptr %339, i64 0, i64 %341
  %343 = load i8, ptr %342, align 1, !tbaa !9, !range !14, !noundef !15
  %344 = trunc i8 %343 to i1
  br i1 %344, label %367, label %345

345:                                              ; preds = %335
  %346 = load i32, ptr %16, align 4, !tbaa !5
  %347 = sub nsw i32 1, %346
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %348
  %350 = load i32, ptr %17, align 4, !tbaa !5
  %351 = add nsw i32 %350, 1
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds [3 x i8], ptr %349, i64 0, i64 %352
  %354 = load i8, ptr %353, align 1, !tbaa !9, !range !14, !noundef !15
  %355 = trunc i8 %354 to i1
  br i1 %355, label %367, label %356

356:                                              ; preds = %345
  %357 = load i32, ptr %16, align 4, !tbaa !5
  %358 = sext i32 %357 to i64
  %359 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %358
  %360 = load i32, ptr %17, align 4, !tbaa !5
  %361 = add nsw i32 %360, 2
  %362 = sext i32 %361 to i64
  %363 = getelementptr inbounds [3 x i8], ptr %359, i64 0, i64 %362
  %364 = load i8, ptr %363, align 1, !tbaa !9, !range !14, !noundef !15
  %365 = trunc i8 %364 to i1
  br i1 %365, label %367, label %366

366:                                              ; preds = %356, %325
  store i8 0, ptr %9, align 1, !tbaa !9
  br label %367

367:                                              ; preds = %366, %356, %345, %335
  br label %368

368:                                              ; preds = %367
  %369 = load i32, ptr %17, align 4, !tbaa !5
  %370 = add nsw i32 %369, 1
  store i32 %370, ptr %17, align 4, !tbaa !5
  br label %300, !llvm.loop !22

371:                                              ; preds = %303
  br label %372

372:                                              ; preds = %371
  %373 = load i32, ptr %16, align 4, !tbaa !5
  %374 = add nsw i32 %373, 1
  store i32 %374, ptr %16, align 4, !tbaa !5
  br label %295, !llvm.loop !23

375:                                              ; preds = %298
  %376 = load i8, ptr %9, align 1, !tbaa !9, !range !14, !noundef !15
  %377 = trunc i8 %376 to i1
  br i1 %377, label %378, label %414

378:                                              ; preds = %375
  %379 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
  %380 = load i32, ptr %2, align 4, !tbaa !5
  %381 = add nsw i32 %380, 1
  store i32 %381, ptr %2, align 4, !tbaa !5
  %382 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %379, i32 noundef %380)
  %383 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %382, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %384

384:                                              ; preds = %410, %378
  %385 = load i32, ptr %18, align 4, !tbaa !5
  %386 = icmp slt i32 %385, 3
  br i1 %386, label %388, label %387

387:                                              ; preds = %384
  store i32 35, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %413

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

389:                                              ; preds = %405, %388
  %390 = load i32, ptr %19, align 4, !tbaa !5
  %391 = icmp slt i32 %390, 3
  br i1 %391, label %393, label %392

392:                                              ; preds = %389
  store i32 38, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %408

393:                                              ; preds = %389
  %394 = load i32, ptr %18, align 4, !tbaa !5
  %395 = sext i32 %394 to i64
  %396 = getelementptr inbounds [3 x [3 x i8]], ptr @f, i64 0, i64 %395
  %397 = load i32, ptr %19, align 4, !tbaa !5
  %398 = sext i32 %397 to i64
  %399 = getelementptr inbounds [3 x i8], ptr %396, i64 0, i64 %398
  %400 = load i8, ptr %399, align 1, !tbaa !9, !range !14, !noundef !15
  %401 = trunc i8 %400 to i1
  %402 = zext i1 %401 to i64
  %403 = select i1 %401, i8 48, i8 49
  %404 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i8 noundef signext %403)
  br label %405

405:                                              ; preds = %393
  %406 = load i32, ptr %19, align 4, !tbaa !5
  %407 = add nsw i32 %406, 1
  store i32 %407, ptr %19, align 4, !tbaa !5
  br label %389, !llvm.loop !24

408:                                              ; preds = %392
  %409 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %410

410:                                              ; preds = %408
  %411 = load i32, ptr %18, align 4, !tbaa !5
  %412 = add nsw i32 %411, 1
  store i32 %412, ptr %18, align 4, !tbaa !5
  br label %384, !llvm.loop !25

413:                                              ; preds = %387
  br label %414

414:                                              ; preds = %413, %375
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  br label %415

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

418:                                              ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %419 = load i32, ptr %1, align 4
  ret i32 %419
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) #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 uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #2

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 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 = { 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 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12}


; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@f = external dso_local global [3 x [3 x i8]], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i8, align 1
  br label %.preheader113

2:                                                ; preds = %.loopexit114
  ret i32 0

.preheader113:                                    ; preds = %0, %.loopexit114
  %.095193 = phi i32 [ 0, %0 ], [ %.196, %.loopexit114 ]
  %.099192 = phi i32 [ 0, %0 ], [ %137, %.loopexit114 ]
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %1) #5
  store i8 0, ptr %1, align 1, !tbaa !5
  call void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef nonnull @f, ptr noundef nonnull getelementptr inbounds (i8, ptr @f, i64 9), ptr noundef nonnull align 1 dereferenceable(1) %1)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %1) #5
  %3 = and i32 %.099192, 1
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %5, label %4

4:                                                ; preds = %.preheader113
  store i8 1, ptr @f, align 1, !tbaa !5
  br label %5

5:                                                ; preds = %4, %.preheader113
  %6 = and i32 %.099192, 2
  %.not.1 = icmp eq i32 %6, 0
  br i1 %.not.1, label %8, label %7

7:                                                ; preds = %5
  store i8 1, ptr getelementptr inbounds (i8, ptr @f, i64 1), align 1, !tbaa !5
  br label %8

8:                                                ; preds = %7, %5
  %9 = and i32 %.099192, 4
  %.not.2 = icmp eq i32 %9, 0
  br i1 %.not.2, label %.preheader113.1, label %10

10:                                               ; preds = %8
  store i8 1, ptr getelementptr inbounds (i8, ptr @f, i64 2), align 1, !tbaa !5
  br label %.preheader113.1

.preheader113.1:                                  ; preds = %10, %8
  %11 = and i32 %.099192, 8
  %.not.1201 = icmp eq i32 %11, 0
  br i1 %.not.1201, label %13, label %12

12:                                               ; preds = %.preheader113.1
  store i8 1, ptr getelementptr inbounds (i8, ptr @f, i64 3), align 1, !tbaa !5
  br label %13

13:                                               ; preds = %12, %.preheader113.1
  %14 = and i32 %.099192, 16
  %.not.1.1 = icmp eq i32 %14, 0
  br i1 %.not.1.1, label %16, label %15

15:                                               ; preds = %13
  store i8 1, ptr getelementptr inbounds (i8, ptr @f, i64 4), align 1, !tbaa !5
  br label %16

16:                                               ; preds = %15, %13
  %17 = and i32 %.099192, 32
  %.not.2.1 = icmp eq i32 %17, 0
  br i1 %.not.2.1, label %.preheader113.2, label %18

18:                                               ; preds = %16
  store i8 1, ptr getelementptr inbounds (i8, ptr @f, i64 5), align 1, !tbaa !5
  br label %.preheader113.2

.preheader113.2:                                  ; preds = %18, %16
  %19 = and i32 %.099192, 64
  %.not.2202 = icmp eq i32 %19, 0
  br i1 %.not.2202, label %21, label %20

20:                                               ; preds = %.preheader113.2
  store i8 1, ptr getelementptr inbounds (i8, ptr @f, i64 6), align 1, !tbaa !5
  br label %21

21:                                               ; preds = %20, %.preheader113.2
  %22 = and i32 %.099192, 128
  %.not.1.2 = icmp eq i32 %22, 0
  br i1 %.not.1.2, label %24, label %23

23:                                               ; preds = %21
  store i8 1, ptr getelementptr inbounds (i8, ptr @f, i64 7), align 1, !tbaa !5
  br label %24

24:                                               ; preds = %23, %21
  %25 = and i32 %.099192, 256
  %.not.2.2 = icmp eq i32 %25, 0
  br i1 %.not.2.2, label %.preheader111.preheader, label %26

26:                                               ; preds = %24
  store i8 1, ptr getelementptr inbounds (i8, ptr @f, i64 8), align 1, !tbaa !5
  br label %.preheader111.preheader

.preheader111.preheader:                          ; preds = %26, %24
  %27 = load i8, ptr @f, align 1, !tbaa !5, !range !9, !noundef !10
  %28 = trunc nuw i8 %27 to i1
  %29 = load i8, ptr getelementptr inbounds (i8, ptr @f, i64 3), align 1, !tbaa !5, !range !9, !noundef !10
  %30 = trunc nuw i8 %29 to i1
  br i1 %28, label %31, label %35

31:                                               ; preds = %.preheader111.preheader
  br i1 %30, label %32, label %.thread

32:                                               ; preds = %31
  %33 = load i8, ptr getelementptr inbounds (i8, ptr @f, i64 6), align 1, !tbaa !5, !range !9, !noundef !10
  %34 = trunc nuw i8 %33 to i1
  br i1 %34, label %39, label %.thread

35:                                               ; preds = %.preheader111.preheader
  br i1 %30, label %.thread, label %36

36:                                               ; preds = %35
  %37 = load i8, ptr getelementptr inbounds (i8, ptr @f, i64 6), align 1, !tbaa !5, !range !9, !noundef !10
  %38 = trunc nuw i8 %37 to i1
  br i1 %38, label %.thread, label %39

39:                                               ; preds = %36, %32
  br label %.thread

.thread:                                          ; preds = %31, %32, %35, %36, %39
  %.2 = phi i1 [ false, %39 ], [ true, %35 ], [ true, %36 ], [ true, %32 ], [ true, %31 ]
  %40 = load i8, ptr getelementptr inbounds (i8, ptr @f, i64 1), align 1, !tbaa !5, !range !9, !noundef !10
  %41 = trunc nuw i8 %40 to i1
  %42 = load i8, ptr getelementptr inbounds (i8, ptr @f, i64 4), align 1, !range !9, !noundef !10
  %43 = trunc nuw i8 %42 to i1
  br i1 %41, label %48, label %44

44:                                               ; preds = %.thread
  br i1 %43, label %.thread.1, label %45

45:                                               ; preds = %44
  %46 = load i8, ptr getelementptr inbounds (i8, ptr @f, i64 7), align 1, !tbaa !5, !range !9, !noundef !10
  %47 = trunc nuw i8 %46 to i1
  br i1 %47, label %.thread.1, label %52

48:                                               ; preds = %.thread
  br i1 %43, label %49, label %.thread.1

49:                                               ; preds = %48
  %50 = load i8, ptr getelementptr inbounds (i8, ptr @f, i64 7), align 1, !tbaa !5, !range !9, !noundef !10
  %51 = trunc nuw i8 %50 to i1
  br i1 %51, label %52, label %.thread.1

52:                                               ; preds = %49, %45
  br label %.thread.1

.thread.1:                                        ; preds = %52, %49, %48, %45, %44
  %.2.1 = phi i1 [ false, %52 ], [ %.2, %44 ], [ %.2, %45 ], [ %.2, %49 ], [ %.2, %48 ]
  %53 = load i8, ptr getelementptr inbounds (i8, ptr @f, i64 2), align 1, !range !9, !noundef !10
  %54 = trunc nuw i8 %53 to i1
  %55 = load i8, ptr getelementptr inbounds (i8, ptr @f, i64 5), align 1, !tbaa !5, !range !9, !noundef !10
  %56 = trunc nuw i8 %55 to i1
  br i1 %54, label %61, label %57

57:                                               ; preds = %.thread.1
  br i1 %56, label %.thread.2, label %58

58:                                               ; preds = %57
  %59 = load i8, ptr getelementptr inbounds (i8, ptr @f, i64 8), align 1, !range !9, !noundef !10
  %60 = trunc nuw i8 %59 to i1
  br i1 %60, label %.thread.2, label %65

61:                                               ; preds = %.thread.1
  br i1 %56, label %62, label %.thread.2

62:                                               ; preds = %61
  %63 = load i8, ptr getelementptr inbounds (i8, ptr @f, i64 8), align 1, !range !9, !noundef !10
  %64 = trunc nuw i8 %63 to i1
  br i1 %64, label %65, label %.thread.2

65:                                               ; preds = %62, %58
  br label %.thread.2

.thread.2:                                        ; preds = %65, %62, %61, %58, %57
  %.2.2 = phi i1 [ false, %65 ], [ %.2.1, %57 ], [ %.2.1, %58 ], [ %.2.1, %62 ], [ %.2.1, %61 ]
  br i1 %28, label %66, label %67

66:                                               ; preds = %.thread.2
  %brmerge.demorgan = and i1 %41, %54
  br i1 %brmerge.demorgan, label %68, label %.thread101

67:                                               ; preds = %.thread.2
  %brmerge209 = or i1 %41, %54
  br i1 %brmerge209, label %.thread101, label %68

68:                                               ; preds = %67, %66
  br label %.thread101

.thread101:                                       ; preds = %67, %66, %68
  %.5 = phi i1 [ false, %68 ], [ %.2.2, %67 ], [ %.2.2, %66 ]
  %69 = trunc nuw i8 %29 to i1
  %70 = trunc nuw i8 %42 to i1
  br i1 %69, label %74, label %71

71:                                               ; preds = %.thread101
  br i1 %70, label %.thread101.1, label %72

72:                                               ; preds = %71
  %73 = trunc nuw i8 %55 to i1
  br i1 %73, label %.thread101.1, label %77

74:                                               ; preds = %.thread101
  br i1 %70, label %75, label %.thread101.1

75:                                               ; preds = %74
  %76 = trunc nuw i8 %55 to i1
  br i1 %76, label %77, label %.thread101.1

77:                                               ; preds = %75, %72
  br label %.thread101.1

.thread101.1:                                     ; preds = %77, %75, %74, %72, %71
  %.5.1 = phi i1 [ false, %77 ], [ %.5, %71 ], [ %.5, %72 ], [ %.5, %75 ], [ %.5, %74 ]
  %78 = load i8, ptr getelementptr inbounds (i8, ptr @f, i64 6), align 1, !tbaa !5, !range !9, !noundef !10
  %79 = trunc nuw i8 %78 to i1
  %80 = load i8, ptr getelementptr inbounds (i8, ptr @f, i64 7), align 1, !tbaa !5, !range !9, !noundef !10
  %81 = trunc nuw i8 %80 to i1
  %.pre = load i8, ptr getelementptr inbounds (i8, ptr @f, i64 8), align 1, !range !9
  br i1 %79, label %85, label %82

82:                                               ; preds = %.thread101.1
  br i1 %81, label %.thread101.2, label %83

83:                                               ; preds = %82
  %84 = trunc nuw i8 %.pre to i1
  br i1 %84, label %.thread101.2, label %88

85:                                               ; preds = %.thread101.1
  br i1 %81, label %86, label %.thread101.2

86:                                               ; preds = %85
  %87 = trunc nuw i8 %.pre to i1
  br i1 %87, label %88, label %.thread101.2

88:                                               ; preds = %86, %83
  br label %.thread101.2

.thread101.2:                                     ; preds = %88, %86, %85, %83, %82
  %.5.2 = phi i1 [ false, %88 ], [ %.5.1, %82 ], [ %.5.1, %83 ], [ %.5.1, %86 ], [ %.5.1, %85 ]
  %89 = trunc nuw i8 %42 to i1
  %90 = trunc nuw i8 %.pre to i1
  %91 = select i1 %89, i1 %90, i1 false
  %.us-phi156 = xor i1 %91, true
  %92 = select i1 %89, i1 true, i1 %90
  %.us-phi147.v = select i1 %28, i1 %.us-phi156, i1 %92
  %.us-phi147 = and i1 %.5.2, %.us-phi147.v
  %not.198 = xor i1 %54, true
  %.us-phi189 = select i1 %not.198, i1 %.us-phi147, i1 false
  %spec.select195 = select i1 %89, i1 %.us-phi189, i1 %.us-phi147
  %93 = or i1 %89, %54
  %spec.select196 = select i1 %93, i1 %.us-phi147, i1 false
  %.us-phi179 = select i1 %79, i1 %spec.select195, i1 %spec.select196
  br i1 %.us-phi179, label %.preheader, label %.loopexit114

.preheader:                                       ; preds = %.thread101.2
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str)
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %94, i32 noundef %.095193)
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %95, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %97 = load i8, ptr @f, align 1, !tbaa !5, !range !9, !noundef !10
  %98 = trunc nuw i8 %97 to i1
  %99 = select i1 %98, i8 48, i8 49
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i8 noundef signext %99)
  %101 = load i8, ptr getelementptr inbounds (i8, ptr @f, i64 1), align 1, !tbaa !5, !range !9, !noundef !10
  %102 = trunc nuw i8 %101 to i1
  %103 = select i1 %102, i8 48, i8 49
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i8 noundef signext %103)
  %105 = load i8, ptr getelementptr inbounds (i8, ptr @f, i64 2), align 1, !tbaa !5, !range !9, !noundef !10
  %106 = trunc nuw i8 %105 to i1
  %107 = select i1 %106, i8 48, i8 49
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i8 noundef signext %107)
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %110 = load i8, ptr getelementptr inbounds (i8, ptr @f, i64 3), align 1, !tbaa !5, !range !9, !noundef !10
  %111 = trunc nuw i8 %110 to i1
  %112 = select i1 %111, i8 48, i8 49
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i8 noundef signext %112)
  %114 = load i8, ptr getelementptr inbounds (i8, ptr @f, i64 4), align 1, !tbaa !5, !range !9, !noundef !10
  %115 = trunc nuw i8 %114 to i1
  %116 = select i1 %115, i8 48, i8 49
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i8 noundef signext %116)
  %118 = load i8, ptr getelementptr inbounds (i8, ptr @f, i64 5), align 1, !tbaa !5, !range !9, !noundef !10
  %119 = trunc nuw i8 %118 to i1
  %120 = select i1 %119, i8 48, i8 49
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i8 noundef signext %120)
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %123 = load i8, ptr getelementptr inbounds (i8, ptr @f, i64 6), align 1, !tbaa !5, !range !9, !noundef !10
  %124 = trunc nuw i8 %123 to i1
  %125 = select i1 %124, i8 48, i8 49
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i8 noundef signext %125)
  %127 = load i8, ptr getelementptr inbounds (i8, ptr @f, i64 7), align 1, !tbaa !5, !range !9, !noundef !10
  %128 = trunc nuw i8 %127 to i1
  %129 = select i1 %128, i8 48, i8 49
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i8 noundef signext %129)
  %131 = load i8, ptr getelementptr inbounds (i8, ptr @f, i64 8), align 1, !tbaa !5, !range !9, !noundef !10
  %132 = trunc nuw i8 %131 to i1
  %133 = select i1 %132, i8 48, i8 49
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, i8 noundef signext %133)
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %136 = add nsw i32 %.095193, 1
  br label %.loopexit114

.loopexit114:                                     ; preds = %.preheader, %.thread101.2
  %.196 = phi i32 [ %.095193, %.thread101.2 ], [ %136, %.preheader ]
  %137 = add nuw nsw i32 %.099192, 1
  %exitcond.not = icmp eq i32 %137, 512
  br i1 %exitcond.not, label %2, label %.preheader113, !llvm.loop !11
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) 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 uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #2

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 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 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,ReassociatePass,SROAPass,SimplifyCFGPass