; LLVM IR from tangjz/acm-icpc :: codeforces/gym (101064J)

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

@s = external dso_local global [4097 x i32], align 16
@p = external dso_local global [5 x [4097 x i32]], align 16
@f = external dso_local global [5 x [4097 x x86_fp80]], align 16
@g = external dso_local global [15625 x x86_fp80], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 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 [5 x i32], align 16
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %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 [7 x i8], align 1
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i8, align 1
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %91, %0
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = icmp slt i32 %29, 4096
  br i1 %30, label %32, label %31

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

32:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 20, ptr %4) #7
  call void @llvm.memset.p0.i64(ptr align 16 %4, i8 0, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %79, %32
  %34 = load i32, ptr %5, align 4, !tbaa !5
  %35 = icmp slt i32 %34, 6
  br i1 %35, label %37, label %36

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

37:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %38 = load i32, ptr %2, align 4, !tbaa !5
  %39 = load i32, ptr %5, align 4, !tbaa !5
  %40 = shl i32 %39, 1
  %41 = ashr i32 %38, %40
  %42 = and i32 %41, 3
  store i32 %42, ptr %6, align 4, !tbaa !5
  %43 = load i32, ptr %6, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [5 x i32], ptr %4, i64 0, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %45, align 4, !tbaa !5
  %48 = load i32, ptr %6, align 4, !tbaa !5
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %63

50:                                               ; preds = %37
  %51 = load i32, ptr %6, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [5 x i32], ptr %4, i64 0, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = icmp eq i32 %54, 3
  br i1 %55, label %56, label %63

56:                                               ; preds = %50
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = load i32, ptr %2, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [4097 x i32], ptr @s, i64 0, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = add nsw i32 %61, %57
  store i32 %62, ptr %60, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %56, %50, %37
  %64 = load i32, ptr %6, align 4, !tbaa !5
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %78

66:                                               ; preds = %63
  %67 = load i32, ptr %6, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [5 x i32], ptr %4, i64 0, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = icmp sgt i32 %70, 3
  br i1 %71, label %72, label %78

72:                                               ; preds = %66
  %73 = load i32, ptr %2, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [4097 x i32], ptr @s, i64 0, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %75, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %72, %66, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %5, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %5, align 4, !tbaa !5
  br label %33, !llvm.loop !9

82:                                               ; preds = %36
  %83 = load i32, ptr %2, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [4097 x i32], ptr @s, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = sitofp i32 %86 to x86_fp80
  %88 = load i32, ptr %2, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [4097 x x86_fp80], ptr @f, i64 0, i64 %89
  store x86_fp80 %87, ptr %90, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 20, ptr %4) #7
  br label %91

91:                                               ; preds = %82
  %92 = load i32, ptr %2, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %2, align 4, !tbaa !5
  br label %28, !llvm.loop !13

94:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %288, %94
  %96 = load i32, ptr %7, align 4, !tbaa !5
  %97 = icmp slt i32 %96, 5
  br i1 %97, label %99, label %98

98:                                               ; preds = %95
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %291

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

100:                                              ; preds = %108, %99
  %101 = load i32, ptr %8, align 4, !tbaa !5
  %102 = icmp slt i32 %101, 15625
  br i1 %102, label %104, label %103

103:                                              ; preds = %100
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %111

104:                                              ; preds = %100
  %105 = load i32, ptr %8, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %106
  store x86_fp80 0xK00000000000000000000, ptr %107, align 16, !tbaa !11
  br label %108

108:                                              ; preds = %104
  %109 = load i32, ptr %8, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %8, align 4, !tbaa !5
  br label %100, !llvm.loop !14

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

112:                                              ; preds = %145, %111
  %113 = load i32, ptr %9, align 4, !tbaa !5
  %114 = icmp slt i32 %113, 4096
  br i1 %114, label %116, label %115

115:                                              ; preds = %112
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %148

116:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 5, ptr %11, align 4, !tbaa !5
  br label %117

117:                                              ; preds = %130, %116
  %118 = load i32, ptr %11, align 4, !tbaa !5
  %119 = icmp sge i32 %118, 0
  br i1 %119, label %121, label %120

120:                                              ; preds = %117
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %133

121:                                              ; preds = %117
  %122 = load i32, ptr %10, align 4, !tbaa !5
  %123 = mul nsw i32 %122, 5
  %124 = load i32, ptr %9, align 4, !tbaa !5
  %125 = load i32, ptr %11, align 4, !tbaa !5
  %126 = shl i32 %125, 1
  %127 = ashr i32 %124, %126
  %128 = and i32 %127, 3
  %129 = add nsw i32 %123, %128
  store i32 %129, ptr %10, align 4, !tbaa !5
  br label %130

130:                                              ; preds = %121
  %131 = load i32, ptr %11, align 4, !tbaa !5
  %132 = add nsw i32 %131, -1
  store i32 %132, ptr %11, align 4, !tbaa !5
  br label %117, !llvm.loop !15

133:                                              ; preds = %120
  %134 = load i32, ptr %7, align 4, !tbaa !5
  %135 = sub nsw i32 %134, 1
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [5 x [4097 x x86_fp80]], ptr @f, i64 0, i64 %136
  %138 = load i32, ptr %9, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [4097 x x86_fp80], ptr %137, i64 0, i64 %139
  %141 = load x86_fp80, ptr %140, align 16, !tbaa !11
  %142 = load i32, ptr %10, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %143
  store x86_fp80 %141, ptr %144, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %145

145:                                              ; preds = %133
  %146 = load i32, ptr %9, align 4, !tbaa !5
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %9, align 4, !tbaa !5
  br label %112, !llvm.loop !16

148:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %149

149:                                              ; preds = %197, %148
  %150 = load i32, ptr %12, align 4, !tbaa !5
  %151 = icmp slt i32 %150, 6
  br i1 %151, label %153, label %152

152:                                              ; preds = %149
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %202

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

154:                                              ; preds = %193, %153
  %155 = load i32, ptr %14, align 4, !tbaa !5
  %156 = icmp slt i32 %155, 15625
  br i1 %156, label %158, label %157

157:                                              ; preds = %154
  store i32 23, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %196

158:                                              ; preds = %154
  %159 = load i32, ptr %14, align 4, !tbaa !5
  %160 = load i32, ptr %13, align 4, !tbaa !5
  %161 = sdiv i32 %159, %160
  %162 = srem i32 %161, 5
  %163 = icmp eq i32 %162, 4
  br i1 %163, label %164, label %192

164:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %165

165:                                              ; preds = %188, %164
  %166 = load i32, ptr %15, align 4, !tbaa !5
  %167 = icmp sle i32 %166, 4
  br i1 %167, label %169, label %168

168:                                              ; preds = %165
  store i32 26, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %191

169:                                              ; preds = %165
  %170 = load i32, ptr %14, align 4, !tbaa !5
  %171 = load i32, ptr %15, align 4, !tbaa !5
  %172 = load i32, ptr %13, align 4, !tbaa !5
  %173 = mul nsw i32 %171, %172
  %174 = sub nsw i32 %170, %173
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %175
  %177 = load x86_fp80, ptr %176, align 16, !tbaa !11
  %178 = load i32, ptr %15, align 4, !tbaa !5
  %179 = icmp eq i32 %178, 4
  %180 = zext i1 %179 to i64
  %181 = select i1 %179, double 5.000000e-01, double 0x3FC5555555555555
  %182 = fpext double %181 to x86_fp80
  %183 = load i32, ptr %14, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %184
  %186 = load x86_fp80, ptr %185, align 16, !tbaa !11
  %187 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %177, x86_fp80 %182, x86_fp80 %186)
  store x86_fp80 %187, ptr %185, align 16, !tbaa !11
  br label %188

188:                                              ; preds = %169
  %189 = load i32, ptr %15, align 4, !tbaa !5
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %15, align 4, !tbaa !5
  br label %165, !llvm.loop !17

191:                                              ; preds = %168
  br label %192

192:                                              ; preds = %191, %158
  br label %193

193:                                              ; preds = %192
  %194 = load i32, ptr %14, align 4, !tbaa !5
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %14, align 4, !tbaa !5
  br label %154, !llvm.loop !18

196:                                              ; preds = %157
  br label %197

197:                                              ; preds = %196
  %198 = load i32, ptr %12, align 4, !tbaa !5
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %12, align 4, !tbaa !5
  %200 = load i32, ptr %13, align 4, !tbaa !5
  %201 = mul nsw i32 %200, 5
  store i32 %201, ptr %13, align 4, !tbaa !5
  br label %149, !llvm.loop !19

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

203:                                              ; preds = %284, %202
  %204 = load i32, ptr %16, align 4, !tbaa !5
  %205 = icmp slt i32 %204, 4096
  br i1 %205, label %207, label %206

206:                                              ; preds = %203
  store i32 29, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %287

207:                                              ; preds = %203
  %208 = load i32, ptr %7, align 4, !tbaa !5
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [5 x [4097 x x86_fp80]], ptr @f, i64 0, i64 %209
  %211 = load i32, ptr %16, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [4097 x x86_fp80], ptr %210, i64 0, i64 %212
  store x86_fp80 0xKC0209502F90000000000, ptr %213, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %214

214:                                              ; preds = %280, %207
  %215 = load i32, ptr %17, align 4, !tbaa !5
  %216 = icmp slt i32 %215, 64
  br i1 %216, label %218, label %217

217:                                              ; preds = %214
  store i32 32, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %283

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

219:                                              ; preds = %243, %218
  %220 = load i32, ptr %19, align 4, !tbaa !5
  %221 = icmp sge i32 %220, 0
  br i1 %221, label %223, label %222

222:                                              ; preds = %219
  store i32 35, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %246

223:                                              ; preds = %219
  %224 = load i32, ptr %17, align 4, !tbaa !5
  %225 = load i32, ptr %19, align 4, !tbaa !5
  %226 = ashr i32 %224, %225
  %227 = and i32 %226, 1
  %228 = icmp ne i32 %227, 0
  br i1 %228, label %229, label %238

229:                                              ; preds = %223
  %230 = load i32, ptr %18, align 4, !tbaa !5
  %231 = mul nsw i32 %230, 5
  %232 = load i32, ptr %16, align 4, !tbaa !5
  %233 = load i32, ptr %19, align 4, !tbaa !5
  %234 = shl i32 %233, 1
  %235 = ashr i32 %232, %234
  %236 = and i32 %235, 3
  %237 = add nsw i32 %231, %236
  store i32 %237, ptr %18, align 4, !tbaa !5
  br label %242

238:                                              ; preds = %223
  %239 = load i32, ptr %18, align 4, !tbaa !5
  %240 = mul nsw i32 %239, 5
  %241 = add nsw i32 %240, 4
  store i32 %241, ptr %18, align 4, !tbaa !5
  br label %242

242:                                              ; preds = %238, %229
  br label %243

243:                                              ; preds = %242
  %244 = load i32, ptr %19, align 4, !tbaa !5
  %245 = add nsw i32 %244, -1
  store i32 %245, ptr %19, align 4, !tbaa !5
  br label %219, !llvm.loop !20

246:                                              ; preds = %222
  %247 = load i32, ptr %7, align 4, !tbaa !5
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [5 x [4097 x x86_fp80]], ptr @f, i64 0, i64 %248
  %250 = load i32, ptr %16, align 4, !tbaa !5
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [4097 x x86_fp80], ptr %249, i64 0, i64 %251
  %253 = load x86_fp80, ptr %252, align 16, !tbaa !11
  %254 = load i32, ptr %18, align 4, !tbaa !5
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %255
  %257 = load x86_fp80, ptr %256, align 16, !tbaa !11
  %258 = fsub x86_fp80 %253, %257
  %259 = call noundef i32 @_Z3sgne(x86_fp80 noundef %258)
  %260 = icmp slt i32 %259, 0
  br i1 %260, label %261, label %279

261:                                              ; preds = %246
  %262 = load i32, ptr %18, align 4, !tbaa !5
  %263 = load i32, ptr %7, align 4, !tbaa !5
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [5 x [4097 x i32]], ptr @p, i64 0, i64 %264
  %266 = load i32, ptr %16, align 4, !tbaa !5
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [4097 x i32], ptr %265, i64 0, i64 %267
  store i32 %262, ptr %268, align 4, !tbaa !5
  %269 = load i32, ptr %18, align 4, !tbaa !5
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %270
  %272 = load x86_fp80, ptr %271, align 16, !tbaa !11
  %273 = load i32, ptr %7, align 4, !tbaa !5
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [5 x [4097 x x86_fp80]], ptr @f, i64 0, i64 %274
  %276 = load i32, ptr %16, align 4, !tbaa !5
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [4097 x x86_fp80], ptr %275, i64 0, i64 %277
  store x86_fp80 %272, ptr %278, align 16, !tbaa !11
  br label %279

279:                                              ; preds = %261, %246
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %280

280:                                              ; preds = %279
  %281 = load i32, ptr %17, align 4, !tbaa !5
  %282 = add nsw i32 %281, 1
  store i32 %282, ptr %17, align 4, !tbaa !5
  br label %214, !llvm.loop !21

283:                                              ; preds = %217
  br label %284

284:                                              ; preds = %283
  %285 = load i32, ptr %16, align 4, !tbaa !5
  %286 = add nsw i32 %285, 1
  store i32 %286, ptr %16, align 4, !tbaa !5
  br label %203, !llvm.loop !22

287:                                              ; preds = %206
  br label %288

288:                                              ; preds = %287
  %289 = load i32, ptr %7, align 4, !tbaa !5
  %290 = add nsw i32 %289, 1
  store i32 %290, ptr %7, align 4, !tbaa !5
  br label %95, !llvm.loop !23

291:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 7, ptr %22) #7
  %292 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %20)
  br label %293

293:                                              ; preds = %386, %291
  %294 = load i32, ptr %20, align 4, !tbaa !5
  %295 = add nsw i32 %294, -1
  store i32 %295, ptr %20, align 4, !tbaa !5
  %296 = icmp ne i32 %294, 0
  br i1 %296, label %297, label %387

297:                                              ; preds = %293
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !5
  %298 = getelementptr inbounds [7 x i8], ptr %22, i64 0, i64 0
  %299 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %21, ptr noundef %298)
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %300

300:                                              ; preds = %333, %297
  %301 = load i32, ptr %24, align 4, !tbaa !5
  %302 = icmp slt i32 %301, 6
  br i1 %302, label %304, label %303

303:                                              ; preds = %300
  store i32 40, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %336

304:                                              ; preds = %300
  %305 = load i32, ptr %24, align 4, !tbaa !5
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds [7 x i8], ptr %22, i64 0, i64 %306
  %308 = load i8, ptr %307, align 1, !tbaa !24
  %309 = sext i8 %308 to i32
  %310 = icmp sge i32 %309, 49
  br i1 %310, label %311, label %325

311:                                              ; preds = %304
  %312 = load i32, ptr %24, align 4, !tbaa !5
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds [7 x i8], ptr %22, i64 0, i64 %313
  %315 = load i8, ptr %314, align 1, !tbaa !24
  %316 = sext i8 %315 to i32
  %317 = icmp sle i32 %316, 51
  br i1 %317, label %318, label %325

318:                                              ; preds = %311
  %319 = load i32, ptr %24, align 4, !tbaa !5
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds [7 x i8], ptr %22, i64 0, i64 %320
  %322 = load i8, ptr %321, align 1, !tbaa !24
  %323 = sext i8 %322 to i32
  %324 = sub nsw i32 %323, 48
  br label %326

325:                                              ; preds = %311, %304
  br label %326

326:                                              ; preds = %325, %318
  %327 = phi i32 [ %324, %318 ], [ 0, %325 ]
  %328 = load i32, ptr %24, align 4, !tbaa !5
  %329 = shl i32 %328, 1
  %330 = shl i32 %327, %329
  %331 = load i32, ptr %23, align 4, !tbaa !5
  %332 = or i32 %331, %330
  store i32 %332, ptr %23, align 4, !tbaa !5
  br label %333

333:                                              ; preds = %326
  %334 = load i32, ptr %24, align 4, !tbaa !5
  %335 = add nsw i32 %334, 1
  store i32 %335, ptr %24, align 4, !tbaa !5
  br label %300, !llvm.loop !25

336:                                              ; preds = %303
  %337 = load i32, ptr %21, align 4, !tbaa !5
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds [5 x [4097 x x86_fp80]], ptr @f, i64 0, i64 %338
  %340 = load i32, ptr %23, align 4, !tbaa !5
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds [4097 x x86_fp80], ptr %339, i64 0, i64 %341
  %343 = load x86_fp80, ptr %342, align 16, !tbaa !11
  %344 = fptrunc x86_fp80 %343 to double
  %345 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %344)
  %346 = load i32, ptr %21, align 4, !tbaa !5
  %347 = icmp ne i32 %346, 0
  br i1 %347, label %350, label %348

348:                                              ; preds = %336
  %349 = call i32 @puts(ptr noundef @.str.3)
  br label %386

350:                                              ; preds = %336
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #7
  store i8 1, ptr %25, align 1, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %351 = load i32, ptr %21, align 4, !tbaa !5
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds [5 x [4097 x i32]], ptr @p, i64 0, i64 %352
  %354 = load i32, ptr %23, align 4, !tbaa !5
  %355 = sext i32 %354 to i64
  %356 = getelementptr inbounds [4097 x i32], ptr %353, i64 0, i64 %355
  %357 = load i32, ptr %356, align 4, !tbaa !5
  store i32 %357, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %358

358:                                              ; preds = %374, %350
  %359 = load i32, ptr %27, align 4, !tbaa !5
  %360 = icmp slt i32 %359, 6
  br i1 %360, label %362, label %361

361:                                              ; preds = %358
  store i32 43, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %379

362:                                              ; preds = %358
  %363 = load i32, ptr %26, align 4, !tbaa !5
  %364 = srem i32 %363, 5
  %365 = icmp eq i32 %364, 4
  br i1 %365, label %366, label %373

366:                                              ; preds = %362
  store i8 0, ptr %25, align 1, !tbaa !26
  %367 = load i32, ptr %27, align 4, !tbaa !5
  %368 = sext i32 %367 to i64
  %369 = getelementptr inbounds [7 x i8], ptr %22, i64 0, i64 %368
  %370 = load i8, ptr %369, align 1, !tbaa !24
  %371 = sext i8 %370 to i32
  %372 = call i32 @putchar(i32 noundef %371)
  br label %373

373:                                              ; preds = %366, %362
  br label %374

374:                                              ; preds = %373
  %375 = load i32, ptr %27, align 4, !tbaa !5
  %376 = add nsw i32 %375, 1
  store i32 %376, ptr %27, align 4, !tbaa !5
  %377 = load i32, ptr %26, align 4, !tbaa !5
  %378 = sdiv i32 %377, 5
  store i32 %378, ptr %26, align 4, !tbaa !5
  br label %358, !llvm.loop !28

379:                                              ; preds = %361
  %380 = load i8, ptr %25, align 1, !tbaa !26, !range !29, !noundef !30
  %381 = trunc i8 %380 to i1
  br i1 %381, label %382, label %384

382:                                              ; preds = %379
  %383 = call i32 @putchar(i32 noundef 45)
  br label %384

384:                                              ; preds = %382, %379
  %385 = call i32 @putchar(i32 noundef 10)
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #7
  br label %386

386:                                              ; preds = %384, %348
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %293, !llvm.loop !31

387:                                              ; preds = %293
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 7, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  %388 = load i32, ptr %1, align 4
  ret i32 %388
}

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3sgne(x86_fp80 noundef) #4

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

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

declare i32 @puts(ptr noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare i32 @putchar(i32 noundef) #6

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

@s = external dso_local local_unnamed_addr global [4097 x i32], align 16
@p = external dso_local local_unnamed_addr global [5 x [4097 x i32]], align 16
@f = external dso_local local_unnamed_addr global [5 x [4097 x x86_fp80]], align 16
@g = external dso_local local_unnamed_addr global [15625 x x86_fp80], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [5 x i32], align 16
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca [7 x i8], align 1
  br label %5

5:                                                ; preds = %0, %79
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %79 ]
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %1) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(20) %1, i8 0, i64 20, i1 false)
  %6 = getelementptr inbounds [4097 x i32], ptr @s, i64 0, i64 %indvars.iv
  %7 = trunc nuw nsw i64 %indvars.iv to i32
  %8 = and i32 %7, 3
  %9 = and i64 %indvars.iv, 3
  %10 = getelementptr inbounds [5 x i32], ptr %1, i64 0, i64 %9
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = add nsw i32 %11, 1
  store i32 %12, ptr %10, align 4, !tbaa !5
  %.not109 = icmp ne i32 %8, 0
  %13 = icmp eq i32 %12, 3
  %or.cond = select i1 %.not109, i1 %13, i1 false
  br i1 %or.cond, label %.sink.split, label %14

14:                                               ; preds = %5
  %15 = icmp sgt i32 %11, 2
  %or.cond113 = select i1 %.not109, i1 %15, i1 false
  br i1 %or.cond113, label %.sink.split, label %18

.sink.split:                                      ; preds = %14, %5
  %.sink181 = phi i32 [ %8, %5 ], [ 1, %14 ]
  %16 = load i32, ptr %6, align 4, !tbaa !5
  %17 = add nsw i32 %16, %.sink181
  store i32 %17, ptr %6, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %.sink.split, %14
  %19 = lshr i32 %7, 2
  %20 = and i32 %19, 3
  %21 = zext nneg i32 %20 to i64
  %22 = getelementptr inbounds [5 x i32], ptr %1, i64 0, i64 %21
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = add nsw i32 %23, 1
  store i32 %24, ptr %22, align 4, !tbaa !5
  %.not109.1 = icmp ne i32 %20, 0
  %25 = icmp eq i32 %24, 3
  %or.cond.1 = select i1 %.not109.1, i1 %25, i1 false
  br i1 %or.cond.1, label %.sink.split182, label %26

26:                                               ; preds = %18
  %27 = icmp sgt i32 %23, 2
  %or.cond113.1 = select i1 %.not109.1, i1 %27, i1 false
  br i1 %or.cond113.1, label %.sink.split182, label %30

.sink.split182:                                   ; preds = %18, %26
  %.sink184 = phi i32 [ 1, %26 ], [ %20, %18 ]
  %28 = load i32, ptr %6, align 4, !tbaa !5
  %29 = add nsw i32 %28, %.sink184
  store i32 %29, ptr %6, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %.sink.split182, %26
  %31 = lshr i32 %7, 4
  %32 = and i32 %31, 3
  %33 = zext nneg i32 %32 to i64
  %34 = getelementptr inbounds [5 x i32], ptr %1, i64 0, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %34, align 4, !tbaa !5
  %.not109.2 = icmp ne i32 %32, 0
  %37 = icmp eq i32 %36, 3
  %or.cond.2 = select i1 %.not109.2, i1 %37, i1 false
  br i1 %or.cond.2, label %.sink.split185, label %38

38:                                               ; preds = %30
  %39 = icmp sgt i32 %35, 2
  %or.cond113.2 = select i1 %.not109.2, i1 %39, i1 false
  br i1 %or.cond113.2, label %.sink.split185, label %42

.sink.split185:                                   ; preds = %30, %38
  %.sink187 = phi i32 [ 1, %38 ], [ %32, %30 ]
  %40 = load i32, ptr %6, align 4, !tbaa !5
  %41 = add nsw i32 %40, %.sink187
  store i32 %41, ptr %6, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %.sink.split185, %38
  %43 = lshr i32 %7, 6
  %44 = and i32 %43, 3
  %45 = zext nneg i32 %44 to i64
  %46 = getelementptr inbounds [5 x i32], ptr %1, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %46, align 4, !tbaa !5
  %.not109.3 = icmp ne i32 %44, 0
  %49 = icmp eq i32 %48, 3
  %or.cond.3 = select i1 %.not109.3, i1 %49, i1 false
  br i1 %or.cond.3, label %.sink.split188, label %50

50:                                               ; preds = %42
  %51 = icmp sgt i32 %47, 2
  %or.cond113.3 = select i1 %.not109.3, i1 %51, i1 false
  br i1 %or.cond113.3, label %.sink.split188, label %54

.sink.split188:                                   ; preds = %42, %50
  %.sink190 = phi i32 [ 1, %50 ], [ %44, %42 ]
  %52 = load i32, ptr %6, align 4, !tbaa !5
  %53 = add nsw i32 %52, %.sink190
  store i32 %53, ptr %6, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %.sink.split188, %50
  %55 = lshr i32 %7, 8
  %56 = and i32 %55, 3
  %57 = zext nneg i32 %56 to i64
  %58 = getelementptr inbounds [5 x i32], ptr %1, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %58, align 4, !tbaa !5
  %.not109.4 = icmp ne i32 %56, 0
  %61 = icmp eq i32 %60, 3
  %or.cond.4 = select i1 %.not109.4, i1 %61, i1 false
  br i1 %or.cond.4, label %.sink.split191, label %62

62:                                               ; preds = %54
  %63 = icmp sgt i32 %59, 2
  %or.cond113.4 = select i1 %.not109.4, i1 %63, i1 false
  br i1 %or.cond113.4, label %.sink.split191, label %66

.sink.split191:                                   ; preds = %54, %62
  %.sink193 = phi i32 [ 1, %62 ], [ %56, %54 ]
  %64 = load i32, ptr %6, align 4, !tbaa !5
  %65 = add nsw i32 %64, %.sink193
  store i32 %65, ptr %6, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %.sink.split191, %62
  %67 = lshr i32 %7, 10
  %68 = and i32 %67, 3
  %69 = zext nneg i32 %68 to i64
  %70 = getelementptr inbounds [5 x i32], ptr %1, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %.not109.5 = icmp ne i32 %68, 0
  %72 = icmp eq i32 %71, 2
  %or.cond.5 = select i1 %.not109.5, i1 %72, i1 false
  br i1 %or.cond.5, label %.thread111.5, label %73

73:                                               ; preds = %66
  %74 = icmp sgt i32 %71, 2
  %or.cond113.5 = select i1 %.not109.5, i1 %74, i1 false
  %.pre = load i32, ptr %6, align 4, !tbaa !5
  br i1 %or.cond113.5, label %75, label %79

75:                                               ; preds = %73
  %76 = add nsw i32 %.pre, 1
  br label %.sink.split194

.thread111.5:                                     ; preds = %66
  %77 = load i32, ptr %6, align 4, !tbaa !5
  %78 = add nsw i32 %77, %68
  br label %.sink.split194

.sink.split194:                                   ; preds = %75, %.thread111.5
  %.sink = phi i32 [ %78, %.thread111.5 ], [ %76, %75 ]
  store i32 %.sink, ptr %6, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %.sink.split194, %73
  %80 = phi i32 [ %.pre, %73 ], [ %.sink, %.sink.split194 ]
  %81 = sitofp i32 %80 to x86_fp80
  %82 = getelementptr inbounds [4097 x x86_fp80], ptr @f, i64 0, i64 %indvars.iv
  store x86_fp80 %81, ptr %82, align 16, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %1) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 4096
  br i1 %exitcond.not, label %.preheader121, label %5, !llvm.loop !11

.preheader121:                                    ; preds = %79, %247
  %indvars.iv168 = phi i64 [ %indvars.iv.next169, %247 ], [ 1, %79 ]
  br label %93

83:                                               ; preds = %247
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 7, ptr nonnull %4) #8
  %84 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2)
  %85 = load i32, ptr %2, align 4, !tbaa !5
  %86 = add nsw i32 %85, -1
  store i32 %86, ptr %2, align 4, !tbaa !5
  %.not143 = icmp eq i32 %85, 0
  br i1 %.not143, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %83
  %87 = getelementptr inbounds i8, ptr %4, i64 1
  %88 = getelementptr inbounds i8, ptr %4, i64 2
  %89 = getelementptr inbounds i8, ptr %4, i64 3
  %90 = getelementptr inbounds i8, ptr %4, i64 4
  %91 = getelementptr inbounds i8, ptr %4, i64 5
  br label %.lr.ph

.preheader120:                                    ; preds = %93
  %92 = add nsw i64 %indvars.iv168, -1
  br label %.preheader117

93:                                               ; preds = %93, %.preheader121
  %indvars.iv146 = phi i64 [ 0, %.preheader121 ], [ %indvars.iv.next147.4, %93 ]
  %94 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %indvars.iv146
  store x86_fp80 0xK00000000000000000000, ptr %94, align 16, !tbaa !9
  %indvars.iv.next147 = add nuw nsw i64 %indvars.iv146, 1
  %95 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %indvars.iv.next147
  store x86_fp80 0xK00000000000000000000, ptr %95, align 16, !tbaa !9
  %indvars.iv.next147.1 = add nuw nsw i64 %indvars.iv146, 2
  %96 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %indvars.iv.next147.1
  store x86_fp80 0xK00000000000000000000, ptr %96, align 16, !tbaa !9
  %indvars.iv.next147.2 = add nuw nsw i64 %indvars.iv146, 3
  %97 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %indvars.iv.next147.2
  store x86_fp80 0xK00000000000000000000, ptr %97, align 16, !tbaa !9
  %indvars.iv.next147.3 = add nuw nsw i64 %indvars.iv146, 4
  %98 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %indvars.iv.next147.3
  store x86_fp80 0xK00000000000000000000, ptr %98, align 16, !tbaa !9
  %indvars.iv.next147.4 = add nuw nsw i64 %indvars.iv146, 5
  %exitcond149.not.4 = icmp eq i64 %indvars.iv.next147.4, 15625
  br i1 %exitcond149.not.4, label %.preheader120, label %93, !llvm.loop !13

.preheader117:                                    ; preds = %.preheader120, %.preheader117
  %indvars.iv150 = phi i64 [ 0, %.preheader120 ], [ %indvars.iv.next151, %.preheader117 ]
  %99 = lshr i64 %indvars.iv150, 10
  %100 = and i64 %99, 3
  %101 = mul nuw nsw i64 %100, 5
  %102 = lshr i64 %indvars.iv150, 8
  %103 = and i64 %102, 3
  %104 = add nuw nsw i64 %103, %101
  %105 = mul nuw nsw i64 %104, 5
  %106 = lshr i64 %indvars.iv150, 6
  %107 = and i64 %106, 3
  %108 = add nuw nsw i64 %107, %105
  %109 = mul nuw nsw i64 %108, 5
  %110 = lshr i64 %indvars.iv150, 4
  %111 = and i64 %110, 3
  %112 = add nuw nsw i64 %111, %109
  %113 = mul nuw nsw i64 %112, 5
  %114 = lshr i64 %indvars.iv150, 2
  %115 = and i64 %114, 3
  %116 = add nuw nsw i64 %115, %113
  %117 = mul nuw nsw i64 %116, 5
  %118 = and i64 %indvars.iv150, 3
  %119 = add nuw nsw i64 %118, %117
  %120 = getelementptr inbounds [5 x [4097 x x86_fp80]], ptr @f, i64 0, i64 %92, i64 %indvars.iv150
  %121 = load x86_fp80, ptr %120, align 16, !tbaa !9
  %122 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %119
  store x86_fp80 %121, ptr %122, align 16, !tbaa !9
  %indvars.iv.next151 = add nuw nsw i64 %indvars.iv150, 1
  %exitcond153.not = icmp eq i64 %indvars.iv.next151, 4096
  br i1 %exitcond153.not, label %.preheader116, label %.preheader117, !llvm.loop !14

.preheader116.1:                                  ; preds = %.loopexit, %.loopexit.1
  %indvars.iv158.1 = phi i64 [ %indvars.iv.next159.1, %.loopexit.1 ], [ 0, %.loopexit ]
  %123 = trunc nuw nsw i64 %indvars.iv158.1 to i32
  %124 = udiv i32 %123, 5
  %.lhs.trunc.1 = trunc nuw i32 %124 to i16
  %125 = urem i16 %.lhs.trunc.1, 5
  %126 = icmp eq i16 %125, 4
  br i1 %126, label %.preheader115.1, label %.loopexit.1

.preheader115.1:                                  ; preds = %.preheader116.1
  %127 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %indvars.iv158.1
  %.promoted.1 = load x86_fp80, ptr %127, align 16, !tbaa !9
  %128 = add nsw i64 %indvars.iv158.1, -5
  %129 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %128
  %130 = load x86_fp80, ptr %129, align 16, !tbaa !9
  %131 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %130, x86_fp80 0xK3FFCAAAAAAAAAAAAA800, x86_fp80 %.promoted.1)
  store x86_fp80 %131, ptr %127, align 16, !tbaa !9
  %132 = add nsw i64 %indvars.iv158.1, -10
  %133 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %132
  %134 = load x86_fp80, ptr %133, align 16, !tbaa !9
  %135 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %134, x86_fp80 0xK3FFCAAAAAAAAAAAAA800, x86_fp80 %131)
  %136 = add nsw i64 %indvars.iv158.1, -15
  %137 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %136
  %138 = load x86_fp80, ptr %137, align 16, !tbaa !9
  %139 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %138, x86_fp80 0xK3FFCAAAAAAAAAAAAA800, x86_fp80 %135)
  store x86_fp80 %139, ptr %127, align 16, !tbaa !9
  %140 = add nsw i64 %indvars.iv158.1, -20
  %141 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %140
  %142 = load x86_fp80, ptr %141, align 16, !tbaa !9
  %143 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %142, x86_fp80 0xK3FFE8000000000000000, x86_fp80 %139)
  store x86_fp80 %143, ptr %127, align 16, !tbaa !9
  br label %.loopexit.1

.loopexit.1:                                      ; preds = %.preheader115.1, %.preheader116.1
  %indvars.iv.next159.1 = add nuw nsw i64 %indvars.iv158.1, 1
  %exitcond161.not.1 = icmp eq i64 %indvars.iv.next159.1, 15625
  br i1 %exitcond161.not.1, label %.preheader116.2, label %.preheader116.1, !llvm.loop !15

.preheader116.2:                                  ; preds = %.loopexit.1, %.loopexit.2
  %indvars.iv158.2 = phi i64 [ %indvars.iv.next159.2, %.loopexit.2 ], [ 0, %.loopexit.1 ]
  %144 = trunc nuw nsw i64 %indvars.iv158.2 to i32
  %145 = udiv i32 %144, 25
  %.lhs.trunc.2 = trunc nuw i32 %145 to i16
  %146 = urem i16 %.lhs.trunc.2, 5
  %147 = icmp eq i16 %146, 4
  br i1 %147, label %.preheader115.2, label %.loopexit.2

.preheader115.2:                                  ; preds = %.preheader116.2
  %148 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %indvars.iv158.2
  %.promoted.2 = load x86_fp80, ptr %148, align 16, !tbaa !9
  %149 = add nsw i64 %indvars.iv158.2, -25
  %150 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %149
  %151 = load x86_fp80, ptr %150, align 16, !tbaa !9
  %152 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %151, x86_fp80 0xK3FFCAAAAAAAAAAAAA800, x86_fp80 %.promoted.2)
  store x86_fp80 %152, ptr %148, align 16, !tbaa !9
  %153 = add nsw i64 %indvars.iv158.2, -50
  %154 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %153
  %155 = load x86_fp80, ptr %154, align 16, !tbaa !9
  %156 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %155, x86_fp80 0xK3FFCAAAAAAAAAAAAA800, x86_fp80 %152)
  %157 = add nsw i64 %indvars.iv158.2, -75
  %158 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %157
  %159 = load x86_fp80, ptr %158, align 16, !tbaa !9
  %160 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %159, x86_fp80 0xK3FFCAAAAAAAAAAAAA800, x86_fp80 %156)
  store x86_fp80 %160, ptr %148, align 16, !tbaa !9
  %161 = add nsw i64 %indvars.iv158.2, -100
  %162 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %161
  %163 = load x86_fp80, ptr %162, align 16, !tbaa !9
  %164 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %163, x86_fp80 0xK3FFE8000000000000000, x86_fp80 %160)
  store x86_fp80 %164, ptr %148, align 16, !tbaa !9
  br label %.loopexit.2

.loopexit.2:                                      ; preds = %.preheader115.2, %.preheader116.2
  %indvars.iv.next159.2 = add nuw nsw i64 %indvars.iv158.2, 1
  %exitcond161.not.2 = icmp eq i64 %indvars.iv.next159.2, 15625
  br i1 %exitcond161.not.2, label %.preheader116.3, label %.preheader116.2, !llvm.loop !15

.preheader116.3:                                  ; preds = %.loopexit.2, %.loopexit.3
  %indvars.iv158.3 = phi i64 [ %indvars.iv.next159.3, %.loopexit.3 ], [ 0, %.loopexit.2 ]
  %165 = trunc nuw nsw i64 %indvars.iv158.3 to i32
  %166 = udiv i32 %165, 125
  %.lhs.trunc.3 = trunc nuw i32 %166 to i16
  %167 = urem i16 %.lhs.trunc.3, 5
  %168 = icmp eq i16 %167, 4
  br i1 %168, label %.preheader115.3, label %.loopexit.3

.preheader115.3:                                  ; preds = %.preheader116.3
  %169 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %indvars.iv158.3
  %.promoted.3 = load x86_fp80, ptr %169, align 16, !tbaa !9
  %170 = add nsw i64 %indvars.iv158.3, -125
  %171 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %170
  %172 = load x86_fp80, ptr %171, align 16, !tbaa !9
  %173 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %172, x86_fp80 0xK3FFCAAAAAAAAAAAAA800, x86_fp80 %.promoted.3)
  store x86_fp80 %173, ptr %169, align 16, !tbaa !9
  %174 = add nsw i64 %indvars.iv158.3, -250
  %175 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %174
  %176 = load x86_fp80, ptr %175, align 16, !tbaa !9
  %177 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %176, x86_fp80 0xK3FFCAAAAAAAAAAAAA800, x86_fp80 %173)
  %178 = add nsw i64 %indvars.iv158.3, -375
  %179 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %178
  %180 = load x86_fp80, ptr %179, align 16, !tbaa !9
  %181 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %180, x86_fp80 0xK3FFCAAAAAAAAAAAAA800, x86_fp80 %177)
  store x86_fp80 %181, ptr %169, align 16, !tbaa !9
  %182 = add nsw i64 %indvars.iv158.3, -500
  %183 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %182
  %184 = load x86_fp80, ptr %183, align 16, !tbaa !9
  %185 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %184, x86_fp80 0xK3FFE8000000000000000, x86_fp80 %181)
  store x86_fp80 %185, ptr %169, align 16, !tbaa !9
  br label %.loopexit.3

.loopexit.3:                                      ; preds = %.preheader115.3, %.preheader116.3
  %indvars.iv.next159.3 = add nuw nsw i64 %indvars.iv158.3, 1
  %exitcond161.not.3 = icmp eq i64 %indvars.iv.next159.3, 15625
  br i1 %exitcond161.not.3, label %.preheader116.4, label %.preheader116.3, !llvm.loop !15

.preheader116.4:                                  ; preds = %.loopexit.3, %.loopexit.4
  %indvars.iv158.4 = phi i64 [ %indvars.iv.next159.4, %.loopexit.4 ], [ 0, %.loopexit.3 ]
  %186 = trunc nuw nsw i64 %indvars.iv158.4 to i32
  %187 = udiv i32 %186, 625
  %.lhs.trunc.4 = trunc nuw i32 %187 to i16
  %188 = urem i16 %.lhs.trunc.4, 5
  %189 = icmp eq i16 %188, 4
  br i1 %189, label %.preheader115.4, label %.loopexit.4

.preheader115.4:                                  ; preds = %.preheader116.4
  %190 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %indvars.iv158.4
  %.promoted.4 = load x86_fp80, ptr %190, align 16, !tbaa !9
  %191 = add nsw i64 %indvars.iv158.4, -625
  %192 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %191
  %193 = load x86_fp80, ptr %192, align 16, !tbaa !9
  %194 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %193, x86_fp80 0xK3FFCAAAAAAAAAAAAA800, x86_fp80 %.promoted.4)
  store x86_fp80 %194, ptr %190, align 16, !tbaa !9
  %195 = add nsw i64 %indvars.iv158.4, -1250
  %196 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %195
  %197 = load x86_fp80, ptr %196, align 16, !tbaa !9
  %198 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %197, x86_fp80 0xK3FFCAAAAAAAAAAAAA800, x86_fp80 %194)
  %199 = add nsw i64 %indvars.iv158.4, -1875
  %200 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %199
  %201 = load x86_fp80, ptr %200, align 16, !tbaa !9
  %202 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %201, x86_fp80 0xK3FFCAAAAAAAAAAAAA800, x86_fp80 %198)
  store x86_fp80 %202, ptr %190, align 16, !tbaa !9
  %203 = add nsw i64 %indvars.iv158.4, -2500
  %204 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %203
  %205 = load x86_fp80, ptr %204, align 16, !tbaa !9
  %206 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %205, x86_fp80 0xK3FFE8000000000000000, x86_fp80 %202)
  store x86_fp80 %206, ptr %190, align 16, !tbaa !9
  br label %.loopexit.4

.loopexit.4:                                      ; preds = %.preheader115.4, %.preheader116.4
  %indvars.iv.next159.4 = add nuw nsw i64 %indvars.iv158.4, 1
  %exitcond161.not.4 = icmp eq i64 %indvars.iv.next159.4, 15625
  br i1 %exitcond161.not.4, label %.preheader116.5, label %.preheader116.4, !llvm.loop !15

.preheader116.5:                                  ; preds = %.loopexit.4, %.loopexit.5
  %indvars.iv158.5 = phi i64 [ %indvars.iv.next159.5, %.loopexit.5 ], [ 0, %.loopexit.4 ]
  %207 = trunc nuw nsw i64 %indvars.iv158.5 to i32
  %208 = udiv i32 %207, 3125
  %.lhs.trunc.5 = trunc nuw i32 %208 to i16
  %209 = urem i16 %.lhs.trunc.5, 5
  %210 = icmp eq i16 %209, 4
  br i1 %210, label %.preheader115.5, label %.loopexit.5

.preheader115.5:                                  ; preds = %.preheader116.5
  %211 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %indvars.iv158.5
  %.promoted.5 = load x86_fp80, ptr %211, align 16, !tbaa !9
  %212 = add nsw i64 %indvars.iv158.5, -3125
  %213 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %212
  %214 = load x86_fp80, ptr %213, align 16, !tbaa !9
  %215 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %214, x86_fp80 0xK3FFCAAAAAAAAAAAAA800, x86_fp80 %.promoted.5)
  store x86_fp80 %215, ptr %211, align 16, !tbaa !9
  %216 = add nsw i64 %indvars.iv158.5, -6250
  %217 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %216
  %218 = load x86_fp80, ptr %217, align 16, !tbaa !9
  %219 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %218, x86_fp80 0xK3FFCAAAAAAAAAAAAA800, x86_fp80 %215)
  %220 = add nsw i64 %indvars.iv158.5, -9375
  %221 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %220
  %222 = load x86_fp80, ptr %221, align 16, !tbaa !9
  %223 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %222, x86_fp80 0xK3FFCAAAAAAAAAAAAA800, x86_fp80 %219)
  store x86_fp80 %223, ptr %211, align 16, !tbaa !9
  %224 = add nsw i64 %indvars.iv158.5, -12500
  %225 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %224
  %226 = load x86_fp80, ptr %225, align 16, !tbaa !9
  %227 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %226, x86_fp80 0xK3FFE8000000000000000, x86_fp80 %223)
  store x86_fp80 %227, ptr %211, align 16, !tbaa !9
  br label %.loopexit.5

.loopexit.5:                                      ; preds = %.preheader115.5, %.preheader116.5
  %indvars.iv.next159.5 = add nuw nsw i64 %indvars.iv158.5, 1
  %exitcond161.not.5 = icmp eq i64 %indvars.iv.next159.5, 15625
  br i1 %exitcond161.not.5, label %.preheader118, label %.preheader116.5, !llvm.loop !15

.preheader116:                                    ; preds = %.preheader117, %.loopexit
  %indvars.iv158 = phi i64 [ %indvars.iv.next159, %.loopexit ], [ 0, %.preheader117 ]
  %.lhs.trunc = trunc i64 %indvars.iv158 to i16
  %228 = urem i16 %.lhs.trunc, 5
  %229 = icmp eq i16 %228, 4
  br i1 %229, label %.preheader115, label %.loopexit

.preheader115:                                    ; preds = %.preheader116
  %230 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %indvars.iv158
  %.promoted = load x86_fp80, ptr %230, align 16, !tbaa !9
  %231 = add nsw i64 %indvars.iv158, -1
  %232 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %231
  %233 = load x86_fp80, ptr %232, align 16, !tbaa !9
  %234 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %233, x86_fp80 0xK3FFCAAAAAAAAAAAAA800, x86_fp80 %.promoted)
  store x86_fp80 %234, ptr %230, align 16, !tbaa !9
  %235 = add nsw i64 %indvars.iv158, -2
  %236 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %235
  %237 = load x86_fp80, ptr %236, align 16, !tbaa !9
  %238 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %237, x86_fp80 0xK3FFCAAAAAAAAAAAAA800, x86_fp80 %234)
  %239 = add nsw i64 %indvars.iv158, -3
  %240 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %239
  %241 = load x86_fp80, ptr %240, align 16, !tbaa !9
  %242 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %241, x86_fp80 0xK3FFCAAAAAAAAAAAAA800, x86_fp80 %238)
  store x86_fp80 %242, ptr %230, align 16, !tbaa !9
  %243 = add nsw i64 %indvars.iv158, -4
  %244 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %243
  %245 = load x86_fp80, ptr %244, align 16, !tbaa !9
  %246 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %245, x86_fp80 0xK3FFE8000000000000000, x86_fp80 %242)
  store x86_fp80 %246, ptr %230, align 16, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader115, %.preheader116
  %indvars.iv.next159 = add nuw nsw i64 %indvars.iv158, 1
  %exitcond161.not = icmp eq i64 %indvars.iv.next159, 15625
  br i1 %exitcond161.not, label %.preheader116.1, label %.preheader116, !llvm.loop !15

247:                                              ; preds = %300
  %indvars.iv.next169 = add nuw nsw i64 %indvars.iv168, 1
  %exitcond171.not = icmp eq i64 %indvars.iv.next169, 5
  br i1 %exitcond171.not, label %83, label %.preheader121, !llvm.loop !16

.preheader118:                                    ; preds = %.loopexit.5, %300
  %indvars.iv164 = phi i64 [ %indvars.iv.next165, %300 ], [ 0, %.loopexit.5 ]
  %248 = getelementptr inbounds [5 x [4097 x x86_fp80]], ptr @f, i64 0, i64 %indvars.iv168, i64 %indvars.iv164
  store x86_fp80 0xKC0209502F90000000000, ptr %248, align 16, !tbaa !9
  %249 = getelementptr inbounds [5 x [4097 x i32]], ptr @p, i64 0, i64 %indvars.iv168, i64 %indvars.iv164
  %250 = trunc nuw nsw i64 %indvars.iv164 to i32
  %251 = lshr i32 %250, 10
  %252 = and i32 %251, 3
  %253 = trunc nuw nsw i64 %indvars.iv164 to i32
  %254 = lshr i32 %253, 8
  %255 = and i32 %254, 3
  %256 = trunc nuw nsw i64 %indvars.iv164 to i32
  %257 = lshr i32 %256, 6
  %258 = and i32 %257, 3
  %259 = trunc nuw nsw i64 %indvars.iv164 to i32
  %260 = lshr i32 %259, 4
  %261 = and i32 %260, 3
  %262 = trunc nuw nsw i64 %indvars.iv164 to i32
  %263 = lshr i32 %262, 2
  %264 = and i32 %263, 3
  %265 = trunc nuw nsw i64 %indvars.iv164 to i32
  %266 = and i32 %265, 3
  br label %.preheader

.preheader:                                       ; preds = %.preheader118, %303
  %.091135 = phi i32 [ 0, %.preheader118 ], [ %304, %303 ]
  %267 = and i32 %.091135, 32
  %.not108 = icmp eq i32 %267, 0
  %spec.select = select i1 %.not108, i32 4, i32 %252
  %268 = and i32 %.091135, 16
  %.not108.1 = icmp eq i32 %268, 0
  %269 = mul nuw nsw i32 %spec.select, 5
  %270 = add nuw nsw i32 %255, %269
  %271 = mul nuw nsw i32 %spec.select, 5
  %272 = add nuw nsw i32 %271, 4
  %.190.1 = select i1 %.not108.1, i32 %272, i32 %270
  %273 = and i32 %.091135, 8
  %.not108.2 = icmp eq i32 %273, 0
  %274 = mul nuw nsw i32 %.190.1, 5
  %275 = add nuw nsw i32 %258, %274
  %276 = mul nuw nsw i32 %.190.1, 5
  %277 = add nuw nsw i32 %276, 4
  %.190.2 = select i1 %.not108.2, i32 %277, i32 %275
  %278 = and i32 %.091135, 4
  %.not108.3 = icmp eq i32 %278, 0
  %279 = mul nuw nsw i32 %.190.2, 5
  %280 = add nuw nsw i32 %261, %279
  %281 = mul nuw nsw i32 %.190.2, 5
  %282 = add nuw nsw i32 %281, 4
  %.190.3 = select i1 %.not108.3, i32 %282, i32 %280
  %283 = and i32 %.091135, 2
  %.not108.4 = icmp eq i32 %283, 0
  %284 = mul nuw nsw i32 %.190.3, 5
  %285 = add nuw nsw i32 %264, %284
  %286 = mul nuw nsw i32 %.190.3, 5
  %287 = add nuw nsw i32 %286, 4
  %.190.4 = select i1 %.not108.4, i32 %287, i32 %285
  %288 = and i32 %.091135, 1
  %.not108.5 = icmp eq i32 %288, 0
  %289 = mul nuw nsw i32 %.190.4, 5
  %290 = add nuw nsw i32 %266, %289
  %291 = mul nuw nsw i32 %.190.4, 5
  %292 = add nuw nsw i32 %291, 4
  %.190.5 = select i1 %.not108.5, i32 %292, i32 %290
  %293 = load x86_fp80, ptr %248, align 16, !tbaa !9
  %294 = zext nneg i32 %.190.5 to i64
  %295 = getelementptr inbounds [15625 x x86_fp80], ptr @g, i64 0, i64 %294
  %296 = load x86_fp80, ptr %295, align 16, !tbaa !9
  %297 = fsub x86_fp80 %293, %296
  %298 = tail call noundef i32 @_Z3sgne(x86_fp80 noundef %297)
  %299 = icmp slt i32 %298, 0
  br i1 %299, label %301, label %303

300:                                              ; preds = %303
  %indvars.iv.next165 = add nuw nsw i64 %indvars.iv164, 1
  %exitcond167.not = icmp eq i64 %indvars.iv.next165, 4096
  br i1 %exitcond167.not, label %247, label %.preheader118, !llvm.loop !17

301:                                              ; preds = %.preheader
  store i32 %.190.5, ptr %249, align 4, !tbaa !5
  %302 = load x86_fp80, ptr %295, align 16, !tbaa !9
  store x86_fp80 %302, ptr %248, align 16, !tbaa !9
  br label %303

303:                                              ; preds = %301, %.preheader
  %304 = add nuw nsw i32 %.091135, 1
  %exitcond163.not = icmp eq i32 %304, 64
  br i1 %exitcond163.not, label %300, label %.preheader, !llvm.loop !18

.lr.ph:                                           ; preds = %.lr.ph.preheader, %383
  %305 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %306 = load i8, ptr %4, align 1, !tbaa !19
  %307 = add i8 %306, -49
  %or.cond110 = icmp ult i8 %307, 3
  %narrow = add nsw i8 %306, -48
  %narrow114 = select i1 %or.cond110, i8 %narrow, i8 0
  %308 = sext i8 %narrow114 to i32
  %309 = load <4 x i8>, ptr %87, align 1, !tbaa !19
  %310 = add <4 x i8> %309, <i8 -49, i8 -49, i8 -49, i8 -49>
  %311 = icmp ult <4 x i8> %310, <i8 3, i8 3, i8 3, i8 3>
  %312 = add nsw <4 x i8> %309, <i8 -48, i8 -48, i8 -48, i8 -48>
  %313 = select <4 x i1> %311, <4 x i8> %312, <4 x i8> zeroinitializer
  %314 = sext <4 x i8> %313 to <4 x i32>
  %315 = shl nsw <4 x i32> %314, <i32 2, i32 4, i32 6, i32 8>
  %316 = load i8, ptr %91, align 1, !tbaa !19
  %317 = add i8 %316, -49
  %or.cond110.5 = icmp ult i8 %317, 3
  %narrow.5 = add nsw i8 %316, -48
  %narrow114.5 = select i1 %or.cond110.5, i8 %narrow.5, i8 0
  %318 = sext i8 %narrow114.5 to i32
  %319 = shl nsw i32 %318, 10
  %320 = call i32 @llvm.vector.reduce.or.v4i32(<4 x i32> %315)
  %op.rdx = or i32 %320, %319
  %op.rdx197 = or i32 %op.rdx, %308
  %321 = load i32, ptr %3, align 4, !tbaa !5
  %322 = sext i32 %321 to i64
  %323 = sext i32 %op.rdx197 to i64
  %324 = getelementptr inbounds [5 x [4097 x x86_fp80]], ptr @f, i64 0, i64 %322, i64 %323
  %325 = load x86_fp80, ptr %324, align 16, !tbaa !9
  %326 = fptrunc x86_fp80 %325 to double
  %327 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %326)
  %328 = load i32, ptr %3, align 4, !tbaa !5
  %.not107 = icmp eq i32 %328, 0
  br i1 %.not107, label %329, label %331

329:                                              ; preds = %.lr.ph
  %330 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %383

331:                                              ; preds = %.lr.ph
  %332 = sext i32 %328 to i64
  %333 = getelementptr inbounds [5 x [4097 x i32]], ptr @p, i64 0, i64 %332, i64 %323
  %334 = load i32, ptr %333, align 4, !tbaa !5
  %335 = srem i32 %334, 5
  %336 = sdiv i32 %334, 5
  %337 = icmp ne i32 %335, 4
  br i1 %337, label %342, label %338

338:                                              ; preds = %331
  %339 = load i8, ptr %4, align 1, !tbaa !19
  %340 = sext i8 %339 to i32
  %341 = call i32 @putchar(i32 noundef %340)
  br label %342

342:                                              ; preds = %331, %338
  %343 = srem i32 %336, 5
  %344 = icmp eq i32 %343, 4
  br i1 %344, label %345, label %349

345:                                              ; preds = %342
  %346 = load i8, ptr %87, align 1, !tbaa !19
  %347 = sext i8 %346 to i32
  %348 = call i32 @putchar(i32 noundef %347)
  br label %349

349:                                              ; preds = %345, %342
  %.1.1 = phi i1 [ false, %345 ], [ %337, %342 ]
  %350 = sdiv i32 %334, 25
  %351 = srem i32 %350, 5
  %352 = icmp eq i32 %351, 4
  br i1 %352, label %353, label %357

353:                                              ; preds = %349
  %354 = load i8, ptr %88, align 1, !tbaa !19
  %355 = sext i8 %354 to i32
  %356 = call i32 @putchar(i32 noundef %355)
  br label %357

357:                                              ; preds = %353, %349
  %.1.2 = phi i1 [ false, %353 ], [ %.1.1, %349 ]
  %358 = sdiv i32 %334, 125
  %359 = srem i32 %358, 5
  %360 = icmp eq i32 %359, 4
  br i1 %360, label %361, label %365

361:                                              ; preds = %357
  %362 = load i8, ptr %89, align 1, !tbaa !19
  %363 = sext i8 %362 to i32
  %364 = call i32 @putchar(i32 noundef %363)
  br label %365

365:                                              ; preds = %361, %357
  %.1.3 = phi i1 [ false, %361 ], [ %.1.2, %357 ]
  %366 = sdiv i32 %334, 625
  %367 = srem i32 %366, 5
  %368 = icmp eq i32 %367, 4
  br i1 %368, label %369, label %373

369:                                              ; preds = %365
  %370 = load i8, ptr %90, align 1, !tbaa !19
  %371 = sext i8 %370 to i32
  %372 = call i32 @putchar(i32 noundef %371)
  br label %373

373:                                              ; preds = %369, %365
  %.1.4 = phi i1 [ false, %369 ], [ %.1.3, %365 ]
  %374 = sdiv i32 %334, 3125
  %375 = srem i32 %374, 5
  %376 = icmp eq i32 %375, 4
  br i1 %376, label %.thread, label %379

.thread:                                          ; preds = %373
  %377 = load i8, ptr %91, align 1, !tbaa !19
  %378 = sext i8 %377 to i32
  br label %.sink.split195

379:                                              ; preds = %373
  br i1 %.1.4, label %.sink.split195, label %381

.sink.split195:                                   ; preds = %379, %.thread
  %.sink196 = phi i32 [ %378, %.thread ], [ 45, %379 ]
  %380 = call i32 @putchar(i32 noundef %.sink196)
  br label %381

381:                                              ; preds = %.sink.split195, %379
  %382 = call i32 @putchar(i32 noundef 10)
  br label %383

383:                                              ; preds = %381, %329
  %384 = load i32, ptr %2, align 4, !tbaa !5
  %385 = add nsw i32 %384, -1
  store i32 %385, ptr %2, align 4, !tbaa !5
  %.not = icmp eq i32 %384, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !20

._crit_edge:                                      ; preds = %383, %83
  call void @llvm.lifetime.end.p0(i64 7, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  ret i32 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 nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3sgne(x86_fp80 noundef) local_unnamed_addr #4

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

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

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

; Function Attrs: inlinehint mustprogress nofree nounwind uwtable
declare noundef i32 @putchar(i32 noundef) local_unnamed_addr #6

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

attributes #0 = { mustprogress norecurse nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { inlinehint mustprogress nofree 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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !12}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,DSEPass,DivRemPairsPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass