; LLVM IR from 0r-gh0/NUMERICAL_ANALYSIS :: CODES (POWER_METHOD_FINAL)

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

@.str = external hidden unnamed_addr constant [42 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [65 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local double @Normalize(ptr noundef, i32 noundef) #0

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local double @FrobNorm(ptr noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
define dso_local 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 [20 x double], align 16
  %8 = alloca [20 x double], align 16
  %9 = alloca [20 x double], align 16
  %10 = alloca [20 x [20 x double]], align 16
  %11 = alloca [20 x double], align 16
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 160, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 160, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 160, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 3200, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 160, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %19 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %5)
  %21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %22 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef %12)
  %23 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  %24 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %6)
  %25 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %26

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

30:                                               ; preds = %26
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %31

31:                                               ; preds = %46, %30
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = load i32, ptr %5, align 4, !tbaa !5
  %34 = icmp sle i32 %32, %33
  br i1 %34, label %35, label %49

35:                                               ; preds = %31
  %36 = load i32, ptr %2, align 4, !tbaa !5
  %37 = load i32, ptr %3, align 4, !tbaa !5
  %38 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %36, i32 noundef %37)
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [20 x [20 x double]], ptr %10, i64 0, i64 %40
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [20 x double], ptr %41, i64 0, i64 %43
  %45 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef %44)
  br label %46

46:                                               ; preds = %35
  %47 = load i32, ptr %3, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %3, align 4, !tbaa !5
  br label %31, !llvm.loop !9

49:                                               ; preds = %31
  %50 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %51

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

54:                                               ; preds = %26
  %55 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %79, %54
  %57 = load i32, ptr %2, align 4, !tbaa !5
  %58 = load i32, ptr %5, align 4, !tbaa !5
  %59 = icmp sle i32 %57, %58
  br i1 %59, label %60, label %82

60:                                               ; preds = %56
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %61

61:                                               ; preds = %74, %60
  %62 = load i32, ptr %3, align 4, !tbaa !5
  %63 = load i32, ptr %5, align 4, !tbaa !5
  %64 = icmp sle i32 %62, %63
  br i1 %64, label %65, label %77

65:                                               ; preds = %61
  %66 = load i32, ptr %2, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [20 x [20 x double]], ptr %10, i64 0, i64 %67
  %69 = load i32, ptr %3, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [20 x double], ptr %68, i64 0, i64 %70
  %72 = load double, ptr %71, align 8, !tbaa !12
  %73 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %72)
  br label %74

74:                                               ; preds = %65
  %75 = load i32, ptr %3, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %3, align 4, !tbaa !5
  br label %61, !llvm.loop !14

77:                                               ; preds = %61
  %78 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %79

79:                                               ; preds = %77
  %80 = load i32, ptr %2, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %2, align 4, !tbaa !5
  br label %56, !llvm.loop !15

82:                                               ; preds = %56
  %83 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %95, %82
  %85 = load i32, ptr %3, align 4, !tbaa !5
  %86 = load i32, ptr %5, align 4, !tbaa !5
  %87 = icmp sle i32 %85, %86
  br i1 %87, label %88, label %98

88:                                               ; preds = %84
  %89 = load i32, ptr %3, align 4, !tbaa !5
  %90 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %89)
  %91 = load i32, ptr %3, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [20 x double], ptr %8, i64 0, i64 %92
  %94 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef %93)
  br label %95

95:                                               ; preds = %88
  %96 = load i32, ptr %3, align 4, !tbaa !5
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %3, align 4, !tbaa !5
  br label %84, !llvm.loop !16

98:                                               ; preds = %84
  %99 = getelementptr inbounds [20 x double], ptr %8, i64 0, i64 0
  %100 = load i32, ptr %5, align 4, !tbaa !5
  %101 = call double @Normalize(ptr noundef %99, i32 noundef %100)
  store double %101, ptr %14, align 8, !tbaa !12
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %102

102:                                              ; preds = %116, %98
  %103 = load i32, ptr %3, align 4, !tbaa !5
  %104 = load i32, ptr %5, align 4, !tbaa !5
  %105 = icmp sle i32 %103, %104
  br i1 %105, label %106, label %119

106:                                              ; preds = %102
  %107 = load i32, ptr %3, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [20 x double], ptr %8, i64 0, i64 %108
  %110 = load double, ptr %109, align 8, !tbaa !12
  %111 = load double, ptr %14, align 8, !tbaa !12
  %112 = fdiv double %110, %111
  %113 = load i32, ptr %3, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [20 x double], ptr %7, i64 0, i64 %114
  store double %112, ptr %115, align 8, !tbaa !12
  br label %116

116:                                              ; preds = %106
  %117 = load i32, ptr %3, align 4, !tbaa !5
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %3, align 4, !tbaa !5
  br label %102, !llvm.loop !17

119:                                              ; preds = %102
  %120 = load double, ptr %14, align 8, !tbaa !12
  %121 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %120)
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %122

122:                                              ; preds = %133, %119
  %123 = load i32, ptr %3, align 4, !tbaa !5
  %124 = load i32, ptr %5, align 4, !tbaa !5
  %125 = icmp sle i32 %123, %124
  br i1 %125, label %126, label %136

126:                                              ; preds = %122
  %127 = load i32, ptr %3, align 4, !tbaa !5
  %128 = load i32, ptr %3, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [20 x double], ptr %7, i64 0, i64 %129
  %131 = load double, ptr %130, align 8, !tbaa !12
  %132 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %127, double noundef %131)
  br label %133

133:                                              ; preds = %126
  %134 = load i32, ptr %3, align 4, !tbaa !5
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %3, align 4, !tbaa !5
  br label %122, !llvm.loop !18

136:                                              ; preds = %122
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %137

137:                                              ; preds = %286, %136
  %138 = load i32, ptr %2, align 4, !tbaa !5
  %139 = load i32, ptr %6, align 4, !tbaa !5
  %140 = icmp sle i32 %138, %139
  br i1 %140, label %141, label %289

141:                                              ; preds = %137
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %142

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

146:                                              ; preds = %142
  %147 = load i32, ptr %3, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [20 x double], ptr %7, i64 0, i64 %148
  %150 = load double, ptr %149, align 8, !tbaa !12
  %151 = load i32, ptr %3, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [20 x double], ptr %8, i64 0, i64 %152
  store double %150, ptr %153, align 8, !tbaa !12
  br label %154

154:                                              ; preds = %146
  %155 = load i32, ptr %3, align 4, !tbaa !5
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %3, align 4, !tbaa !5
  br label %142, !llvm.loop !19

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

158:                                              ; preds = %193, %157
  %159 = load i32, ptr %15, align 4, !tbaa !5
  %160 = load i32, ptr %5, align 4, !tbaa !5
  %161 = icmp sle i32 %159, %160
  br i1 %161, label %163, label %162

162:                                              ; preds = %158
  store i32 29, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %196

163:                                              ; preds = %158
  %164 = load i32, ptr %15, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [20 x double], ptr %11, i64 0, i64 %165
  store double 0.000000e+00, ptr %166, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 1, ptr %17, align 4, !tbaa !5
  br label %167

167:                                              ; preds = %189, %163
  %168 = load i32, ptr %17, align 4, !tbaa !5
  %169 = load i32, ptr %5, align 4, !tbaa !5
  %170 = icmp sle i32 %168, %169
  br i1 %170, label %172, label %171

171:                                              ; preds = %167
  store i32 32, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %192

172:                                              ; preds = %167
  %173 = load i32, ptr %15, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [20 x [20 x double]], ptr %10, i64 0, i64 %174
  %176 = load i32, ptr %17, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [20 x double], ptr %175, i64 0, i64 %177
  %179 = load double, ptr %178, align 8, !tbaa !12
  %180 = load i32, ptr %17, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [20 x double], ptr %7, i64 0, i64 %181
  %183 = load double, ptr %182, align 8, !tbaa !12
  %184 = load i32, ptr %15, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [20 x double], ptr %11, i64 0, i64 %185
  %187 = load double, ptr %186, align 8, !tbaa !12
  %188 = call double @llvm.fmuladd.f64(double %179, double %183, double %187)
  store double %188, ptr %186, align 8, !tbaa !12
  br label %189

189:                                              ; preds = %172
  %190 = load i32, ptr %17, align 4, !tbaa !5
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %17, align 4, !tbaa !5
  br label %167, !llvm.loop !20

192:                                              ; preds = %171
  br label %193

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

196:                                              ; preds = %162
  %197 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %198

198:                                              ; preds = %209, %196
  %199 = load i32, ptr %3, align 4, !tbaa !5
  %200 = load i32, ptr %5, align 4, !tbaa !5
  %201 = icmp sle i32 %199, %200
  br i1 %201, label %202, label %212

202:                                              ; preds = %198
  %203 = load i32, ptr %3, align 4, !tbaa !5
  %204 = load i32, ptr %3, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [20 x double], ptr %11, i64 0, i64 %205
  %207 = load double, ptr %206, align 8, !tbaa !12
  %208 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %203, double noundef %207)
  br label %209

209:                                              ; preds = %202
  %210 = load i32, ptr %3, align 4, !tbaa !5
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %3, align 4, !tbaa !5
  br label %198, !llvm.loop !22

212:                                              ; preds = %198
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %213

213:                                              ; preds = %225, %212
  %214 = load i32, ptr %3, align 4, !tbaa !5
  %215 = load i32, ptr %5, align 4, !tbaa !5
  %216 = icmp sle i32 %214, %215
  br i1 %216, label %217, label %228

217:                                              ; preds = %213
  %218 = load i32, ptr %4, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [20 x double], ptr %11, i64 0, i64 %219
  %221 = load double, ptr %220, align 8, !tbaa !12
  %222 = load i32, ptr %3, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [20 x double], ptr %7, i64 0, i64 %223
  store double %221, ptr %224, align 8, !tbaa !12
  br label %225

225:                                              ; preds = %217
  %226 = load i32, ptr %3, align 4, !tbaa !5
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %3, align 4, !tbaa !5
  br label %213, !llvm.loop !23

228:                                              ; preds = %213
  %229 = getelementptr inbounds [20 x double], ptr %7, i64 0, i64 0
  %230 = load i32, ptr %5, align 4, !tbaa !5
  %231 = call double @Normalize(ptr noundef %229, i32 noundef %230)
  store double %231, ptr %14, align 8, !tbaa !12
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %232

232:                                              ; preds = %246, %228
  %233 = load i32, ptr %3, align 4, !tbaa !5
  %234 = load i32, ptr %5, align 4, !tbaa !5
  %235 = icmp sle i32 %233, %234
  br i1 %235, label %236, label %249

236:                                              ; preds = %232
  %237 = load i32, ptr %3, align 4, !tbaa !5
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds [20 x double], ptr %7, i64 0, i64 %238
  %240 = load double, ptr %239, align 8, !tbaa !12
  %241 = load double, ptr %14, align 8, !tbaa !12
  %242 = fdiv double %240, %241
  %243 = load i32, ptr %3, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [20 x double], ptr %7, i64 0, i64 %244
  store double %242, ptr %245, align 8, !tbaa !12
  br label %246

246:                                              ; preds = %236
  %247 = load i32, ptr %3, align 4, !tbaa !5
  %248 = add nsw i32 %247, 1
  store i32 %248, ptr %3, align 4, !tbaa !5
  br label %232, !llvm.loop !24

249:                                              ; preds = %232
  %250 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %251

251:                                              ; preds = %262, %249
  %252 = load i32, ptr %3, align 4, !tbaa !5
  %253 = load i32, ptr %5, align 4, !tbaa !5
  %254 = icmp sle i32 %252, %253
  br i1 %254, label %255, label %265

255:                                              ; preds = %251
  %256 = load i32, ptr %3, align 4, !tbaa !5
  %257 = load i32, ptr %3, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [20 x double], ptr %11, i64 0, i64 %258
  %260 = load double, ptr %259, align 8, !tbaa !12
  %261 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %256, double noundef %260)
  br label %262

262:                                              ; preds = %255
  %263 = load i32, ptr %3, align 4, !tbaa !5
  %264 = add nsw i32 %263, 1
  store i32 %264, ptr %3, align 4, !tbaa !5
  br label %251, !llvm.loop !25

265:                                              ; preds = %251
  %266 = getelementptr inbounds [20 x double], ptr %7, i64 0, i64 0
  %267 = load i32, ptr %5, align 4, !tbaa !5
  %268 = call double @Normalize(ptr noundef %266, i32 noundef %267)
  %269 = getelementptr inbounds [20 x double], ptr %8, i64 0, i64 0
  %270 = load i32, ptr %5, align 4, !tbaa !5
  %271 = call double @Normalize(ptr noundef %269, i32 noundef %270)
  %272 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, double noundef %268, double noundef %271)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %273 = getelementptr inbounds [20 x double], ptr %7, i64 0, i64 0
  %274 = getelementptr inbounds [20 x double], ptr %8, i64 0, i64 0
  %275 = load i32, ptr %5, align 4, !tbaa !5
  %276 = call double @FrobNorm(ptr noundef %273, ptr noundef %274, i32 noundef %275)
  store double %276, ptr %18, align 8, !tbaa !12
  %277 = load double, ptr %18, align 8, !tbaa !12
  %278 = load double, ptr %12, align 8, !tbaa !12
  %279 = fcmp olt double %277, %278
  br i1 %279, label %280, label %282

280:                                              ; preds = %265
  %281 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  store i32 23, ptr %16, align 4
  br label %283

282:                                              ; preds = %265
  store i32 0, ptr %16, align 4
  br label %283

283:                                              ; preds = %282, %280
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  %284 = load i32, ptr %16, align 4
  switch i32 %284, label %291 [
    i32 0, label %285
    i32 23, label %289
  ]

285:                                              ; preds = %283
  br label %286

286:                                              ; preds = %285
  %287 = load i32, ptr %2, align 4, !tbaa !5
  %288 = add nsw i32 %287, 1
  store i32 %288, ptr %2, align 4, !tbaa !5
  br label %137, !llvm.loop !26

289:                                              ; preds = %283, %137
  store i32 0, ptr %1, align 4
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 160, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 3200, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 160, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 160, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 160, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  %290 = load i32, ptr %1, align 4
  ret i32 %290

291:                                              ; preds = %283
  unreachable
}

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

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

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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/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 = 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 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !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"

@.str = external hidden unnamed_addr constant [42 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [65 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local double @Normalize(ptr noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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: nounwind uwtable
declare dso_local double @FrobNorm(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [20 x double], align 16
  %4 = alloca [20 x double], align 16
  %5 = alloca [20 x [20 x double]], align 16
  %6 = alloca [20 x double], align 16
  %7 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 3200, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1)
  %10 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull %7)
  %12 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %2)
  %14 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %15 = load i32, ptr %1, align 4, !tbaa !5
  %.not97 = icmp slt i32 %15, 1
  br i1 %.not97, label %._crit_edge99, label %.preheader91

.preheader91:                                     ; preds = %0, %._crit_edge
  %16 = phi i32 [ %26, %._crit_edge ], [ %15, %0 ]
  %indvars.iv161 = phi i64 [ %indvars.iv.next162, %._crit_edge ], [ 1, %0 ]
  %.not8495 = icmp slt i32 %16, 1
  br i1 %.not8495, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader91
  %17 = trunc nuw nsw i64 %indvars.iv161 to i32
  br label %18

18:                                               ; preds = %.lr.ph, %18
  %indvars.iv = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next, %18 ]
  %19 = trunc nuw nsw i64 %indvars.iv to i32
  %20 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %17, i32 noundef %19)
  %21 = getelementptr inbounds [20 x [20 x double]], ptr %5, i64 0, i64 %indvars.iv161, i64 %indvars.iv
  %22 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull %21)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %23 = load i32, ptr %1, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %.not84.not = icmp slt i64 %indvars.iv, %24
  br i1 %.not84.not, label %18, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %18, %.preheader91
  %25 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %indvars.iv.next162 = add nuw nsw i64 %indvars.iv161, 1
  %26 = load i32, ptr %1, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %.not.not = icmp slt i64 %indvars.iv161, %27
  br i1 %.not.not, label %.preheader91, label %._crit_edge99, !llvm.loop !11

._crit_edge99:                                    ; preds = %._crit_edge, %0
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %29 = load i32, ptr %1, align 4, !tbaa !5
  %.not71104 = icmp slt i32 %29, 1
  br i1 %.not71104, label %._crit_edge106, label %.preheader90

.preheader90:                                     ; preds = %._crit_edge99, %._crit_edge103
  %30 = phi i32 [ %37, %._crit_edge103 ], [ %29, %._crit_edge99 ]
  %indvars.iv167 = phi i64 [ %indvars.iv.next168, %._crit_edge103 ], [ 1, %._crit_edge99 ]
  %.not83100 = icmp slt i32 %30, 1
  br i1 %.not83100, label %._crit_edge103, label %.lr.ph102

.lr.ph102:                                        ; preds = %.preheader90, %.lr.ph102
  %indvars.iv164 = phi i64 [ %indvars.iv.next165, %.lr.ph102 ], [ 1, %.preheader90 ]
  %31 = getelementptr inbounds [20 x [20 x double]], ptr %5, i64 0, i64 %indvars.iv167, i64 %indvars.iv164
  %32 = load double, ptr %31, align 8, !tbaa !12
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, double noundef %32)
  %indvars.iv.next165 = add nuw nsw i64 %indvars.iv164, 1
  %34 = load i32, ptr %1, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %.not83.not = icmp slt i64 %indvars.iv164, %35
  br i1 %.not83.not, label %.lr.ph102, label %._crit_edge103, !llvm.loop !14

._crit_edge103:                                   ; preds = %.lr.ph102, %.preheader90
  %36 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %indvars.iv.next168 = add nuw nsw i64 %indvars.iv167, 1
  %37 = load i32, ptr %1, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %.not71.not = icmp slt i64 %indvars.iv167, %38
  br i1 %.not71.not, label %.preheader90, label %._crit_edge106, !llvm.loop !15

._crit_edge106:                                   ; preds = %._crit_edge103, %._crit_edge99
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %40 = load i32, ptr %1, align 4, !tbaa !5
  %.not72107 = icmp slt i32 %40, 1
  br i1 %.not72107, label %._crit_edge111, label %.lr.ph110

.lr.ph110:                                        ; preds = %._crit_edge106, %.lr.ph110
  %indvars.iv170 = phi i64 [ %indvars.iv.next171, %.lr.ph110 ], [ 1, %._crit_edge106 ]
  %41 = trunc nuw nsw i64 %indvars.iv170 to i32
  %42 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, i32 noundef %41)
  %43 = getelementptr inbounds [20 x double], ptr %4, i64 0, i64 %indvars.iv170
  %44 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull %43)
  %indvars.iv.next171 = add nuw nsw i64 %indvars.iv170, 1
  %45 = load i32, ptr %1, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %.not72.not = icmp slt i64 %indvars.iv170, %46
  br i1 %.not72.not, label %.lr.ph110, label %._crit_edge111, !llvm.loop !16

._crit_edge111:                                   ; preds = %.lr.ph110, %._crit_edge106
  %.lcssa94 = phi i32 [ %40, %._crit_edge106 ], [ %45, %.lr.ph110 ]
  %47 = call double @Normalize(ptr noundef nonnull %4, i32 noundef %.lcssa94)
  %48 = load i32, ptr %1, align 4, !tbaa !5
  %.not73112 = icmp slt i32 %48, 1
  br i1 %.not73112, label %._crit_edge116, label %.lr.ph115.preheader

.lr.ph115.preheader:                              ; preds = %._crit_edge111
  %49 = add nuw i32 %48, 1
  %wide.trip.count = zext i32 %49 to i64
  %50 = zext nneg i32 %48 to i64
  %min.iters.check = icmp eq i32 %48, 1
  br i1 %min.iters.check, label %.lr.ph115.preheader238, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph115.preheader
  %n.vec = and i64 %50, 2147483646
  %ind.end = or i64 %50, 1
  %broadcast.splatinsert = insertelement <2 x double> poison, double %47, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %51 = getelementptr inbounds [20 x double], ptr %4, i64 0, i64 %offset.idx
  %wide.load = load <2 x double>, ptr %51, align 8, !tbaa !12
  %52 = fdiv <2 x double> %wide.load, %broadcast.splat
  %53 = getelementptr inbounds [20 x double], ptr %3, i64 0, i64 %offset.idx
  store <2 x double> %52, ptr %53, align 8, !tbaa !12
  %index.next = add nuw i64 %index, 2
  %54 = icmp eq i64 %index.next, %n.vec
  br i1 %54, label %middle.block, label %vector.body, !llvm.loop !17

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %50
  br i1 %cmp.n, label %._crit_edge116, label %.lr.ph115.preheader238

.lr.ph115.preheader238:                           ; preds = %middle.block, %.lr.ph115.preheader
  %indvars.iv173.ph = phi i64 [ 1, %.lr.ph115.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph115

.lr.ph115:                                        ; preds = %.lr.ph115.preheader238, %.lr.ph115
  %indvars.iv173 = phi i64 [ %indvars.iv.next174, %.lr.ph115 ], [ %indvars.iv173.ph, %.lr.ph115.preheader238 ]
  %55 = getelementptr inbounds [20 x double], ptr %4, i64 0, i64 %indvars.iv173
  %56 = load double, ptr %55, align 8, !tbaa !12
  %57 = fdiv double %56, %47
  %58 = getelementptr inbounds [20 x double], ptr %3, i64 0, i64 %indvars.iv173
  store double %57, ptr %58, align 8, !tbaa !12
  %indvars.iv.next174 = add nuw nsw i64 %indvars.iv173, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next174, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge116, label %.lr.ph115, !llvm.loop !20

._crit_edge116:                                   ; preds = %.lr.ph115, %middle.block, %._crit_edge111
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef %47)
  %60 = load i32, ptr %1, align 4, !tbaa !5
  %.not74117 = icmp slt i32 %60, 1
  br i1 %.not74117, label %.preheader89, label %.lr.ph120

.preheader89:                                     ; preds = %.lr.ph120, %._crit_edge116
  %61 = load i32, ptr %2, align 4, !tbaa !5
  %.not75155 = icmp slt i32 %61, 1
  br i1 %.not75155, label %.loopexit, label %.preheader88.lr.ph

.preheader88.lr.ph:                               ; preds = %.preheader89
  %scevgep = getelementptr inbounds i8, ptr %4, i64 8
  %scevgep179 = getelementptr inbounds i8, ptr %3, i64 8
  br label %.preheader88

.lr.ph120:                                        ; preds = %._crit_edge116, %.lr.ph120
  %indvars.iv176 = phi i64 [ %indvars.iv.next177, %.lr.ph120 ], [ 1, %._crit_edge116 ]
  %62 = getelementptr inbounds [20 x double], ptr %3, i64 0, i64 %indvars.iv176
  %63 = load double, ptr %62, align 8, !tbaa !12
  %64 = trunc nuw nsw i64 %indvars.iv176 to i32
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %64, double noundef %63)
  %indvars.iv.next177 = add nuw nsw i64 %indvars.iv176, 1
  %66 = load i32, ptr %1, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %.not74.not = icmp slt i64 %indvars.iv176, %67
  br i1 %.not74.not, label %.lr.ph120, label %.preheader89, !llvm.loop !21

68:                                               ; preds = %._crit_edge153
  %69 = add nuw nsw i32 %.2156, 1
  %70 = load i32, ptr %2, align 4, !tbaa !5
  %.not75.not = icmp slt i32 %.2156, %70
  br i1 %.not75.not, label %.preheader88, label %.loopexit, !llvm.loop !22

.preheader88:                                     ; preds = %.preheader88.lr.ph, %68
  %.2156 = phi i32 [ 1, %.preheader88.lr.ph ], [ %69, %68 ]
  %71 = load i32, ptr %1, align 4, !tbaa !5
  %.not76121 = icmp slt i32 %71, 1
  br i1 %.not76121, label %._crit_edge134.split, label %.lr.ph128.preheader

.lr.ph128.preheader:                              ; preds = %.preheader88
  %72 = zext nneg i32 %71 to i64
  %73 = shl nuw nsw i64 %72, 3
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %scevgep, ptr nonnull align 8 %scevgep179, i64 %73, i1 false), !tbaa !12
  %74 = add nuw i32 %71, 1
  %wide.trip.count192 = zext i32 %74 to i64
  %75 = zext nneg i32 %71 to i64
  %76 = add nsw i64 %wide.trip.count192, -2
  %xtraiter = and i64 %75, 3
  %77 = icmp ult i64 %76, 3
  %unroll_iter = and i64 %75, 2147483644
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.lr.ph128

._crit_edge134.split:                             ; preds = %._crit_edge129, %.preheader88
  %78 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  %79 = load i32, ptr %1, align 4, !tbaa !5
  %.not78135 = icmp slt i32 %79, 1
  br i1 %.not78135, label %._crit_edge143, label %.lr.ph138

.lr.ph128:                                        ; preds = %.lr.ph128.preheader, %._crit_edge129
  %indvars.iv189 = phi i64 [ 1, %.lr.ph128.preheader ], [ %indvars.iv.next190, %._crit_edge129 ]
  %80 = getelementptr inbounds [20 x double], ptr %6, i64 0, i64 %indvars.iv189
  br i1 %77, label %._crit_edge129.unr-lcssa, label %.lr.ph128.new

._crit_edge129.unr-lcssa:                         ; preds = %.lr.ph128.new, %.lr.ph128
  %.lcssa.ph = phi double [ poison, %.lr.ph128 ], [ %107, %.lr.ph128.new ]
  %indvars.iv183.unr = phi i64 [ 1, %.lr.ph128 ], [ %indvars.iv.next184.3, %.lr.ph128.new ]
  %.unr = phi double [ 0.000000e+00, %.lr.ph128 ], [ %107, %.lr.ph128.new ]
  br i1 %lcmp.mod.not, label %._crit_edge129, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge129.unr-lcssa, %.epil.preheader
  %indvars.iv183.epil = phi i64 [ %indvars.iv.next184.epil, %.epil.preheader ], [ %indvars.iv183.unr, %._crit_edge129.unr-lcssa ]
  %81 = phi double [ %86, %.epil.preheader ], [ %.unr, %._crit_edge129.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge129.unr-lcssa ]
  %82 = getelementptr inbounds [20 x [20 x double]], ptr %5, i64 0, i64 %indvars.iv189, i64 %indvars.iv183.epil
  %83 = load double, ptr %82, align 8, !tbaa !12
  %84 = getelementptr inbounds [20 x double], ptr %3, i64 0, i64 %indvars.iv183.epil
  %85 = load double, ptr %84, align 8, !tbaa !12
  %86 = call double @llvm.fmuladd.f64(double %83, double %85, double %81)
  %indvars.iv.next184.epil = add nuw nsw i64 %indvars.iv183.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_edge129, label %.epil.preheader, !llvm.loop !23

._crit_edge129:                                   ; preds = %.epil.preheader, %._crit_edge129.unr-lcssa
  %.lcssa = phi double [ %.lcssa.ph, %._crit_edge129.unr-lcssa ], [ %86, %.epil.preheader ]
  store double %.lcssa, ptr %80, align 8, !tbaa !12
  %indvars.iv.next190 = add nuw nsw i64 %indvars.iv189, 1
  %exitcond193.not = icmp eq i64 %indvars.iv.next190, %wide.trip.count192
  br i1 %exitcond193.not, label %._crit_edge134.split, label %.lr.ph128, !llvm.loop !25

.lr.ph128.new:                                    ; preds = %.lr.ph128, %.lr.ph128.new
  %indvars.iv183 = phi i64 [ %indvars.iv.next184.3, %.lr.ph128.new ], [ 1, %.lr.ph128 ]
  %87 = phi double [ %107, %.lr.ph128.new ], [ 0.000000e+00, %.lr.ph128 ]
  %niter = phi i64 [ %niter.next.3, %.lr.ph128.new ], [ 0, %.lr.ph128 ]
  %88 = getelementptr inbounds [20 x [20 x double]], ptr %5, i64 0, i64 %indvars.iv189, i64 %indvars.iv183
  %89 = load double, ptr %88, align 8, !tbaa !12
  %90 = getelementptr inbounds [20 x double], ptr %3, i64 0, i64 %indvars.iv183
  %91 = load double, ptr %90, align 8, !tbaa !12
  %92 = call double @llvm.fmuladd.f64(double %89, double %91, double %87)
  %indvars.iv.next184 = add nuw nsw i64 %indvars.iv183, 1
  %93 = getelementptr inbounds [20 x [20 x double]], ptr %5, i64 0, i64 %indvars.iv189, i64 %indvars.iv.next184
  %94 = load double, ptr %93, align 8, !tbaa !12
  %95 = getelementptr inbounds [20 x double], ptr %3, i64 0, i64 %indvars.iv.next184
  %96 = load double, ptr %95, align 8, !tbaa !12
  %97 = call double @llvm.fmuladd.f64(double %94, double %96, double %92)
  %indvars.iv.next184.1 = add nuw nsw i64 %indvars.iv183, 2
  %98 = getelementptr inbounds [20 x [20 x double]], ptr %5, i64 0, i64 %indvars.iv189, i64 %indvars.iv.next184.1
  %99 = load double, ptr %98, align 8, !tbaa !12
  %100 = getelementptr inbounds [20 x double], ptr %3, i64 0, i64 %indvars.iv.next184.1
  %101 = load double, ptr %100, align 8, !tbaa !12
  %102 = call double @llvm.fmuladd.f64(double %99, double %101, double %97)
  %indvars.iv.next184.2 = add nuw nsw i64 %indvars.iv183, 3
  %103 = getelementptr inbounds [20 x [20 x double]], ptr %5, i64 0, i64 %indvars.iv189, i64 %indvars.iv.next184.2
  %104 = load double, ptr %103, align 8, !tbaa !12
  %105 = getelementptr inbounds [20 x double], ptr %3, i64 0, i64 %indvars.iv.next184.2
  %106 = load double, ptr %105, align 8, !tbaa !12
  %107 = call double @llvm.fmuladd.f64(double %104, double %106, double %102)
  %indvars.iv.next184.3 = add nuw nsw i64 %indvars.iv183, 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_edge129.unr-lcssa, label %.lr.ph128.new, !llvm.loop !26

.lr.ph138:                                        ; preds = %._crit_edge134.split, %.lr.ph138
  %indvars.iv194 = phi i64 [ %indvars.iv.next195, %.lr.ph138 ], [ 1, %._crit_edge134.split ]
  %108 = getelementptr inbounds [20 x double], ptr %6, i64 0, i64 %indvars.iv194
  %109 = load double, ptr %108, align 8, !tbaa !12
  %110 = trunc nuw nsw i64 %indvars.iv194 to i32
  %111 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef %110, double noundef %109)
  %indvars.iv.next195 = add nuw nsw i64 %indvars.iv194, 1
  %112 = load i32, ptr %1, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %.not78.not = icmp slt i64 %indvars.iv194, %113
  br i1 %.not78.not, label %.lr.ph138, label %._crit_edge143, !llvm.loop !27

._crit_edge143:                                   ; preds = %.lr.ph138, %._crit_edge134.split
  %.lcssa92212 = phi i32 [ %79, %._crit_edge134.split ], [ %112, %.lr.ph138 ]
  %114 = call double @Normalize(ptr noundef nonnull %3, i32 noundef %.lcssa92212)
  %115 = load i32, ptr %1, align 4, !tbaa !5
  %.not80144 = icmp slt i32 %115, 1
  br i1 %.not80144, label %._crit_edge148, label %.lr.ph147.preheader

.lr.ph147.preheader:                              ; preds = %._crit_edge143
  %116 = add nuw i32 %115, 1
  %wide.trip.count205 = zext i32 %116 to i64
  %117 = zext nneg i32 %115 to i64
  %min.iters.check221 = icmp eq i32 %115, 1
  br i1 %min.iters.check221, label %.lr.ph147.preheader235, label %vector.ph222

vector.ph222:                                     ; preds = %.lr.ph147.preheader
  %n.vec224 = and i64 %117, 2147483646
  %ind.end225 = or i64 %117, 1
  %broadcast.splatinsert231 = insertelement <2 x double> poison, double %114, i64 0
  %broadcast.splat232 = shufflevector <2 x double> %broadcast.splatinsert231, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body227

vector.body227:                                   ; preds = %vector.body227, %vector.ph222
  %index228 = phi i64 [ 0, %vector.ph222 ], [ %index.next233, %vector.body227 ]
  %offset.idx229 = or disjoint i64 %index228, 1
  %118 = getelementptr inbounds [20 x double], ptr %3, i64 0, i64 %offset.idx229
  %wide.load230 = load <2 x double>, ptr %118, align 8, !tbaa !12
  %119 = fdiv <2 x double> %wide.load230, %broadcast.splat232
  store <2 x double> %119, ptr %118, align 8, !tbaa !12
  %index.next233 = add nuw i64 %index228, 2
  %120 = icmp eq i64 %index.next233, %n.vec224
  br i1 %120, label %middle.block219, label %vector.body227, !llvm.loop !28

middle.block219:                                  ; preds = %vector.body227
  %cmp.n234 = icmp eq i64 %n.vec224, %117
  br i1 %cmp.n234, label %._crit_edge148, label %.lr.ph147.preheader235

.lr.ph147.preheader235:                           ; preds = %middle.block219, %.lr.ph147.preheader
  %indvars.iv202.ph = phi i64 [ 1, %.lr.ph147.preheader ], [ %ind.end225, %middle.block219 ]
  br label %.lr.ph147

.lr.ph147:                                        ; preds = %.lr.ph147.preheader235, %.lr.ph147
  %indvars.iv202 = phi i64 [ %indvars.iv.next203, %.lr.ph147 ], [ %indvars.iv202.ph, %.lr.ph147.preheader235 ]
  %121 = getelementptr inbounds [20 x double], ptr %3, i64 0, i64 %indvars.iv202
  %122 = load double, ptr %121, align 8, !tbaa !12
  %123 = fdiv double %122, %114
  store double %123, ptr %121, align 8, !tbaa !12
  %indvars.iv.next203 = add nuw nsw i64 %indvars.iv202, 1
  %exitcond206.not = icmp eq i64 %indvars.iv.next203, %wide.trip.count205
  br i1 %exitcond206.not, label %._crit_edge148, label %.lr.ph147, !llvm.loop !29

._crit_edge148:                                   ; preds = %.lr.ph147, %middle.block219, %._crit_edge143
  %124 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  %125 = load i32, ptr %1, align 4, !tbaa !5
  %.not81149 = icmp slt i32 %125, 1
  br i1 %.not81149, label %._crit_edge153, label %.lr.ph152

.lr.ph152:                                        ; preds = %._crit_edge148, %.lr.ph152
  %indvars.iv207 = phi i64 [ %indvars.iv.next208, %.lr.ph152 ], [ 1, %._crit_edge148 ]
  %126 = getelementptr inbounds [20 x double], ptr %6, i64 0, i64 %indvars.iv207
  %127 = load double, ptr %126, align 8, !tbaa !12
  %128 = trunc nuw nsw i64 %indvars.iv207 to i32
  %129 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef %128, double noundef %127)
  %indvars.iv.next208 = add nuw nsw i64 %indvars.iv207, 1
  %130 = load i32, ptr %1, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %.not81.not = icmp slt i64 %indvars.iv207, %131
  br i1 %.not81.not, label %.lr.ph152, label %._crit_edge153, !llvm.loop !30

._crit_edge153:                                   ; preds = %.lr.ph152, %._crit_edge148
  %.lcssa93 = phi i32 [ %125, %._crit_edge148 ], [ %130, %.lr.ph152 ]
  %132 = call double @Normalize(ptr noundef nonnull %3, i32 noundef %.lcssa93)
  %133 = load i32, ptr %1, align 4, !tbaa !5
  %134 = call double @Normalize(ptr noundef nonnull %4, i32 noundef %133)
  %135 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, double noundef %132, double noundef %134)
  %136 = load i32, ptr %1, align 4, !tbaa !5
  %137 = call double @FrobNorm(ptr noundef nonnull %3, ptr noundef nonnull %4, i32 noundef %136)
  %138 = load double, ptr %7, align 8, !tbaa !12
  %139 = fcmp olt double %137, %138
  br i1 %139, label %140, label %68

140:                                              ; preds = %._crit_edge153
  %141 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16)
  br label %.loopexit

.loopexit:                                        ; preds = %68, %.preheader89, %140
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 3200, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret i32 0
}

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

attributes #0 = { 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 nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/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 = distinct !{!16, !10}
!17 = distinct !{!17, !10, !18, !19}
!18 = !{!"llvm.loop.isvectorized", i32 1}
!19 = !{!"llvm.loop.unroll.runtime.disable"}
!20 = distinct !{!20, !10, !19, !18}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.unroll.disable"}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !10, !18, !19}
!29 = distinct !{!29, !10, !19, !18}
!30 = distinct !{!30, !10}


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