; LLVM IR from ROCm/aomp :: test/LLNL/openmp5.0-tests (test_declare_variant)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [33 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z3fooPdS_S_(ptr noundef, ptr noundef, ptr noundef) #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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca [100 x double], align 16
  %7 = alloca [100 x double], align 16
  %8 = alloca [100 x double], align 16
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  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 800, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 800, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 800, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %30, %2
  %15 = load i32, ptr %9, align 4, !tbaa !5
  %16 = icmp slt i32 %15, 100
  br i1 %16, label %18, label %17

17:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %33

18:                                               ; preds = %14
  %19 = load i32, ptr %9, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [100 x double], ptr %6, i64 0, i64 %20
  store double 1.000000e+00, ptr %21, align 8, !tbaa !11
  %22 = load i32, ptr %9, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [100 x double], ptr %7, i64 0, i64 %23
  store double 2.000000e+00, ptr %24, align 8, !tbaa !11
  %25 = load i32, ptr %9, align 4, !tbaa !5
  %26 = sitofp i32 %25 to double
  %27 = load i32, ptr %9, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [100 x double], ptr %8, i64 0, i64 %28
  store double %26, ptr %29, align 8, !tbaa !11
  br label %30

30:                                               ; preds = %18
  %31 = load i32, ptr %9, align 4, !tbaa !5
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %9, align 4, !tbaa !5
  br label %14, !llvm.loop !13

33:                                               ; preds = %17
  %34 = getelementptr inbounds [100 x double], ptr %6, i64 0, i64 0
  %35 = getelementptr inbounds [100 x double], ptr %7, i64 0, i64 0
  %36 = getelementptr inbounds [100 x double], ptr %8, i64 0, i64 0
  call void @_Z3fooPdS_S_(ptr noundef %34, ptr noundef %35, ptr noundef %36)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %50, %33
  %38 = load i32, ptr %11, align 4, !tbaa !5
  %39 = icmp slt i32 %38, 100
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %53

41:                                               ; preds = %37
  %42 = load i32, ptr %11, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [100 x double], ptr %8, i64 0, i64 %43
  %45 = load double, ptr %44, align 8, !tbaa !11
  %46 = load i32, ptr %10, align 4, !tbaa !5
  %47 = sitofp i32 %46 to double
  %48 = fadd double %47, %45
  %49 = fptosi double %48 to i32
  store i32 %49, ptr %10, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %41
  %51 = load i32, ptr %11, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %11, align 4, !tbaa !5
  br label %37, !llvm.loop !15

53:                                               ; preds = %40
  %54 = load i32, ptr %10, align 4, !tbaa !5
  %55 = icmp ne i32 %54, 5250
  br i1 %55, label %56, label %64

56:                                               ; preds = %53
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  %59 = load i32, ptr %10, align 4, !tbaa !5
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %58, i32 noundef %59)
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef @.str.2)
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %61, i32 noundef 5250)
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef @.str.3)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %97

64:                                               ; preds = %53
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  br label %66

66:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %77, %66
  %68 = load i32, ptr %13, align 4, !tbaa !5
  %69 = icmp slt i32 %68, 100
  br i1 %69, label %71, label %70

70:                                               ; preds = %67
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %80

71:                                               ; preds = %67
  %72 = load i32, ptr %13, align 4, !tbaa !5
  %73 = sitofp i32 %72 to double
  %74 = load i32, ptr %13, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [100 x double], ptr %8, i64 0, i64 %75
  store double %73, ptr %76, align 8, !tbaa !11
  br label %77

77:                                               ; preds = %71
  %78 = load i32, ptr %13, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %13, align 4, !tbaa !5
  br label %67, !llvm.loop !16

80:                                               ; preds = %70
  %81 = getelementptr inbounds [100 x double], ptr %6, i64 0, i64 0
  %82 = getelementptr inbounds [100 x double], ptr %7, i64 0, i64 0
  %83 = getelementptr inbounds [100 x double], ptr %8, i64 0, i64 0
  call void @_Z3fooPdS_S_(ptr noundef %81, ptr noundef %82, ptr noundef %83)
  %84 = load i32, ptr %10, align 4, !tbaa !5
  %85 = icmp ne i32 %84, 5250
  br i1 %85, label %86, label %94

86:                                               ; preds = %80
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.5)
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  %89 = load i32, ptr %10, align 4, !tbaa !5
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %88, i32 noundef %89)
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef @.str.2)
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %91, i32 noundef 5250)
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef @.str.3)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %97

94:                                               ; preds = %80
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
  br label %96

96:                                               ; preds = %94
  store i32 0, ptr %12, align 4
  br label %97

97:                                               ; preds = %96, %86, %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 800, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 800, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 800, ptr %6) #5
  %98 = load i32, ptr %12, align 4
  switch i32 %98, label %101 [
    i32 0, label %99
    i32 1, label %99
  ]

99:                                               ; preds = %97, %97
  %100 = load i32, ptr %3, align 4
  ret i32 %100

101:                                              ; preds = %97
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

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 = { 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 #3 = { inlinehint 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 = { "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++ 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}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [33 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z3fooPdS_S_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #2 {
vector.ph:
  %2 = alloca [100 x double], align 16
  %3 = alloca [100 x double], align 16
  %4 = alloca [100 x double], align 16
  call void @llvm.lifetime.start.p0(i64 800, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 800, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 800, ptr nonnull %4) #5
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <2 x i32> [ <i32 0, i32 1>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <2 x i32> %vec.ind, <i32 2, i32 2>
  %5 = getelementptr inbounds [100 x double], ptr %2, i64 0, i64 %index
  %6 = getelementptr inbounds i8, ptr %5, i64 16
  store <2 x double> <double 1.000000e+00, double 1.000000e+00>, ptr %5, align 16, !tbaa !5
  store <2 x double> <double 1.000000e+00, double 1.000000e+00>, ptr %6, align 16, !tbaa !5
  %7 = getelementptr inbounds [100 x double], ptr %3, i64 0, i64 %index
  %8 = getelementptr inbounds i8, ptr %7, i64 16
  store <2 x double> <double 2.000000e+00, double 2.000000e+00>, ptr %7, align 16, !tbaa !5
  store <2 x double> <double 2.000000e+00, double 2.000000e+00>, ptr %8, align 16, !tbaa !5
  %9 = uitofp <2 x i32> %vec.ind to <2 x double>
  %10 = uitofp <2 x i32> %step.add to <2 x double>
  %11 = getelementptr inbounds [100 x double], ptr %4, i64 0, i64 %index
  %12 = getelementptr inbounds i8, ptr %11, i64 16
  store <2 x double> %9, ptr %11, align 16, !tbaa !5
  store <2 x double> %10, ptr %12, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %vec.ind.next = add <2 x i32> %vec.ind, <i32 4, i32 4>
  %13 = icmp eq i64 %index.next, 100
  br i1 %13, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  call void @_Z3fooPdS_S_(ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4)
  br label %15

14:                                               ; preds = %15
  %.not = icmp eq i32 %40, 5250
  br i1 %.not, label %vector.ph39, label %41

15:                                               ; preds = %15, %middle.block
  %indvars.iv28 = phi i64 [ 0, %middle.block ], [ %indvars.iv.next29.4, %15 ]
  %.02024 = phi i32 [ 0, %middle.block ], [ %40, %15 ]
  %16 = getelementptr inbounds [100 x double], ptr %4, i64 0, i64 %indvars.iv28
  %17 = load double, ptr %16, align 8, !tbaa !5
  %18 = sitofp i32 %.02024 to double
  %19 = fadd double %17, %18
  %20 = fptosi double %19 to i32
  %indvars.iv.next29 = add nuw nsw i64 %indvars.iv28, 1
  %21 = getelementptr inbounds [100 x double], ptr %4, i64 0, i64 %indvars.iv.next29
  %22 = load double, ptr %21, align 8, !tbaa !5
  %23 = sitofp i32 %20 to double
  %24 = fadd double %22, %23
  %25 = fptosi double %24 to i32
  %indvars.iv.next29.1 = add nuw nsw i64 %indvars.iv28, 2
  %26 = getelementptr inbounds [100 x double], ptr %4, i64 0, i64 %indvars.iv.next29.1
  %27 = load double, ptr %26, align 8, !tbaa !5
  %28 = sitofp i32 %25 to double
  %29 = fadd double %27, %28
  %30 = fptosi double %29 to i32
  %indvars.iv.next29.2 = add nuw nsw i64 %indvars.iv28, 3
  %31 = getelementptr inbounds [100 x double], ptr %4, i64 0, i64 %indvars.iv.next29.2
  %32 = load double, ptr %31, align 8, !tbaa !5
  %33 = sitofp i32 %30 to double
  %34 = fadd double %32, %33
  %35 = fptosi double %34 to i32
  %indvars.iv.next29.3 = add nuw nsw i64 %indvars.iv28, 4
  %36 = getelementptr inbounds [100 x double], ptr %4, i64 0, i64 %indvars.iv.next29.3
  %37 = load double, ptr %36, align 8, !tbaa !5
  %38 = sitofp i32 %35 to double
  %39 = fadd double %37, %38
  %40 = fptosi double %39 to i32
  %indvars.iv.next29.4 = add nuw nsw i64 %indvars.iv28, 5
  %exitcond31.not.4 = icmp eq i64 %indvars.iv.next29.4, 100
  br i1 %exitcond31.not.4, label %14, label %15, !llvm.loop !13

41:                                               ; preds = %14
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %43, i32 noundef %40)
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull @.str.2)
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %45, i32 noundef 5250)
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull @.str.3)
  br label %99

vector.ph39:                                      ; preds = %14
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
  %49 = getelementptr inbounds i8, ptr %4, i64 16
  store <2 x double> <double 0.000000e+00, double 1.000000e+00>, ptr %4, align 16, !tbaa !5
  store <2 x double> <double 2.000000e+00, double 3.000000e+00>, ptr %49, align 16, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %4, i64 32
  %51 = getelementptr inbounds i8, ptr %4, i64 48
  store <2 x double> <double 4.000000e+00, double 5.000000e+00>, ptr %50, align 16, !tbaa !5
  store <2 x double> <double 6.000000e+00, double 7.000000e+00>, ptr %51, align 16, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %4, i64 64
  %53 = getelementptr inbounds i8, ptr %4, i64 80
  store <2 x double> <double 8.000000e+00, double 9.000000e+00>, ptr %52, align 16, !tbaa !5
  store <2 x double> <double 1.000000e+01, double 1.100000e+01>, ptr %53, align 16, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %4, i64 96
  %55 = getelementptr inbounds i8, ptr %4, i64 112
  store <2 x double> <double 1.200000e+01, double 1.300000e+01>, ptr %54, align 16, !tbaa !5
  store <2 x double> <double 1.400000e+01, double 1.500000e+01>, ptr %55, align 16, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %4, i64 128
  %57 = getelementptr inbounds i8, ptr %4, i64 144
  store <2 x double> <double 1.600000e+01, double 1.700000e+01>, ptr %56, align 16, !tbaa !5
  store <2 x double> <double 1.800000e+01, double 1.900000e+01>, ptr %57, align 16, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %4, i64 160
  %59 = getelementptr inbounds i8, ptr %4, i64 176
  store <2 x double> <double 2.000000e+01, double 2.100000e+01>, ptr %58, align 16, !tbaa !5
  store <2 x double> <double 2.200000e+01, double 2.300000e+01>, ptr %59, align 16, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %4, i64 192
  %61 = getelementptr inbounds i8, ptr %4, i64 208
  store <2 x double> <double 2.400000e+01, double 2.500000e+01>, ptr %60, align 16, !tbaa !5
  store <2 x double> <double 2.600000e+01, double 2.700000e+01>, ptr %61, align 16, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %4, i64 224
  %63 = getelementptr inbounds i8, ptr %4, i64 240
  store <2 x double> <double 2.800000e+01, double 2.900000e+01>, ptr %62, align 16, !tbaa !5
  store <2 x double> <double 3.000000e+01, double 3.100000e+01>, ptr %63, align 16, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %4, i64 256
  %65 = getelementptr inbounds i8, ptr %4, i64 272
  store <2 x double> <double 3.200000e+01, double 3.300000e+01>, ptr %64, align 16, !tbaa !5
  store <2 x double> <double 3.400000e+01, double 3.500000e+01>, ptr %65, align 16, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %4, i64 288
  %67 = getelementptr inbounds i8, ptr %4, i64 304
  store <2 x double> <double 3.600000e+01, double 3.700000e+01>, ptr %66, align 16, !tbaa !5
  store <2 x double> <double 3.800000e+01, double 3.900000e+01>, ptr %67, align 16, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %4, i64 320
  %69 = getelementptr inbounds i8, ptr %4, i64 336
  store <2 x double> <double 4.000000e+01, double 4.100000e+01>, ptr %68, align 16, !tbaa !5
  store <2 x double> <double 4.200000e+01, double 4.300000e+01>, ptr %69, align 16, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %4, i64 352
  %71 = getelementptr inbounds i8, ptr %4, i64 368
  store <2 x double> <double 4.400000e+01, double 4.500000e+01>, ptr %70, align 16, !tbaa !5
  store <2 x double> <double 4.600000e+01, double 4.700000e+01>, ptr %71, align 16, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %4, i64 384
  %73 = getelementptr inbounds i8, ptr %4, i64 400
  store <2 x double> <double 4.800000e+01, double 4.900000e+01>, ptr %72, align 16, !tbaa !5
  store <2 x double> <double 5.000000e+01, double 5.100000e+01>, ptr %73, align 16, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %4, i64 416
  %75 = getelementptr inbounds i8, ptr %4, i64 432
  store <2 x double> <double 5.200000e+01, double 5.300000e+01>, ptr %74, align 16, !tbaa !5
  store <2 x double> <double 5.400000e+01, double 5.500000e+01>, ptr %75, align 16, !tbaa !5
  %76 = getelementptr inbounds i8, ptr %4, i64 448
  %77 = getelementptr inbounds i8, ptr %4, i64 464
  store <2 x double> <double 5.600000e+01, double 5.700000e+01>, ptr %76, align 16, !tbaa !5
  store <2 x double> <double 5.800000e+01, double 5.900000e+01>, ptr %77, align 16, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %4, i64 480
  %79 = getelementptr inbounds i8, ptr %4, i64 496
  store <2 x double> <double 6.000000e+01, double 6.100000e+01>, ptr %78, align 16, !tbaa !5
  store <2 x double> <double 6.200000e+01, double 6.300000e+01>, ptr %79, align 16, !tbaa !5
  %80 = getelementptr inbounds i8, ptr %4, i64 512
  %81 = getelementptr inbounds i8, ptr %4, i64 528
  store <2 x double> <double 6.400000e+01, double 6.500000e+01>, ptr %80, align 16, !tbaa !5
  store <2 x double> <double 6.600000e+01, double 6.700000e+01>, ptr %81, align 16, !tbaa !5
  %82 = getelementptr inbounds i8, ptr %4, i64 544
  %83 = getelementptr inbounds i8, ptr %4, i64 560
  store <2 x double> <double 6.800000e+01, double 6.900000e+01>, ptr %82, align 16, !tbaa !5
  store <2 x double> <double 7.000000e+01, double 7.100000e+01>, ptr %83, align 16, !tbaa !5
  %84 = getelementptr inbounds i8, ptr %4, i64 576
  %85 = getelementptr inbounds i8, ptr %4, i64 592
  store <2 x double> <double 7.200000e+01, double 7.300000e+01>, ptr %84, align 16, !tbaa !5
  store <2 x double> <double 7.400000e+01, double 7.500000e+01>, ptr %85, align 16, !tbaa !5
  %86 = getelementptr inbounds i8, ptr %4, i64 608
  %87 = getelementptr inbounds i8, ptr %4, i64 624
  store <2 x double> <double 7.600000e+01, double 7.700000e+01>, ptr %86, align 16, !tbaa !5
  store <2 x double> <double 7.800000e+01, double 7.900000e+01>, ptr %87, align 16, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %4, i64 640
  %89 = getelementptr inbounds i8, ptr %4, i64 656
  store <2 x double> <double 8.000000e+01, double 8.100000e+01>, ptr %88, align 16, !tbaa !5
  store <2 x double> <double 8.200000e+01, double 8.300000e+01>, ptr %89, align 16, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %4, i64 672
  %91 = getelementptr inbounds i8, ptr %4, i64 688
  store <2 x double> <double 8.400000e+01, double 8.500000e+01>, ptr %90, align 16, !tbaa !5
  store <2 x double> <double 8.600000e+01, double 8.700000e+01>, ptr %91, align 16, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %4, i64 704
  %93 = getelementptr inbounds i8, ptr %4, i64 720
  store <2 x double> <double 8.800000e+01, double 8.900000e+01>, ptr %92, align 16, !tbaa !5
  store <2 x double> <double 9.000000e+01, double 9.100000e+01>, ptr %93, align 16, !tbaa !5
  %94 = getelementptr inbounds i8, ptr %4, i64 736
  %95 = getelementptr inbounds i8, ptr %4, i64 752
  store <2 x double> <double 9.200000e+01, double 9.300000e+01>, ptr %94, align 16, !tbaa !5
  store <2 x double> <double 9.400000e+01, double 9.500000e+01>, ptr %95, align 16, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %4, i64 768
  %97 = getelementptr inbounds i8, ptr %4, i64 784
  store <2 x double> <double 9.600000e+01, double 9.700000e+01>, ptr %96, align 16, !tbaa !5
  store <2 x double> <double 9.800000e+01, double 9.900000e+01>, ptr %97, align 16, !tbaa !5
  call void @_Z3fooPdS_S_(ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.6)
  br label %99

99:                                               ; preds = %vector.ph39, %41
  %.022 = phi i32 [ 1, %41 ], [ 0, %vector.ph39 ]
  call void @llvm.lifetime.end.p0(i64 800, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 800, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 800, ptr nonnull %2) #5
  ret i32 %.022
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4

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 willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { inlinehint 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 = { "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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopLoadEliminationPass,LoopRotatePass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass