; LLVM IR from bondhugula/pluto :: examples/strmm (strmm)

; 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"

@b = external dso_local global [2000 x [2000 x double]], align 16
@a = external dso_local global [2000 x [2000 x double]], align 16
@stdout = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local double @rtclock() #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 speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, 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 8, 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
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %7

7:                                                ; preds = %40, %0
  %8 = load i32, ptr %4, align 4, !tbaa !5
  %9 = icmp slt i32 %8, 2000
  br i1 %9, label %10, label %43

10:                                               ; preds = %7
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %11

11:                                               ; preds = %36, %10
  %12 = load i32, ptr %5, align 4, !tbaa !5
  %13 = icmp slt i32 %12, 2000
  br i1 %13, label %14, label %39

14:                                               ; preds = %11
  %15 = load i32, ptr %4, align 4, !tbaa !5
  %16 = load i32, ptr %5, align 4, !tbaa !5
  %17 = add nsw i32 %15, %16
  %18 = sitofp i32 %17 to double
  %19 = load i32, ptr %4, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [2000 x [2000 x double]], ptr @b, i64 0, i64 %20
  %22 = load i32, ptr %5, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [2000 x double], ptr %21, i64 0, i64 %23
  store double %18, ptr %24, align 8, !tbaa !9
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = load i32, ptr %5, align 4, !tbaa !5
  %27 = mul nsw i32 %25, %26
  %28 = sitofp i32 %27 to double
  %29 = fmul double %28, 5.000000e-01
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [2000 x [2000 x double]], ptr @a, i64 0, i64 %31
  %33 = load i32, ptr %5, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [2000 x double], ptr %32, i64 0, i64 %34
  store double %29, ptr %35, align 8, !tbaa !9
  br label %36

36:                                               ; preds = %14
  %37 = load i32, ptr %5, align 4, !tbaa !5
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %5, align 4, !tbaa !5
  br label %11, !llvm.loop !11

39:                                               ; preds = %11
  br label %40

40:                                               ; preds = %39
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %4, align 4, !tbaa !5
  br label %7, !llvm.loop !13

43:                                               ; preds = %7
  %44 = call double @rtclock()
  store double %44, ptr %2, align 8, !tbaa !9
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %88, %43
  %46 = load i32, ptr %4, align 4, !tbaa !5
  %47 = icmp slt i32 %46, 2000
  br i1 %47, label %48, label %91

48:                                               ; preds = %45
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %84, %48
  %50 = load i32, ptr %5, align 4, !tbaa !5
  %51 = icmp slt i32 %50, 2000
  br i1 %51, label %52, label %87

52:                                               ; preds = %49
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %80, %52
  %54 = load i32, ptr %6, align 4, !tbaa !5
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = icmp slt i32 %54, %55
  br i1 %56, label %57, label %83

57:                                               ; preds = %53
  %58 = load i32, ptr %4, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [2000 x [2000 x double]], ptr @a, i64 0, i64 %59
  %61 = load i32, ptr %6, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [2000 x double], ptr %60, i64 0, i64 %62
  %64 = load double, ptr %63, align 8, !tbaa !9
  %65 = load i32, ptr %5, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [2000 x [2000 x double]], ptr @b, i64 0, i64 %66
  %68 = load i32, ptr %4, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [2000 x double], ptr %67, i64 0, i64 %69
  %71 = load double, ptr %70, align 8, !tbaa !9
  %72 = load i32, ptr %5, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [2000 x [2000 x double]], ptr @b, i64 0, i64 %73
  %75 = load i32, ptr %6, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [2000 x double], ptr %74, i64 0, i64 %76
  %78 = load double, ptr %77, align 8, !tbaa !9
  %79 = call double @llvm.fmuladd.f64(double %64, double %71, double %78)
  store double %79, ptr %77, align 8, !tbaa !9
  br label %80

80:                                               ; preds = %57
  %81 = load i32, ptr %6, align 4, !tbaa !5
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %6, align 4, !tbaa !5
  br label %53, !llvm.loop !14

83:                                               ; preds = %53
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr %5, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %5, align 4, !tbaa !5
  br label %49, !llvm.loop !15

87:                                               ; preds = %49
  br label %88

88:                                               ; preds = %87
  %89 = load i32, ptr %4, align 4, !tbaa !5
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %4, align 4, !tbaa !5
  br label %45, !llvm.loop !16

91:                                               ; preds = %45
  %92 = call double @rtclock()
  store double %92, ptr %3, align 8, !tbaa !9
  %93 = load ptr, ptr @stdout, align 8, !tbaa !17
  %94 = load double, ptr %3, align 8, !tbaa !9
  %95 = load double, ptr %2, align 8, !tbaa !9
  %96 = fsub double %94, %95
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str.1, double noundef %96) #5
  %98 = call noalias ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
  %99 = icmp ne ptr %98, null
  br i1 %99, label %100, label %128

100:                                              ; preds = %91
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %101

101:                                              ; preds = %122, %100
  %102 = load i32, ptr %4, align 4, !tbaa !5
  %103 = icmp slt i32 %102, 2000
  br i1 %103, label %104, label %125

104:                                              ; preds = %101
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %105

105:                                              ; preds = %118, %104
  %106 = load i32, ptr %5, align 4, !tbaa !5
  %107 = icmp slt i32 %106, 2000
  br i1 %107, label %108, label %121

108:                                              ; preds = %105
  %109 = load ptr, ptr @stderr, align 8, !tbaa !17
  %110 = load i32, ptr %4, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [2000 x [2000 x double]], ptr @b, i64 0, i64 %111
  %113 = load i32, ptr %5, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [2000 x double], ptr %112, i64 0, i64 %114
  %116 = load double, ptr %115, align 8, !tbaa !9
  %117 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef @.str.4, double noundef %116) #5
  br label %118

118:                                              ; preds = %108
  %119 = load i32, ptr %5, align 4, !tbaa !5
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %5, align 4, !tbaa !5
  br label %105, !llvm.loop !19

121:                                              ; preds = %105
  br label %122

122:                                              ; preds = %121
  %123 = load i32, ptr %4, align 4, !tbaa !5
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %4, align 4, !tbaa !5
  br label %101, !llvm.loop !20

125:                                              ; preds = %101
  %126 = load ptr, ptr @stderr, align 8, !tbaa !17
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef @.str.5) #5
  br label %128

128:                                              ; preds = %125, %91
  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 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  ret i32 0
}

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

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

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { "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 #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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = !{!18, !18, i64 0}
!18 = !{!"any pointer", !7, i64 0}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !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"

@b = external dso_local local_unnamed_addr global [2000 x [2000 x double]], align 16
@a = external dso_local local_unnamed_addr global [2000 x [2000 x double]], align 16
@stdout = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local double @rtclock() local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  br label %.preheader39

.preheader39:                                     ; preds = %0, %20
  %indvars.iv48 = phi i64 [ 0, %0 ], [ %indvars.iv.next49, %20 ]
  br label %1

1:                                                ; preds = %1, %.preheader39
  %indvars.iv = phi i64 [ 0, %.preheader39 ], [ %indvars.iv.next.1, %1 ]
  %2 = add nuw nsw i64 %indvars.iv, %indvars.iv48
  %3 = trunc nuw nsw i64 %2 to i32
  %4 = uitofp nneg i32 %3 to double
  %5 = getelementptr inbounds [2000 x [2000 x double]], ptr @b, i64 0, i64 %indvars.iv48, i64 %indvars.iv
  store double %4, ptr %5, align 16, !tbaa !5
  %6 = mul nuw nsw i64 %indvars.iv, %indvars.iv48
  %7 = trunc nuw nsw i64 %6 to i32
  %8 = uitofp nneg i32 %7 to double
  %9 = fmul double %8, 5.000000e-01
  %10 = getelementptr inbounds [2000 x [2000 x double]], ptr @a, i64 0, i64 %indvars.iv48, i64 %indvars.iv
  store double %9, ptr %10, align 16, !tbaa !5
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %11 = add nuw nsw i64 %indvars.iv.next, %indvars.iv48
  %12 = trunc nuw nsw i64 %11 to i32
  %13 = uitofp nneg i32 %12 to double
  %14 = getelementptr inbounds [2000 x [2000 x double]], ptr @b, i64 0, i64 %indvars.iv48, i64 %indvars.iv.next
  store double %13, ptr %14, align 8, !tbaa !5
  %15 = mul nuw nsw i64 %indvars.iv.next, %indvars.iv48
  %16 = trunc nuw nsw i64 %15 to i32
  %17 = uitofp nneg i32 %16 to double
  %18 = fmul double %17, 5.000000e-01
  %19 = getelementptr inbounds [2000 x [2000 x double]], ptr @a, i64 0, i64 %indvars.iv48, i64 %indvars.iv.next
  store double %18, ptr %19, align 8, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, 2000
  br i1 %exitcond.not.1, label %20, label %1, !llvm.loop !9

20:                                               ; preds = %1
  %indvars.iv.next49 = add nuw nsw i64 %indvars.iv48, 1
  %exitcond51.not = icmp eq i64 %indvars.iv.next49, 2000
  br i1 %exitcond51.not, label %21, label %.preheader39, !llvm.loop !11

21:                                               ; preds = %20
  %22 = tail call double @rtclock()
  br label %.preheader38

.preheader38:                                     ; preds = %21, %38
  %indvars.iv60 = phi i64 [ 1, %21 ], [ %indvars.iv.next61, %38 ]
  %min.iters.check = icmp ult i64 %indvars.iv60, 4
  %n.vec = and i64 %indvars.iv60, 9223372036854775804
  %cmp.n = icmp eq i64 %indvars.iv60, %n.vec
  br label %.preheader37

.preheader37:                                     ; preds = %.preheader38, %.loopexit
  %indvars.iv56 = phi i64 [ 0, %.preheader38 ], [ %indvars.iv.next57, %.loopexit ]
  %23 = getelementptr inbounds [2000 x [2000 x double]], ptr @b, i64 0, i64 %indvars.iv56, i64 %indvars.iv60
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %.preheader37, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.preheader37 ]
  %24 = getelementptr inbounds [2000 x [2000 x double]], ptr @a, i64 0, i64 %indvars.iv60, i64 %index
  %25 = getelementptr inbounds i8, ptr %24, i64 16
  %wide.load = load <2 x double>, ptr %24, align 16, !tbaa !5
  %wide.load72 = load <2 x double>, ptr %25, align 16, !tbaa !5
  %26 = load double, ptr %23, align 8, !tbaa !5
  %broadcast.splatinsert75 = insertelement <2 x double> poison, double %26, i64 0
  %broadcast.splat76 = shufflevector <2 x double> %broadcast.splatinsert75, <2 x double> poison, <2 x i32> zeroinitializer
  %27 = getelementptr inbounds [2000 x [2000 x double]], ptr @b, i64 0, i64 %indvars.iv56, i64 %index
  %28 = getelementptr inbounds i8, ptr %27, i64 16
  %wide.load73 = load <2 x double>, ptr %27, align 16, !tbaa !5
  %wide.load74 = load <2 x double>, ptr %28, align 16, !tbaa !5
  %29 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load, <2 x double> %broadcast.splat76, <2 x double> %wide.load73)
  %30 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load72, <2 x double> %broadcast.splat76, <2 x double> %wide.load74)
  store <2 x double> %29, ptr %27, align 16, !tbaa !5
  store <2 x double> %30, ptr %28, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %31 = icmp eq i64 %index.next, %n.vec
  br i1 %31, label %middle.block, label %vector.body, !llvm.loop !12

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %.loopexit, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader37
  %indvars.iv52.ph = phi i64 [ 0, %.preheader37 ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv52 = phi i64 [ %indvars.iv.next53, %scalar.ph ], [ %indvars.iv52.ph, %scalar.ph.preheader ]
  %32 = getelementptr inbounds [2000 x [2000 x double]], ptr @a, i64 0, i64 %indvars.iv60, i64 %indvars.iv52
  %33 = load double, ptr %32, align 8, !tbaa !5
  %34 = load double, ptr %23, align 8, !tbaa !5
  %35 = getelementptr inbounds [2000 x [2000 x double]], ptr @b, i64 0, i64 %indvars.iv56, i64 %indvars.iv52
  %36 = load double, ptr %35, align 8, !tbaa !5
  %37 = tail call double @llvm.fmuladd.f64(double %33, double %34, double %36)
  store double %37, ptr %35, align 8, !tbaa !5
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %exitcond55.not = icmp eq i64 %indvars.iv.next53, %indvars.iv60
  br i1 %exitcond55.not, label %.loopexit, label %scalar.ph, !llvm.loop !15

.loopexit:                                        ; preds = %scalar.ph, %middle.block
  %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
  %exitcond59.not = icmp eq i64 %indvars.iv.next57, 2000
  br i1 %exitcond59.not, label %38, label %.preheader37, !llvm.loop !16

38:                                               ; preds = %.loopexit
  %indvars.iv.next61 = add nuw nsw i64 %indvars.iv60, 1
  %exitcond63.not = icmp eq i64 %indvars.iv.next61, 2000
  br i1 %exitcond63.not, label %39, label %.preheader38, !llvm.loop !17

39:                                               ; preds = %38
  %40 = tail call double @rtclock()
  %41 = load ptr, ptr @stdout, align 8, !tbaa !18
  %42 = fsub double %40, %22
  %43 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef nonnull @.str.1, double noundef %42) #4
  %44 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3)
  %.not = icmp eq ptr %44, null
  br i1 %.not, label %54, label %.preheader

.preheader:                                       ; preds = %39, %50
  %indvars.iv68 = phi i64 [ %indvars.iv.next69, %50 ], [ 0, %39 ]
  br label %45

45:                                               ; preds = %.preheader, %45
  %indvars.iv64 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next65, %45 ]
  %46 = load ptr, ptr @stderr, align 8, !tbaa !18
  %47 = getelementptr inbounds [2000 x [2000 x double]], ptr @b, i64 0, i64 %indvars.iv68, i64 %indvars.iv64
  %48 = load double, ptr %47, align 8, !tbaa !5
  %49 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.4, double noundef %48) #5
  %indvars.iv.next65 = add nuw nsw i64 %indvars.iv64, 1
  %exitcond67.not = icmp eq i64 %indvars.iv.next65, 2000
  br i1 %exitcond67.not, label %50, label %45, !llvm.loop !20

50:                                               ; preds = %45
  %indvars.iv.next69 = add nuw nsw i64 %indvars.iv68, 1
  %exitcond71.not = icmp eq i64 %indvars.iv.next69, 2000
  br i1 %exitcond71.not, label %51, label %.preheader, !llvm.loop !21

51:                                               ; preds = %50
  %52 = load ptr, ptr @stderr, align 8, !tbaa !18
  %53 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef nonnull @.str.5) #5
  br label %54

54:                                               ; preds = %51, %39
  ret i32 0
}

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #3

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 speculatable willreturn memory(none) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
attributes #5 = { cold 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10, !13, !14}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !10, !14, !13}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = !{!19, !19, i64 0}
!19 = !{!"any pointer", !7, i64 0}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}


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