; LLVM IR from Wilson-ZheLin/Introduction-to-Digital-Image-Processing :: 6. Low Pass Filter and High Pass Filter/src/main.ll (Z3HPFP5ImagePfS1_)

; 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.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [8 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
define dso_local void @_Z3HPFP5ImagePfS1_(ptr noundef %0, ptr noundef %1, ptr noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.Image, ptr %20, i32 0, i32 1
  %22 = load i32, ptr %21, align 4, !tbaa !9
  %23 = sitofp i32 %22 to float
  store float %23, ptr %9, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.Image, ptr %24, i32 0, i32 0
  %26 = load i32, ptr %25, align 8, !tbaa !14
  %27 = sitofp i32 %26 to float
  store float %27, ptr %10, align 4, !tbaa !12
  %28 = load float, ptr %9, align 4, !tbaa !12
  %29 = load float, ptr %10, align 4, !tbaa !12
  %30 = fmul float %28, %29
  %31 = fptosi float %30 to i32
  %32 = zext i32 %31 to i64
  %33 = call ptr @llvm.stacksave.p0()
  store ptr %33, ptr %11, align 8
  %34 = alloca float, i64 %32, align 16
  store i64 %32, ptr %12, align 8
  %35 = load float, ptr %9, align 4, !tbaa !12
  %36 = load float, ptr %10, align 4, !tbaa !12
  %37 = fmul float %35, %36
  %38 = fptosi float %37 to i32
  %39 = zext i32 %38 to i64
  %40 = alloca float, i64 %39, align 16
  store i64 %39, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = call noundef ptr @_Z14CreateNewImageP5ImagePc(ptr noundef %41, ptr noundef @.str.2)
  store ptr %42, ptr %14, align 8, !tbaa !5
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.Image, ptr %43, i32 0, i32 3
  %45 = load ptr, ptr %44, align 8, !tbaa !15
  store ptr %45, ptr %7, align 8, !tbaa !5
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.Image, ptr %46, i32 0, i32 3
  %48 = load ptr, ptr %47, align 8, !tbaa !15
  store ptr %48, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !16
  br label %49

49:                                               ; preds = %132, %3
  %50 = load i32, ptr %15, align 4, !tbaa !16
  %51 = sitofp i32 %50 to float
  %52 = load float, ptr %9, align 4, !tbaa !12
  %53 = fcmp olt float %51, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %49
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %135

55:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !16
  br label %56

56:                                               ; preds = %128, %55
  %57 = load i32, ptr %17, align 4, !tbaa !16
  %58 = sitofp i32 %57 to float
  %59 = load float, ptr %10, align 4, !tbaa !12
  %60 = fcmp olt float %58, %59
  br i1 %60, label %62, label %61

61:                                               ; preds = %56
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %131

62:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %63 = load i32, ptr %15, align 4, !tbaa !16
  %64 = sitofp i32 %63 to float
  %65 = load float, ptr %9, align 4, !tbaa !12
  %66 = fdiv float %65, 2.000000e+00
  %67 = fsub float %64, %66
  %68 = call noundef double @_ZSt3powIfiEN9__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 %67, i32 noundef 2)
  %69 = load i32, ptr %17, align 4, !tbaa !16
  %70 = sitofp i32 %69 to float
  %71 = load float, ptr %10, align 4, !tbaa !12
  %72 = fdiv float %71, 2.000000e+00
  %73 = fsub float %70, %72
  %74 = call noundef double @_ZSt3powIfiEN9__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 %73, i32 noundef 2)
  %75 = fadd double %68, %74
  %76 = call double @sqrt(double noundef %75) #7
  %77 = fptrunc double %76 to float
  store float %77, ptr %18, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %78 = load float, ptr %18, align 4, !tbaa !12
  %79 = fdiv float 3.000000e+01, %78
  %80 = call noundef double @_ZSt3powIfiEN9__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 %79, i32 noundef 2)
  %81 = fadd double 1.000000e+00, %80
  %82 = fdiv double 1.000000e+00, %81
  %83 = fptrunc double %82 to float
  store float %83, ptr %19, align 4, !tbaa !12
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = load i32, ptr %15, align 4, !tbaa !16
  %86 = sitofp i32 %85 to float
  %87 = load float, ptr %9, align 4, !tbaa !12
  %88 = load i32, ptr %17, align 4, !tbaa !16
  %89 = sitofp i32 %88 to float
  %90 = call float @llvm.fmuladd.f32(float %86, float %87, float %89)
  %91 = fptosi float %90 to i32
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds float, ptr %84, i64 %92
  %94 = load float, ptr %93, align 4, !tbaa !12
  %95 = load float, ptr %19, align 4, !tbaa !12
  %96 = fmul float %94, %95
  %97 = load i32, ptr %15, align 4, !tbaa !16
  %98 = sitofp i32 %97 to float
  %99 = load float, ptr %9, align 4, !tbaa !12
  %100 = load i32, ptr %17, align 4, !tbaa !16
  %101 = sitofp i32 %100 to float
  %102 = call float @llvm.fmuladd.f32(float %98, float %99, float %101)
  %103 = fptosi float %102 to i32
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds float, ptr %34, i64 %104
  store float %96, ptr %105, align 4, !tbaa !12
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = load i32, ptr %15, align 4, !tbaa !16
  %108 = sitofp i32 %107 to float
  %109 = load float, ptr %9, align 4, !tbaa !12
  %110 = load i32, ptr %17, align 4, !tbaa !16
  %111 = sitofp i32 %110 to float
  %112 = call float @llvm.fmuladd.f32(float %108, float %109, float %111)
  %113 = fptosi float %112 to i32
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds float, ptr %106, i64 %114
  %116 = load float, ptr %115, align 4, !tbaa !12
  %117 = load float, ptr %19, align 4, !tbaa !12
  %118 = fmul float %116, %117
  %119 = load i32, ptr %15, align 4, !tbaa !16
  %120 = sitofp i32 %119 to float
  %121 = load float, ptr %9, align 4, !tbaa !12
  %122 = load i32, ptr %17, align 4, !tbaa !16
  %123 = sitofp i32 %122 to float
  %124 = call float @llvm.fmuladd.f32(float %120, float %121, float %123)
  %125 = fptosi float %124 to i32
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds float, ptr %40, i64 %126
  store float %118, ptr %127, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %128

128:                                              ; preds = %62
  %129 = load i32, ptr %17, align 4, !tbaa !16
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %17, align 4, !tbaa !16
  br label %56, !llvm.loop !17

131:                                              ; preds = %61
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %15, align 4, !tbaa !16
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %15, align 4, !tbaa !16
  br label %49, !llvm.loop !19

135:                                              ; preds = %54
  %136 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = call noundef ptr @_Z4iDFTP5ImagePfS1_(ptr noundef %137, ptr noundef %34, ptr noundef %40)
  store ptr %138, ptr %14, align 8, !tbaa !5
  %139 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_Z12SavePNMImageP5ImagePc(ptr noundef %139, ptr noundef @.str.14)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  %140 = load ptr, ptr %11, align 8
  call void @llvm.stackrestore.p0(ptr %140)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  ret void
}

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

; Function Attrs: nounwind
declare double @sqrt(double noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIfiEN9__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, i32 noundef) #5

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

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 = { "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 willreturn }
attributes #4 = { 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 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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, !11, i64 4}
!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 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!10, !11, i64 0}
!15 = !{!10, !6, i64 16}
!16 = !{!11, !11, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3HPFP5ImagePfS1_(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %0, i64 4
  %5 = load i32, ptr %4, align 4, !tbaa !5
  %6 = sitofp i32 %5 to float
  %7 = load i32, ptr %0, align 8, !tbaa !11
  %8 = sitofp i32 %7 to float
  %9 = fmul float %6, %8
  %10 = fptosi float %9 to i32
  %11 = zext i32 %10 to i64
  %12 = alloca float, i64 %11, align 16
  %13 = alloca float, i64 %11, align 16
  %14 = tail call noundef ptr @_Z14CreateNewImageP5ImagePc(ptr noundef nonnull %0, ptr noundef nonnull @.str.2)
  %15 = icmp sgt i32 %5, 0
  br i1 %15, label %.preheader.lr.ph, label %._crit_edge45

.preheader.lr.ph:                                 ; preds = %3
  %16 = icmp sgt i32 %7, 0
  %17 = fmul float %6, 5.000000e-01
  %18 = fmul float %8, 5.000000e-01
  br i1 %16, label %.preheader.us, label %._crit_edge45

.preheader.us:                                    ; preds = %.preheader.lr.ph, %._crit_edge.us
  %19 = phi float [ %49, %._crit_edge.us ], [ 0.000000e+00, %.preheader.lr.ph ]
  %.044.us = phi i32 [ %48, %._crit_edge.us ], [ 0, %.preheader.lr.ph ]
  %20 = fsub float %19, %17
  br label %21

21:                                               ; preds = %.preheader.us, %21
  %22 = phi float [ 0.000000e+00, %.preheader.us ], [ %46, %21 ]
  %.03843.us = phi i32 [ 0, %.preheader.us ], [ %45, %21 ]
  %23 = tail call noundef double @_ZSt3powIfiEN9__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 %20, i32 noundef 2)
  %24 = fsub float %22, %18
  %25 = tail call noundef double @_ZSt3powIfiEN9__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 %24, i32 noundef 2)
  %26 = fadd double %23, %25
  %27 = tail call double @sqrt(double noundef %26) #5
  %28 = fptrunc double %27 to float
  %29 = fdiv float 3.000000e+01, %28
  %30 = tail call noundef double @_ZSt3powIfiEN9__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 %29, i32 noundef 2)
  %31 = fadd double %30, 1.000000e+00
  %32 = fdiv double 1.000000e+00, %31
  %33 = fptrunc double %32 to float
  %34 = tail call float @llvm.fmuladd.f32(float %19, float %6, float %22)
  %35 = fptosi float %34 to i32
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds float, ptr %1, i64 %36
  %38 = load float, ptr %37, align 4, !tbaa !12
  %39 = fmul float %38, %33
  %40 = getelementptr inbounds float, ptr %12, i64 %36
  store float %39, ptr %40, align 4, !tbaa !12
  %41 = getelementptr inbounds float, ptr %2, i64 %36
  %42 = load float, ptr %41, align 4, !tbaa !12
  %43 = fmul float %42, %33
  %44 = getelementptr inbounds float, ptr %13, i64 %36
  store float %43, ptr %44, align 4, !tbaa !12
  %45 = add nuw nsw i32 %.03843.us, 1
  %46 = uitofp nneg i32 %45 to float
  %47 = fcmp olt float %46, %8
  br i1 %47, label %21, label %._crit_edge.us, !llvm.loop !14

._crit_edge.us:                                   ; preds = %21
  %48 = add nuw nsw i32 %.044.us, 1
  %49 = uitofp nneg i32 %48 to float
  %50 = fcmp olt float %49, %6
  br i1 %50, label %.preheader.us, label %._crit_edge45, !llvm.loop !16

._crit_edge45:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph, %3
  %51 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  %52 = call noundef ptr @_Z4iDFTP5ImagePfS1_(ptr noundef nonnull %0, ptr noundef nonnull %12, ptr noundef nonnull %13)
  call void @_Z12SavePNMImageP5ImagePc(ptr noundef %52, ptr noundef nonnull @.str.14)
  ret void
}

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIfiEN9__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, i32 noundef) local_unnamed_addr #3

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

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

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 = { 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 #2 = { 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 #3 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !7, i64 4}
!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 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !8, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass