; LLVM IR from tangjz/acm-icpc :: lydsy (2306)

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

%"struct.std::pair" = type { i32, i32 }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@s = external dso_local global i32, align 4
@p = external dso_local global double, align 8
@w = external dso_local global [101 x double], align 16
@f = external dso_local global [101 x [101 x [101 x double]]], align 16
@e = external dso_local global [101 x %"struct.std::pair"], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %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 double, align 8
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca i32, align 4
  %22 = alloca double, align 8
  %23 = alloca i32, align 4
  %24 = alloca double, align 8
  store i32 0, ptr %1, align 4
  %25 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %36, %0
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = load i32, ptr @n, align 4, !tbaa !5
  %29 = icmp sle i32 %27, %28
  br i1 %29, label %31, label %30

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

31:                                               ; preds = %26
  %32 = load i32, ptr %2, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds double, ptr @w, i64 %33
  %35 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %34)
  br label %36

36:                                               ; preds = %31
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %2, align 4, !tbaa !5
  br label %26, !llvm.loop !9

39:                                               ; preds = %30
  %40 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef @s, ptr noundef @p)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %56, %39
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = load i32, ptr @m, align 4, !tbaa !5
  %44 = icmp sle i32 %42, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %59

46:                                               ; preds = %41
  %47 = load i32, ptr %3, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [101 x %"struct.std::pair"], ptr @e, i64 0, i64 %48
  %50 = getelementptr inbounds %"struct.std::pair", ptr %49, i32 0, i32 0
  %51 = load i32, ptr %3, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [101 x %"struct.std::pair"], ptr @e, i64 0, i64 %52
  %54 = getelementptr inbounds %"struct.std::pair", ptr %53, i32 0, i32 1
  %55 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %50, ptr noundef %54)
  br label %56

56:                                               ; preds = %46
  %57 = load i32, ptr %3, align 4, !tbaa !5
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %3, align 4, !tbaa !5
  br label %41, !llvm.loop !11

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

60:                                               ; preds = %88, %59
  %61 = load i32, ptr %4, align 4, !tbaa !5
  %62 = load i32, ptr @n, align 4, !tbaa !5
  %63 = icmp sle i32 %61, %62
  br i1 %63, label %65, label %64

64:                                               ; preds = %60
  store i32 8, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %91

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

66:                                               ; preds = %84, %65
  %67 = load i32, ptr %6, align 4, !tbaa !5
  %68 = load i32, ptr @n, align 4, !tbaa !5
  %69 = icmp sle i32 %67, %68
  br i1 %69, label %71, label %70

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

71:                                               ; preds = %66
  %72 = load i32, ptr %4, align 4, !tbaa !5
  %73 = load i32, ptr %6, align 4, !tbaa !5
  %74 = icmp eq i32 %72, %73
  %75 = zext i1 %74 to i64
  %76 = select i1 %74, i32 0, i32 -1
  %77 = sitofp i32 %76 to double
  %78 = load i32, ptr %4, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [101 x [101 x double]], ptr @f, i64 0, i64 %79
  %81 = load i32, ptr %6, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [101 x double], ptr %80, i64 0, i64 %82
  store double %77, ptr %83, align 8, !tbaa !12
  br label %84

84:                                               ; preds = %71
  %85 = load i32, ptr %6, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %6, align 4, !tbaa !5
  br label %66, !llvm.loop !14

87:                                               ; preds = %70
  br label %88

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

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

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

96:                                               ; preds = %92
  store i32 14, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %212

97:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %98 = load i32, ptr %7, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [101 x [101 x [101 x double]]], ptr @f, i64 0, i64 %99
  %101 = getelementptr inbounds [101 x [101 x double]], ptr %100, i64 0, i64 0
  store ptr %101, ptr %8, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %102 = load i32, ptr %7, align 4, !tbaa !5
  %103 = sub nsw i32 %102, 1
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [101 x [101 x [101 x double]]], ptr @f, i64 0, i64 %104
  %106 = getelementptr inbounds [101 x [101 x double]], ptr %105, i64 0, i64 0
  store ptr %106, ptr %9, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %107

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

111:                                              ; preds = %107
  store i32 17, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %133

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

113:                                              ; preds = %126, %112
  %114 = load i32, ptr %11, align 4, !tbaa !5
  %115 = load i32, ptr @n, align 4, !tbaa !5
  %116 = icmp sle i32 %114, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %113
  store i32 20, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %129

118:                                              ; preds = %113
  %119 = load ptr, ptr %8, align 8, !tbaa !16
  %120 = load i32, ptr %10, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [101 x double], ptr %119, i64 %121
  %123 = load i32, ptr %11, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [101 x double], ptr %122, i64 0, i64 %124
  store double -1.000000e+00, ptr %125, align 8, !tbaa !12
  br label %126

126:                                              ; preds = %118
  %127 = load i32, ptr %11, align 4, !tbaa !5
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %11, align 4, !tbaa !5
  br label %113, !llvm.loop !18

129:                                              ; preds = %117
  br label %130

130:                                              ; preds = %129
  %131 = load i32, ptr %10, align 4, !tbaa !5
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %10, align 4, !tbaa !5
  br label %107, !llvm.loop !19

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

134:                                              ; preds = %205, %133
  %135 = load i32, ptr %12, align 4, !tbaa !5
  %136 = load i32, ptr @m, align 4, !tbaa !5
  %137 = icmp sle i32 %135, %136
  br i1 %137, label %139, label %138

138:                                              ; preds = %134
  store i32 23, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %208

139:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %140 = load i32, ptr %12, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [101 x %"struct.std::pair"], ptr @e, i64 0, i64 %141
  %143 = getelementptr inbounds %"struct.std::pair", ptr %142, i32 0, i32 0
  %144 = load i32, ptr %143, align 8, !tbaa !20
  store i32 %144, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %145 = load i32, ptr %12, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [101 x %"struct.std::pair"], ptr @e, i64 0, i64 %146
  %148 = getelementptr inbounds %"struct.std::pair", ptr %147, i32 0, i32 1
  %149 = load i32, ptr %148, align 4, !tbaa !22
  store i32 %149, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %150

150:                                              ; preds = %201, %139
  %151 = load i32, ptr %15, align 4, !tbaa !5
  %152 = load i32, ptr @n, align 4, !tbaa !5
  %153 = icmp sle i32 %151, %152
  br i1 %153, label %155, label %154

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

155:                                              ; preds = %150
  %156 = load ptr, ptr %9, align 8, !tbaa !16
  %157 = load i32, ptr %14, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [101 x double], ptr %156, i64 %158
  %160 = load i32, ptr %15, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [101 x double], ptr %159, i64 0, i64 %161
  %163 = load double, ptr %162, align 8, !tbaa !12
  %164 = fcmp oge double %163, 0.000000e+00
  br i1 %164, label %165, label %200

165:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %166 = load i32, ptr %14, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [101 x double], ptr @w, i64 0, i64 %167
  %169 = load double, ptr %168, align 8, !tbaa !12
  %170 = load double, ptr @p, align 8, !tbaa !12
  %171 = load ptr, ptr %9, align 8, !tbaa !16
  %172 = load i32, ptr %14, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [101 x double], ptr %171, i64 %173
  %175 = load i32, ptr %15, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [101 x double], ptr %174, i64 0, i64 %176
  %178 = load double, ptr %177, align 8, !tbaa !12
  %179 = call double @llvm.fmuladd.f64(double %170, double %178, double %169)
  store double %179, ptr %16, align 8, !tbaa !12
  %180 = load ptr, ptr %8, align 8, !tbaa !16
  %181 = load i32, ptr %13, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [101 x double], ptr %180, i64 %182
  %184 = load i32, ptr %15, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [101 x double], ptr %183, i64 0, i64 %185
  %187 = load double, ptr %186, align 8, !tbaa !12
  %188 = load double, ptr %16, align 8, !tbaa !12
  %189 = fcmp olt double %187, %188
  br i1 %189, label %190, label %199

190:                                              ; preds = %165
  %191 = load double, ptr %16, align 8, !tbaa !12
  %192 = load ptr, ptr %8, align 8, !tbaa !16
  %193 = load i32, ptr %13, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [101 x double], ptr %192, i64 %194
  %196 = load i32, ptr %15, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [101 x double], ptr %195, i64 0, i64 %197
  store double %191, ptr %198, align 8, !tbaa !12
  br label %199

199:                                              ; preds = %190, %165
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %200

200:                                              ; preds = %199, %155
  br label %201

201:                                              ; preds = %200
  %202 = load i32, ptr %15, align 4, !tbaa !5
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %15, align 4, !tbaa !5
  br label %150, !llvm.loop !23

204:                                              ; preds = %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %205

205:                                              ; preds = %204
  %206 = load i32, ptr %12, align 4, !tbaa !5
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %12, align 4, !tbaa !5
  br label %134, !llvm.loop !24

208:                                              ; preds = %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %209

209:                                              ; preds = %208
  %210 = load i32, ptr %7, align 4, !tbaa !5
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %7, align 4, !tbaa !5
  br label %92, !llvm.loop !25

212:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  store double 0.000000e+00, ptr %17, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 1, ptr %18, align 4, !tbaa !5
  br label %213

213:                                              ; preds = %315, %212
  %214 = load i32, ptr %18, align 4, !tbaa !5
  %215 = load i32, ptr @n, align 4, !tbaa !5
  %216 = icmp sle i32 %214, %215
  br i1 %216, label %218, label %217

217:                                              ; preds = %213
  store i32 29, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %318

218:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  store double 1.000000e+00, ptr %19, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  store double 0.000000e+00, ptr %20, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  store i32 1, ptr %21, align 4, !tbaa !5
  br label %219

219:                                              ; preds = %260, %218
  %220 = load i32, ptr %21, align 4, !tbaa !5
  %221 = load i32, ptr @n, align 4, !tbaa !5
  %222 = icmp sle i32 %220, %221
  br i1 %222, label %224, label %223

223:                                              ; preds = %219
  store i32 32, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %263

224:                                              ; preds = %219
  %225 = load double, ptr @p, align 8, !tbaa !12
  %226 = load double, ptr %19, align 8, !tbaa !12
  %227 = fmul double %226, %225
  store double %227, ptr %19, align 8, !tbaa !12
  %228 = load i32, ptr %21, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [101 x [101 x [101 x double]]], ptr @f, i64 0, i64 %229
  %231 = load i32, ptr %18, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [101 x [101 x double]], ptr %230, i64 0, i64 %232
  %234 = load i32, ptr %18, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [101 x double], ptr %233, i64 0, i64 %235
  %237 = load double, ptr %236, align 8, !tbaa !12
  %238 = fcmp oge double %237, 0.000000e+00
  br i1 %238, label %239, label %259

239:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %240 = load i32, ptr %21, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [101 x [101 x [101 x double]]], ptr @f, i64 0, i64 %241
  %243 = load i32, ptr %18, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [101 x [101 x double]], ptr %242, i64 0, i64 %244
  %246 = load i32, ptr %18, align 4, !tbaa !5
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [101 x double], ptr %245, i64 0, i64 %247
  %249 = load double, ptr %248, align 8, !tbaa !12
  %250 = load double, ptr %19, align 8, !tbaa !12
  %251 = fsub double 1.000000e+00, %250
  %252 = fdiv double %249, %251
  store double %252, ptr %22, align 8, !tbaa !12
  %253 = load double, ptr %20, align 8, !tbaa !12
  %254 = load double, ptr %22, align 8, !tbaa !12
  %255 = fcmp olt double %253, %254
  br i1 %255, label %256, label %258

256:                                              ; preds = %239
  %257 = load double, ptr %22, align 8, !tbaa !12
  store double %257, ptr %20, align 8, !tbaa !12
  br label %258

258:                                              ; preds = %256, %239
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %259

259:                                              ; preds = %258, %224
  br label %260

260:                                              ; preds = %259
  %261 = load i32, ptr %21, align 4, !tbaa !5
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr %21, align 4, !tbaa !5
  br label %219, !llvm.loop !26

263:                                              ; preds = %223
  store double 1.000000e+00, ptr %19, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %264

264:                                              ; preds = %311, %263
  %265 = load i32, ptr %23, align 4, !tbaa !5
  %266 = load i32, ptr @n, align 4, !tbaa !5
  %267 = icmp sle i32 %265, %266
  br i1 %267, label %269, label %268

268:                                              ; preds = %264
  store i32 35, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %314

269:                                              ; preds = %264
  %270 = load i32, ptr %23, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [101 x [101 x [101 x double]]], ptr @f, i64 0, i64 %271
  %273 = load i32, ptr @s, align 4, !tbaa !5
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [101 x [101 x double]], ptr %272, i64 0, i64 %274
  %276 = load i32, ptr %18, align 4, !tbaa !5
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [101 x double], ptr %275, i64 0, i64 %277
  %279 = load double, ptr %278, align 8, !tbaa !12
  %280 = fcmp oge double %279, 0.000000e+00
  br i1 %280, label %281, label %307

281:                                              ; preds = %269
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %282 = load i32, ptr @s, align 4, !tbaa !5
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [101 x double], ptr @w, i64 0, i64 %283
  %285 = load double, ptr %284, align 8, !tbaa !12
  %286 = load double, ptr @p, align 8, !tbaa !12
  %287 = load i32, ptr %23, align 4, !tbaa !5
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds [101 x [101 x [101 x double]]], ptr @f, i64 0, i64 %288
  %290 = load i32, ptr @s, align 4, !tbaa !5
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [101 x [101 x double]], ptr %289, i64 0, i64 %291
  %293 = load i32, ptr %18, align 4, !tbaa !5
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds [101 x double], ptr %292, i64 0, i64 %294
  %296 = load double, ptr %295, align 8, !tbaa !12
  %297 = load double, ptr %19, align 8, !tbaa !12
  %298 = load double, ptr %20, align 8, !tbaa !12
  %299 = call double @llvm.fmuladd.f64(double %297, double %298, double %296)
  %300 = call double @llvm.fmuladd.f64(double %286, double %299, double %285)
  store double %300, ptr %24, align 8, !tbaa !12
  %301 = load double, ptr %17, align 8, !tbaa !12
  %302 = load double, ptr %24, align 8, !tbaa !12
  %303 = fcmp olt double %301, %302
  br i1 %303, label %304, label %306

304:                                              ; preds = %281
  %305 = load double, ptr %24, align 8, !tbaa !12
  store double %305, ptr %17, align 8, !tbaa !12
  br label %306

306:                                              ; preds = %304, %281
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  br label %307

307:                                              ; preds = %306, %269
  %308 = load double, ptr @p, align 8, !tbaa !12
  %309 = load double, ptr %19, align 8, !tbaa !12
  %310 = fmul double %309, %308
  store double %310, ptr %19, align 8, !tbaa !12
  br label %311

311:                                              ; preds = %307
  %312 = load i32, ptr %23, align 4, !tbaa !5
  %313 = add nsw i32 %312, 1
  store i32 %313, ptr %23, align 4, !tbaa !5
  br label %264, !llvm.loop !27

314:                                              ; preds = %268
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %315

315:                                              ; preds = %314
  %316 = load i32, ptr %18, align 4, !tbaa !5
  %317 = add nsw i32 %316, 1
  store i32 %317, ptr %18, align 4, !tbaa !5
  br label %213, !llvm.loop !28

318:                                              ; preds = %217
  %319 = load double, ptr %17, align 8, !tbaa !12
  %320 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %319)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  %321 = load i32, ptr %1, align 4
  ret i32 %321
}

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = !{!17, !17, i64 0}
!17 = !{!"any pointer", !7, i64 0}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = !{!21, !6, i64 0}
!21 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!22 = !{!21, !6, i64 4}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !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"

%"struct.std::pair" = type { i32, i32 }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@s = external dso_local global i32, align 4
@p = external dso_local global double, align 8
@w = external dso_local global [101 x double], align 16
@f = external dso_local local_unnamed_addr global [101 x [101 x [101 x double]]], align 16
@e = external dso_local global [101 x %"struct.std::pair"], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %2 = load i32, ptr @n, align 4, !tbaa !5
  %.not117 = icmp slt i32 %2, 1
  br i1 %.not117, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %0
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull @s, ptr noundef nonnull @p)
  %4 = load i32, ptr @m, align 4, !tbaa !5
  %.not98119 = icmp slt i32 %4, 1
  br i1 %.not98119, label %.preheader115, label %.lr.ph122

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %5 = getelementptr inbounds double, ptr @w, i64 %indvars.iv
  %6 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %5)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %7 = load i32, ptr @n, align 4, !tbaa !5
  %8 = sext i32 %7 to i64
  %.not.not = icmp slt i64 %indvars.iv, %8
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.preheader115:                                    ; preds = %.lr.ph122, %._crit_edge
  %.lcssa116 = phi i32 [ %4, %._crit_edge ], [ %17, %.lr.ph122 ]
  %9 = load i32, ptr @n, align 4, !tbaa !5
  %.not99127 = icmp slt i32 %9, 1
  br i1 %.not99127, label %._crit_edge164, label %.preheader114.preheader

.preheader114.preheader:                          ; preds = %.preheader115
  %10 = add nuw i32 %9, 1
  %wide.trip.count177 = zext i32 %10 to i64
  %11 = zext nneg i32 %9 to i64
  %12 = add nsw i64 %wide.trip.count177, -2
  %xtraiter = and i64 %11, 3
  %13 = icmp ult i64 %12, 3
  %unroll_iter = and i64 %11, 2147483644
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader114

.lr.ph122:                                        ; preds = %._crit_edge, %.lr.ph122
  %indvars.iv168 = phi i64 [ %indvars.iv.next169, %.lr.ph122 ], [ 1, %._crit_edge ]
  %14 = getelementptr inbounds [101 x %"struct.std::pair"], ptr @e, i64 0, i64 %indvars.iv168
  %15 = getelementptr inbounds i8, ptr %14, i64 4
  %16 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %14, ptr noundef nonnull %15)
  %indvars.iv.next169 = add nuw nsw i64 %indvars.iv168, 1
  %17 = load i32, ptr @m, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %.not98.not = icmp slt i64 %indvars.iv168, %18
  br i1 %.not98.not, label %.lr.ph122, label %.preheader115, !llvm.loop !11

.preheader114:                                    ; preds = %.preheader114.preheader, %._crit_edge126
  %indvars.iv174 = phi i64 [ 1, %.preheader114.preheader ], [ %indvars.iv.next175, %._crit_edge126 ]
  br i1 %13, label %._crit_edge126.unr-lcssa, label %.preheader114.new

.preheader113:                                    ; preds = %._crit_edge126
  br i1 %.not99127, label %._crit_edge164, label %.lr.ph147

.lr.ph147:                                        ; preds = %.preheader113
  %.not105141 = icmp slt i32 %.lcssa116, 1
  %19 = load double, ptr @p, align 8
  %20 = add nuw i32 %9, 1
  %21 = add i32 %.lcssa116, 1
  %wide.trip.count202 = zext i32 %20 to i64
  %wide.trip.count197 = zext i32 %21 to i64
  %22 = zext nneg i32 %9 to i64
  %min.iters.check = icmp ult i32 %9, 4
  %n.vec = and i64 %22, 2147483644
  %ind.end = or disjoint i64 %n.vec, 1
  %cmp.n = icmp eq i64 %n.vec, %22
  br label %.preheader111.preheader

._crit_edge126.unr-lcssa:                         ; preds = %.preheader114.new, %.preheader114
  %indvars.iv171.unr = phi i64 [ 1, %.preheader114 ], [ %indvars.iv.next172.3, %.preheader114.new ]
  br i1 %lcmp.mod.not, label %._crit_edge126, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge126.unr-lcssa, %.epil.preheader
  %indvars.iv171.epil = phi i64 [ %indvars.iv.next172.epil, %.epil.preheader ], [ %indvars.iv171.unr, %._crit_edge126.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge126.unr-lcssa ]
  %23 = icmp ne i64 %indvars.iv174, %indvars.iv171.epil
  %24 = sitofp i1 %23 to double
  %25 = getelementptr inbounds [101 x [101 x double]], ptr @f, i64 0, i64 %indvars.iv174, i64 %indvars.iv171.epil
  store double %24, ptr %25, align 8, !tbaa !12
  %indvars.iv.next172.epil = add nuw nsw i64 %indvars.iv171.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge126, label %.epil.preheader, !llvm.loop !14

._crit_edge126:                                   ; preds = %.epil.preheader, %._crit_edge126.unr-lcssa
  %indvars.iv.next175 = add nuw nsw i64 %indvars.iv174, 1
  %exitcond178.not = icmp eq i64 %indvars.iv.next175, %wide.trip.count177
  br i1 %exitcond178.not, label %.preheader113, label %.preheader114, !llvm.loop !16

.preheader114.new:                                ; preds = %.preheader114, %.preheader114.new
  %indvars.iv171 = phi i64 [ %indvars.iv.next172.3, %.preheader114.new ], [ 1, %.preheader114 ]
  %niter = phi i64 [ %niter.next.3, %.preheader114.new ], [ 0, %.preheader114 ]
  %26 = icmp ne i64 %indvars.iv174, %indvars.iv171
  %27 = sitofp i1 %26 to double
  %28 = getelementptr inbounds [101 x [101 x double]], ptr @f, i64 0, i64 %indvars.iv174, i64 %indvars.iv171
  store double %27, ptr %28, align 8, !tbaa !12
  %indvars.iv.next172 = add nuw nsw i64 %indvars.iv171, 1
  %29 = icmp ne i64 %indvars.iv174, %indvars.iv.next172
  %30 = sitofp i1 %29 to double
  %31 = getelementptr inbounds [101 x [101 x double]], ptr @f, i64 0, i64 %indvars.iv174, i64 %indvars.iv.next172
  store double %30, ptr %31, align 8, !tbaa !12
  %indvars.iv.next172.1 = add nuw nsw i64 %indvars.iv171, 2
  %32 = icmp ne i64 %indvars.iv174, %indvars.iv.next172.1
  %33 = sitofp i1 %32 to double
  %34 = getelementptr inbounds [101 x [101 x double]], ptr @f, i64 0, i64 %indvars.iv174, i64 %indvars.iv.next172.1
  store double %33, ptr %34, align 8, !tbaa !12
  %indvars.iv.next172.2 = add nuw nsw i64 %indvars.iv171, 3
  %35 = icmp ne i64 %indvars.iv174, %indvars.iv.next172.2
  %36 = sitofp i1 %35 to double
  %37 = getelementptr inbounds [101 x [101 x double]], ptr @f, i64 0, i64 %indvars.iv174, i64 %indvars.iv.next172.2
  store double %36, ptr %37, align 8, !tbaa !12
  %indvars.iv.next172.3 = add nuw nsw i64 %indvars.iv171, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge126.unr-lcssa, label %.preheader114.new, !llvm.loop !17

.preheader110:                                    ; preds = %._crit_edge144
  br i1 %.not99127, label %._crit_edge164, label %.preheader109.lr.ph

.preheader109.lr.ph:                              ; preds = %.preheader110
  %38 = load double, ptr @p, align 8
  %39 = load i32, ptr @s, align 4
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [101 x double], ptr @w, i64 0, i64 %40
  %42 = add nuw i32 %9, 1
  %wide.trip.count217 = zext i32 %42 to i64
  %xtraiter220 = and i64 %11, 1
  %43 = icmp eq i64 %12, 0
  %unroll_iter224 = and i64 %11, 2147483646
  %lcmp.mod222.not = icmp eq i64 %xtraiter220, 0
  br label %.lr.ph152

.preheader111.preheader:                          ; preds = %._crit_edge144, %.lr.ph147
  %indvars.iv199 = phi i64 [ 1, %.lr.ph147 ], [ %indvars.iv.next200, %._crit_edge144 ]
  %44 = getelementptr inbounds [101 x [101 x [101 x double]]], ptr @f, i64 0, i64 %indvars.iv199
  %45 = add nsw i64 %indvars.iv199, -1
  %46 = getelementptr inbounds [101 x [101 x [101 x double]]], ptr @f, i64 0, i64 %45
  br label %.preheader111

.preheader112:                                    ; preds = %._crit_edge133
  br i1 %.not105141, label %._crit_edge144, label %.lr.ph139

.preheader111:                                    ; preds = %.preheader111.preheader, %._crit_edge133
  %indvars.iv184 = phi i64 [ 1, %.preheader111.preheader ], [ %indvars.iv.next185, %._crit_edge133 ]
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.body

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

vector.body:                                      ; preds = %.preheader111, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.preheader111 ]
  %offset.idx = or disjoint i64 %index, 1
  %47 = getelementptr inbounds [101 x double], ptr %44, i64 %indvars.iv184, i64 %offset.idx
  %48 = getelementptr inbounds i8, ptr %47, i64 16
  store <2 x double> <double -1.000000e+00, double -1.000000e+00>, ptr %47, align 8, !tbaa !12
  store <2 x double> <double -1.000000e+00, double -1.000000e+00>, ptr %48, align 8, !tbaa !12
  %index.next = add nuw i64 %index, 4
  %49 = icmp eq i64 %index.next, %n.vec
  br i1 %49, label %middle.block, label %vector.body, !llvm.loop !18

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

._crit_edge133:                                   ; preds = %scalar.ph, %middle.block
  %indvars.iv.next185 = add nuw nsw i64 %indvars.iv184, 1
  %exitcond188.not = icmp eq i64 %indvars.iv.next185, %wide.trip.count202
  br i1 %exitcond188.not, label %.preheader112, label %.preheader111, !llvm.loop !21

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv179 = phi i64 [ %indvars.iv.next180, %scalar.ph ], [ %indvars.iv179.ph, %scalar.ph.preheader ]
  %50 = getelementptr inbounds [101 x double], ptr %44, i64 %indvars.iv184, i64 %indvars.iv179
  store double -1.000000e+00, ptr %50, align 8, !tbaa !12
  %indvars.iv.next180 = add nuw nsw i64 %indvars.iv179, 1
  %exitcond183.not = icmp eq i64 %indvars.iv.next180, %wide.trip.count202
  br i1 %exitcond183.not, label %._crit_edge133, label %scalar.ph, !llvm.loop !22

._crit_edge144:                                   ; preds = %._crit_edge140, %.preheader112
  %indvars.iv.next200 = add nuw nsw i64 %indvars.iv199, 1
  %exitcond203.not = icmp eq i64 %indvars.iv.next200, %wide.trip.count202
  br i1 %exitcond203.not, label %.preheader110, label %.preheader111.preheader, !llvm.loop !23

.lr.ph139:                                        ; preds = %.preheader112, %._crit_edge140
  %indvars.iv194 = phi i64 [ %indvars.iv.next195, %._crit_edge140 ], [ 1, %.preheader112 ]
  %51 = getelementptr inbounds [101 x %"struct.std::pair"], ptr @e, i64 0, i64 %indvars.iv194
  %52 = load i32, ptr %51, align 8, !tbaa !24
  %53 = getelementptr inbounds i8, ptr %51, i64 4
  %54 = load i32, ptr %53, align 4, !tbaa !26
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [101 x double], ptr @w, i64 0, i64 %55
  %57 = sext i32 %52 to i64
  br label %58

._crit_edge140:                                   ; preds = %69
  %indvars.iv.next195 = add nuw nsw i64 %indvars.iv194, 1
  %exitcond198.not = icmp eq i64 %indvars.iv.next195, %wide.trip.count197
  br i1 %exitcond198.not, label %._crit_edge144, label %.lr.ph139, !llvm.loop !27

58:                                               ; preds = %.lr.ph139, %69
  %indvars.iv189 = phi i64 [ 1, %.lr.ph139 ], [ %indvars.iv.next190, %69 ]
  %59 = getelementptr inbounds [101 x double], ptr %46, i64 %55, i64 %indvars.iv189
  %60 = load double, ptr %59, align 8, !tbaa !12
  %61 = fcmp ult double %60, 0.000000e+00
  br i1 %61, label %69, label %62

62:                                               ; preds = %58
  %63 = load double, ptr %56, align 8, !tbaa !12
  %64 = tail call double @llvm.fmuladd.f64(double %19, double %60, double %63)
  %65 = getelementptr inbounds [101 x double], ptr %44, i64 %57, i64 %indvars.iv189
  %66 = load double, ptr %65, align 8, !tbaa !12
  %67 = fcmp olt double %66, %64
  br i1 %67, label %68, label %69

68:                                               ; preds = %62
  store double %64, ptr %65, align 8, !tbaa !12
  br label %69

69:                                               ; preds = %62, %68, %58
  %indvars.iv.next190 = add nuw nsw i64 %indvars.iv189, 1
  %exitcond193.not = icmp eq i64 %indvars.iv.next190, %wide.trip.count202
  br i1 %exitcond193.not, label %._crit_edge140, label %58, !llvm.loop !28

.lr.ph152:                                        ; preds = %._crit_edge159, %.preheader109.lr.ph
  %indvars.iv214 = phi i64 [ 1, %.preheader109.lr.ph ], [ %indvars.iv.next215, %._crit_edge159 ]
  %.081162 = phi double [ 0.000000e+00, %.preheader109.lr.ph ], [ %.3, %._crit_edge159 ]
  br i1 %43, label %.lr.ph158.preheader.unr-lcssa, label %.lr.ph152.new

._crit_edge164:                                   ; preds = %._crit_edge159, %.preheader115, %.preheader113, %.preheader110
  %.081.lcssa = phi double [ 0.000000e+00, %.preheader110 ], [ 0.000000e+00, %.preheader113 ], [ 0.000000e+00, %.preheader115 ], [ %.3, %._crit_edge159 ]
  %70 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef %.081.lcssa)
  ret i32 0

.lr.ph152.new:                                    ; preds = %.lr.ph152, %88
  %indvars.iv204 = phi i64 [ %indvars.iv.next205.1, %88 ], [ 1, %.lr.ph152 ]
  %.077150 = phi double [ %.2.1, %88 ], [ 0.000000e+00, %.lr.ph152 ]
  %.078149 = phi double [ %80, %88 ], [ 1.000000e+00, %.lr.ph152 ]
  %niter225 = phi i64 [ %niter225.next.1, %88 ], [ 0, %.lr.ph152 ]
  %71 = fmul double %.078149, %38
  %72 = getelementptr inbounds [101 x [101 x [101 x double]]], ptr @f, i64 0, i64 %indvars.iv204, i64 %indvars.iv214, i64 %indvars.iv214
  %73 = load double, ptr %72, align 8, !tbaa !12
  %74 = fcmp ult double %73, 0.000000e+00
  br i1 %74, label %79, label %75

75:                                               ; preds = %.lr.ph152.new
  %76 = fsub double 1.000000e+00, %71
  %77 = fdiv double %73, %76
  %78 = fcmp olt double %.077150, %77
  %.1 = select i1 %78, double %77, double %.077150
  br label %79

79:                                               ; preds = %.lr.ph152.new, %75
  %.2 = phi double [ %.1, %75 ], [ %.077150, %.lr.ph152.new ]
  %indvars.iv.next205 = add nuw nsw i64 %indvars.iv204, 1
  %80 = fmul double %71, %38
  %81 = getelementptr inbounds [101 x [101 x [101 x double]]], ptr @f, i64 0, i64 %indvars.iv.next205, i64 %indvars.iv214, i64 %indvars.iv214
  %82 = load double, ptr %81, align 8, !tbaa !12
  %83 = fcmp ult double %82, 0.000000e+00
  br i1 %83, label %88, label %84

84:                                               ; preds = %79
  %85 = fsub double 1.000000e+00, %80
  %86 = fdiv double %82, %85
  %87 = fcmp olt double %.2, %86
  %.1.1 = select i1 %87, double %86, double %.2
  br label %88

88:                                               ; preds = %84, %79
  %.2.1 = phi double [ %.1.1, %84 ], [ %.2, %79 ]
  %indvars.iv.next205.1 = add nuw nsw i64 %indvars.iv204, 2
  %niter225.next.1 = add i64 %niter225, 2
  %niter225.ncmp.1 = icmp eq i64 %niter225.next.1, %unroll_iter224
  br i1 %niter225.ncmp.1, label %.lr.ph158.preheader.unr-lcssa, label %.lr.ph152.new, !llvm.loop !29

.lr.ph158.preheader.unr-lcssa:                    ; preds = %88, %.lr.ph152
  %.2.lcssa.ph = phi double [ poison, %.lr.ph152 ], [ %.2.1, %88 ]
  %indvars.iv204.unr = phi i64 [ 1, %.lr.ph152 ], [ %indvars.iv.next205.1, %88 ]
  %.077150.unr = phi double [ 0.000000e+00, %.lr.ph152 ], [ %.2.1, %88 ]
  %.078149.unr = phi double [ 1.000000e+00, %.lr.ph152 ], [ %80, %88 ]
  br i1 %lcmp.mod222.not, label %.lr.ph158.preheader, label %.epil.preheader219

.epil.preheader219:                               ; preds = %.lr.ph158.preheader.unr-lcssa
  %89 = getelementptr inbounds [101 x [101 x [101 x double]]], ptr @f, i64 0, i64 %indvars.iv204.unr, i64 %indvars.iv214, i64 %indvars.iv214
  %90 = load double, ptr %89, align 8, !tbaa !12
  %91 = fcmp ult double %90, 0.000000e+00
  br i1 %91, label %.lr.ph158.preheader, label %92

92:                                               ; preds = %.epil.preheader219
  %93 = fmul double %.078149.unr, %38
  %94 = fsub double 1.000000e+00, %93
  %95 = fdiv double %90, %94
  %96 = fcmp olt double %.077150.unr, %95
  %.1.epil = select i1 %96, double %95, double %.077150.unr
  br label %.lr.ph158.preheader

.lr.ph158.preheader:                              ; preds = %.epil.preheader219, %92, %.lr.ph158.preheader.unr-lcssa
  %.2.lcssa = phi double [ %.2.lcssa.ph, %.lr.ph158.preheader.unr-lcssa ], [ %.1.epil, %92 ], [ %.077150.unr, %.epil.preheader219 ]
  br label %.lr.ph158

._crit_edge159:                                   ; preds = %105
  %indvars.iv.next215 = add nuw nsw i64 %indvars.iv214, 1
  %exitcond218.not = icmp eq i64 %indvars.iv.next215, %wide.trip.count217
  br i1 %exitcond218.not, label %._crit_edge164, label %.lr.ph152, !llvm.loop !30

.lr.ph158:                                        ; preds = %.lr.ph158.preheader, %105
  %indvars.iv209 = phi i64 [ %indvars.iv.next210, %105 ], [ 0, %.lr.ph158.preheader ]
  %.179156 = phi double [ %106, %105 ], [ 1.000000e+00, %.lr.ph158.preheader ]
  %.182155 = phi double [ %.3, %105 ], [ %.081162, %.lr.ph158.preheader ]
  %97 = getelementptr inbounds [101 x [101 x [101 x double]]], ptr @f, i64 0, i64 %indvars.iv209, i64 %40, i64 %indvars.iv214
  %98 = load double, ptr %97, align 8, !tbaa !12
  %99 = fcmp ult double %98, 0.000000e+00
  br i1 %99, label %105, label %100

100:                                              ; preds = %.lr.ph158
  %101 = load double, ptr %41, align 8, !tbaa !12
  %102 = tail call double @llvm.fmuladd.f64(double %.179156, double %.2.lcssa, double %98)
  %103 = tail call double @llvm.fmuladd.f64(double %38, double %102, double %101)
  %104 = fcmp olt double %.182155, %103
  %.283 = select i1 %104, double %103, double %.182155
  br label %105

105:                                              ; preds = %100, %.lr.ph158
  %.3 = phi double [ %.283, %100 ], [ %.182155, %.lr.ph158 ]
  %106 = fmul double %.179156, %38
  %indvars.iv.next210 = add nuw nsw i64 %indvars.iv209, 1
  %exitcond213.not = icmp eq i64 %indvars.iv.next210, %wide.trip.count217
  br i1 %exitcond213.not, label %._crit_edge159, label %.lr.ph158, !llvm.loop !31
}

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

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

attributes #0 = { mustprogress nofree norecurse nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10, !19, !20}
!19 = !{!"llvm.loop.isvectorized", i32 1}
!20 = !{!"llvm.loop.unroll.runtime.disable"}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10, !20, !19}
!23 = distinct !{!23, !10}
!24 = !{!25, !6, i64 0}
!25 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!26 = !{!25, !6, i64 4}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !10}
!29 = distinct !{!29, !10}
!30 = distinct !{!30, !10}
!31 = distinct !{!31, !10}


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