; LLVM IR from Wilson-ZheLin/Introduction-to-Digital-Image-Processing :: 7. Image Noise and Noise Reduction, Homomorphic Filter, and Band Stop Filter/src/ma_05bed65d (Z19GeometricMeanFilterP5Image)

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

%struct.Image = type { i32, i32, i32, ptr, [15 x [100 x i8]], i32 }

@.str.14 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z14CreateNewImageP5ImagePc(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12SavePNMImageP5ImagePc(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z19GeometricMeanFilterP5Image(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [9 x i8], align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca float, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 9, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  %17 = call noundef ptr @_Z14CreateNewImageP5ImagePc(ptr noundef %16, ptr noundef @.str.14)
  store ptr %17, ptr %6, align 8, !tbaa !5
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.Image, ptr %18, i32 0, i32 3
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  store ptr %20, ptr %3, align 8, !tbaa !5
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.Image, ptr %21, i32 0, i32 3
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  store ptr %23, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 1, ptr %7, align 4, !tbaa !12
  br label %24

24:                                               ; preds = %125, %1
  %25 = load i32, ptr %7, align 4, !tbaa !12
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.Image, ptr %26, i32 0, i32 1
  %28 = load i32, ptr %27, align 4, !tbaa !13
  %29 = sub nsw i32 %28, 1
  %30 = icmp slt i32 %25, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %24
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %128

32:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 1, ptr %9, align 4, !tbaa !12
  br label %33

33:                                               ; preds = %121, %32
  %34 = load i32, ptr %9, align 4, !tbaa !12
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.Image, ptr %35, i32 0, i32 0
  %37 = load i32, ptr %36, align 8, !tbaa !14
  %38 = sub nsw i32 %37, 1
  %39 = icmp slt i32 %34, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %33
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %124

41:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 -1, ptr %11, align 4, !tbaa !12
  br label %42

42:                                               ; preds = %75, %41
  %43 = load i32, ptr %11, align 4, !tbaa !12
  %44 = icmp sle i32 %43, 1
  br i1 %44, label %46, label %45

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

46:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  store i32 -1, ptr %12, align 4, !tbaa !12
  br label %47

47:                                               ; preds = %71, %46
  %48 = load i32, ptr %12, align 4, !tbaa !12
  %49 = icmp sle i32 %48, 1
  br i1 %49, label %51, label %50

50:                                               ; preds = %47
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %74

51:                                               ; preds = %47
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.Image, ptr %53, i32 0, i32 0
  %55 = load i32, ptr %54, align 8, !tbaa !14
  %56 = load i32, ptr %7, align 4, !tbaa !12
  %57 = load i32, ptr %11, align 4, !tbaa !12
  %58 = add nsw i32 %56, %57
  %59 = mul nsw i32 %55, %58
  %60 = load i32, ptr %9, align 4, !tbaa !12
  %61 = load i32, ptr %12, align 4, !tbaa !12
  %62 = add nsw i32 %60, %61
  %63 = add nsw i32 %59, %62
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds i8, ptr %52, i64 %64
  %66 = load i8, ptr %65, align 1, !tbaa !15
  %67 = load i32, ptr %10, align 4, !tbaa !12
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %10, align 4, !tbaa !12
  %69 = sext i32 %67 to i64
  %70 = getelementptr inbounds [9 x i8], ptr %5, i64 0, i64 %69
  store i8 %66, ptr %70, align 1, !tbaa !15
  br label %71

71:                                               ; preds = %51
  %72 = load i32, ptr %12, align 4, !tbaa !12
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %12, align 4, !tbaa !12
  br label %47, !llvm.loop !16

74:                                               ; preds = %50
  br label %75

75:                                               ; preds = %74
  %76 = load i32, ptr %11, align 4, !tbaa !12
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %11, align 4, !tbaa !12
  br label %42, !llvm.loop !18

78:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store float 1.000000e+00, ptr %13, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  store i32 0, ptr %14, align 4, !tbaa !12
  br label %79

79:                                               ; preds = %92, %78
  %80 = load i32, ptr %14, align 4, !tbaa !12
  %81 = icmp slt i32 %80, 9
  br i1 %81, label %83, label %82

82:                                               ; preds = %79
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  br label %95

83:                                               ; preds = %79
  %84 = load i32, ptr %14, align 4, !tbaa !12
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [9 x i8], ptr %5, i64 0, i64 %85
  %87 = load i8, ptr %86, align 1, !tbaa !15
  %88 = zext i8 %87 to i32
  %89 = sitofp i32 %88 to float
  %90 = load float, ptr %13, align 4, !tbaa !19
  %91 = fmul float %90, %89
  store float %91, ptr %13, align 4, !tbaa !19
  br label %92

92:                                               ; preds = %83
  %93 = load i32, ptr %14, align 4, !tbaa !12
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %14, align 4, !tbaa !12
  br label %79, !llvm.loop !21

95:                                               ; preds = %82
  %96 = load float, ptr %13, align 4, !tbaa !19
  %97 = call noundef double @_ZSt3powIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %96, double noundef 0x3FBC71C71C71C71C)
  %98 = fptrunc double %97 to float
  store float %98, ptr %13, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %99 = load float, ptr %13, align 4, !tbaa !19
  %100 = fptosi float %99 to i32
  store i32 %100, ptr %15, align 4, !tbaa !12
  %101 = load i32, ptr %15, align 4, !tbaa !12
  %102 = icmp sgt i32 %101, 255
  br i1 %102, label %103, label %104

103:                                              ; preds = %95
  store i32 255, ptr %15, align 4, !tbaa !12
  br label %104

104:                                              ; preds = %103, %95
  %105 = load i32, ptr %15, align 4, !tbaa !12
  %106 = icmp slt i32 %105, 0
  br i1 %106, label %107, label %108

107:                                              ; preds = %104
  store i32 0, ptr %15, align 4, !tbaa !12
  br label %108

108:                                              ; preds = %107, %104
  %109 = load i32, ptr %15, align 4, !tbaa !12
  %110 = trunc i32 %109 to i8
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = load ptr, ptr %2, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.Image, ptr %112, i32 0, i32 0
  %114 = load i32, ptr %113, align 8, !tbaa !14
  %115 = load i32, ptr %7, align 4, !tbaa !12
  %116 = mul nsw i32 %114, %115
  %117 = load i32, ptr %9, align 4, !tbaa !12
  %118 = add nsw i32 %116, %117
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds i8, ptr %111, i64 %119
  store i8 %110, ptr %120, align 1, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  br label %121

121:                                              ; preds = %108
  %122 = load i32, ptr %9, align 4, !tbaa !12
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %9, align 4, !tbaa !12
  br label %33, !llvm.loop !22

124:                                              ; preds = %40
  br label %125

125:                                              ; preds = %124
  %126 = load i32, ptr %7, align 4, !tbaa !12
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %7, align 4, !tbaa !12
  br label %24, !llvm.loop !23

128:                                              ; preds = %31
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_Z12SavePNMImageP5ImagePc(ptr noundef %129, ptr noundef @.str.16)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 9, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef, double noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { inlinehint 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 #3 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 16}
!10 = !{!"_ZTS5Image", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !7, i64 24, !11, i64 1524}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 4}
!14 = !{!10, !11, i64 0}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{!20, !20, i64 0}
!20 = !{!"float", !7, i64 0}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}


; 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.14 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z14CreateNewImageP5ImagePc(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12SavePNMImageP5ImagePc(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z19GeometricMeanFilterP5Image(ptr noundef %0) local_unnamed_addr #0 {
  %2 = tail call noundef ptr @_Z14CreateNewImageP5ImagePc(ptr noundef %0, ptr noundef nonnull @.str.14)
  %3 = getelementptr inbounds i8, ptr %0, i64 16
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %2, i64 16
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 4
  %8 = load i32, ptr %7, align 4, !tbaa !11
  %9 = icmp sgt i32 %8, 2
  br i1 %9, label %.preheader42.lr.ph, label %._crit_edge51

.preheader42.lr.ph:                               ; preds = %1
  %10 = load i32, ptr %0, align 8, !tbaa !12
  %11 = icmp sgt i32 %10, 2
  br i1 %11, label %.preheader42, label %._crit_edge51

.preheader42:                                     ; preds = %.preheader42.lr.ph, %._crit_edge
  %12 = phi i32 [ %91, %._crit_edge ], [ %8, %.preheader42.lr.ph ]
  %13 = phi i32 [ %92, %._crit_edge ], [ %10, %.preheader42.lr.ph ]
  %indvars.iv = phi i64 [ %indvars.iv.next.pre-phi, %._crit_edge ], [ 1, %.preheader42.lr.ph ]
  %14 = icmp sgt i32 %13, 2
  br i1 %14, label %.preheader41.preheader, label %.preheader42.._crit_edge_crit_edge

.preheader42.._crit_edge_crit_edge:               ; preds = %.preheader42
  %.pre67 = add nuw nsw i64 %indvars.iv, 1
  br label %._crit_edge

.preheader41.preheader:                           ; preds = %.preheader42
  %15 = trunc i64 %indvars.iv to i32
  %16 = add i32 %15, -1
  %17 = trunc i64 %indvars.iv to i32
  %18 = add nuw nsw i64 %indvars.iv, 1
  %19 = trunc i64 %18 to i32
  %20 = trunc nuw nsw i64 %indvars.iv to i32
  br label %.preheader41

._crit_edge51:                                    ; preds = %._crit_edge, %.preheader42.lr.ph, %1
  tail call void @_Z12SavePNMImageP5ImagePc(ptr noundef %2, ptr noundef nonnull @.str.16)
  ret void

.preheader41:                                     ; preds = %.preheader41.preheader, %.preheader41
  %21 = phi i32 [ %88, %.preheader41 ], [ %13, %.preheader41.preheader ]
  %.03949 = phi i32 [ %87, %.preheader41 ], [ 1, %.preheader41.preheader ]
  %22 = mul i32 %16, %21
  %23 = add i32 %22, %.03949
  %24 = add i32 %23, -1
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds i8, ptr %4, i64 %25
  %27 = load i8, ptr %26, align 1, !tbaa !13
  %28 = sext i32 %23 to i64
  %29 = getelementptr inbounds i8, ptr %4, i64 %28
  %30 = load i8, ptr %29, align 1, !tbaa !13
  %31 = add i32 %23, 1
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds i8, ptr %4, i64 %32
  %34 = load i8, ptr %33, align 1, !tbaa !13
  %35 = mul i32 %21, %17
  %36 = add i32 %35, %.03949
  %37 = add i32 %36, -1
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds i8, ptr %4, i64 %38
  %40 = load i8, ptr %39, align 1, !tbaa !13
  %41 = sext i32 %36 to i64
  %42 = getelementptr inbounds i8, ptr %4, i64 %41
  %43 = load i8, ptr %42, align 1, !tbaa !13
  %44 = add i32 %36, 1
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds i8, ptr %4, i64 %45
  %47 = load i8, ptr %46, align 1, !tbaa !13
  %48 = mul i32 %21, %19
  %49 = add i32 %48, %.03949
  %50 = add i32 %49, -1
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds i8, ptr %4, i64 %51
  %53 = load i8, ptr %52, align 1, !tbaa !13
  %54 = sext i32 %49 to i64
  %55 = getelementptr inbounds i8, ptr %4, i64 %54
  %56 = load i8, ptr %55, align 1, !tbaa !13
  %57 = add i32 %49, 1
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds i8, ptr %4, i64 %58
  %60 = load i8, ptr %59, align 1, !tbaa !13
  %61 = uitofp i8 %27 to float
  %62 = uitofp i8 %30 to float
  %63 = fmul float %61, %62
  %64 = uitofp i8 %34 to float
  %65 = fmul float %63, %64
  %66 = uitofp i8 %40 to float
  %67 = fmul float %65, %66
  %68 = uitofp i8 %43 to float
  %69 = fmul float %67, %68
  %70 = uitofp i8 %47 to float
  %71 = fmul float %69, %70
  %72 = uitofp i8 %53 to float
  %73 = fmul float %71, %72
  %74 = uitofp i8 %56 to float
  %75 = fmul float %73, %74
  %76 = uitofp i8 %60 to float
  %77 = fmul float %75, %76
  %78 = tail call noundef double @_ZSt3powIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %77, double noundef 0x3FBC71C71C71C71C)
  %79 = fptrunc double %78 to float
  %80 = fptosi float %79 to i32
  %spec.store.select1 = tail call i32 @llvm.smin.i32(i32 %80, i32 255)
  %spec.store.select = tail call i32 @llvm.smax.i32(i32 %spec.store.select1, i32 0)
  %81 = trunc nuw i32 %spec.store.select to i8
  %82 = load i32, ptr %0, align 8, !tbaa !12
  %83 = mul nsw i32 %82, %20
  %84 = add nsw i32 %83, %.03949
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds i8, ptr %6, i64 %85
  store i8 %81, ptr %86, align 1, !tbaa !13
  %87 = add nuw nsw i32 %.03949, 1
  %88 = load i32, ptr %0, align 8, !tbaa !12
  %89 = add nsw i32 %88, -1
  %90 = icmp slt i32 %87, %89
  br i1 %90, label %.preheader41, label %._crit_edge.loopexit, !llvm.loop !14

._crit_edge.loopexit:                             ; preds = %.preheader41
  %.pre = load i32, ptr %7, align 4, !tbaa !11
  br label %._crit_edge

._crit_edge:                                      ; preds = %.preheader42.._crit_edge_crit_edge, %._crit_edge.loopexit
  %indvars.iv.next.pre-phi = phi i64 [ %.pre67, %.preheader42.._crit_edge_crit_edge ], [ %18, %._crit_edge.loopexit ]
  %91 = phi i32 [ %12, %.preheader42.._crit_edge_crit_edge ], [ %.pre, %._crit_edge.loopexit ]
  %92 = phi i32 [ %13, %.preheader42.._crit_edge_crit_edge ], [ %88, %._crit_edge.loopexit ]
  %93 = add nsw i32 %91, -1
  %94 = sext i32 %93 to i64
  %95 = icmp slt i64 %indvars.iv.next.pre-phi, %94
  br i1 %95, label %.preheader42, label %._crit_edge51, !llvm.loop !16
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef, double noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #2

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 = { inlinehint 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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, !10, i64 16}
!6 = !{!"_ZTS5Image", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !8, i64 24, !7, i64 1524}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!6, !7, i64 0}
!13 = !{!8, !8, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15, !17}
!17 = !{!"llvm.loop.unswitch.partial.disable"}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass