; LLVM IR from tangjz/acm-icpc :: self_training/2015-01-31 (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
@a = external dso_local global [13 x double], align 16
@x = external dso_local global double, align 8
@tmp = external dso_local global double, align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %7

7:                                                ; preds = %94, %0
  %8 = load i32, ptr @t, align 4, !tbaa !5
  %9 = add nsw i32 %8, -1
  store i32 %9, ptr @t, align 4, !tbaa !5
  %10 = icmp ne i32 %8, 0
  br i1 %10, label %11, label %99

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

12:                                               ; preds = %21, %11
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = icmp slt i32 %13, 12
  br i1 %14, label %16, label %15

15:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  br label %24

16:                                               ; preds = %12
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds double, ptr @a, i64 %18
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %19)
  br label %21

21:                                               ; preds = %16
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = add nsw i32 %22, 1
  store i32 %23, ptr %2, align 4, !tbaa !5
  br label %12, !llvm.loop !9

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

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

28:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  br label %46

29:                                               ; preds = %25
  %30 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @x)
  %31 = load double, ptr @x, align 8, !tbaa !11
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [13 x double], ptr @a, i64 0, i64 %33
  %35 = load double, ptr %34, align 8, !tbaa !11
  %36 = fcmp ogt double %31, %35
  br i1 %36, label %37, label %42

37:                                               ; preds = %29
  %38 = load double, ptr @x, align 8, !tbaa !11
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [13 x double], ptr @a, i64 0, i64 %40
  store double %38, ptr %41, align 8, !tbaa !11
  br label %42

42:                                               ; preds = %37, %29
  br label %43

43:                                               ; preds = %42
  %44 = load i32, ptr %3, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %3, align 4, !tbaa !5
  br label %25, !llvm.loop !13

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

47:                                               ; preds = %65, %46
  %48 = load i32, ptr %4, align 4, !tbaa !5
  %49 = icmp slt i32 %48, 12
  br i1 %49, label %51, label %50

50:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  br label %68

51:                                               ; preds = %47
  %52 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @x)
  %53 = load double, ptr @x, align 8, !tbaa !11
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [13 x double], ptr @a, i64 0, i64 %55
  %57 = load double, ptr %56, align 8, !tbaa !11
  %58 = fcmp ogt double %53, %57
  br i1 %58, label %59, label %64

59:                                               ; preds = %51
  %60 = load double, ptr @x, align 8, !tbaa !11
  %61 = load i32, ptr %4, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [13 x double], ptr @a, i64 0, i64 %62
  store double %60, ptr %63, align 8, !tbaa !11
  br label %64

64:                                               ; preds = %59, %51
  br label %65

65:                                               ; preds = %64
  %66 = load i32, ptr %4, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %4, align 4, !tbaa !5
  br label %47, !llvm.loop !14

68:                                               ; preds = %50
  %69 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @x)
  %70 = load double, ptr @x, align 8, !tbaa !11
  store double %70, ptr @tmp, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %71

71:                                               ; preds = %91, %68
  %72 = load i32, ptr %5, align 4, !tbaa !5
  %73 = icmp slt i32 %72, 12
  br i1 %73, label %75, label %74

74:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %94

75:                                               ; preds = %71
  %76 = load i32, ptr %5, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [13 x double], ptr @a, i64 0, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !11
  %80 = fcmp ogt double %79, 0.000000e+00
  br i1 %80, label %81, label %90

81:                                               ; preds = %75
  %82 = load i32, ptr %5, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [13 x double], ptr @a, i64 0, i64 %83
  %85 = load double, ptr %84, align 8, !tbaa !11
  %86 = fdiv double %85, 1.000000e+02
  %87 = fadd double 1.000000e+00, %86
  %88 = load double, ptr @x, align 8, !tbaa !11
  %89 = fmul double %88, %87
  store double %89, ptr @x, align 8, !tbaa !11
  br label %90

90:                                               ; preds = %81, %75
  br label %91

91:                                               ; preds = %90
  %92 = load i32, ptr %5, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %5, align 4, !tbaa !5
  br label %71, !llvm.loop !15

94:                                               ; preds = %74
  %95 = load double, ptr @x, align 8, !tbaa !11
  %96 = load double, ptr @tmp, align 8, !tbaa !11
  %97 = fsub double %95, %96
  %98 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %97)
  br label %7, !llvm.loop !16

99:                                               ; preds = %7
  ret i32 0
}

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 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !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
@a = external dso_local global [13 x double], align 16
@x = external dso_local global double, align 8
@tmp = external dso_local local_unnamed_addr global double, align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1

; 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
  %.not27 = icmp eq i32 %2, 0
  br i1 %.not27, label %._crit_edge, label %.preheader22

.preheader22:                                     ; preds = %0, %233
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @a)
  %5 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull getelementptr inbounds (i8, ptr @a, i64 8))
  %6 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull getelementptr inbounds (i8, ptr @a, i64 16))
  %7 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull getelementptr inbounds (i8, ptr @a, i64 24))
  %8 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull getelementptr inbounds (i8, ptr @a, i64 32))
  %9 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull getelementptr inbounds (i8, ptr @a, i64 40))
  %10 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull getelementptr inbounds (i8, ptr @a, i64 48))
  %11 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull getelementptr inbounds (i8, ptr @a, i64 56))
  %12 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull getelementptr inbounds (i8, ptr @a, i64 64))
  %13 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull getelementptr inbounds (i8, ptr @a, i64 72))
  %14 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull getelementptr inbounds (i8, ptr @a, i64 80))
  %15 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull getelementptr inbounds (i8, ptr @a, i64 88))
  %16 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x)
  %17 = load double, ptr @x, align 8, !tbaa !9
  %18 = load double, ptr @a, align 16, !tbaa !9
  %19 = fcmp ogt double %17, %18
  br i1 %19, label %20, label %.preheader21.1

20:                                               ; preds = %.preheader22
  store double %17, ptr @a, align 16, !tbaa !9
  br label %.preheader21.1

.preheader21.1:                                   ; preds = %.preheader22, %20
  %21 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x)
  %22 = load double, ptr @x, align 8, !tbaa !9
  %23 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 8), align 8, !tbaa !9
  %24 = fcmp ogt double %22, %23
  br i1 %24, label %25, label %.preheader21.2

25:                                               ; preds = %.preheader21.1
  store double %22, ptr getelementptr inbounds (i8, ptr @a, i64 8), align 8, !tbaa !9
  br label %.preheader21.2

.preheader21.2:                                   ; preds = %25, %.preheader21.1
  %26 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x)
  %27 = load double, ptr @x, align 8, !tbaa !9
  %28 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 16), align 16, !tbaa !9
  %29 = fcmp ogt double %27, %28
  br i1 %29, label %30, label %.preheader21.3

30:                                               ; preds = %.preheader21.2
  store double %27, ptr getelementptr inbounds (i8, ptr @a, i64 16), align 16, !tbaa !9
  br label %.preheader21.3

.preheader21.3:                                   ; preds = %30, %.preheader21.2
  %31 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x)
  %32 = load double, ptr @x, align 8, !tbaa !9
  %33 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 24), align 8, !tbaa !9
  %34 = fcmp ogt double %32, %33
  br i1 %34, label %35, label %.preheader21.4

35:                                               ; preds = %.preheader21.3
  store double %32, ptr getelementptr inbounds (i8, ptr @a, i64 24), align 8, !tbaa !9
  br label %.preheader21.4

.preheader21.4:                                   ; preds = %35, %.preheader21.3
  %36 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x)
  %37 = load double, ptr @x, align 8, !tbaa !9
  %38 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 32), align 16, !tbaa !9
  %39 = fcmp ogt double %37, %38
  br i1 %39, label %40, label %.preheader21.5

40:                                               ; preds = %.preheader21.4
  store double %37, ptr getelementptr inbounds (i8, ptr @a, i64 32), align 16, !tbaa !9
  br label %.preheader21.5

.preheader21.5:                                   ; preds = %40, %.preheader21.4
  %41 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x)
  %42 = load double, ptr @x, align 8, !tbaa !9
  %43 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 40), align 8, !tbaa !9
  %44 = fcmp ogt double %42, %43
  br i1 %44, label %45, label %.preheader21.6

45:                                               ; preds = %.preheader21.5
  store double %42, ptr getelementptr inbounds (i8, ptr @a, i64 40), align 8, !tbaa !9
  br label %.preheader21.6

.preheader21.6:                                   ; preds = %45, %.preheader21.5
  %46 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x)
  %47 = load double, ptr @x, align 8, !tbaa !9
  %48 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 48), align 16, !tbaa !9
  %49 = fcmp ogt double %47, %48
  br i1 %49, label %50, label %.preheader21.7

50:                                               ; preds = %.preheader21.6
  store double %47, ptr getelementptr inbounds (i8, ptr @a, i64 48), align 16, !tbaa !9
  br label %.preheader21.7

.preheader21.7:                                   ; preds = %50, %.preheader21.6
  %51 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x)
  %52 = load double, ptr @x, align 8, !tbaa !9
  %53 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 56), align 8, !tbaa !9
  %54 = fcmp ogt double %52, %53
  br i1 %54, label %55, label %.preheader21.8

55:                                               ; preds = %.preheader21.7
  store double %52, ptr getelementptr inbounds (i8, ptr @a, i64 56), align 8, !tbaa !9
  br label %.preheader21.8

.preheader21.8:                                   ; preds = %55, %.preheader21.7
  %56 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x)
  %57 = load double, ptr @x, align 8, !tbaa !9
  %58 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 64), align 16, !tbaa !9
  %59 = fcmp ogt double %57, %58
  br i1 %59, label %60, label %.preheader21.9

60:                                               ; preds = %.preheader21.8
  store double %57, ptr getelementptr inbounds (i8, ptr @a, i64 64), align 16, !tbaa !9
  br label %.preheader21.9

.preheader21.9:                                   ; preds = %60, %.preheader21.8
  %61 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x)
  %62 = load double, ptr @x, align 8, !tbaa !9
  %63 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 72), align 8, !tbaa !9
  %64 = fcmp ogt double %62, %63
  br i1 %64, label %65, label %.preheader21.10

65:                                               ; preds = %.preheader21.9
  store double %62, ptr getelementptr inbounds (i8, ptr @a, i64 72), align 8, !tbaa !9
  br label %.preheader21.10

.preheader21.10:                                  ; preds = %65, %.preheader21.9
  %66 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x)
  %67 = load double, ptr @x, align 8, !tbaa !9
  %68 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 80), align 16, !tbaa !9
  %69 = fcmp ogt double %67, %68
  br i1 %69, label %70, label %.preheader21.11

70:                                               ; preds = %.preheader21.10
  store double %67, ptr getelementptr inbounds (i8, ptr @a, i64 80), align 16, !tbaa !9
  br label %.preheader21.11

.preheader21.11:                                  ; preds = %70, %.preheader21.10
  %71 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x)
  %72 = load double, ptr @x, align 8, !tbaa !9
  %73 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 88), align 8, !tbaa !9
  %74 = fcmp ogt double %72, %73
  br i1 %74, label %75, label %.preheader.preheader

75:                                               ; preds = %.preheader21.11
  store double %72, ptr getelementptr inbounds (i8, ptr @a, i64 88), align 8, !tbaa !9
  br label %.preheader.preheader

.preheader.preheader:                             ; preds = %75, %.preheader21.11
  %76 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x)
  %77 = load double, ptr @x, align 8, !tbaa !9
  %78 = load double, ptr @a, align 16, !tbaa !9
  %79 = fcmp ogt double %77, %78
  br i1 %79, label %80, label %.preheader.1

80:                                               ; preds = %.preheader.preheader
  store double %77, ptr @a, align 16, !tbaa !9
  br label %.preheader.1

.preheader.1:                                     ; preds = %.preheader.preheader, %80
  %81 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x)
  %82 = load double, ptr @x, align 8, !tbaa !9
  %83 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 8), align 8, !tbaa !9
  %84 = fcmp ogt double %82, %83
  br i1 %84, label %85, label %.preheader.2

85:                                               ; preds = %.preheader.1
  store double %82, ptr getelementptr inbounds (i8, ptr @a, i64 8), align 8, !tbaa !9
  br label %.preheader.2

.preheader.2:                                     ; preds = %85, %.preheader.1
  %86 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x)
  %87 = load double, ptr @x, align 8, !tbaa !9
  %88 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 16), align 16, !tbaa !9
  %89 = fcmp ogt double %87, %88
  br i1 %89, label %90, label %.preheader.3

90:                                               ; preds = %.preheader.2
  store double %87, ptr getelementptr inbounds (i8, ptr @a, i64 16), align 16, !tbaa !9
  br label %.preheader.3

.preheader.3:                                     ; preds = %90, %.preheader.2
  %91 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x)
  %92 = load double, ptr @x, align 8, !tbaa !9
  %93 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 24), align 8, !tbaa !9
  %94 = fcmp ogt double %92, %93
  br i1 %94, label %95, label %.preheader.4

95:                                               ; preds = %.preheader.3
  store double %92, ptr getelementptr inbounds (i8, ptr @a, i64 24), align 8, !tbaa !9
  br label %.preheader.4

.preheader.4:                                     ; preds = %95, %.preheader.3
  %96 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x)
  %97 = load double, ptr @x, align 8, !tbaa !9
  %98 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 32), align 16, !tbaa !9
  %99 = fcmp ogt double %97, %98
  br i1 %99, label %100, label %.preheader.5

100:                                              ; preds = %.preheader.4
  store double %97, ptr getelementptr inbounds (i8, ptr @a, i64 32), align 16, !tbaa !9
  br label %.preheader.5

.preheader.5:                                     ; preds = %100, %.preheader.4
  %101 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x)
  %102 = load double, ptr @x, align 8, !tbaa !9
  %103 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 40), align 8, !tbaa !9
  %104 = fcmp ogt double %102, %103
  br i1 %104, label %105, label %.preheader.6

105:                                              ; preds = %.preheader.5
  store double %102, ptr getelementptr inbounds (i8, ptr @a, i64 40), align 8, !tbaa !9
  br label %.preheader.6

.preheader.6:                                     ; preds = %105, %.preheader.5
  %106 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x)
  %107 = load double, ptr @x, align 8, !tbaa !9
  %108 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 48), align 16, !tbaa !9
  %109 = fcmp ogt double %107, %108
  br i1 %109, label %110, label %.preheader.7

110:                                              ; preds = %.preheader.6
  store double %107, ptr getelementptr inbounds (i8, ptr @a, i64 48), align 16, !tbaa !9
  br label %.preheader.7

.preheader.7:                                     ; preds = %110, %.preheader.6
  %111 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x)
  %112 = load double, ptr @x, align 8, !tbaa !9
  %113 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 56), align 8, !tbaa !9
  %114 = fcmp ogt double %112, %113
  br i1 %114, label %115, label %.preheader.8

115:                                              ; preds = %.preheader.7
  store double %112, ptr getelementptr inbounds (i8, ptr @a, i64 56), align 8, !tbaa !9
  br label %.preheader.8

.preheader.8:                                     ; preds = %115, %.preheader.7
  %116 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x)
  %117 = load double, ptr @x, align 8, !tbaa !9
  %118 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 64), align 16, !tbaa !9
  %119 = fcmp ogt double %117, %118
  br i1 %119, label %120, label %.preheader.9

120:                                              ; preds = %.preheader.8
  store double %117, ptr getelementptr inbounds (i8, ptr @a, i64 64), align 16, !tbaa !9
  br label %.preheader.9

.preheader.9:                                     ; preds = %120, %.preheader.8
  %121 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x)
  %122 = load double, ptr @x, align 8, !tbaa !9
  %123 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 72), align 8, !tbaa !9
  %124 = fcmp ogt double %122, %123
  br i1 %124, label %125, label %.preheader.10

125:                                              ; preds = %.preheader.9
  store double %122, ptr getelementptr inbounds (i8, ptr @a, i64 72), align 8, !tbaa !9
  br label %.preheader.10

.preheader.10:                                    ; preds = %125, %.preheader.9
  %126 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x)
  %127 = load double, ptr @x, align 8, !tbaa !9
  %128 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 80), align 16, !tbaa !9
  %129 = fcmp ogt double %127, %128
  br i1 %129, label %130, label %.preheader.11

130:                                              ; preds = %.preheader.10
  store double %127, ptr getelementptr inbounds (i8, ptr @a, i64 80), align 16, !tbaa !9
  br label %.preheader.11

.preheader.11:                                    ; preds = %130, %.preheader.10
  %131 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x)
  %132 = load double, ptr @x, align 8, !tbaa !9
  %133 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 88), align 8, !tbaa !9
  %134 = fcmp ogt double %132, %133
  br i1 %134, label %135, label %136

135:                                              ; preds = %.preheader.11
  store double %132, ptr getelementptr inbounds (i8, ptr @a, i64 88), align 8, !tbaa !9
  br label %136

136:                                              ; preds = %135, %.preheader.11
  %137 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @x)
  %138 = load double, ptr @x, align 8, !tbaa !9
  store double %138, ptr @tmp, align 8, !tbaa !9
  %139 = load double, ptr @a, align 16, !tbaa !9
  %140 = fcmp ogt double %139, 0.000000e+00
  br i1 %140, label %141, label %145

141:                                              ; preds = %136
  %142 = fdiv double %139, 1.000000e+02
  %143 = fadd double %142, 1.000000e+00
  %144 = fmul double %143, %138
  store double %144, ptr @x, align 8, !tbaa !9
  br label %145

145:                                              ; preds = %136, %141
  %146 = phi double [ %138, %136 ], [ %144, %141 ]
  %147 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 8), align 8, !tbaa !9
  %148 = fcmp ogt double %147, 0.000000e+00
  br i1 %148, label %149, label %153

149:                                              ; preds = %145
  %150 = fdiv double %147, 1.000000e+02
  %151 = fadd double %150, 1.000000e+00
  %152 = fmul double %151, %146
  store double %152, ptr @x, align 8, !tbaa !9
  br label %153

153:                                              ; preds = %149, %145
  %154 = phi double [ %146, %145 ], [ %152, %149 ]
  %155 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 16), align 16, !tbaa !9
  %156 = fcmp ogt double %155, 0.000000e+00
  br i1 %156, label %157, label %161

157:                                              ; preds = %153
  %158 = fdiv double %155, 1.000000e+02
  %159 = fadd double %158, 1.000000e+00
  %160 = fmul double %159, %154
  store double %160, ptr @x, align 8, !tbaa !9
  br label %161

161:                                              ; preds = %157, %153
  %162 = phi double [ %154, %153 ], [ %160, %157 ]
  %163 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 24), align 8, !tbaa !9
  %164 = fcmp ogt double %163, 0.000000e+00
  br i1 %164, label %165, label %169

165:                                              ; preds = %161
  %166 = fdiv double %163, 1.000000e+02
  %167 = fadd double %166, 1.000000e+00
  %168 = fmul double %167, %162
  store double %168, ptr @x, align 8, !tbaa !9
  br label %169

169:                                              ; preds = %165, %161
  %170 = phi double [ %162, %161 ], [ %168, %165 ]
  %171 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 32), align 16, !tbaa !9
  %172 = fcmp ogt double %171, 0.000000e+00
  br i1 %172, label %173, label %177

173:                                              ; preds = %169
  %174 = fdiv double %171, 1.000000e+02
  %175 = fadd double %174, 1.000000e+00
  %176 = fmul double %175, %170
  store double %176, ptr @x, align 8, !tbaa !9
  br label %177

177:                                              ; preds = %173, %169
  %178 = phi double [ %170, %169 ], [ %176, %173 ]
  %179 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 40), align 8, !tbaa !9
  %180 = fcmp ogt double %179, 0.000000e+00
  br i1 %180, label %181, label %185

181:                                              ; preds = %177
  %182 = fdiv double %179, 1.000000e+02
  %183 = fadd double %182, 1.000000e+00
  %184 = fmul double %183, %178
  store double %184, ptr @x, align 8, !tbaa !9
  br label %185

185:                                              ; preds = %181, %177
  %186 = phi double [ %178, %177 ], [ %184, %181 ]
  %187 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 48), align 16, !tbaa !9
  %188 = fcmp ogt double %187, 0.000000e+00
  br i1 %188, label %189, label %193

189:                                              ; preds = %185
  %190 = fdiv double %187, 1.000000e+02
  %191 = fadd double %190, 1.000000e+00
  %192 = fmul double %191, %186
  store double %192, ptr @x, align 8, !tbaa !9
  br label %193

193:                                              ; preds = %189, %185
  %194 = phi double [ %186, %185 ], [ %192, %189 ]
  %195 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 56), align 8, !tbaa !9
  %196 = fcmp ogt double %195, 0.000000e+00
  br i1 %196, label %197, label %201

197:                                              ; preds = %193
  %198 = fdiv double %195, 1.000000e+02
  %199 = fadd double %198, 1.000000e+00
  %200 = fmul double %199, %194
  store double %200, ptr @x, align 8, !tbaa !9
  br label %201

201:                                              ; preds = %197, %193
  %202 = phi double [ %194, %193 ], [ %200, %197 ]
  %203 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 64), align 16, !tbaa !9
  %204 = fcmp ogt double %203, 0.000000e+00
  br i1 %204, label %205, label %209

205:                                              ; preds = %201
  %206 = fdiv double %203, 1.000000e+02
  %207 = fadd double %206, 1.000000e+00
  %208 = fmul double %207, %202
  store double %208, ptr @x, align 8, !tbaa !9
  br label %209

209:                                              ; preds = %205, %201
  %210 = phi double [ %202, %201 ], [ %208, %205 ]
  %211 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 72), align 8, !tbaa !9
  %212 = fcmp ogt double %211, 0.000000e+00
  br i1 %212, label %213, label %217

213:                                              ; preds = %209
  %214 = fdiv double %211, 1.000000e+02
  %215 = fadd double %214, 1.000000e+00
  %216 = fmul double %215, %210
  store double %216, ptr @x, align 8, !tbaa !9
  br label %217

217:                                              ; preds = %213, %209
  %218 = phi double [ %210, %209 ], [ %216, %213 ]
  %219 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 80), align 16, !tbaa !9
  %220 = fcmp ogt double %219, 0.000000e+00
  br i1 %220, label %221, label %225

221:                                              ; preds = %217
  %222 = fdiv double %219, 1.000000e+02
  %223 = fadd double %222, 1.000000e+00
  %224 = fmul double %223, %218
  store double %224, ptr @x, align 8, !tbaa !9
  br label %225

225:                                              ; preds = %221, %217
  %226 = phi double [ %218, %217 ], [ %224, %221 ]
  %227 = load double, ptr getelementptr inbounds (i8, ptr @a, i64 88), align 8, !tbaa !9
  %228 = fcmp ogt double %227, 0.000000e+00
  br i1 %228, label %229, label %233

229:                                              ; preds = %225
  %230 = fdiv double %227, 1.000000e+02
  %231 = fadd double %230, 1.000000e+00
  %232 = fmul double %231, %226
  store double %232, ptr @x, align 8, !tbaa !9
  br label %233

233:                                              ; preds = %229, %225
  %234 = phi double [ %232, %229 ], [ %226, %225 ]
  %235 = fsub double %234, %138
  %236 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %235)
  %237 = load i32, ptr @t, align 4, !tbaa !5
  %238 = add nsw i32 %237, -1
  store i32 %238, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %237, 0
  br i1 %.not, label %._crit_edge, label %.preheader22, !llvm.loop !11

._crit_edge:                                      ; preds = %233, %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 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass