; LLVM IR from ROCm/aomp :: test/smoke-fails/xteam-red-min-max-scan/xteam-red-min-max-scan.ll (Z8run_testv)

; 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 [57 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [35 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z8run_testv() #0 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca i32, align 4
  %9 = alloca float, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store i32 0, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  %14 = call noalias noundef nonnull ptr @_Znam(i64 noundef 8000000) #7
  store ptr %14, ptr %2, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %15 = call noalias noundef nonnull ptr @_Znam(i64 noundef 8000000) #7
  store ptr %15, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %16 = call noalias noundef nonnull ptr @_Znam(i64 noundef 8000000) #7
  store ptr %16, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %30, %0
  %18 = load i32, ptr %5, align 4, !tbaa !5
  %19 = icmp slt i32 %18, 2000000
  br i1 %19, label %21, label %20

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

21:                                               ; preds = %17
  %22 = load ptr, ptr %2, align 8, !tbaa !9
  %23 = load i32, ptr %5, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds float, ptr %22, i64 %24
  store float 1.000000e+01, ptr %25, align 4, !tbaa !11
  %26 = load ptr, ptr %3, align 8, !tbaa !9
  %27 = load i32, ptr %5, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds float, ptr %26, i64 %28
  store float 0.000000e+00, ptr %29, align 4, !tbaa !11
  br label %30

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

33:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store float 0.000000e+00, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store float 3.000000e+06, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %34

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

37:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %54

38:                                               ; preds = %34
  %39 = load float, ptr %7, align 4, !tbaa !11
  %40 = load ptr, ptr %2, align 8, !tbaa !9
  %41 = load i32, ptr %8, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds float, ptr %40, i64 %42
  %44 = load float, ptr %43, align 4, !tbaa !11
  %45 = call float @llvm.minnum.f32(float %39, float %44)
  store float %45, ptr %7, align 4, !tbaa !11
  %46 = load float, ptr %7, align 4, !tbaa !11
  %47 = load ptr, ptr %3, align 8, !tbaa !9
  %48 = load i32, ptr %8, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds float, ptr %47, i64 %49
  store float %46, ptr %50, align 4, !tbaa !11
  br label %51

51:                                               ; preds = %38
  %52 = load i32, ptr %8, align 4, !tbaa !5
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %8, align 4, !tbaa !5
  br label %34, !llvm.loop !15

54:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store float 3.000000e+06, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %78, %54
  %56 = load i32, ptr %10, align 4, !tbaa !5
  %57 = icmp slt i32 %56, 2000000
  br i1 %57, label %59, label %58

58:                                               ; preds = %55
  store i32 8, ptr %11, align 4
  br label %81

59:                                               ; preds = %55
  %60 = load float, ptr %9, align 4, !tbaa !11
  %61 = load ptr, ptr %2, align 8, !tbaa !9
  %62 = load i32, ptr %10, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds float, ptr %61, i64 %63
  %65 = load float, ptr %64, align 4, !tbaa !11
  %66 = call float @llvm.minnum.f32(float %60, float %65)
  store float %66, ptr %9, align 4, !tbaa !11
  %67 = load float, ptr %9, align 4, !tbaa !11
  %68 = load ptr, ptr %3, align 8, !tbaa !9
  %69 = load i32, ptr %10, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds float, ptr %68, i64 %70
  %72 = load float, ptr %71, align 4, !tbaa !11
  %73 = fcmp une float %67, %72
  br i1 %73, label %74, label %77

74:                                               ; preds = %59
  %75 = load i32, ptr %10, align 4, !tbaa !5
  %76 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %75)
  store i32 1, ptr %1, align 4, !tbaa !5
  store i32 8, ptr %11, align 4
  br label %81

77:                                               ; preds = %59
  br label %78

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

81:                                               ; preds = %74, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %82

82:                                               ; preds = %81
  %83 = load i32, ptr %1, align 4, !tbaa !5
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %87, label %85

85:                                               ; preds = %82
  %86 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %87

87:                                               ; preds = %85, %82
  %88 = load float, ptr %7, align 4, !tbaa !11
  %89 = fcmp une float %88, 1.000000e+01
  br i1 %89, label %90, label %94

90:                                               ; preds = %87
  %91 = load float, ptr %7, align 4, !tbaa !11
  %92 = fpext float %91 to double
  %93 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %92)
  store i32 1, ptr %1, align 4, !tbaa !5
  br label %94

94:                                               ; preds = %90, %87
  %95 = load ptr, ptr %3, align 8, !tbaa !9
  %96 = icmp eq ptr %95, null
  br i1 %96, label %98, label %97

97:                                               ; preds = %94
  call void @_ZdaPv(ptr noundef %95) #8
  br label %98

98:                                               ; preds = %97, %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %116, %98
  %100 = load i32, ptr %12, align 4, !tbaa !5
  %101 = icmp slt i32 %100, 2000000
  br i1 %101, label %103, label %102

102:                                              ; preds = %99
  store i32 11, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %119

103:                                              ; preds = %99
  %104 = load float, ptr %6, align 4, !tbaa !11
  %105 = load ptr, ptr %4, align 8, !tbaa !9
  %106 = load i32, ptr %12, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds float, ptr %105, i64 %107
  store float %104, ptr %108, align 4, !tbaa !11
  %109 = load float, ptr %6, align 4, !tbaa !11
  %110 = load ptr, ptr %2, align 8, !tbaa !9
  %111 = load i32, ptr %12, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds float, ptr %110, i64 %112
  %114 = load float, ptr %113, align 4, !tbaa !11
  %115 = call float @llvm.maxnum.f32(float %109, float %114)
  store float %115, ptr %6, align 4, !tbaa !11
  br label %116

116:                                              ; preds = %103
  %117 = load i32, ptr %12, align 4, !tbaa !5
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %12, align 4, !tbaa !5
  br label %99, !llvm.loop !17

119:                                              ; preds = %102
  store float 0.000000e+00, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %143, %119
  %121 = load i32, ptr %13, align 4, !tbaa !5
  %122 = icmp slt i32 %121, 2000000
  br i1 %122, label %124, label %123

123:                                              ; preds = %120
  store i32 14, ptr %11, align 4
  br label %146

124:                                              ; preds = %120
  %125 = load float, ptr %9, align 4, !tbaa !11
  %126 = load ptr, ptr %4, align 8, !tbaa !9
  %127 = load i32, ptr %13, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds float, ptr %126, i64 %128
  %130 = load float, ptr %129, align 4, !tbaa !11
  %131 = fcmp une float %125, %130
  br i1 %131, label %132, label %135

132:                                              ; preds = %124
  %133 = load i32, ptr %13, align 4, !tbaa !5
  %134 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %133)
  store i32 1, ptr %1, align 4, !tbaa !5
  store i32 14, ptr %11, align 4
  br label %146

135:                                              ; preds = %124
  %136 = load float, ptr %9, align 4, !tbaa !11
  %137 = load ptr, ptr %2, align 8, !tbaa !9
  %138 = load i32, ptr %13, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds float, ptr %137, i64 %139
  %141 = load float, ptr %140, align 4, !tbaa !11
  %142 = call float @llvm.maxnum.f32(float %136, float %141)
  store float %142, ptr %9, align 4, !tbaa !11
  br label %143

143:                                              ; preds = %135
  %144 = load i32, ptr %13, align 4, !tbaa !5
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %13, align 4, !tbaa !5
  br label %120, !llvm.loop !18

146:                                              ; preds = %132, %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %147

147:                                              ; preds = %146
  %148 = load i32, ptr %1, align 4, !tbaa !5
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %152, label %150

150:                                              ; preds = %147
  %151 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  br label %152

152:                                              ; preds = %150, %147
  %153 = load float, ptr %6, align 4, !tbaa !11
  %154 = fcmp une float %153, 1.000000e+01
  br i1 %154, label %155, label %159

155:                                              ; preds = %152
  %156 = load float, ptr %6, align 4, !tbaa !11
  %157 = fpext float %156 to double
  %158 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %157)
  store i32 1, ptr %1, align 4, !tbaa !5
  br label %159

159:                                              ; preds = %155, %152
  %160 = load ptr, ptr %2, align 8, !tbaa !9
  %161 = icmp eq ptr %160, null
  br i1 %161, label %163, label %162

162:                                              ; preds = %159
  call void @_ZdaPv(ptr noundef %160) #8
  br label %163

163:                                              ; preds = %162, %159
  %164 = load ptr, ptr %4, align 8, !tbaa !9
  %165 = icmp eq ptr %164, null
  br i1 %165, label %167, label %166

166:                                              ; preds = %163
  call void @_ZdaPv(ptr noundef %164) #8
  br label %167

167:                                              ; preds = %166, %163
  %168 = load i32, ptr %1, align 4, !tbaa !5
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret i32 %168
}

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #2

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

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #5

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nobuiltin allocsize(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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { nobuiltin 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 #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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 = !{!"float", !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 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [35 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_Z8run_testv() local_unnamed_addr #0 {
vector.ph:
  %0 = tail call noalias noundef nonnull dereferenceable(8000000) ptr @_Znam(i64 noundef 8000000) #6
  %1 = tail call noalias noundef nonnull dereferenceable(8000000) ptr @_Znam(i64 noundef 8000000) #6
  %2 = tail call noalias noundef nonnull dereferenceable(8000000) ptr @_Znam(i64 noundef 8000000) #6
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(8000000) %1, i8 0, i64 8000000, i1 false), !tbaa !5
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next.4, %vector.body ]
  %3 = getelementptr inbounds float, ptr %0, i64 %index
  %4 = getelementptr inbounds i8, ptr %3, i64 16
  store <4 x float> <float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01>, ptr %3, align 4, !tbaa !5
  store <4 x float> <float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01>, ptr %4, align 4, !tbaa !5
  %5 = getelementptr inbounds float, ptr %0, i64 %index
  %6 = getelementptr inbounds i8, ptr %5, i64 32
  %7 = getelementptr inbounds i8, ptr %5, i64 48
  store <4 x float> <float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01>, ptr %6, align 4, !tbaa !5
  store <4 x float> <float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01>, ptr %7, align 4, !tbaa !5
  %8 = getelementptr inbounds float, ptr %0, i64 %index
  %9 = getelementptr inbounds i8, ptr %8, i64 64
  %10 = getelementptr inbounds i8, ptr %8, i64 80
  store <4 x float> <float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01>, ptr %9, align 4, !tbaa !5
  store <4 x float> <float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01>, ptr %10, align 4, !tbaa !5
  %11 = getelementptr inbounds float, ptr %0, i64 %index
  %12 = getelementptr inbounds i8, ptr %11, i64 96
  %13 = getelementptr inbounds i8, ptr %11, i64 112
  store <4 x float> <float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01>, ptr %12, align 4, !tbaa !5
  store <4 x float> <float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01>, ptr %13, align 4, !tbaa !5
  %14 = getelementptr inbounds float, ptr %0, i64 %index
  %15 = getelementptr inbounds i8, ptr %14, i64 128
  %16 = getelementptr inbounds i8, ptr %14, i64 144
  store <4 x float> <float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01>, ptr %15, align 4, !tbaa !5
  store <4 x float> <float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01>, ptr %16, align 4, !tbaa !5
  %index.next.4 = add nuw nsw i64 %index, 40
  %17 = icmp eq i64 %index.next.4, 2000000
  br i1 %17, label %.preheader67, label %vector.body, !llvm.loop !9

.preheader67:                                     ; preds = %vector.body, %.preheader67
  %indvars.iv83 = phi i64 [ %indvars.iv.next84.1, %.preheader67 ], [ 0, %vector.body ]
  %.05371 = phi float [ %24, %.preheader67 ], [ 3.000000e+06, %vector.body ]
  %18 = getelementptr inbounds float, ptr %0, i64 %indvars.iv83
  %19 = load float, ptr %18, align 4, !tbaa !5
  %20 = tail call float @llvm.minnum.f32(float %.05371, float %19)
  %21 = getelementptr inbounds float, ptr %1, i64 %indvars.iv83
  store float %20, ptr %21, align 4, !tbaa !5
  %indvars.iv.next84 = or disjoint i64 %indvars.iv83, 1
  %22 = getelementptr inbounds float, ptr %0, i64 %indvars.iv.next84
  %23 = load float, ptr %22, align 4, !tbaa !5
  %24 = tail call float @llvm.minnum.f32(float %20, float %23)
  %25 = getelementptr inbounds float, ptr %1, i64 %indvars.iv.next84
  store float %24, ptr %25, align 4, !tbaa !5
  %indvars.iv.next84.1 = add nuw nsw i64 %indvars.iv83, 2
  %exitcond86.not.1 = icmp eq i64 %indvars.iv.next84.1, 2000000
  br i1 %exitcond86.not.1, label %.preheader66, label %.preheader67, !llvm.loop !13

.preheader66:                                     ; preds = %.preheader67, %38
  %indvars.iv87 = phi i64 [ %indvars.iv.next88.1, %38 ], [ 0, %.preheader67 ]
  %.05173 = phi float [ %34, %38 ], [ 3.000000e+06, %.preheader67 ]
  %26 = getelementptr inbounds float, ptr %0, i64 %indvars.iv87
  %27 = load float, ptr %26, align 4, !tbaa !5
  %28 = tail call float @llvm.minnum.f32(float %.05173, float %27)
  %29 = getelementptr inbounds float, ptr %1, i64 %indvars.iv87
  %30 = load float, ptr %29, align 4, !tbaa !5
  %31 = fcmp une float %28, %30
  br i1 %31, label %39, label %.preheader66.1

.preheader66.1:                                   ; preds = %.preheader66
  %indvars.iv.next88 = or disjoint i64 %indvars.iv87, 1
  %32 = getelementptr inbounds float, ptr %0, i64 %indvars.iv.next88
  %33 = load float, ptr %32, align 4, !tbaa !5
  %34 = tail call float @llvm.minnum.f32(float %28, float %33)
  %35 = getelementptr inbounds float, ptr %1, i64 %indvars.iv.next88
  %36 = load float, ptr %35, align 4, !tbaa !5
  %37 = fcmp une float %34, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %.preheader66.1
  %indvars.iv.next88.1 = add nuw nsw i64 %indvars.iv87, 2
  %exitcond90.1 = icmp eq i64 %indvars.iv.next88.1, 2000000
  br i1 %exitcond90.1, label %42, label %.preheader66, !llvm.loop !14

39:                                               ; preds = %.preheader66.1, %.preheader66
  %indvars.iv87.lcssa = phi i64 [ %indvars.iv87, %.preheader66 ], [ %indvars.iv.next88, %.preheader66.1 ]
  %40 = trunc nuw nsw i64 %indvars.iv87.lcssa to i32
  %41 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %40)
  br label %44

42:                                               ; preds = %38
  %43 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %44

44:                                               ; preds = %39, %42
  %.05660 = phi i32 [ 0, %42 ], [ 1, %39 ]
  %45 = fcmp une float %24, 1.000000e+01
  br i1 %45, label %46, label %49

46:                                               ; preds = %44
  %47 = fpext float %24 to double
  %48 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %47)
  br label %49

49:                                               ; preds = %44, %46
  %.157 = phi i32 [ 1, %46 ], [ %.05660, %44 ]
  tail call void @_ZdaPv(ptr noundef nonnull %1) #7
  br label %50

50:                                               ; preds = %50, %49
  %indvars.iv91 = phi i64 [ 0, %49 ], [ %indvars.iv.next92.1, %50 ]
  %.05475 = phi float [ 0.000000e+00, %49 ], [ %58, %50 ]
  %51 = getelementptr inbounds float, ptr %2, i64 %indvars.iv91
  store float %.05475, ptr %51, align 4, !tbaa !5
  %52 = getelementptr inbounds float, ptr %0, i64 %indvars.iv91
  %53 = load float, ptr %52, align 4, !tbaa !5
  %54 = tail call float @llvm.maxnum.f32(float %.05475, float %53)
  %indvars.iv.next92 = or disjoint i64 %indvars.iv91, 1
  %55 = getelementptr inbounds float, ptr %2, i64 %indvars.iv.next92
  store float %54, ptr %55, align 4, !tbaa !5
  %56 = getelementptr inbounds float, ptr %0, i64 %indvars.iv.next92
  %57 = load float, ptr %56, align 4, !tbaa !5
  %58 = tail call float @llvm.maxnum.f32(float %54, float %57)
  %indvars.iv.next92.1 = add nuw nsw i64 %indvars.iv91, 2
  %exitcond94.not.1 = icmp eq i64 %indvars.iv.next92.1, 2000000
  br i1 %exitcond94.not.1, label %.preheader, label %50, !llvm.loop !15

.preheader:                                       ; preds = %50, %70
  %indvars.iv95 = phi i64 [ %indvars.iv.next96.1, %70 ], [ 0, %50 ]
  %.177 = phi float [ %73, %70 ], [ 0.000000e+00, %50 ]
  %59 = getelementptr inbounds float, ptr %2, i64 %indvars.iv95
  %60 = load float, ptr %59, align 4, !tbaa !5
  %61 = fcmp une float %.177, %60
  br i1 %61, label %.thread62, label %.preheader.1

.thread62:                                        ; preds = %.preheader.1, %.preheader
  %indvars.iv95.lcssa = phi i64 [ %indvars.iv95, %.preheader ], [ %indvars.iv.next96, %.preheader.1 ]
  %62 = trunc nuw nsw i64 %indvars.iv95.lcssa to i32
  %63 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %62)
  br label %77

.preheader.1:                                     ; preds = %.preheader
  %64 = getelementptr inbounds float, ptr %0, i64 %indvars.iv95
  %65 = load float, ptr %64, align 4, !tbaa !5
  %66 = tail call float @llvm.maxnum.f32(float %.177, float %65)
  %indvars.iv.next96 = or disjoint i64 %indvars.iv95, 1
  %67 = getelementptr inbounds float, ptr %2, i64 %indvars.iv.next96
  %68 = load float, ptr %67, align 4, !tbaa !5
  %69 = fcmp une float %66, %68
  br i1 %69, label %.thread62, label %70

70:                                               ; preds = %.preheader.1
  %71 = getelementptr inbounds float, ptr %0, i64 %indvars.iv.next96
  %72 = load float, ptr %71, align 4, !tbaa !5
  %73 = tail call float @llvm.maxnum.f32(float %66, float %72)
  %indvars.iv.next96.1 = add nuw nsw i64 %indvars.iv95, 2
  %exitcond98.not.1 = icmp eq i64 %indvars.iv.next96.1, 2000000
  br i1 %exitcond98.not.1, label %74, label %.preheader, !llvm.loop !16

74:                                               ; preds = %70
  %.not = icmp eq i32 %.157, 0
  br i1 %.not, label %75, label %77

75:                                               ; preds = %74
  %76 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %77

77:                                               ; preds = %.thread62, %75, %74
  %.265 = phi i32 [ 1, %.thread62 ], [ 0, %75 ], [ %.157, %74 ]
  %78 = fcmp une float %58, 1.000000e+01
  br i1 %78, label %79, label %82

79:                                               ; preds = %77
  %80 = fpext float %58 to double
  %81 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, double noundef %80)
  br label %82

82:                                               ; preds = %77, %79
  %.3 = phi i32 [ 1, %79 ], [ %.265, %77 ]
  tail call void @_ZdaPv(ptr noundef nonnull %0) #7
  tail call void @_ZdaPv(ptr noundef nonnull %2) #7
  ret i32 %.3
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #4

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

attributes #0 = { 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 #1 = { nobuiltin allocsize(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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { nobuiltin 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { builtin allocsize(0) }
attributes #7 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ 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}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}


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