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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [62 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local float @function(float noundef) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca [20 x float], align 16
  %9 = alloca [20 x float], align 16
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store float 0.000000e+00, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store float 0.000000e+00, ptr %11, align 4, !tbaa !5
  %13 = call noalias ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
  store ptr %13, ptr %2, align 8, !tbaa !9
  %14 = load ptr, ptr %2, align 8, !tbaa !9
  %15 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef @.str.2) #5
  %16 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  %17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef %5, ptr noundef %6, ptr noundef %4)
  %18 = load float, ptr %6, align 4, !tbaa !5
  %19 = load float, ptr %5, align 4, !tbaa !5
  %20 = fsub float %18, %19
  %21 = load i32, ptr %4, align 4, !tbaa !11
  %22 = sitofp i32 %21 to float
  %23 = fdiv float %20, %22
  store float %23, ptr %7, align 4, !tbaa !5
  %24 = load ptr, ptr %2, align 8, !tbaa !9
  %25 = load float, ptr %5, align 4, !tbaa !5
  %26 = fpext float %25 to double
  %27 = load float, ptr %6, align 4, !tbaa !5
  %28 = fpext float %27 to double
  %29 = load i32, ptr %4, align 4, !tbaa !11
  %30 = load float, ptr %7, align 4, !tbaa !5
  %31 = fpext float %30 to double
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef @.str.5, double noundef %26, double noundef %28, i32 noundef %29, double noundef %31) #5
  %33 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  store i32 0, ptr %3, align 4, !tbaa !11
  br label %34

34:                                               ; preds = %82, %0
  %35 = load i32, ptr %3, align 4, !tbaa !11
  %36 = load i32, ptr %4, align 4, !tbaa !11
  %37 = icmp sle i32 %35, %36
  br i1 %37, label %38, label %85

38:                                               ; preds = %34
  %39 = load float, ptr %5, align 4, !tbaa !5
  %40 = load i32, ptr %3, align 4, !tbaa !11
  %41 = sitofp i32 %40 to float
  %42 = load float, ptr %7, align 4, !tbaa !5
  %43 = call float @llvm.fmuladd.f32(float %41, float %42, float %39)
  %44 = load i32, ptr %3, align 4, !tbaa !11
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [20 x float], ptr %9, i64 0, i64 %45
  store float %43, ptr %46, align 4, !tbaa !5
  %47 = load i32, ptr %3, align 4, !tbaa !11
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [20 x float], ptr %9, i64 0, i64 %48
  %50 = load float, ptr %49, align 4, !tbaa !5
  %51 = call float @function(float noundef %50)
  %52 = load i32, ptr %3, align 4, !tbaa !11
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [20 x float], ptr %8, i64 0, i64 %53
  store float %51, ptr %54, align 4, !tbaa !5
  %55 = load i32, ptr %3, align 4, !tbaa !11
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [20 x float], ptr %9, i64 0, i64 %56
  %58 = load float, ptr %57, align 4, !tbaa !5
  %59 = fpext float %58 to double
  %60 = load i32, ptr %3, align 4, !tbaa !11
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [20 x float], ptr %8, i64 0, i64 %61
  %63 = load float, ptr %62, align 4, !tbaa !5
  %64 = fpext float %63 to double
  %65 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, double noundef %59, double noundef %64)
  %66 = load ptr, ptr %2, align 8, !tbaa !9
  %67 = load i32, ptr %3, align 4, !tbaa !11
  %68 = add nsw i32 %67, 1
  %69 = load i32, ptr %3, align 4, !tbaa !11
  %70 = load i32, ptr %3, align 4, !tbaa !11
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [20 x float], ptr %9, i64 0, i64 %71
  %73 = load float, ptr %72, align 4, !tbaa !5
  %74 = fpext float %73 to double
  %75 = load i32, ptr %3, align 4, !tbaa !11
  %76 = load i32, ptr %3, align 4, !tbaa !11
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [20 x float], ptr %8, i64 0, i64 %77
  %79 = load float, ptr %78, align 4, !tbaa !5
  %80 = fpext float %79 to double
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef @.str.8, i32 noundef %68, i32 noundef %69, double noundef %74, i32 noundef %75, double noundef %80) #5
  br label %82

82:                                               ; preds = %38
  %83 = load i32, ptr %3, align 4, !tbaa !11
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %3, align 4, !tbaa !11
  br label %34, !llvm.loop !13

85:                                               ; preds = %34
  store i32 1, ptr %3, align 4, !tbaa !11
  br label %86

86:                                               ; preds = %109, %85
  %87 = load i32, ptr %3, align 4, !tbaa !11
  %88 = load i32, ptr %4, align 4, !tbaa !11
  %89 = icmp slt i32 %87, %88
  br i1 %89, label %90, label %112

90:                                               ; preds = %86
  %91 = load i32, ptr %3, align 4, !tbaa !11
  %92 = srem i32 %91, 2
  %93 = icmp eq i32 %92, 1
  br i1 %93, label %94, label %101

94:                                               ; preds = %90
  %95 = load i32, ptr %3, align 4, !tbaa !11
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [20 x float], ptr %8, i64 0, i64 %96
  %98 = load float, ptr %97, align 4, !tbaa !5
  %99 = load float, ptr %10, align 4, !tbaa !5
  %100 = fadd float %99, %98
  store float %100, ptr %10, align 4, !tbaa !5
  br label %108

101:                                              ; preds = %90
  %102 = load i32, ptr %3, align 4, !tbaa !11
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [20 x float], ptr %8, i64 0, i64 %103
  %105 = load float, ptr %104, align 4, !tbaa !5
  %106 = load float, ptr %11, align 4, !tbaa !5
  %107 = fadd float %106, %105
  store float %107, ptr %11, align 4, !tbaa !5
  br label %108

108:                                              ; preds = %101, %94
  br label %109

109:                                              ; preds = %108
  %110 = load i32, ptr %3, align 4, !tbaa !11
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %3, align 4, !tbaa !11
  br label %86, !llvm.loop !15

112:                                              ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %113 = load float, ptr %7, align 4, !tbaa !5
  %114 = fdiv float %113, 3.000000e+00
  %115 = getelementptr inbounds [20 x float], ptr %8, i64 0, i64 0
  %116 = load float, ptr %115, align 16, !tbaa !5
  %117 = load i32, ptr %4, align 4, !tbaa !11
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [20 x float], ptr %8, i64 0, i64 %118
  %120 = load float, ptr %119, align 4, !tbaa !5
  %121 = fadd float %116, %120
  %122 = load float, ptr %10, align 4, !tbaa !5
  %123 = call float @llvm.fmuladd.f32(float 4.000000e+00, float %122, float %121)
  %124 = load float, ptr %11, align 4, !tbaa !5
  %125 = call float @llvm.fmuladd.f32(float 2.000000e+00, float %124, float %123)
  %126 = fmul float %114, %125
  store float %126, ptr %12, align 4, !tbaa !5
  %127 = load float, ptr %12, align 4, !tbaa !5
  %128 = fpext float %127 to double
  %129 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %128)
  %130 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  %131 = load ptr, ptr %2, align 8, !tbaa !9
  %132 = load i32, ptr %4, align 4, !tbaa !11
  %133 = load float, ptr %12, align 4, !tbaa !5
  %134 = fpext float %133 to double
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef @.str.11, i32 noundef %132, double noundef %134) #5
  %136 = load ptr, ptr %2, align 8, !tbaa !9
  %137 = call i32 @fclose(ptr noundef %136)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  ret i32 0
}

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

declare i32 @fclose(ptr noundef) #2

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [62 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local float @function(float noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca float, align 4
  %3 = alloca float, align 4
  %4 = alloca [20 x float], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #4
  %5 = tail call noalias ptr @fopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1)
  %6 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.2) #4
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %1)
  %9 = load float, ptr %3, align 4, !tbaa !5
  %10 = load float, ptr %2, align 4, !tbaa !5
  %11 = fsub float %9, %10
  %12 = load i32, ptr %1, align 4, !tbaa !9
  %13 = sitofp i32 %12 to float
  %14 = fdiv float %11, %13
  %15 = fpext float %10 to double
  %16 = fpext float %9 to double
  %17 = fpext float %14 to double
  %18 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.5, double noundef %15, double noundef %16, i32 noundef %12, double noundef %17) #4
  %19 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %20 = load i32, ptr %1, align 4, !tbaa !9
  %.not37 = icmp slt i32 %20, 0
  br i1 %.not37, label %._crit_edge, label %.lr.ph

.preheader:                                       ; preds = %.lr.ph
  %21 = icmp sgt i32 %34, 1
  br i1 %21, label %.lr.ph42.preheader, label %._crit_edge

.lr.ph42.preheader:                               ; preds = %.preheader
  %wide.trip.count = zext nneg i32 %34 to i64
  %22 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %22, 1
  %23 = icmp eq i32 %34, 2
  br i1 %23, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph42.preheader.new

.lr.ph42.preheader.new:                           ; preds = %.lr.ph42.preheader
  %unroll_iter = and i64 %22, -2
  br label %.lr.ph42

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %24 = load float, ptr %2, align 4, !tbaa !5
  %25 = trunc nuw nsw i64 %indvars.iv to i32
  %26 = uitofp nneg i32 %25 to float
  %27 = call float @llvm.fmuladd.f32(float %26, float %14, float %24)
  %28 = call float @function(float noundef %27)
  %29 = getelementptr inbounds [20 x float], ptr %4, i64 0, i64 %indvars.iv
  store float %28, ptr %29, align 4, !tbaa !5
  %30 = fpext float %27 to double
  %31 = fpext float %28 to double
  %32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, double noundef %30, double noundef %31)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %indvars = trunc i64 %indvars.iv.next to i32
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.8, i32 noundef %indvars, i32 noundef %25, double noundef %30, i32 noundef %25, double noundef %31) #4
  %34 = load i32, ptr %1, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  %.not.not = icmp slt i64 %indvars.iv, %35
  br i1 %.not.not, label %.lr.ph, label %.preheader, !llvm.loop !11

.lr.ph42:                                         ; preds = %.lr.ph42, %.lr.ph42.preheader.new
  %indvars.iv47 = phi i64 [ 1, %.lr.ph42.preheader.new ], [ %indvars.iv.next48.1, %.lr.ph42 ]
  %.03140 = phi float [ 0.000000e+00, %.lr.ph42.preheader.new ], [ %41, %.lr.ph42 ]
  %.03339 = phi float [ 0.000000e+00, %.lr.ph42.preheader.new ], [ %38, %.lr.ph42 ]
  %niter = phi i64 [ 0, %.lr.ph42.preheader.new ], [ %niter.next.1, %.lr.ph42 ]
  %36 = getelementptr inbounds [20 x float], ptr %4, i64 0, i64 %indvars.iv47
  %37 = load float, ptr %36, align 4, !tbaa !5
  %38 = fadd float %.03339, %37
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %39 = getelementptr inbounds [20 x float], ptr %4, i64 0, i64 %indvars.iv.next48
  %40 = load float, ptr %39, align 4, !tbaa !5
  %41 = fadd float %.03140, %40
  %indvars.iv.next48.1 = add nuw nsw i64 %indvars.iv47, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph42, !llvm.loop !13

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph42, %.lr.ph42.preheader
  %.134.lcssa.ph = phi float [ poison, %.lr.ph42.preheader ], [ %38, %.lr.ph42 ]
  %.132.lcssa.ph = phi float [ poison, %.lr.ph42.preheader ], [ %41, %.lr.ph42 ]
  %indvars.iv47.unr = phi i64 [ 1, %.lr.ph42.preheader ], [ %indvars.iv.next48.1, %.lr.ph42 ]
  %.03140.unr = phi float [ 0.000000e+00, %.lr.ph42.preheader ], [ %41, %.lr.ph42 ]
  %.03339.unr = phi float [ 0.000000e+00, %.lr.ph42.preheader ], [ %38, %.lr.ph42 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph42.epil

.lr.ph42.epil:                                    ; preds = %._crit_edge.loopexit.unr-lcssa
  %42 = and i64 %indvars.iv47.unr, 1
  %.not36.epil = icmp eq i64 %42, 0
  %43 = getelementptr inbounds [20 x float], ptr %4, i64 0, i64 %indvars.iv47.unr
  %44 = load float, ptr %43, align 4, !tbaa !5
  %45 = fadd float %.03339.unr, %44
  %46 = fadd float %.03140.unr, %44
  %.134.epil = select i1 %.not36.epil, float %.03339.unr, float %45
  %.132.epil = select i1 %.not36.epil, float %46, float %.03140.unr
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph42.epil, %._crit_edge.loopexit.unr-lcssa, %0, %.preheader
  %.lcssa52 = phi i32 [ %34, %.preheader ], [ %20, %0 ], [ %34, %._crit_edge.loopexit.unr-lcssa ], [ %34, %.lr.ph42.epil ]
  %.033.lcssa = phi float [ 0.000000e+00, %.preheader ], [ 0.000000e+00, %0 ], [ %.134.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %.134.epil, %.lr.ph42.epil ]
  %.031.lcssa = phi float [ 0.000000e+00, %.preheader ], [ 0.000000e+00, %0 ], [ %.132.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %.132.epil, %.lr.ph42.epil ]
  %47 = fdiv float %14, 3.000000e+00
  %48 = load float, ptr %4, align 16, !tbaa !5
  %49 = sext i32 %.lcssa52 to i64
  %50 = getelementptr inbounds [20 x float], ptr %4, i64 0, i64 %49
  %51 = load float, ptr %50, align 4, !tbaa !5
  %52 = fadd float %48, %51
  %53 = call float @llvm.fmuladd.f32(float %.033.lcssa, float 4.000000e+00, float %52)
  %54 = call float @llvm.fmuladd.f32(float %.031.lcssa, float 2.000000e+00, float %53)
  %55 = fmul float %47, %54
  %56 = fpext float %55 to double
  %57 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, double noundef %56)
  %58 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %59 = load i32, ptr %1, align 4, !tbaa !9
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.11, i32 noundef %59, double noundef %56) #4
  %61 = call i32 @fclose(ptr noundef %5)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  ret i32 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: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


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