; LLVM IR from VastoLorde95/Competitive-Programming :: CodeChef/LONG/JULY15/SEAGM2 (A)

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

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@p = external dso_local global [13 x [10000 x double]], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca x86_fp80, align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca x86_fp80, align 16
  %9 = alloca i32, align 4
  %10 = alloca x86_fp80, align 16
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca x86_fp80, align 16
  %14 = alloca x86_fp80, align 16
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca x86_fp80, align 16
  %18 = alloca i32, align 4
  %19 = alloca x86_fp80, align 16
  store i32 0, ptr %1, align 4
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %21

21:                                               ; preds = %218, %215, %0
  %22 = load i32, ptr @t, align 4, !tbaa !5
  %23 = add nsw i32 %22, -1
  store i32 %23, ptr @t, align 4, !tbaa !5
  %24 = icmp ne i32 %22, 0
  br i1 %24, label %25, label %219

25:                                               ; preds = %21
  %26 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @n, ptr noundef @m)
  %27 = load i32, ptr @m, align 4, !tbaa !5
  %28 = icmp sgt i32 %27, 4
  br i1 %28, label %29, label %119

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

30:                                               ; preds = %53, %29
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = load i32, ptr @n, align 4, !tbaa !5
  %33 = icmp slt i32 %31, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %30
  store i32 4, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  br label %56

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

36:                                               ; preds = %49, %35
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = load i32, ptr @m, align 4, !tbaa !5
  %39 = icmp slt i32 %37, %38
  br i1 %39, label %41, label %40

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

41:                                               ; preds = %36
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [13 x [10000 x double]], ptr @p, i64 0, i64 %43
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [10000 x double], ptr %44, i64 0, i64 %46
  %48 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %47)
  br label %49

49:                                               ; preds = %41
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %4, align 4, !tbaa !5
  br label %36, !llvm.loop !9

52:                                               ; preds = %40
  br label %53

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

56:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #3
  store x86_fp80 0xK3FFF8000000000000000, ptr %5, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %71, %56
  %58 = load i32, ptr %6, align 4, !tbaa !5
  %59 = load i32, ptr @m, align 4, !tbaa !5
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %62, label %61

61:                                               ; preds = %57
  store i32 10, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %74

62:                                               ; preds = %57
  %63 = load i32, ptr %6, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [10000 x double], ptr @p, i64 0, i64 %64
  %66 = load double, ptr %65, align 8, !tbaa !14
  %67 = fcmp oeq double %66, 0.000000e+00
  br i1 %67, label %68, label %70

68:                                               ; preds = %62
  %69 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %71

70:                                               ; preds = %62
  br label %71

71:                                               ; preds = %70, %68
  %72 = load i32, ptr %6, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %6, align 4, !tbaa !5
  br label %57, !llvm.loop !16

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

75:                                               ; preds = %110, %74
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = load i32, ptr @n, align 4, !tbaa !5
  %78 = icmp slt i32 %76, %77
  br i1 %78, label %80, label %79

79:                                               ; preds = %75
  store i32 13, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %113

80:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #3
  store x86_fp80 0xK3FFF8000000000000000, ptr %8, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %103, %80
  %82 = load i32, ptr %9, align 4, !tbaa !5
  %83 = load i32, ptr @m, align 4, !tbaa !5
  %84 = icmp slt i32 %82, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %81
  store i32 16, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %106

86:                                               ; preds = %81
  %87 = load i32, ptr %7, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [13 x [10000 x double]], ptr @p, i64 0, i64 %88
  %90 = load i32, ptr %9, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [10000 x double], ptr %89, i64 0, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !14
  %94 = fpext double %93 to x86_fp80
  %95 = load i32, ptr %9, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [10000 x double], ptr @p, i64 0, i64 %96
  %98 = load double, ptr %97, align 8, !tbaa !14
  %99 = fpext double %98 to x86_fp80
  %100 = fdiv x86_fp80 %94, %99
  %101 = load x86_fp80, ptr %8, align 16, !tbaa !12
  %102 = fmul x86_fp80 %101, %100
  store x86_fp80 %102, ptr %8, align 16, !tbaa !12
  br label %103

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

106:                                              ; preds = %85
  %107 = load x86_fp80, ptr %8, align 16, !tbaa !12
  %108 = load x86_fp80, ptr %5, align 16, !tbaa !12
  %109 = fadd x86_fp80 %108, %107
  store x86_fp80 %109, ptr %5, align 16, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #3
  br label %110

110:                                              ; preds = %106
  %111 = load i32, ptr %7, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %7, align 4, !tbaa !5
  br label %75, !llvm.loop !18

113:                                              ; preds = %79
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #3
  %114 = load x86_fp80, ptr %5, align 16, !tbaa !12
  %115 = fdiv x86_fp80 0xK3FFF8000000000000000, %114
  store x86_fp80 %115, ptr %10, align 16, !tbaa !12
  %116 = load x86_fp80, ptr %10, align 16, !tbaa !12
  %117 = fptrunc x86_fp80 %116 to double
  %118 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %117)
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #3
  br label %218

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

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

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

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

126:                                              ; preds = %139, %125
  %127 = load i32, ptr %12, align 4, !tbaa !5
  %128 = load i32, ptr @m, align 4, !tbaa !5
  %129 = icmp slt i32 %127, %128
  br i1 %129, label %131, label %130

130:                                              ; preds = %126
  store i32 22, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %142

131:                                              ; preds = %126
  %132 = load i32, ptr %11, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [13 x [10000 x double]], ptr @p, i64 0, i64 %133
  %135 = load i32, ptr %12, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [10000 x double], ptr %134, i64 0, i64 %136
  %138 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %137)
  br label %139

139:                                              ; preds = %131
  %140 = load i32, ptr %12, align 4, !tbaa !5
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %12, align 4, !tbaa !5
  br label %126, !llvm.loop !19

142:                                              ; preds = %130
  br label %143

143:                                              ; preds = %142
  %144 = load i32, ptr %11, align 4, !tbaa !5
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %11, align 4, !tbaa !5
  br label %120, !llvm.loop !20

146:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #3
  store x86_fp80 0xK3FFF8000000000000000, ptr %13, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #3
  store x86_fp80 0xK3FFF8000000000000000, ptr %14, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %147

147:                                              ; preds = %160, %146
  %148 = load i32, ptr %15, align 4, !tbaa !5
  %149 = load i32, ptr @m, align 4, !tbaa !5
  %150 = icmp slt i32 %148, %149
  br i1 %150, label %152, label %151

151:                                              ; preds = %147
  store i32 25, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  br label %163

152:                                              ; preds = %147
  %153 = load i32, ptr %15, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [10000 x double], ptr @p, i64 0, i64 %154
  %156 = load double, ptr %155, align 8, !tbaa !14
  %157 = fpext double %156 to x86_fp80
  %158 = load x86_fp80, ptr %13, align 16, !tbaa !12
  %159 = fmul x86_fp80 %158, %157
  store x86_fp80 %159, ptr %13, align 16, !tbaa !12
  br label %160

160:                                              ; preds = %152
  %161 = load i32, ptr %15, align 4, !tbaa !5
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %15, align 4, !tbaa !5
  br label %147, !llvm.loop !21

163:                                              ; preds = %151
  %164 = load x86_fp80, ptr %13, align 16, !tbaa !12
  %165 = load x86_fp80, ptr %14, align 16, !tbaa !12
  %166 = fsub x86_fp80 %165, %164
  store x86_fp80 %166, ptr %14, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  store i32 1, ptr %16, align 4, !tbaa !5
  br label %167

167:                                              ; preds = %196, %163
  %168 = load i32, ptr %16, align 4, !tbaa !5
  %169 = load i32, ptr @n, align 4, !tbaa !5
  %170 = icmp slt i32 %168, %169
  br i1 %170, label %172, label %171

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

172:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #3
  store x86_fp80 0xK3FFF8000000000000000, ptr %17, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %173

173:                                              ; preds = %189, %172
  %174 = load i32, ptr %18, align 4, !tbaa !5
  %175 = load i32, ptr @m, align 4, !tbaa !5
  %176 = icmp slt i32 %174, %175
  br i1 %176, label %178, label %177

177:                                              ; preds = %173
  store i32 31, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  br label %192

178:                                              ; preds = %173
  %179 = load i32, ptr %16, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [13 x [10000 x double]], ptr @p, i64 0, i64 %180
  %182 = load i32, ptr %18, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [10000 x double], ptr %181, i64 0, i64 %183
  %185 = load double, ptr %184, align 8, !tbaa !14
  %186 = fpext double %185 to x86_fp80
  %187 = load x86_fp80, ptr %17, align 16, !tbaa !12
  %188 = fmul x86_fp80 %187, %186
  store x86_fp80 %188, ptr %17, align 16, !tbaa !12
  br label %189

189:                                              ; preds = %178
  %190 = load i32, ptr %18, align 4, !tbaa !5
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %18, align 4, !tbaa !5
  br label %173, !llvm.loop !22

192:                                              ; preds = %177
  %193 = load x86_fp80, ptr %17, align 16, !tbaa !12
  %194 = load x86_fp80, ptr %14, align 16, !tbaa !12
  %195 = fsub x86_fp80 %194, %193
  store x86_fp80 %195, ptr %14, align 16, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #3
  br label %196

196:                                              ; preds = %192
  %197 = load i32, ptr %16, align 4, !tbaa !5
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %16, align 4, !tbaa !5
  br label %167, !llvm.loop !23

199:                                              ; preds = %171
  %200 = load x86_fp80, ptr %14, align 16, !tbaa !12
  %201 = fcmp oeq x86_fp80 %200, 0xK3FFF8000000000000000
  br i1 %201, label %202, label %206

202:                                              ; preds = %199
  %203 = load x86_fp80, ptr %13, align 16, !tbaa !12
  %204 = fptrunc x86_fp80 %203 to double
  %205 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %204)
  store i32 2, ptr %3, align 4
  br label %215, !llvm.loop !24

206:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #3
  %207 = load x86_fp80, ptr %13, align 16, !tbaa !12
  %208 = load x86_fp80, ptr %14, align 16, !tbaa !12
  %209 = fneg x86_fp80 %208
  %210 = fadd x86_fp80 %209, 0xK3FFF8000000000000000
  %211 = fdiv x86_fp80 %207, %210
  store x86_fp80 %211, ptr %19, align 16, !tbaa !12
  %212 = load x86_fp80, ptr %19, align 16, !tbaa !12
  %213 = fptrunc x86_fp80 %212 to double
  %214 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %213)
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #3
  store i32 0, ptr %3, align 4
  br label %215

215:                                              ; preds = %206, %202
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #3
  %216 = load i32, ptr %3, align 4
  switch i32 %216, label %220 [
    i32 0, label %217
    i32 2, label %21
  ]

217:                                              ; preds = %215
  br label %218

218:                                              ; preds = %217, %113
  br label %21, !llvm.loop !24

219:                                              ; preds = %21
  ret i32 0

220:                                              ; preds = %215
  unreachable
}

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

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 = { 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 = !{!"long double", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!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}


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

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@p = external dso_local global [13 x [10000 x double]], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 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 @t)
  %2 = load i32, ptr @t, align 4, !tbaa !5
  %3 = add nsw i32 %2, -1
  store i32 %3, ptr @t, align 4, !tbaa !5
  %.not112 = icmp eq i32 %2, 0
  br i1 %.not112, label %._crit_edge115, label %.lr.ph114

.lr.ph114:                                        ; preds = %0, %.backedge
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %5 = load i32, ptr @m, align 4, !tbaa !5
  %6 = icmp sgt i32 %5, 4
  %7 = load i32, ptr @n, align 4, !tbaa !5
  %8 = icmp sgt i32 %7, 0
  br i1 %6, label %.preheader72, label %.preheader74

.preheader74:                                     ; preds = %.lr.ph114
  br i1 %8, label %.preheader69.lr.ph, label %.preheader73

.preheader69.lr.ph:                               ; preds = %.preheader74
  %9 = icmp sgt i32 %5, 0
  br i1 %9, label %.preheader69, label %._crit_edge82.thread

.preheader72:                                     ; preds = %.lr.ph114
  br i1 %8, label %.preheader67, label %.lr.ph100.preheader

.preheader71:                                     ; preds = %._crit_edge97
  %10 = icmp sgt i32 %15, 0
  br i1 %10, label %.lr.ph100.preheader, label %.preheader70

.lr.ph100.preheader:                              ; preds = %.preheader72, %.preheader71
  %.ph = phi i32 [ %5, %.preheader72 ], [ %15, %.preheader71 ]
  br label %.lr.ph100

.preheader67:                                     ; preds = %.preheader72, %._crit_edge97
  %11 = phi i32 [ %14, %._crit_edge97 ], [ %7, %.preheader72 ]
  %12 = phi i32 [ %15, %._crit_edge97 ], [ %5, %.preheader72 ]
  %indvars.iv149 = phi i64 [ %indvars.iv.next150, %._crit_edge97 ], [ 0, %.preheader72 ]
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph96, label %._crit_edge97

._crit_edge97.loopexit:                           ; preds = %.lr.ph96
  %.pre166 = load i32, ptr @n, align 4, !tbaa !5
  br label %._crit_edge97

._crit_edge97:                                    ; preds = %._crit_edge97.loopexit, %.preheader67
  %14 = phi i32 [ %.pre166, %._crit_edge97.loopexit ], [ %11, %.preheader67 ]
  %15 = phi i32 [ %20, %._crit_edge97.loopexit ], [ %12, %.preheader67 ]
  %indvars.iv.next150 = add nuw nsw i64 %indvars.iv149, 1
  %16 = sext i32 %14 to i64
  %17 = icmp slt i64 %indvars.iv.next150, %16
  br i1 %17, label %.preheader67, label %.preheader71, !llvm.loop !9

.lr.ph96:                                         ; preds = %.preheader67, %.lr.ph96
  %indvars.iv146 = phi i64 [ %indvars.iv.next147, %.lr.ph96 ], [ 0, %.preheader67 ]
  %18 = getelementptr inbounds [13 x [10000 x double]], ptr @p, i64 0, i64 %indvars.iv149, i64 %indvars.iv146
  %19 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %18)
  %indvars.iv.next147 = add nuw nsw i64 %indvars.iv146, 1
  %20 = load i32, ptr @m, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = icmp slt i64 %indvars.iv.next147, %21
  br i1 %22, label %.lr.ph96, label %._crit_edge97.loopexit, !llvm.loop !11

.preheader70.loopexit:                            ; preds = %61
  %.pre168 = load i32, ptr @n, align 4, !tbaa !5
  br label %.preheader70

.preheader70:                                     ; preds = %.preheader70.loopexit, %.preheader71
  %23 = phi i32 [ %14, %.preheader71 ], [ %.pre168, %.preheader70.loopexit ]
  %.lcssa76 = phi i32 [ %15, %.preheader71 ], [ %62, %.preheader70.loopexit ]
  %24 = icmp sgt i32 %23, 1
  br i1 %24, label %.preheader.lr.ph, label %._crit_edge109

.preheader.lr.ph:                                 ; preds = %.preheader70
  %25 = icmp sgt i32 %.lcssa76, 0
  br i1 %25, label %.preheader.us.preheader, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %26 = add nsw i32 %23, -1
  %27 = add nsw i32 %23, -2
  %xtraiter247 = and i32 %26, 7
  %28 = icmp ult i32 %27, 7
  br i1 %28, label %._crit_edge109.loopexit218.unr-lcssa, label %.preheader.preheader.new

.preheader.preheader.new:                         ; preds = %.preheader.preheader
  %unroll_iter251 = and i32 %26, -8
  br label %.preheader

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %wide.trip.count164 = zext nneg i32 %23 to i64
  %wide.trip.count159 = zext nneg i32 %.lcssa76 to i64
  %xtraiter254 = and i64 %wide.trip.count159, 1
  %29 = icmp eq i32 %.lcssa76, 1
  %unroll_iter258 = and i64 %wide.trip.count159, 2147483646
  %lcmp.mod256.not = icmp eq i64 %xtraiter254, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge105.us
  %indvars.iv161 = phi i64 [ 1, %.preheader.us.preheader ], [ %indvars.iv.next162, %._crit_edge105.us ]
  %.057108.us = phi x86_fp80 [ 0xK3FFF8000000000000000, %.preheader.us.preheader ], [ %54, %._crit_edge105.us ]
  br i1 %29, label %._crit_edge105.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %indvars.iv156 = phi i64 [ %indvars.iv.next157.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %.063103.us = phi x86_fp80 [ %45, %.preheader.us.new ], [ 0xK3FFF8000000000000000, %.preheader.us ]
  %niter259 = phi i64 [ %niter259.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %30 = getelementptr inbounds [13 x [10000 x double]], ptr @p, i64 0, i64 %indvars.iv161, i64 %indvars.iv156
  %31 = load double, ptr %30, align 16, !tbaa !12
  %32 = fpext double %31 to x86_fp80
  %33 = getelementptr inbounds [10000 x double], ptr @p, i64 0, i64 %indvars.iv156
  %34 = load double, ptr %33, align 16, !tbaa !12
  %35 = fpext double %34 to x86_fp80
  %36 = fdiv x86_fp80 %32, %35
  %37 = fmul x86_fp80 %.063103.us, %36
  %indvars.iv.next157 = or disjoint i64 %indvars.iv156, 1
  %38 = getelementptr inbounds [13 x [10000 x double]], ptr @p, i64 0, i64 %indvars.iv161, i64 %indvars.iv.next157
  %39 = load double, ptr %38, align 8, !tbaa !12
  %40 = fpext double %39 to x86_fp80
  %41 = getelementptr inbounds [10000 x double], ptr @p, i64 0, i64 %indvars.iv.next157
  %42 = load double, ptr %41, align 8, !tbaa !12
  %43 = fpext double %42 to x86_fp80
  %44 = fdiv x86_fp80 %40, %43
  %45 = fmul x86_fp80 %37, %44
  %indvars.iv.next157.1 = add nuw nsw i64 %indvars.iv156, 2
  %niter259.next.1 = add i64 %niter259, 2
  %niter259.ncmp.1 = icmp eq i64 %niter259.next.1, %unroll_iter258
  br i1 %niter259.ncmp.1, label %._crit_edge105.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !14

._crit_edge105.us.unr-lcssa:                      ; preds = %.preheader.us.new, %.preheader.us
  %.lcssa232.ph = phi x86_fp80 [ poison, %.preheader.us ], [ %45, %.preheader.us.new ]
  %indvars.iv156.unr = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next157.1, %.preheader.us.new ]
  %.063103.us.unr = phi x86_fp80 [ 0xK3FFF8000000000000000, %.preheader.us ], [ %45, %.preheader.us.new ]
  br i1 %lcmp.mod256.not, label %._crit_edge105.us, label %._crit_edge105.us.epilog-lcssa

._crit_edge105.us.epilog-lcssa:                   ; preds = %._crit_edge105.us.unr-lcssa
  %46 = getelementptr inbounds [13 x [10000 x double]], ptr @p, i64 0, i64 %indvars.iv161, i64 %indvars.iv156.unr
  %47 = load double, ptr %46, align 8, !tbaa !12
  %48 = fpext double %47 to x86_fp80
  %49 = getelementptr inbounds [10000 x double], ptr @p, i64 0, i64 %indvars.iv156.unr
  %50 = load double, ptr %49, align 8, !tbaa !12
  %51 = fpext double %50 to x86_fp80
  %52 = fdiv x86_fp80 %48, %51
  %53 = fmul x86_fp80 %.063103.us.unr, %52
  br label %._crit_edge105.us

._crit_edge105.us:                                ; preds = %._crit_edge105.us.unr-lcssa, %._crit_edge105.us.epilog-lcssa
  %.lcssa232 = phi x86_fp80 [ %.lcssa232.ph, %._crit_edge105.us.unr-lcssa ], [ %53, %._crit_edge105.us.epilog-lcssa ]
  %54 = fadd x86_fp80 %.057108.us, %.lcssa232
  %indvars.iv.next162 = add nuw nsw i64 %indvars.iv161, 1
  %exitcond165.not = icmp eq i64 %indvars.iv.next162, %wide.trip.count164
  br i1 %exitcond165.not, label %._crit_edge109, label %.preheader.us, !llvm.loop !15

.lr.ph100:                                        ; preds = %.lr.ph100.preheader, %61
  %55 = phi i32 [ %62, %61 ], [ %.ph, %.lr.ph100.preheader ]
  %indvars.iv152 = phi i64 [ %indvars.iv.next153, %61 ], [ 0, %.lr.ph100.preheader ]
  %56 = getelementptr inbounds [10000 x double], ptr @p, i64 0, i64 %indvars.iv152
  %57 = load double, ptr %56, align 8, !tbaa !12
  %58 = fcmp oeq double %57, 0.000000e+00
  br i1 %58, label %59, label %61

59:                                               ; preds = %.lr.ph100
  %60 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %.pre167 = load i32, ptr @m, align 4, !tbaa !5
  br label %61

61:                                               ; preds = %.lr.ph100, %59
  %62 = phi i32 [ %55, %.lr.ph100 ], [ %.pre167, %59 ]
  %indvars.iv.next153 = add nuw nsw i64 %indvars.iv152, 1
  %63 = sext i32 %62 to i64
  %64 = icmp slt i64 %indvars.iv.next153, %63
  br i1 %64, label %.lr.ph100, label %.preheader70.loopexit, !llvm.loop !16

.preheader:                                       ; preds = %.preheader, %.preheader.preheader.new
  %.057108 = phi x86_fp80 [ 0xK3FFF8000000000000000, %.preheader.preheader.new ], [ %72, %.preheader ]
  %niter252 = phi i32 [ 0, %.preheader.preheader.new ], [ %niter252.next.7, %.preheader ]
  %65 = fadd x86_fp80 %.057108, 0xK3FFF8000000000000000
  %66 = fadd x86_fp80 %65, 0xK3FFF8000000000000000
  %67 = fadd x86_fp80 %66, 0xK3FFF8000000000000000
  %68 = fadd x86_fp80 %67, 0xK3FFF8000000000000000
  %69 = fadd x86_fp80 %68, 0xK3FFF8000000000000000
  %70 = fadd x86_fp80 %69, 0xK3FFF8000000000000000
  %71 = fadd x86_fp80 %70, 0xK3FFF8000000000000000
  %72 = fadd x86_fp80 %71, 0xK3FFF8000000000000000
  %niter252.next.7 = add i32 %niter252, 8
  %niter252.ncmp.7 = icmp eq i32 %niter252.next.7, %unroll_iter251
  br i1 %niter252.ncmp.7, label %._crit_edge109.loopexit218.unr-lcssa, label %.preheader, !llvm.loop !15

._crit_edge109.loopexit218.unr-lcssa:             ; preds = %.preheader, %.preheader.preheader
  %.lcssa231.ph = phi x86_fp80 [ poison, %.preheader.preheader ], [ %72, %.preheader ]
  %.057108.unr = phi x86_fp80 [ 0xK3FFF8000000000000000, %.preheader.preheader ], [ %72, %.preheader ]
  %lcmp.mod249.not = icmp eq i32 %xtraiter247, 0
  br i1 %lcmp.mod249.not, label %._crit_edge109, label %.preheader.epil

.preheader.epil:                                  ; preds = %._crit_edge109.loopexit218.unr-lcssa, %.preheader.epil
  %.057108.epil = phi x86_fp80 [ %73, %.preheader.epil ], [ %.057108.unr, %._crit_edge109.loopexit218.unr-lcssa ]
  %epil.iter248 = phi i32 [ %epil.iter248.next, %.preheader.epil ], [ 0, %._crit_edge109.loopexit218.unr-lcssa ]
  %73 = fadd x86_fp80 %.057108.epil, 0xK3FFF8000000000000000
  %epil.iter248.next = add i32 %epil.iter248, 1
  %epil.iter248.cmp.not = icmp eq i32 %epil.iter248.next, %xtraiter247
  br i1 %epil.iter248.cmp.not, label %._crit_edge109, label %.preheader.epil, !llvm.loop !17

._crit_edge109:                                   ; preds = %._crit_edge109.loopexit218.unr-lcssa, %.preheader.epil, %._crit_edge105.us, %.preheader70
  %.057.lcssa = phi x86_fp80 [ 0xK3FFF8000000000000000, %.preheader70 ], [ %54, %._crit_edge105.us ], [ %.lcssa231.ph, %._crit_edge109.loopexit218.unr-lcssa ], [ %73, %.preheader.epil ]
  %74 = fdiv x86_fp80 0xK3FFF8000000000000000, %.057.lcssa
  br label %.backedge

.preheader73:                                     ; preds = %._crit_edge, %.preheader74
  %75 = phi i32 [ %5, %.preheader74 ], [ %82, %._crit_edge ]
  %.lcssa = phi i32 [ %7, %.preheader74 ], [ %81, %._crit_edge ]
  %76 = icmp sgt i32 %75, 0
  br i1 %76, label %.lr.ph81.preheader, label %._crit_edge82

.lr.ph81.preheader:                               ; preds = %.preheader73
  %wide.trip.count = zext nneg i32 %75 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %77 = icmp ult i32 %75, 4
  br i1 %77, label %._crit_edge82.loopexit.unr-lcssa, label %.lr.ph81.preheader.new

.lr.ph81.preheader.new:                           ; preds = %.lr.ph81.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %.lr.ph81

.preheader69:                                     ; preds = %.preheader69.lr.ph, %._crit_edge
  %78 = phi i32 [ %81, %._crit_edge ], [ %7, %.preheader69.lr.ph ]
  %79 = phi i32 [ %82, %._crit_edge ], [ %5, %.preheader69.lr.ph ]
  %indvars.iv129 = phi i64 [ %indvars.iv.next130, %._crit_edge ], [ 0, %.preheader69.lr.ph ]
  %80 = icmp sgt i32 %79, 0
  br i1 %80, label %.lr.ph, label %._crit_edge

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader69
  %81 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %78, %.preheader69 ]
  %82 = phi i32 [ %87, %._crit_edge.loopexit ], [ %79, %.preheader69 ]
  %indvars.iv.next130 = add nuw nsw i64 %indvars.iv129, 1
  %83 = sext i32 %81 to i64
  %84 = icmp slt i64 %indvars.iv.next130, %83
  br i1 %84, label %.preheader69, label %.preheader73, !llvm.loop !19

.lr.ph:                                           ; preds = %.preheader69, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader69 ]
  %85 = getelementptr inbounds [13 x [10000 x double]], ptr @p, i64 0, i64 %indvars.iv129, i64 %indvars.iv
  %86 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %85)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %87 = load i32, ptr @m, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = icmp slt i64 %indvars.iv.next, %88
  br i1 %89, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !21

._crit_edge82.loopexit.unr-lcssa:                 ; preds = %.lr.ph81, %.lr.ph81.preheader
  %.lcssa223.ph = phi x86_fp80 [ poison, %.lr.ph81.preheader ], [ %137, %.lr.ph81 ]
  %indvars.iv132.unr = phi i64 [ 0, %.lr.ph81.preheader ], [ %indvars.iv.next133.3, %.lr.ph81 ]
  %.05879.unr = phi x86_fp80 [ 0xK3FFF8000000000000000, %.lr.ph81.preheader ], [ %137, %.lr.ph81 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge82, label %.lr.ph81.epil

.lr.ph81.epil:                                    ; preds = %._crit_edge82.loopexit.unr-lcssa, %.lr.ph81.epil
  %indvars.iv132.epil = phi i64 [ %indvars.iv.next133.epil, %.lr.ph81.epil ], [ %indvars.iv132.unr, %._crit_edge82.loopexit.unr-lcssa ]
  %.05879.epil = phi x86_fp80 [ %93, %.lr.ph81.epil ], [ %.05879.unr, %._crit_edge82.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph81.epil ], [ 0, %._crit_edge82.loopexit.unr-lcssa ]
  %90 = getelementptr inbounds [10000 x double], ptr @p, i64 0, i64 %indvars.iv132.epil
  %91 = load double, ptr %90, align 8, !tbaa !12
  %92 = fpext double %91 to x86_fp80
  %93 = fmul x86_fp80 %.05879.epil, %92
  %indvars.iv.next133.epil = add nuw nsw i64 %indvars.iv132.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_edge82, label %.lr.ph81.epil, !llvm.loop !22

._crit_edge82:                                    ; preds = %._crit_edge82.loopexit.unr-lcssa, %.lr.ph81.epil, %.preheader73
  %.058.lcssa = phi x86_fp80 [ 0xK3FFF8000000000000000, %.preheader73 ], [ %.lcssa223.ph, %._crit_edge82.loopexit.unr-lcssa ], [ %93, %.lr.ph81.epil ]
  %94 = fsub x86_fp80 0xK3FFF8000000000000000, %.058.lcssa
  %95 = icmp sgt i32 %.lcssa, 1
  br i1 %95, label %.preheader68.lr.ph, label %._crit_edge92

._crit_edge82.thread:                             ; preds = %.preheader69.lr.ph
  %.not201 = icmp eq i32 %7, 1
  br i1 %.not201, label %.thread, label %.preheader68.preheader

.preheader68.lr.ph:                               ; preds = %._crit_edge82
  br i1 %76, label %.preheader68.us.preheader, label %.preheader68.preheader

.preheader68.preheader:                           ; preds = %._crit_edge82.thread, %.preheader68.lr.ph
  %.lcssa170173179 = phi i32 [ %.lcssa, %.preheader68.lr.ph ], [ %7, %._crit_edge82.thread ]
  %.058.lcssa175178 = phi x86_fp80 [ %.058.lcssa, %.preheader68.lr.ph ], [ 0xK3FFF8000000000000000, %._crit_edge82.thread ]
  %96 = phi x86_fp80 [ %94, %.preheader68.lr.ph ], [ 0xK00000000000000000000, %._crit_edge82.thread ]
  %97 = add nsw i32 %.lcssa170173179, -1
  %98 = add nsw i32 %.lcssa170173179, -2
  %xtraiter235 = and i32 %97, 7
  %99 = icmp ult i32 %98, 7
  br i1 %99, label %._crit_edge92.loopexit219.unr-lcssa, label %.preheader68.preheader.new

.preheader68.preheader.new:                       ; preds = %.preheader68.preheader
  %unroll_iter239 = and i32 %97, -8
  br label %.preheader68

.preheader68.us.preheader:                        ; preds = %.preheader68.lr.ph
  %wide.trip.count144 = zext nneg i32 %.lcssa to i64
  %wide.trip.count139 = zext nneg i32 %75 to i64
  %xtraiter241 = and i64 %wide.trip.count139, 3
  %100 = icmp ult i32 %75, 4
  %unroll_iter245 = and i64 %wide.trip.count139, 2147483644
  %lcmp.mod243.not = icmp eq i64 %xtraiter241, 0
  br label %.preheader68.us

.preheader68.us:                                  ; preds = %.preheader68.us.preheader, %._crit_edge88.us
  %indvars.iv141 = phi i64 [ 1, %.preheader68.us.preheader ], [ %indvars.iv.next142, %._crit_edge88.us ]
  %.05690.us = phi x86_fp80 [ %94, %.preheader68.us.preheader ], [ %121, %._crit_edge88.us ]
  br i1 %100, label %._crit_edge88.us.unr-lcssa, label %.preheader68.us.new

.preheader68.us.new:                              ; preds = %.preheader68.us, %.preheader68.us.new
  %indvars.iv136 = phi i64 [ %indvars.iv.next137.3, %.preheader68.us.new ], [ 0, %.preheader68.us ]
  %.05285.us = phi x86_fp80 [ %116, %.preheader68.us.new ], [ 0xK3FFF8000000000000000, %.preheader68.us ]
  %niter246 = phi i64 [ %niter246.next.3, %.preheader68.us.new ], [ 0, %.preheader68.us ]
  %101 = getelementptr inbounds [13 x [10000 x double]], ptr @p, i64 0, i64 %indvars.iv141, i64 %indvars.iv136
  %102 = load double, ptr %101, align 16, !tbaa !12
  %103 = fpext double %102 to x86_fp80
  %104 = fmul x86_fp80 %.05285.us, %103
  %indvars.iv.next137 = or disjoint i64 %indvars.iv136, 1
  %105 = getelementptr inbounds [13 x [10000 x double]], ptr @p, i64 0, i64 %indvars.iv141, i64 %indvars.iv.next137
  %106 = load double, ptr %105, align 8, !tbaa !12
  %107 = fpext double %106 to x86_fp80
  %108 = fmul x86_fp80 %104, %107
  %indvars.iv.next137.1 = or disjoint i64 %indvars.iv136, 2
  %109 = getelementptr inbounds [13 x [10000 x double]], ptr @p, i64 0, i64 %indvars.iv141, i64 %indvars.iv.next137.1
  %110 = load double, ptr %109, align 16, !tbaa !12
  %111 = fpext double %110 to x86_fp80
  %112 = fmul x86_fp80 %108, %111
  %indvars.iv.next137.2 = or disjoint i64 %indvars.iv136, 3
  %113 = getelementptr inbounds [13 x [10000 x double]], ptr @p, i64 0, i64 %indvars.iv141, i64 %indvars.iv.next137.2
  %114 = load double, ptr %113, align 8, !tbaa !12
  %115 = fpext double %114 to x86_fp80
  %116 = fmul x86_fp80 %112, %115
  %indvars.iv.next137.3 = add nuw nsw i64 %indvars.iv136, 4
  %niter246.next.3 = add i64 %niter246, 4
  %niter246.ncmp.3 = icmp eq i64 %niter246.next.3, %unroll_iter245
  br i1 %niter246.ncmp.3, label %._crit_edge88.us.unr-lcssa, label %.preheader68.us.new, !llvm.loop !23

._crit_edge88.us.unr-lcssa:                       ; preds = %.preheader68.us.new, %.preheader68.us
  %.lcssa225.ph = phi x86_fp80 [ poison, %.preheader68.us ], [ %116, %.preheader68.us.new ]
  %indvars.iv136.unr = phi i64 [ 0, %.preheader68.us ], [ %indvars.iv.next137.3, %.preheader68.us.new ]
  %.05285.us.unr = phi x86_fp80 [ 0xK3FFF8000000000000000, %.preheader68.us ], [ %116, %.preheader68.us.new ]
  br i1 %lcmp.mod243.not, label %._crit_edge88.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge88.us.unr-lcssa, %.epil.preheader
  %indvars.iv136.epil = phi i64 [ %indvars.iv.next137.epil, %.epil.preheader ], [ %indvars.iv136.unr, %._crit_edge88.us.unr-lcssa ]
  %.05285.us.epil = phi x86_fp80 [ %120, %.epil.preheader ], [ %.05285.us.unr, %._crit_edge88.us.unr-lcssa ]
  %epil.iter242 = phi i64 [ %epil.iter242.next, %.epil.preheader ], [ 0, %._crit_edge88.us.unr-lcssa ]
  %117 = getelementptr inbounds [13 x [10000 x double]], ptr @p, i64 0, i64 %indvars.iv141, i64 %indvars.iv136.epil
  %118 = load double, ptr %117, align 8, !tbaa !12
  %119 = fpext double %118 to x86_fp80
  %120 = fmul x86_fp80 %.05285.us.epil, %119
  %indvars.iv.next137.epil = add nuw nsw i64 %indvars.iv136.epil, 1
  %epil.iter242.next = add i64 %epil.iter242, 1
  %epil.iter242.cmp.not = icmp eq i64 %epil.iter242.next, %xtraiter241
  br i1 %epil.iter242.cmp.not, label %._crit_edge88.us, label %.epil.preheader, !llvm.loop !24

._crit_edge88.us:                                 ; preds = %.epil.preheader, %._crit_edge88.us.unr-lcssa
  %.lcssa225 = phi x86_fp80 [ %.lcssa225.ph, %._crit_edge88.us.unr-lcssa ], [ %120, %.epil.preheader ]
  %121 = fsub x86_fp80 %.05690.us, %.lcssa225
  %indvars.iv.next142 = add nuw nsw i64 %indvars.iv141, 1
  %exitcond145.not = icmp eq i64 %indvars.iv.next142, %wide.trip.count144
  br i1 %exitcond145.not, label %._crit_edge92, label %.preheader68.us, !llvm.loop !25

.lr.ph81:                                         ; preds = %.lr.ph81, %.lr.ph81.preheader.new
  %indvars.iv132 = phi i64 [ 0, %.lr.ph81.preheader.new ], [ %indvars.iv.next133.3, %.lr.ph81 ]
  %.05879 = phi x86_fp80 [ 0xK3FFF8000000000000000, %.lr.ph81.preheader.new ], [ %137, %.lr.ph81 ]
  %niter = phi i64 [ 0, %.lr.ph81.preheader.new ], [ %niter.next.3, %.lr.ph81 ]
  %122 = getelementptr inbounds [10000 x double], ptr @p, i64 0, i64 %indvars.iv132
  %123 = load double, ptr %122, align 16, !tbaa !12
  %124 = fpext double %123 to x86_fp80
  %125 = fmul x86_fp80 %.05879, %124
  %indvars.iv.next133 = or disjoint i64 %indvars.iv132, 1
  %126 = getelementptr inbounds [10000 x double], ptr @p, i64 0, i64 %indvars.iv.next133
  %127 = load double, ptr %126, align 8, !tbaa !12
  %128 = fpext double %127 to x86_fp80
  %129 = fmul x86_fp80 %125, %128
  %indvars.iv.next133.1 = or disjoint i64 %indvars.iv132, 2
  %130 = getelementptr inbounds [10000 x double], ptr @p, i64 0, i64 %indvars.iv.next133.1
  %131 = load double, ptr %130, align 16, !tbaa !12
  %132 = fpext double %131 to x86_fp80
  %133 = fmul x86_fp80 %129, %132
  %indvars.iv.next133.2 = or disjoint i64 %indvars.iv132, 3
  %134 = getelementptr inbounds [10000 x double], ptr @p, i64 0, i64 %indvars.iv.next133.2
  %135 = load double, ptr %134, align 8, !tbaa !12
  %136 = fpext double %135 to x86_fp80
  %137 = fmul x86_fp80 %133, %136
  %indvars.iv.next133.3 = add nuw nsw i64 %indvars.iv132, 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_edge82.loopexit.unr-lcssa, label %.lr.ph81, !llvm.loop !26

.preheader68:                                     ; preds = %.preheader68, %.preheader68.preheader.new
  %.05690 = phi x86_fp80 [ %96, %.preheader68.preheader.new ], [ %145, %.preheader68 ]
  %niter240 = phi i32 [ 0, %.preheader68.preheader.new ], [ %niter240.next.7, %.preheader68 ]
  %138 = fadd x86_fp80 %.05690, 0xKBFFF8000000000000000
  %139 = fadd x86_fp80 %138, 0xKBFFF8000000000000000
  %140 = fadd x86_fp80 %139, 0xKBFFF8000000000000000
  %141 = fadd x86_fp80 %140, 0xKBFFF8000000000000000
  %142 = fadd x86_fp80 %141, 0xKBFFF8000000000000000
  %143 = fadd x86_fp80 %142, 0xKBFFF8000000000000000
  %144 = fadd x86_fp80 %143, 0xKBFFF8000000000000000
  %145 = fadd x86_fp80 %144, 0xKBFFF8000000000000000
  %niter240.next.7 = add i32 %niter240, 8
  %niter240.ncmp.7 = icmp eq i32 %niter240.next.7, %unroll_iter239
  br i1 %niter240.ncmp.7, label %._crit_edge92.loopexit219.unr-lcssa, label %.preheader68, !llvm.loop !25

._crit_edge92.loopexit219.unr-lcssa:              ; preds = %.preheader68, %.preheader68.preheader
  %.lcssa224.ph = phi x86_fp80 [ poison, %.preheader68.preheader ], [ %145, %.preheader68 ]
  %.05690.unr = phi x86_fp80 [ %96, %.preheader68.preheader ], [ %145, %.preheader68 ]
  %lcmp.mod237.not = icmp eq i32 %xtraiter235, 0
  br i1 %lcmp.mod237.not, label %._crit_edge92, label %.preheader68.epil

.preheader68.epil:                                ; preds = %._crit_edge92.loopexit219.unr-lcssa, %.preheader68.epil
  %.05690.epil = phi x86_fp80 [ %146, %.preheader68.epil ], [ %.05690.unr, %._crit_edge92.loopexit219.unr-lcssa ]
  %epil.iter236 = phi i32 [ %epil.iter236.next, %.preheader68.epil ], [ 0, %._crit_edge92.loopexit219.unr-lcssa ]
  %146 = fadd x86_fp80 %.05690.epil, 0xKBFFF8000000000000000
  %epil.iter236.next = add i32 %epil.iter236, 1
  %epil.iter236.cmp.not = icmp eq i32 %epil.iter236.next, %xtraiter235
  br i1 %epil.iter236.cmp.not, label %._crit_edge92, label %.preheader68.epil, !llvm.loop !27

._crit_edge92:                                    ; preds = %._crit_edge92.loopexit219.unr-lcssa, %.preheader68.epil, %._crit_edge88.us, %._crit_edge82
  %.058.lcssa174 = phi x86_fp80 [ %.058.lcssa, %._crit_edge82 ], [ %.058.lcssa, %._crit_edge88.us ], [ %.058.lcssa175178, %.preheader68.epil ], [ %.058.lcssa175178, %._crit_edge92.loopexit219.unr-lcssa ]
  %.056.lcssa = phi x86_fp80 [ %94, %._crit_edge82 ], [ %121, %._crit_edge88.us ], [ %.lcssa224.ph, %._crit_edge92.loopexit219.unr-lcssa ], [ %146, %.preheader68.epil ]
  %147 = fcmp oeq x86_fp80 %.056.lcssa, 0xK3FFF8000000000000000
  br i1 %147, label %.backedge, label %.thread

.thread:                                          ; preds = %._crit_edge82.thread, %._crit_edge92
  %.056.lcssa183 = phi x86_fp80 [ %.056.lcssa, %._crit_edge92 ], [ 0xK00000000000000000000, %._crit_edge82.thread ]
  %.058.lcssa174182 = phi x86_fp80 [ %.058.lcssa174, %._crit_edge92 ], [ 0xK3FFF8000000000000000, %._crit_edge82.thread ]
  %148 = fsub x86_fp80 0xK3FFF8000000000000000, %.056.lcssa183
  %149 = fdiv x86_fp80 %.058.lcssa174182, %148
  br label %.backedge

.backedge:                                        ; preds = %._crit_edge92, %._crit_edge109, %.thread
  %.sink200 = phi x86_fp80 [ %74, %._crit_edge109 ], [ %149, %.thread ], [ %.058.lcssa174, %._crit_edge92 ]
  %150 = fptrunc x86_fp80 %.sink200 to double
  %151 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %150)
  %152 = load i32, ptr @t, align 4, !tbaa !5
  %153 = add nsw i32 %152, -1
  store i32 %153, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %152, 0
  br i1 %.not, label %._crit_edge115, label %.lr.ph114, !llvm.loop !28

._crit_edge115:                                   ; preds = %.backedge, %0
  ret i32 0
}

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

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

!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 = distinct !{!16, !10}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.unroll.disable"}
!19 = distinct !{!19, !10, !20}
!20 = !{!"llvm.loop.unswitch.partial.disable"}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !18}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !18}
!28 = distinct !{!28, !10}


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