; LLVM IR from ROCm/aomp :: test/omp5/rush_larsen (rush_larsen_openmp)

; 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.1 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@__const.main.Mhu_a = external hidden unnamed_addr constant [15 x double], align 16
@__const.main.Tau_a = external hidden unnamed_addr constant [19 x double], align 16
@.str.3 = external hidden unnamed_addr constant [41 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z12secs_elapsedv() #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: mustprogress uwtable
declare dso_local void @_Z16printf_timestampPKcz(ptr noundef, ...) #3

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #4 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca [15 x double], align 16
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca double, align 8
  %23 = alloca i32, align 4
  %24 = alloca [19 x double], align 16
  %25 = alloca i32, align 4
  %26 = alloca double, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 1000000, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %27 = call noalias ptr @calloc(i64 noundef 1000000, i64 noundef 8) #9
  store ptr %27, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %28 = call noalias ptr @calloc(i64 noundef 1000000, i64 noundef 8) #9
  store ptr %28, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  call void (ptr, ...) @_Z16printf_timestampPKcz(ptr noundef @.str.1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %132, %2
  %30 = load i32, ptr %10, align 4, !tbaa !5
  %31 = icmp slt i32 %30, 10000
  br i1 %31, label %33, label %32

32:                                               ; preds = %29
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %135

33:                                               ; preds = %29
  %34 = load i32, ptr %10, align 4, !tbaa !5
  %35 = icmp eq i32 %34, 1
  br i1 %35, label %40, label %36

36:                                               ; preds = %33
  %37 = load i32, ptr %10, align 4, !tbaa !5
  %38 = srem i32 %37, 1000
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %42

40:                                               ; preds = %36, %33
  %41 = load i32, ptr %10, align 4, !tbaa !5
  call void (ptr, ...) @_Z16printf_timestampPKcz(ptr noundef @.str.2, i32 noundef %41)
  br label %42

42:                                               ; preds = %40, %36
  %43 = load i32, ptr %10, align 4, !tbaa !5
  %44 = icmp eq i32 %43, 1
  br i1 %44, label %45, label %47

45:                                               ; preds = %42
  %46 = call noundef double @_Z12secs_elapsedv()
  store double %46, ptr %9, align 8, !tbaa !11
  br label %47

47:                                               ; preds = %45, %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %128, %47
  %49 = load i32, ptr %12, align 4, !tbaa !5
  %50 = icmp slt i32 %49, 1000000
  br i1 %50, label %52, label %51

51:                                               ; preds = %48
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %131

52:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %53 = load ptr, ptr %8, align 8, !tbaa !9
  %54 = load i32, ptr %12, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds double, ptr %53, i64 %55
  %57 = load double, ptr %56, align 8, !tbaa !11
  store double %57, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 10, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 5, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 120, ptr %18) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %18, ptr align 16 @__const.main.Mhu_a, i64 120, i1 false)
  store double 0.000000e+00, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 4, ptr %19, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %70, %52
  %59 = load i32, ptr %19, align 4, !tbaa !5
  %60 = icmp sge i32 %59, 0
  br i1 %60, label %62, label %61

61:                                               ; preds = %58
  store i32 8, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %73

62:                                               ; preds = %58
  %63 = load i32, ptr %19, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [15 x double], ptr %18, i64 0, i64 %64
  %66 = load double, ptr %65, align 8, !tbaa !11
  %67 = load double, ptr %15, align 8, !tbaa !11
  %68 = load double, ptr %13, align 8, !tbaa !11
  %69 = call double @llvm.fmuladd.f64(double %67, double %68, double %66)
  store double %69, ptr %13, align 8, !tbaa !11
  br label %70

70:                                               ; preds = %62
  %71 = load i32, ptr %19, align 4, !tbaa !5
  %72 = add nsw i32 %71, -1
  store i32 %72, ptr %19, align 4, !tbaa !5
  br label %58, !llvm.loop !13

73:                                               ; preds = %61
  store double 0.000000e+00, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 14, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %74 = load i32, ptr %20, align 4, !tbaa !5
  store i32 %74, ptr %21, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %87, %73
  %76 = load i32, ptr %21, align 4, !tbaa !5
  %77 = icmp sge i32 %76, 5
  br i1 %77, label %79, label %78

78:                                               ; preds = %75
  store i32 11, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %90

79:                                               ; preds = %75
  %80 = load i32, ptr %21, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [15 x double], ptr %18, i64 0, i64 %81
  %83 = load double, ptr %82, align 8, !tbaa !11
  %84 = load double, ptr %15, align 8, !tbaa !11
  %85 = load double, ptr %14, align 8, !tbaa !11
  %86 = call double @llvm.fmuladd.f64(double %84, double %85, double %83)
  store double %86, ptr %14, align 8, !tbaa !11
  br label %87

87:                                               ; preds = %79
  %88 = load i32, ptr %21, align 4, !tbaa !5
  %89 = add nsw i32 %88, -1
  store i32 %89, ptr %21, align 4, !tbaa !5
  br label %75, !llvm.loop !15

90:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %91 = load double, ptr %13, align 8, !tbaa !11
  %92 = load double, ptr %14, align 8, !tbaa !11
  %93 = fdiv double %91, %92
  store double %93, ptr %22, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  store i32 18, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 152, ptr %24) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 @__const.main.Tau_a, i64 152, i1 false)
  store double 0.000000e+00, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 17, ptr %25, align 4, !tbaa !5
  br label %94

94:                                               ; preds = %106, %90
  %95 = load i32, ptr %25, align 4, !tbaa !5
  %96 = icmp sge i32 %95, 0
  br i1 %96, label %98, label %97

97:                                               ; preds = %94
  store i32 14, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %109

98:                                               ; preds = %94
  %99 = load i32, ptr %25, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [19 x double], ptr %24, i64 0, i64 %100
  %102 = load double, ptr %101, align 8, !tbaa !11
  %103 = load double, ptr %15, align 8, !tbaa !11
  %104 = load double, ptr %13, align 8, !tbaa !11
  %105 = call double @llvm.fmuladd.f64(double %103, double %104, double %102)
  store double %105, ptr %13, align 8, !tbaa !11
  br label %106

106:                                              ; preds = %98
  %107 = load i32, ptr %25, align 4, !tbaa !5
  %108 = add nsw i32 %107, -1
  store i32 %108, ptr %25, align 4, !tbaa !5
  br label %94, !llvm.loop !16

109:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %110 = load double, ptr %13, align 8, !tbaa !11
  store double %110, ptr %26, align 8, !tbaa !11
  %111 = load double, ptr %22, align 8, !tbaa !11
  %112 = load ptr, ptr %7, align 8, !tbaa !9
  %113 = load i32, ptr %12, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds double, ptr %112, i64 %114
  %116 = load double, ptr %115, align 8, !tbaa !11
  %117 = fsub double %111, %116
  %118 = load double, ptr %26, align 8, !tbaa !11
  %119 = fneg double %118
  %120 = call double @exp(double noundef %119) #8
  %121 = fsub double 1.000000e+00, %120
  %122 = load ptr, ptr %7, align 8, !tbaa !9
  %123 = load i32, ptr %12, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds double, ptr %122, i64 %124
  %126 = load double, ptr %125, align 8, !tbaa !11
  %127 = call double @llvm.fmuladd.f64(double %117, double %121, double %126)
  store double %127, ptr %125, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 152, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 120, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %128

128:                                              ; preds = %109
  %129 = load i32, ptr %12, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %12, align 4, !tbaa !5
  br label %48, !llvm.loop !17

131:                                              ; preds = %51
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %10, align 4, !tbaa !5
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %10, align 4, !tbaa !5
  br label %29, !llvm.loop !18

135:                                              ; preds = %32
  %136 = call noundef double @_Z12secs_elapsedv()
  %137 = load double, ptr %9, align 8, !tbaa !11
  %138 = fsub double %136, %137
  call void (ptr, ...) @_Z16printf_timestampPKcz(ptr noundef @.str.3, double noundef %138)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  %139 = load i32, ptr %3, align 4
  ret i32 %139
}

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #5

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

; Function Attrs: nounwind
declare double @exp(double noundef) #7

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

!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 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !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.1 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@__const.main.Mhu_a = external hidden unnamed_addr constant [15 x double], align 16
@__const.main.Tau_a = external hidden unnamed_addr constant [19 x double], align 16
@.str.3 = external hidden unnamed_addr constant [41 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z12secs_elapsedv() 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: mustprogress uwtable
declare dso_local void @_Z16printf_timestampPKcz(ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #3 {
  %3 = tail call noalias dereferenceable_or_null(8000000) ptr @calloc(i64 noundef 1000000, i64 noundef 8) #7
  %4 = tail call noalias dereferenceable_or_null(8000000) ptr @calloc(i64 noundef 1000000, i64 noundef 8) #7
  tail call void (ptr, ...) @_Z16printf_timestampPKcz(ptr noundef nonnull @.str.1)
  %5 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.main.Mhu_a, i64 32), align 16
  %6 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.main.Mhu_a, i64 24), align 8
  %7 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.main.Mhu_a, i64 16), align 16
  %8 = load <2 x double>, ptr getelementptr inbounds (i8, ptr @__const.main.Mhu_a, i64 8), align 8
  %9 = load <2 x double>, ptr @__const.main.Mhu_a, align 16
  %.pre65 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Mhu_a, i64 112), align 16
  %.pre66 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Mhu_a, i64 104), align 8
  %.pre67 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Mhu_a, i64 96), align 16
  %.pre68 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Mhu_a, i64 88), align 8
  %.pre69 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Mhu_a, i64 80), align 16
  %.pre70 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Mhu_a, i64 72), align 8
  %.pre71 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Mhu_a, i64 64), align 16
  %.pre72 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Mhu_a, i64 56), align 8
  %.pre73 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Mhu_a, i64 48), align 16
  %.pre74 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Mhu_a, i64 40), align 8
  %.pre75 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Tau_a, i64 136), align 8
  %.pre76 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Tau_a, i64 128), align 16
  %.pre77 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Tau_a, i64 120), align 8
  %.pre78 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Tau_a, i64 112), align 16
  %.pre79 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Tau_a, i64 104), align 8
  %.pre80 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Tau_a, i64 96), align 16
  %.pre81 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Tau_a, i64 88), align 8
  %.pre82 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Tau_a, i64 80), align 16
  %.pre83 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Tau_a, i64 72), align 8
  %.pre84 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Tau_a, i64 64), align 16
  %.pre85 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Tau_a, i64 56), align 8
  %.pre86 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Tau_a, i64 48), align 16
  %.pre87 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Tau_a, i64 40), align 8
  %.pre88 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Tau_a, i64 32), align 16
  %.pre89 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Tau_a, i64 24), align 8
  %.pre90 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Tau_a, i64 16), align 16
  %.pre91 = load double, ptr getelementptr inbounds (i8, ptr @__const.main.Tau_a, i64 8), align 8
  %.pre92 = load double, ptr @__const.main.Tau_a, align 16
  %10 = insertelement <2 x double> %5, double %.pre70, i64 1
  %11 = insertelement <2 x double> %6, double %.pre71, i64 1
  %12 = insertelement <2 x double> %7, double %.pre72, i64 1
  %13 = insertelement <2 x double> %8, double %.pre73, i64 1
  %14 = insertelement <2 x double> %9, double %.pre74, i64 1
  br label %18

15:                                               ; preds = %25
  %16 = tail call noundef double @_Z12secs_elapsedv()
  %17 = fsub double %16, %.1
  tail call void (ptr, ...) @_Z16printf_timestampPKcz(ptr noundef nonnull @.str.3, double noundef %17)
  ret i32 0

18:                                               ; preds = %2, %25
  %.03653 = phi double [ undef, %2 ], [ %.1, %25 ]
  %.03752 = phi i32 [ 0, %2 ], [ %26, %25 ]
  %19 = icmp eq i32 %.03752, 1
  %.lhs.trunc = trunc nuw i32 %.03752 to i16
  %20 = urem i16 %.lhs.trunc, 1000
  %21 = icmp eq i16 %20, 0
  %or.cond = or i1 %19, %21
  br i1 %or.cond, label %22, label %.thread

22:                                               ; preds = %18
  tail call void (ptr, ...) @_Z16printf_timestampPKcz(ptr noundef nonnull @.str.2, i32 noundef %.03752)
  br i1 %19, label %23, label %.thread

23:                                               ; preds = %22
  %24 = tail call noundef double @_Z12secs_elapsedv()
  br label %.thread

.thread:                                          ; preds = %18, %23, %22
  %.1 = phi double [ %24, %23 ], [ %.03653, %22 ], [ %.03653, %18 ]
  br label %.preheader

25:                                               ; preds = %.preheader
  %26 = add nuw nsw i32 %.03752, 1
  %exitcond60.not = icmp eq i32 %26, 10000
  br i1 %exitcond60.not, label %15, label %18, !llvm.loop !5

.preheader:                                       ; preds = %.thread, %.preheader
  %indvars.iv = phi i64 [ 0, %.thread ], [ %indvars.iv.next, %.preheader ]
  %27 = getelementptr inbounds double, ptr %4, i64 %indvars.iv
  %28 = load double, ptr %27, align 8, !tbaa !7
  %29 = tail call double @llvm.fmuladd.f64(double %28, double 0.000000e+00, double %.pre75)
  %30 = tail call double @llvm.fmuladd.f64(double %28, double %29, double %.pre76)
  %31 = tail call double @llvm.fmuladd.f64(double %28, double %30, double %.pre77)
  %32 = tail call double @llvm.fmuladd.f64(double %28, double %31, double %.pre78)
  %33 = tail call double @llvm.fmuladd.f64(double %28, double %32, double %.pre79)
  %34 = tail call double @llvm.fmuladd.f64(double %28, double %33, double %.pre80)
  %35 = tail call double @llvm.fmuladd.f64(double %28, double %34, double %.pre81)
  %36 = tail call double @llvm.fmuladd.f64(double %28, double %35, double %.pre82)
  %37 = tail call double @llvm.fmuladd.f64(double %28, double %36, double %.pre83)
  %38 = tail call double @llvm.fmuladd.f64(double %28, double %37, double %.pre84)
  %39 = tail call double @llvm.fmuladd.f64(double %28, double %38, double %.pre85)
  %40 = tail call double @llvm.fmuladd.f64(double %28, double %39, double %.pre86)
  %41 = tail call double @llvm.fmuladd.f64(double %28, double %40, double %.pre87)
  %42 = tail call double @llvm.fmuladd.f64(double %28, double %41, double %.pre88)
  %43 = tail call double @llvm.fmuladd.f64(double %28, double %42, double %.pre89)
  %44 = tail call double @llvm.fmuladd.f64(double %28, double %43, double %.pre90)
  %45 = tail call double @llvm.fmuladd.f64(double %28, double %44, double %.pre91)
  %46 = tail call double @llvm.fmuladd.f64(double %28, double %45, double %.pre92)
  %47 = tail call double @llvm.fmuladd.f64(double %28, double 0.000000e+00, double %.pre65)
  %48 = tail call double @llvm.fmuladd.f64(double %28, double %47, double %.pre66)
  %49 = tail call double @llvm.fmuladd.f64(double %28, double %48, double %.pre67)
  %50 = tail call double @llvm.fmuladd.f64(double %28, double %49, double %.pre68)
  %51 = tail call double @llvm.fmuladd.f64(double %28, double %50, double %.pre69)
  %52 = insertelement <2 x double> poison, double %28, i64 0
  %53 = shufflevector <2 x double> %52, <2 x double> poison, <2 x i32> zeroinitializer
  %54 = insertelement <2 x double> <double 0.000000e+00, double poison>, double %51, i64 1
  %55 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %53, <2 x double> %54, <2 x double> %10)
  %56 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %53, <2 x double> %55, <2 x double> %11)
  %57 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %53, <2 x double> %56, <2 x double> %12)
  %58 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %53, <2 x double> %57, <2 x double> %13)
  %59 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %53, <2 x double> %58, <2 x double> %14)
  %60 = extractelement <2 x double> %59, i64 0
  %61 = extractelement <2 x double> %59, i64 1
  %62 = fdiv double %60, %61
  %63 = getelementptr inbounds double, ptr %3, i64 %indvars.iv
  %64 = load double, ptr %63, align 8, !tbaa !7
  %65 = fsub double %62, %64
  %66 = fneg double %46
  %67 = tail call double @exp(double noundef %66) #8
  %68 = fsub double 1.000000e+00, %67
  %69 = tail call double @llvm.fmuladd.f64(double %65, double %68, double %64)
  store double %69, ptr %63, align 8, !tbaa !7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 1000000
  br i1 %exitcond.not, label %25, label %.preheader, !llvm.loop !11
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @exp(double noundef) local_unnamed_addr #5

; 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>) #6

attributes #0 = { mustprogress 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nofree nounwind willreturn memory(write) "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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind allocsize(0,1) }
attributes #8 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"double", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = distinct !{!11, !6}


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