; LLVM IR from tangjz/acm-icpc :: TDL_training/2016-04-10 (C - Binary Strings - tjz)

; 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
@str = external dso_local global [100010 x i8], align 16
@f = external dso_local global [100010 x [3 x double]], align 16
@ans = 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 [5 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
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %9

9:                                                ; preds = %174, %0
  %10 = load i32, ptr @t, align 4, !tbaa !5
  %11 = add nsw i32 %10, -1
  store i32 %11, ptr @t, align 4, !tbaa !5
  %12 = icmp ne i32 %10, 0
  br i1 %12, label %13, label %177

13:                                               ; preds = %9
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @n, ptr noundef getelementptr inbounds (i8, ptr @str, i64 1))
  store double 0.000000e+00, ptr @ans, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %171, %13
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds [100010 x i8], ptr @str, i64 0, i64 %17
  %19 = load i8, ptr %18, align 1, !tbaa !11
  %20 = icmp ne i8 %19, 0
  br i1 %20, label %22, label %21

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

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

23:                                               ; preds = %34, %22
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = icmp slt i32 %24, 3
  br i1 %25, label %27, label %26

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

27:                                               ; preds = %23
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [100010 x [3 x double]], ptr @f, i64 0, i64 %29
  %31 = load i32, ptr %4, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [3 x double], ptr %30, i64 0, i64 %32
  store double 0.000000e+00, ptr %33, align 8, !tbaa !9
  br label %34

34:                                               ; preds = %27
  %35 = load i32, ptr %4, align 4, !tbaa !5
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %4, align 4, !tbaa !5
  br label %23, !llvm.loop !12

37:                                               ; preds = %26
  %38 = load i32, ptr %2, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [100010 x i8], ptr @str, i64 0, i64 %39
  %41 = load i8, ptr %40, align 1, !tbaa !11
  %42 = sext i8 %41 to i32
  %43 = icmp eq i32 %42, 48
  br i1 %43, label %51, label %44

44:                                               ; preds = %37
  %45 = load i32, ptr %2, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [100010 x i8], ptr @str, i64 0, i64 %46
  %48 = load i8, ptr %47, align 1, !tbaa !11
  %49 = sext i8 %48 to i32
  %50 = icmp eq i32 %49, 63
  br i1 %50, label %51, label %81

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

52:                                               ; preds = %75, %51
  %53 = load i32, ptr %5, align 4, !tbaa !5
  %54 = icmp slt i32 %53, 3
  br i1 %54, label %56, label %55

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

56:                                               ; preds = %52
  %57 = load i32, ptr %2, align 4, !tbaa !5
  %58 = sub nsw i32 %57, 1
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [100010 x [3 x double]], ptr @f, i64 0, i64 %59
  %61 = load i32, ptr %5, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [3 x double], ptr %60, i64 0, i64 %62
  %64 = load double, ptr %63, align 8, !tbaa !9
  %65 = load i32, ptr %2, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [100010 x [3 x double]], ptr @f, i64 0, i64 %66
  %68 = load i32, ptr %5, align 4, !tbaa !5
  %69 = mul nsw i32 %68, 2
  %70 = srem i32 %69, 3
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [3 x double], ptr %67, i64 0, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !9
  %74 = fadd double %73, %64
  store double %74, ptr %72, align 8, !tbaa !9
  br label %75

75:                                               ; preds = %56
  %76 = load i32, ptr %5, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %5, align 4, !tbaa !5
  br label %52, !llvm.loop !14

78:                                               ; preds = %55
  %79 = load double, ptr @ans, align 8, !tbaa !9
  %80 = fadd double %79, 1.000000e+00
  store double %80, ptr @ans, align 8, !tbaa !9
  br label %81

81:                                               ; preds = %78, %44
  %82 = load i32, ptr %2, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [100010 x i8], ptr @str, i64 0, i64 %83
  %85 = load i8, ptr %84, align 1, !tbaa !11
  %86 = sext i8 %85 to i32
  %87 = icmp eq i32 %86, 49
  br i1 %87, label %95, label %88

88:                                               ; preds = %81
  %89 = load i32, ptr %2, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [100010 x i8], ptr @str, i64 0, i64 %90
  %92 = load i8, ptr %91, align 1, !tbaa !11
  %93 = sext i8 %92 to i32
  %94 = icmp eq i32 %93, 63
  br i1 %94, label %95, label %130

95:                                               ; preds = %88, %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %96

96:                                               ; preds = %120, %95
  %97 = load i32, ptr %6, align 4, !tbaa !5
  %98 = icmp slt i32 %97, 3
  br i1 %98, label %100, label %99

99:                                               ; preds = %96
  store i32 13, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %123

100:                                              ; preds = %96
  %101 = load i32, ptr %2, align 4, !tbaa !5
  %102 = sub nsw i32 %101, 1
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [100010 x [3 x double]], ptr @f, i64 0, i64 %103
  %105 = load i32, ptr %6, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [3 x double], ptr %104, i64 0, i64 %106
  %108 = load double, ptr %107, align 8, !tbaa !9
  %109 = load i32, ptr %2, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [100010 x [3 x double]], ptr @f, i64 0, i64 %110
  %112 = load i32, ptr %6, align 4, !tbaa !5
  %113 = mul nsw i32 %112, 2
  %114 = add nsw i32 %113, 1
  %115 = srem i32 %114, 3
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [3 x double], ptr %111, i64 0, i64 %116
  %118 = load double, ptr %117, align 8, !tbaa !9
  %119 = fadd double %118, %108
  store double %119, ptr %117, align 8, !tbaa !9
  br label %120

120:                                              ; preds = %100
  %121 = load i32, ptr %6, align 4, !tbaa !5
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %6, align 4, !tbaa !5
  br label %96, !llvm.loop !15

123:                                              ; preds = %99
  %124 = load i32, ptr %2, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [100010 x [3 x double]], ptr @f, i64 0, i64 %125
  %127 = getelementptr inbounds [3 x double], ptr %126, i64 0, i64 1
  %128 = load double, ptr %127, align 8, !tbaa !9
  %129 = fadd double %128, 1.000000e+00
  store double %129, ptr %127, align 8, !tbaa !9
  br label %130

130:                                              ; preds = %123, %88
  %131 = load i32, ptr %2, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [100010 x i8], ptr @str, i64 0, i64 %132
  %134 = load i8, ptr %133, align 1, !tbaa !11
  %135 = sext i8 %134 to i32
  %136 = icmp eq i32 %135, 63
  br i1 %136, label %137, label %163

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

138:                                              ; preds = %157, %137
  %139 = load i32, ptr %7, align 4, !tbaa !5
  %140 = icmp slt i32 %139, 3
  br i1 %140, label %142, label %141

141:                                              ; preds = %138
  store i32 16, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %160

142:                                              ; preds = %138
  %143 = load i32, ptr %2, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [100010 x [3 x double]], ptr @f, i64 0, i64 %144
  %146 = load i32, ptr %7, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [3 x double], ptr %145, i64 0, i64 %147
  %149 = load double, ptr %148, align 8, !tbaa !9
  %150 = fmul double %149, 5.000000e-01
  %151 = load i32, ptr %2, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [100010 x [3 x double]], ptr @f, i64 0, i64 %152
  %154 = load i32, ptr %7, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [3 x double], ptr %153, i64 0, i64 %155
  store double %150, ptr %156, align 8, !tbaa !9
  br label %157

157:                                              ; preds = %142
  %158 = load i32, ptr %7, align 4, !tbaa !5
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %7, align 4, !tbaa !5
  br label %138, !llvm.loop !16

160:                                              ; preds = %141
  %161 = load double, ptr @ans, align 8, !tbaa !9
  %162 = fsub double %161, 5.000000e-01
  store double %162, ptr @ans, align 8, !tbaa !9
  br label %163

163:                                              ; preds = %160, %130
  %164 = load i32, ptr %2, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [100010 x [3 x double]], ptr @f, i64 0, i64 %165
  %167 = getelementptr inbounds [3 x double], ptr %166, i64 0, i64 0
  %168 = load double, ptr %167, align 8, !tbaa !9
  %169 = load double, ptr @ans, align 8, !tbaa !9
  %170 = fadd double %169, %168
  store double %170, ptr @ans, align 8, !tbaa !9
  br label %171

171:                                              ; preds = %163
  %172 = load i32, ptr %2, align 4, !tbaa !5
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %2, align 4, !tbaa !5
  br label %15, !llvm.loop !17

174:                                              ; preds = %21
  %175 = load double, ptr @ans, align 8, !tbaa !9
  %176 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %175)
  br label %9, !llvm.loop !18

177:                                              ; preds = %9
  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 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}


; 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
@str = external dso_local global [100010 x i8], align 16
@f = external dso_local local_unnamed_addr global [100010 x [3 x double]], align 16
@ans = 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 [5 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
  %.not45 = icmp eq i32 %2, 0
  br i1 %.not45, label %._crit_edge47, label %.lr.ph

.lr.ph:                                           ; preds = %0, %11
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @n, ptr noundef nonnull getelementptr inbounds (i8, ptr @str, i64 1))
  store double 0.000000e+00, ptr @ans, align 8, !tbaa !9
  %5 = load i8, ptr getelementptr inbounds (i8, ptr @str, i64 1), align 1, !tbaa !11
  %.not3743 = icmp eq i8 %5, 0
  br i1 %.not3743, label %11, label %.preheader38

.preheader38:                                     ; preds = %.lr.ph, %.thread
  %indvars.iv = phi i64 [ %indvars.iv.next, %.thread ], [ 1, %.lr.ph ]
  %indvar = phi i64 [ %indvar.next, %.thread ], [ 0, %.lr.ph ]
  %6 = phi i8 [ %63, %.thread ], [ %5, %.lr.ph ]
  %7 = phi double [ %61, %.thread ], [ 0.000000e+00, %.lr.ph ]
  %8 = mul nuw nsw i64 %indvar, 24
  %gep = getelementptr i8, ptr getelementptr inbounds (i8, ptr @f, i64 24), i64 %8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %gep, i8 0, i64 24, i1 false), !tbaa !9
  switch i8 %6, label %.preheader38..thread_crit_edge [
    i8 48, label %16
    i8 63, label %16
    i8 49, label %.preheader38._crit_edge
  ]

.preheader38..thread_crit_edge:                   ; preds = %.preheader38
  %.phi.trans.insert61 = getelementptr inbounds [100010 x [3 x double]], ptr @f, i64 0, i64 %indvars.iv
  %.pre62 = load double, ptr %.phi.trans.insert61, align 8, !tbaa !9
  br label %.thread

.preheader38._crit_edge:                          ; preds = %.preheader38
  %.pre52 = add nsw i64 %indvars.iv, -1
  %.phi.trans.insert53 = getelementptr inbounds [100010 x [3 x double]], ptr @f, i64 0, i64 %.pre52, i64 1
  %.pre54 = load double, ptr %.phi.trans.insert53, align 8, !tbaa !9
  %.phi.trans.insert55 = getelementptr inbounds [100010 x [3 x double]], ptr @f, i64 0, i64 %indvars.iv, i64 0
  %9 = load <2 x double>, ptr %.phi.trans.insert55, align 8, !tbaa !9
  %10 = shufflevector <2 x double> %9, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %.phi.trans.insert57 = getelementptr inbounds [100010 x [3 x double]], ptr @f, i64 0, i64 %.pre52, i64 2
  %.pre58 = load double, ptr %.phi.trans.insert57, align 8, !tbaa !9
  %.phi.trans.insert59 = getelementptr inbounds [100010 x [3 x double]], ptr @f, i64 0, i64 %indvars.iv, i64 2
  %.pre60 = load double, ptr %.phi.trans.insert59, align 8, !tbaa !9
  %.phi.trans.insert63 = getelementptr inbounds [100010 x [3 x double]], ptr @f, i64 0, i64 %.pre52, i64 0
  %.pre64 = load double, ptr %.phi.trans.insert63, align 8, !tbaa !9
  br label %37

._crit_edge:                                      ; preds = %.thread
  store double %61, ptr @ans, align 8, !tbaa !9
  br label %11

11:                                               ; preds = %._crit_edge, %.lr.ph
  %12 = phi double [ %61, %._crit_edge ], [ 0.000000e+00, %.lr.ph ]
  %13 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %12)
  %14 = load i32, ptr @t, align 4, !tbaa !5
  %15 = add nsw i32 %14, -1
  store i32 %15, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %._crit_edge47, label %.lr.ph, !llvm.loop !12

16:                                               ; preds = %.preheader38, %.preheader38
  %17 = add nsw i64 %indvars.iv, -1
  %18 = getelementptr inbounds [100010 x [3 x double]], ptr @f, i64 0, i64 %17, i64 0
  %19 = load double, ptr %18, align 8, !tbaa !9
  %20 = getelementptr inbounds [100010 x [3 x double]], ptr @f, i64 0, i64 %indvars.iv, i64 0
  %21 = getelementptr inbounds [100010 x [3 x double]], ptr @f, i64 0, i64 %17, i64 1
  %22 = load double, ptr %21, align 8, !tbaa !9
  %23 = getelementptr inbounds [100010 x [3 x double]], ptr @f, i64 0, i64 %indvars.iv, i64 2
  %24 = load double, ptr %23, align 8, !tbaa !9
  %25 = fadd double %22, %24
  store double %25, ptr %23, align 8, !tbaa !9
  %26 = getelementptr inbounds [100010 x [3 x double]], ptr @f, i64 0, i64 %17, i64 2
  %27 = getelementptr inbounds [100010 x [3 x double]], ptr @f, i64 0, i64 %indvars.iv, i64 1
  %28 = load double, ptr %27, align 8, !tbaa !9
  %29 = load <2 x double>, ptr %26, align 8, !tbaa !9
  %30 = insertelement <2 x double> poison, double %28, i64 0
  %31 = insertelement <2 x double> %30, double %19, i64 1
  %32 = fadd <2 x double> %29, %31
  %33 = extractelement <2 x double> %32, i64 1
  store double %33, ptr %20, align 8, !tbaa !9
  %34 = extractelement <2 x double> %32, i64 0
  store double %34, ptr %27, align 8, !tbaa !9
  %35 = fadd double %7, 1.000000e+00
  %36 = extractelement <2 x double> %29, i64 0
  switch i8 %6, label %.thread [
    i8 49, label %37
    i8 63, label %37
  ]

37:                                               ; preds = %.preheader38._crit_edge, %16, %16
  %38 = phi double [ %.pre64, %.preheader38._crit_edge ], [ %19, %16 ], [ %19, %16 ]
  %39 = phi double [ %.pre60, %.preheader38._crit_edge ], [ %25, %16 ], [ %25, %16 ]
  %40 = phi double [ %.pre58, %.preheader38._crit_edge ], [ %36, %16 ], [ %36, %16 ]
  %41 = phi double [ %.pre54, %.preheader38._crit_edge ], [ %22, %16 ], [ %22, %16 ]
  %42 = phi double [ %7, %.preheader38._crit_edge ], [ %35, %16 ], [ %35, %16 ]
  %43 = phi <2 x double> [ %10, %.preheader38._crit_edge ], [ %32, %16 ], [ %32, %16 ]
  %44 = extractelement <2 x double> %43, i64 0
  %45 = fadd double %38, %44
  %46 = getelementptr inbounds [100010 x [3 x double]], ptr @f, i64 0, i64 %indvars.iv, i64 0
  %47 = getelementptr inbounds [100010 x [3 x double]], ptr @f, i64 0, i64 %indvars.iv, i64 2
  %48 = fadd double %40, %39
  store double %48, ptr %47, align 8, !tbaa !9
  %49 = insertelement <2 x double> poison, double %41, i64 0
  %50 = insertelement <2 x double> %49, double %45, i64 1
  %51 = shufflevector <2 x double> <double poison, double 1.000000e+00>, <2 x double> %43, <2 x i32> <i32 3, i32 1>
  %52 = fadd <2 x double> %50, %51
  store <2 x double> %52, ptr %46, align 8, !tbaa !9
  %53 = icmp eq i8 %6, 63
  %54 = extractelement <2 x double> %52, i64 0
  br i1 %53, label %.preheader.preheader, label %.thread

.preheader.preheader:                             ; preds = %37
  %55 = fmul <2 x double> %52, <double 5.000000e-01, double 5.000000e-01>
  store <2 x double> %55, ptr %46, align 8, !tbaa !9
  %56 = fmul double %48, 5.000000e-01
  store double %56, ptr %47, align 8, !tbaa !9
  %57 = fadd double %42, -5.000000e-01
  %58 = extractelement <2 x double> %55, i64 0
  br label %.thread

.thread:                                          ; preds = %.preheader38..thread_crit_edge, %16, %.preheader.preheader, %37
  %59 = phi double [ %.pre62, %.preheader38..thread_crit_edge ], [ %33, %16 ], [ %58, %.preheader.preheader ], [ %54, %37 ]
  %60 = phi double [ %7, %.preheader38..thread_crit_edge ], [ %35, %16 ], [ %57, %.preheader.preheader ], [ %42, %37 ]
  %61 = fadd double %59, %60
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %62 = getelementptr inbounds [100010 x i8], ptr @str, i64 0, i64 %indvars.iv.next
  %63 = load i8, ptr %62, align 1, !tbaa !11
  %.not37 = icmp eq i8 %63, 0
  %indvar.next = add nuw nsw i64 %indvar, 1
  br i1 %.not37, label %._crit_edge, label %.preheader38, !llvm.loop !14

._crit_edge47:                                    ; preds = %11, %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

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

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

!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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass