; LLVM IR from tangjz/acm-icpc :: self_training/2015-03-03 (P)

; 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
@tot = external dso_local global i32, align 4
@deg = external dso_local global [10001 x i32], align 16
@pre = external dso_local global [10001 x i32], align 16
@nxt = external dso_local global [20002 x i32], align 16
@to = external dso_local global [20002 x i32], align 16
@k = external dso_local global [10001 x double], align 16
@e = external dso_local global [10001 x double], align 16
@f = external dso_local global [10001 x double], align 16
@g = external dso_local global [10001 x double], align 16
@h = external dso_local global [10001 x double], align 16
@vis = external dso_local global [10001 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z5checki(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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsi(i32 noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %10

10:                                               ; preds = %118, %0
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = load i32, ptr @t, align 4, !tbaa !5
  %13 = icmp sle i32 %11, %12
  br i1 %13, label %15, label %14

14:                                               ; preds = %10
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %121

15:                                               ; preds = %10
  store i32 0, ptr @tot, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 16 @f, i8 0, i64 80008, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @g, i8 0, i64 80008, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @h, i8 0, i64 80008, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @vis, i8 0, i64 10001, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @deg, i8 0, i64 40004, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @pre, i8 0, i64 40004, i1 false)
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  br label %17

17:                                               ; preds = %66, %15
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = load i32, ptr @n, align 4, !tbaa !5
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %17
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %69

22:                                               ; preds = %17
  %23 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %5, ptr noundef %6)
  %24 = load i32, ptr %5, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [10001 x i32], ptr @deg, i64 0, i64 %25
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %28 = add nsw i32 %27, 1
  store i32 %28, ptr %26, align 4, !tbaa !5
  %29 = load i32, ptr %6, align 4, !tbaa !5
  %30 = load i32, ptr @tot, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr @tot, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [20002 x i32], ptr @to, i64 0, i64 %32
  store i32 %29, ptr %33, align 4, !tbaa !5
  %34 = load i32, ptr %5, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [10001 x i32], ptr @pre, i64 0, i64 %35
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = load i32, ptr @tot, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [20002 x i32], ptr @nxt, i64 0, i64 %39
  store i32 %37, ptr %40, align 4, !tbaa !5
  %41 = load i32, ptr @tot, align 4, !tbaa !5
  %42 = load i32, ptr %5, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [10001 x i32], ptr @pre, i64 0, i64 %43
  store i32 %41, ptr %44, align 4, !tbaa !5
  %45 = load i32, ptr %6, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [10001 x i32], ptr @deg, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %47, align 4, !tbaa !5
  %50 = load i32, ptr %5, align 4, !tbaa !5
  %51 = load i32, ptr @tot, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr @tot, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [20002 x i32], ptr @to, i64 0, i64 %53
  store i32 %50, ptr %54, align 4, !tbaa !5
  %55 = load i32, ptr %6, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [10001 x i32], ptr @pre, i64 0, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = load i32, ptr @tot, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [20002 x i32], ptr @nxt, i64 0, i64 %60
  store i32 %58, ptr %61, align 4, !tbaa !5
  %62 = load i32, ptr @tot, align 4, !tbaa !5
  %63 = load i32, ptr %6, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [10001 x i32], ptr @pre, i64 0, i64 %64
  store i32 %62, ptr %65, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %22
  %67 = load i32, ptr %4, align 4, !tbaa !5
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %4, align 4, !tbaa !5
  br label %17, !llvm.loop !9

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

70:                                               ; preds = %83, %69
  %71 = load i32, ptr %7, align 4, !tbaa !5
  %72 = load i32, ptr @n, align 4, !tbaa !5
  %73 = icmp sle i32 %71, %72
  br i1 %73, label %75, label %74

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

75:                                               ; preds = %70
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds double, ptr @k, i64 %77
  %79 = load i32, ptr %7, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds double, ptr @e, i64 %80
  %82 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %78, ptr noundef %81)
  br label %83

83:                                               ; preds = %75
  %84 = load i32, ptr %7, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %7, align 4, !tbaa !5
  br label %70, !llvm.loop !11

86:                                               ; preds = %74
  %87 = call noundef zeroext i1 @_Z5checki(i32 noundef 1)
  br i1 %87, label %91, label %88

88:                                               ; preds = %86
  %89 = load i32, ptr %2, align 4, !tbaa !5
  %90 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %89)
  br label %118

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

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

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

97:                                               ; preds = %92
  %98 = load i32, ptr %8, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [10001 x double], ptr @k, i64 0, i64 %99
  %101 = load double, ptr %100, align 8, !tbaa !12
  %102 = fdiv double %101, 1.000000e+02
  store double %102, ptr %100, align 8, !tbaa !12
  %103 = load i32, ptr %8, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [10001 x double], ptr @e, i64 0, i64 %104
  %106 = load double, ptr %105, align 8, !tbaa !12
  %107 = fdiv double %106, 1.000000e+02
  store double %107, ptr %105, align 8, !tbaa !12
  br label %108

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

111:                                              ; preds = %96
  call void @llvm.memset.p0.i64(ptr align 16 @vis, i8 0, i64 10001, i1 false)
  call void @_Z3dfsi(i32 noundef 1)
  %112 = load i32, ptr %2, align 4, !tbaa !5
  %113 = load double, ptr getelementptr inbounds ([10001 x double], ptr @h, i64 0, i64 1), align 8, !tbaa !12
  %114 = load double, ptr getelementptr inbounds ([10001 x double], ptr @f, i64 0, i64 1), align 8, !tbaa !12
  %115 = fsub double 1.000000e+00, %114
  %116 = fdiv double %113, %115
  %117 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %112, double noundef %116)
  br label %118

118:                                              ; preds = %111, %88
  %119 = load i32, ptr %2, align 4, !tbaa !5
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %2, align 4, !tbaa !5
  br label %10, !llvm.loop !15

121:                                              ; preds = %14
  ret i32 0
}

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

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

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

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


; 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
@tot = external dso_local local_unnamed_addr global i32, align 4
@deg = external dso_local local_unnamed_addr global [10001 x i32], align 16
@pre = external dso_local local_unnamed_addr global [10001 x i32], align 16
@nxt = external dso_local local_unnamed_addr global [20002 x i32], align 16
@to = external dso_local local_unnamed_addr global [20002 x i32], align 16
@k = external dso_local global [10001 x double], align 16
@e = external dso_local global [10001 x double], align 16
@f = external dso_local local_unnamed_addr global [10001 x double], align 16
@g = external dso_local local_unnamed_addr global [10001 x double], align 16
@h = external dso_local local_unnamed_addr global [10001 x double], align 16
@vis = external dso_local local_unnamed_addr global [10001 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z5checki(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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsi(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %4 = load i32, ptr @t, align 4, !tbaa !5
  %.not29 = icmp slt i32 %4, 1
  br i1 %.not29, label %._crit_edge33, label %.lr.ph32

._crit_edge33:                                    ; preds = %63, %0
  ret i32 0

.lr.ph32:                                         ; preds = %0, %63
  %.01630 = phi i32 [ %64, %63 ], [ 1, %0 ]
  store i32 0, ptr @tot, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(80008) @f, i8 0, i64 80008, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(80008) @g, i8 0, i64 80008, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(80008) @h, i8 0, i64 80008, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(10001) @vis, i8 0, i64 10001, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40004) @deg, i8 0, i64 40004, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40004) @pre, i8 0, i64 40004, i1 false)
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  %6 = load i32, ptr @n, align 4, !tbaa !5
  %7 = icmp sgt i32 %6, 1
  br i1 %7, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph32
  %8 = phi i32 [ %6, %.lr.ph32 ], [ %34, %.lr.ph ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  %.not1720 = icmp slt i32 %8, 1
  br i1 %.not1720, label %._crit_edge24, label %.lr.ph23

.lr.ph:                                           ; preds = %.lr.ph32, %.lr.ph
  %.01519 = phi i32 [ %33, %.lr.ph ], [ 1, %.lr.ph32 ]
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %10 = load i32, ptr %1, align 4, !tbaa !5
  %11 = sext i32 %10 to i64
  %12 = getelementptr inbounds [10001 x i32], ptr @deg, i64 0, i64 %11
  %13 = load i32, ptr %12, align 4, !tbaa !5
  %14 = add nsw i32 %13, 1
  store i32 %14, ptr %12, align 4, !tbaa !5
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = load i32, ptr @tot, align 4, !tbaa !5
  %17 = add nsw i32 %16, 1
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [20002 x i32], ptr @to, i64 0, i64 %18
  store i32 %15, ptr %19, align 4, !tbaa !5
  %20 = getelementptr inbounds [10001 x i32], ptr @pre, i64 0, i64 %11
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = getelementptr inbounds [20002 x i32], ptr @nxt, i64 0, i64 %18
  store i32 %21, ptr %22, align 4, !tbaa !5
  store i32 %17, ptr %20, align 4, !tbaa !5
  %23 = sext i32 %15 to i64
  %24 = getelementptr inbounds [10001 x i32], ptr @deg, i64 0, i64 %23
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %26 = add nsw i32 %25, 1
  store i32 %26, ptr %24, align 4, !tbaa !5
  %27 = add nsw i32 %16, 2
  store i32 %27, ptr @tot, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [20002 x i32], ptr @to, i64 0, i64 %28
  store i32 %10, ptr %29, align 4, !tbaa !5
  %30 = getelementptr inbounds [10001 x i32], ptr @pre, i64 0, i64 %23
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = getelementptr inbounds [20002 x i32], ptr @nxt, i64 0, i64 %28
  store i32 %31, ptr %32, align 4, !tbaa !5
  store i32 %27, ptr %30, align 4, !tbaa !5
  %33 = add nuw nsw i32 %.01519, 1
  %34 = load i32, ptr @n, align 4, !tbaa !5
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge24:                                    ; preds = %.lr.ph23, %._crit_edge
  %36 = call noundef zeroext i1 @_Z5checki(i32 noundef 1)
  br i1 %36, label %.preheader, label %50

.preheader:                                       ; preds = %._crit_edge24
  %37 = load i32, ptr @n, align 4, !tbaa !5
  %.not1825 = icmp slt i32 %37, 1
  br i1 %.not1825, label %._crit_edge28, label %.lr.ph27.preheader

.lr.ph27.preheader:                               ; preds = %.preheader
  %38 = add nuw i32 %37, 1
  %wide.trip.count = zext i32 %38 to i64
  %39 = zext nneg i32 %37 to i64
  %min.iters.check = icmp eq i32 %37, 1
  br i1 %min.iters.check, label %.lr.ph27.preheader39, label %vector.ph

.lr.ph27.preheader39:                             ; preds = %middle.block, %.lr.ph27.preheader
  %indvars.iv35.ph = phi i64 [ 1, %.lr.ph27.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph27

vector.ph:                                        ; preds = %.lr.ph27.preheader
  %n.vec = and i64 %39, 2147483646
  %ind.end = or i64 %39, 1
  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
  %40 = getelementptr inbounds [10001 x double], ptr @k, i64 0, i64 %offset.idx
  %wide.load = load <2 x double>, ptr %40, align 8, !tbaa !11
  %41 = fdiv <2 x double> %wide.load, <double 1.000000e+02, double 1.000000e+02>
  store <2 x double> %41, ptr %40, align 8, !tbaa !11
  %42 = getelementptr inbounds [10001 x double], ptr @e, i64 0, i64 %offset.idx
  %wide.load38 = load <2 x double>, ptr %42, align 8, !tbaa !11
  %43 = fdiv <2 x double> %wide.load38, <double 1.000000e+02, double 1.000000e+02>
  store <2 x double> %43, ptr %42, align 8, !tbaa !11
  %index.next = add nuw i64 %index, 2
  %44 = icmp eq i64 %index.next, %n.vec
  br i1 %44, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %39
  br i1 %cmp.n, label %._crit_edge28, label %.lr.ph27.preheader39

.lr.ph23:                                         ; preds = %._crit_edge, %.lr.ph23
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph23 ], [ 1, %._crit_edge ]
  %45 = getelementptr inbounds double, ptr @k, i64 %indvars.iv
  %46 = getelementptr inbounds double, ptr @e, i64 %indvars.iv
  %47 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %45, ptr noundef nonnull %46)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %48 = load i32, ptr @n, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %.not17.not = icmp slt i64 %indvars.iv, %49
  br i1 %.not17.not, label %.lr.ph23, label %._crit_edge24, !llvm.loop !16

50:                                               ; preds = %._crit_edge24
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %.01630)
  br label %63

._crit_edge28:                                    ; preds = %.lr.ph27, %middle.block, %.preheader
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(10001) @vis, i8 0, i64 10001, i1 false)
  call void @_Z3dfsi(i32 noundef 1)
  %52 = load double, ptr getelementptr inbounds (i8, ptr @h, i64 8), align 8, !tbaa !11
  %53 = load double, ptr getelementptr inbounds (i8, ptr @f, i64 8), align 8, !tbaa !11
  %54 = fsub double 1.000000e+00, %53
  %55 = fdiv double %52, %54
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %.01630, double noundef %55)
  br label %63

.lr.ph27:                                         ; preds = %.lr.ph27.preheader39, %.lr.ph27
  %indvars.iv35 = phi i64 [ %indvars.iv.next36, %.lr.ph27 ], [ %indvars.iv35.ph, %.lr.ph27.preheader39 ]
  %57 = getelementptr inbounds [10001 x double], ptr @k, i64 0, i64 %indvars.iv35
  %58 = load double, ptr %57, align 8, !tbaa !11
  %59 = fdiv double %58, 1.000000e+02
  store double %59, ptr %57, align 8, !tbaa !11
  %60 = getelementptr inbounds [10001 x double], ptr @e, i64 0, i64 %indvars.iv35
  %61 = load double, ptr %60, align 8, !tbaa !11
  %62 = fdiv double %61, 1.000000e+02
  store double %62, ptr %60, align 8, !tbaa !11
  %indvars.iv.next36 = add nuw nsw i64 %indvars.iv35, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next36, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge28, label %.lr.ph27, !llvm.loop !17

63:                                               ; preds = %._crit_edge28, %50
  %64 = add nuw nsw i32 %.01630, 1
  %65 = load i32, ptr @t, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.01630, %65
  br i1 %.not.not, label %.lr.ph32, label %._crit_edge33, !llvm.loop !18
}

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !10, !14, !15}
!14 = !{!"llvm.loop.isvectorized", i32 1}
!15 = !{!"llvm.loop.unroll.runtime.disable"}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10, !15, !14}
!18 = distinct !{!18, !10}


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