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

; 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 [30 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [55 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [100 x double], align 16
  %3 = alloca [100 x double], align 16
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 800, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 800, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store double 1.000000e+00, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store double 1.000000e+00, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store double 0.000000e+00, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 1, ptr %11, align 4, !tbaa !9
  %12 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %8)
  %14 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %15

15:                                               ; preds = %28, %0
  %16 = load i32, ptr %9, align 4, !tbaa !9
  %17 = load i32, ptr %8, align 4, !tbaa !9
  %18 = icmp slt i32 %16, %17
  br i1 %18, label %19, label %31

19:                                               ; preds = %15
  %20 = load i32, ptr %9, align 4, !tbaa !9
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [100 x double], ptr %2, i64 0, i64 %21
  %23 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef %22)
  %24 = load i32, ptr %9, align 4, !tbaa !9
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [100 x double], ptr %3, i64 0, i64 %25
  %27 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef %26)
  br label %28

28:                                               ; preds = %19
  %29 = load i32, ptr %9, align 4, !tbaa !9
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %9, align 4, !tbaa !9
  br label %15, !llvm.loop !11

31:                                               ; preds = %15
  %32 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %48, %31
  %34 = load i32, ptr %9, align 4, !tbaa !9
  %35 = load i32, ptr %8, align 4, !tbaa !9
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %37, label %51

37:                                               ; preds = %33
  %38 = load i32, ptr %9, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [100 x double], ptr %2, i64 0, i64 %39
  %41 = load double, ptr %40, align 8, !tbaa !5
  %42 = load i32, ptr %9, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [100 x double], ptr %3, i64 0, i64 %43
  %45 = load double, ptr %44, align 8, !tbaa !5
  %46 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %41, double noundef %45)
  %47 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %48

48:                                               ; preds = %37
  %49 = load i32, ptr %9, align 4, !tbaa !9
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %9, align 4, !tbaa !9
  br label %33, !llvm.loop !13

51:                                               ; preds = %33
  %52 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %53 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef %4)
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %101, %51
  %55 = load i32, ptr %9, align 4, !tbaa !9
  %56 = load i32, ptr %8, align 4, !tbaa !9
  %57 = icmp slt i32 %55, %56
  br i1 %57, label %58, label %104

58:                                               ; preds = %54
  store double 1.000000e+00, ptr %5, align 8, !tbaa !5
  store double 1.000000e+00, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %88, %58
  %60 = load i32, ptr %10, align 4, !tbaa !9
  %61 = load i32, ptr %8, align 4, !tbaa !9
  %62 = icmp slt i32 %60, %61
  br i1 %62, label %63, label %91

63:                                               ; preds = %59
  %64 = load i32, ptr %10, align 4, !tbaa !9
  %65 = load i32, ptr %9, align 4, !tbaa !9
  %66 = icmp ne i32 %64, %65
  br i1 %66, label %67, label %87

67:                                               ; preds = %63
  %68 = load double, ptr %5, align 8, !tbaa !5
  %69 = load double, ptr %4, align 8, !tbaa !5
  %70 = load i32, ptr %10, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [100 x double], ptr %2, i64 0, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !5
  %74 = fsub double %69, %73
  %75 = fmul double %68, %74
  store double %75, ptr %5, align 8, !tbaa !5
  %76 = load double, ptr %6, align 8, !tbaa !5
  %77 = load i32, ptr %9, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [100 x double], ptr %2, i64 0, i64 %78
  %80 = load double, ptr %79, align 8, !tbaa !5
  %81 = load i32, ptr %10, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [100 x double], ptr %2, i64 0, i64 %82
  %84 = load double, ptr %83, align 8, !tbaa !5
  %85 = fsub double %80, %84
  %86 = fmul double %76, %85
  store double %86, ptr %6, align 8, !tbaa !5
  br label %87

87:                                               ; preds = %67, %63
  br label %88

88:                                               ; preds = %87
  %89 = load i32, ptr %10, align 4, !tbaa !9
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %10, align 4, !tbaa !9
  br label %59, !llvm.loop !14

91:                                               ; preds = %59
  %92 = load double, ptr %7, align 8, !tbaa !5
  %93 = load double, ptr %5, align 8, !tbaa !5
  %94 = load double, ptr %6, align 8, !tbaa !5
  %95 = fdiv double %93, %94
  %96 = load i32, ptr %9, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [100 x double], ptr %3, i64 0, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !5
  %100 = call double @llvm.fmuladd.f64(double %95, double %99, double %92)
  store double %100, ptr %7, align 8, !tbaa !5
  br label %101

101:                                              ; preds = %91
  %102 = load i32, ptr %9, align 4, !tbaa !9
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %9, align 4, !tbaa !9
  br label %54, !llvm.loop !15

104:                                              ; preds = %54
  %105 = load double, ptr %7, align 8, !tbaa !5
  %106 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %105)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 800, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 800, ptr %2) #4
  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 i32 @printf(ptr noundef, ...) #2

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

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

; 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 = { 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 = !{!"double", !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}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


; 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 [30 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [55 x i8], align 1

; Function Attrs: nofree nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [100 x double], align 16
  %2 = alloca [100 x double], align 16
  %3 = alloca double, align 8
  %4 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 800, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 800, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  %5 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %4)
  %7 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %8 = load i32, ptr %4, align 4, !tbaa !5
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %10 = getelementptr inbounds [100 x double], ptr %1, i64 0, i64 %indvars.iv
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull %10)
  %12 = getelementptr inbounds [100 x double], ptr %2, i64 0, i64 %indvars.iv
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull %12)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %14 = load i32, ptr %4, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = icmp slt i64 %indvars.iv.next, %15
  br i1 %16, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph, %0
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.lr.ph32, label %._crit_edge33

.lr.ph32:                                         ; preds = %._crit_edge, %.lr.ph32
  %indvars.iv45 = phi i64 [ %indvars.iv.next46, %.lr.ph32 ], [ 0, %._crit_edge ]
  %20 = getelementptr inbounds [100 x double], ptr %1, i64 0, i64 %indvars.iv45
  %21 = load double, ptr %20, align 8, !tbaa !11
  %22 = getelementptr inbounds [100 x double], ptr %2, i64 0, i64 %indvars.iv45
  %23 = load double, ptr %22, align 8, !tbaa !11
  %24 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, double noundef %21, double noundef %23)
  %25 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %indvars.iv.next46 = add nuw nsw i64 %indvars.iv45, 1
  %26 = load i32, ptr %4, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = icmp slt i64 %indvars.iv.next46, %27
  br i1 %28, label %.lr.ph32, label %._crit_edge33, !llvm.loop !13

._crit_edge33:                                    ; preds = %.lr.ph32, %._crit_edge
  %29 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %30 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull %3)
  %31 = load i32, ptr %4, align 4, !tbaa !5
  %32 = icmp sgt i32 %31, 0
  br i1 %32, label %.preheader.lr.ph, label %._crit_edge42

.preheader.lr.ph:                                 ; preds = %._crit_edge33
  %33 = load double, ptr %3, align 8
  %wide.trip.count54 = zext nneg i32 %31 to i64
  %xtraiter = and i64 %wide.trip.count54, 1
  %34 = icmp eq i32 %31, 1
  %unroll_iter = and i64 %wide.trip.count54, 2147483646
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %._crit_edge38.us, %.preheader.lr.ph
  %indvars.iv51 = phi i64 [ %indvars.iv.next52, %._crit_edge38.us ], [ 0, %.preheader.lr.ph ]
  %.02640.us = phi double [ %76, %._crit_edge38.us ], [ 0.000000e+00, %.preheader.lr.ph ]
  %35 = getelementptr inbounds [100 x double], ptr %1, i64 0, i64 %indvars.iv51
  br i1 %34, label %._crit_edge38.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %59
  %indvars.iv48 = phi i64 [ %indvars.iv.next49.1, %59 ], [ 0, %.preheader.us ]
  %36 = phi <2 x double> [ %60, %59 ], [ <double 1.000000e+00, double 1.000000e+00>, %.preheader.us ]
  %niter = phi i64 [ %niter.next.1, %59 ], [ 0, %.preheader.us ]
  %.not.us = icmp eq i64 %indvars.iv48, %indvars.iv51
  br i1 %.not.us, label %47, label %37

37:                                               ; preds = %.preheader.us.new
  %38 = getelementptr inbounds [100 x double], ptr %1, i64 0, i64 %indvars.iv48
  %39 = load double, ptr %38, align 16, !tbaa !11
  %40 = load double, ptr %35, align 8, !tbaa !11
  %41 = insertelement <2 x double> poison, double %40, i64 0
  %42 = insertelement <2 x double> %41, double %33, i64 1
  %43 = insertelement <2 x double> poison, double %39, i64 0
  %44 = shufflevector <2 x double> %43, <2 x double> poison, <2 x i32> zeroinitializer
  %45 = fsub <2 x double> %42, %44
  %46 = fmul <2 x double> %36, %45
  br label %47

47:                                               ; preds = %37, %.preheader.us.new
  %48 = phi <2 x double> [ %46, %37 ], [ %36, %.preheader.us.new ]
  %indvars.iv.next49 = or disjoint i64 %indvars.iv48, 1
  %.not.us.1 = icmp eq i64 %indvars.iv.next49, %indvars.iv51
  br i1 %.not.us.1, label %59, label %49

49:                                               ; preds = %47
  %50 = getelementptr inbounds [100 x double], ptr %1, i64 0, i64 %indvars.iv.next49
  %51 = load double, ptr %50, align 8, !tbaa !11
  %52 = load double, ptr %35, align 8, !tbaa !11
  %53 = insertelement <2 x double> poison, double %52, i64 0
  %54 = insertelement <2 x double> %53, double %33, i64 1
  %55 = insertelement <2 x double> poison, double %51, i64 0
  %56 = shufflevector <2 x double> %55, <2 x double> poison, <2 x i32> zeroinitializer
  %57 = fsub <2 x double> %54, %56
  %58 = fmul <2 x double> %48, %57
  br label %59

59:                                               ; preds = %49, %47
  %60 = phi <2 x double> [ %58, %49 ], [ %48, %47 ]
  %indvars.iv.next49.1 = add nuw nsw i64 %indvars.iv48, 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_edge38.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !14

._crit_edge38.us.unr-lcssa:                       ; preds = %59, %.preheader.us
  %.lcssa.ph = phi <2 x double> [ poison, %.preheader.us ], [ %60, %59 ]
  %indvars.iv48.unr = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next49.1, %59 ]
  %.unr = phi <2 x double> [ <double 1.000000e+00, double 1.000000e+00>, %.preheader.us ], [ %60, %59 ]
  br i1 %lcmp.mod.not, label %._crit_edge38.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge38.us.unr-lcssa
  %.not.us.epil = icmp eq i64 %indvars.iv48.unr, %indvars.iv51
  br i1 %.not.us.epil, label %._crit_edge38.us, label %61

61:                                               ; preds = %.epil.preheader
  %62 = getelementptr inbounds [100 x double], ptr %1, i64 0, i64 %indvars.iv48.unr
  %63 = load double, ptr %62, align 8, !tbaa !11
  %64 = load double, ptr %35, align 8, !tbaa !11
  %65 = insertelement <2 x double> poison, double %64, i64 0
  %66 = insertelement <2 x double> %65, double %33, i64 1
  %67 = insertelement <2 x double> poison, double %63, i64 0
  %68 = shufflevector <2 x double> %67, <2 x double> poison, <2 x i32> zeroinitializer
  %69 = fsub <2 x double> %66, %68
  %70 = fmul <2 x double> %.unr, %69
  br label %._crit_edge38.us

._crit_edge38.us:                                 ; preds = %.epil.preheader, %61, %._crit_edge38.us.unr-lcssa
  %.lcssa = phi <2 x double> [ %.lcssa.ph, %._crit_edge38.us.unr-lcssa ], [ %70, %61 ], [ %.unr, %.epil.preheader ]
  %71 = extractelement <2 x double> %.lcssa, i64 0
  %72 = extractelement <2 x double> %.lcssa, i64 1
  %73 = fdiv double %72, %71
  %74 = getelementptr inbounds [100 x double], ptr %2, i64 0, i64 %indvars.iv51
  %75 = load double, ptr %74, align 8, !tbaa !11
  %76 = call double @llvm.fmuladd.f64(double %73, double %75, double %.02640.us)
  %indvars.iv.next52 = add nuw nsw i64 %indvars.iv51, 1
  %exitcond55.not = icmp eq i64 %indvars.iv.next52, %wide.trip.count54
  br i1 %exitcond55.not, label %._crit_edge42, label %.preheader.us, !llvm.loop !15

._crit_edge42:                                    ; preds = %._crit_edge38.us, %._crit_edge33
  %.026.lcssa = phi double [ 0.000000e+00, %._crit_edge33 ], [ %76, %._crit_edge38.us ]
  %77 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, double noundef %.026.lcssa)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 800, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 800, 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 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 double @llvm.fmuladd.f64(double, double, double) #3

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

attributes #0 = { nofree 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/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}


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