; LLVM IR from biroeniko/raytracer :: src/util/image.ll (ZN5ImageC2Ebbiiii)

; 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.ImageDenoiser = type { i8 }
%struct.Image = type <{ ptr, ptr, ptr, ptr, i32, i32, i32, i32, i8, i8, [6 x i8] }>
%class.Vec3 = type { [3 x float] }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImageC2Ebbiiii(ptr noundef nonnull align 8 dereferenceable(51) %0, i1 noundef zeroext %1, i1 noundef zeroext %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %struct.ImageDenoiser, align 1
  store ptr %0, ptr %8, align 8, !tbaa !5
  %18 = zext i1 %1 to i8
  store i8 %18, ptr %9, align 1, !tbaa !9
  %19 = zext i1 %2 to i8
  store i8 %19, ptr %10, align 1, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !11
  store i32 %4, ptr %12, align 4, !tbaa !11
  store i32 %5, ptr %13, align 4, !tbaa !11
  store i32 %6, ptr %14, align 4, !tbaa !11
  %20 = load ptr, ptr %8, align 8
  %21 = getelementptr inbounds %struct.Image, ptr %20, i32 0, i32 4
  %22 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %22, ptr %21, align 8, !tbaa !13
  %23 = getelementptr inbounds %struct.Image, ptr %20, i32 0, i32 5
  %24 = load i32, ptr %12, align 4, !tbaa !11
  store i32 %24, ptr %23, align 4, !tbaa !16
  %25 = getelementptr inbounds %struct.Image, ptr %20, i32 0, i32 6
  %26 = load i32, ptr %13, align 4, !tbaa !11
  store i32 %26, ptr %25, align 8, !tbaa !17
  %27 = getelementptr inbounds %struct.Image, ptr %20, i32 0, i32 7
  %28 = load i32, ptr %14, align 4, !tbaa !11
  store i32 %28, ptr %27, align 4, !tbaa !18
  %29 = getelementptr inbounds %struct.Image, ptr %20, i32 0, i32 8
  %30 = load i8, ptr %9, align 1, !tbaa !9, !range !19, !noundef !20
  %31 = trunc i8 %30 to i1
  %32 = zext i1 %31 to i8
  store i8 %32, ptr %29, align 8, !tbaa !21
  %33 = getelementptr inbounds %struct.Image, ptr %20, i32 0, i32 9
  %34 = load i8, ptr %10, align 1, !tbaa !9, !range !19, !noundef !20
  %35 = trunc i8 %34 to i1
  %36 = zext i1 %35 to i8
  store i8 %36, ptr %33, align 1, !tbaa !22
  %37 = getelementptr inbounds i8, ptr %20, i64 50
  call void @_ZN13ImageDenoiserC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37)
  %38 = getelementptr inbounds %struct.Image, ptr %20, i32 0, i32 4
  %39 = load i32, ptr %38, align 8, !tbaa !13
  %40 = getelementptr inbounds %struct.Image, ptr %20, i32 0, i32 5
  %41 = load i32, ptr %40, align 4, !tbaa !16
  %42 = mul nsw i32 %39, %41
  %43 = sext i32 %42 to i64
  %44 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %43, i64 12)
  %45 = extractvalue { i64, i1 } %44, 1
  %46 = extractvalue { i64, i1 } %44, 0
  %47 = select i1 %45, i64 -1, i64 %46
  %48 = call noalias noundef nonnull ptr @_Znam(i64 noundef %47) #6
  %49 = icmp eq i64 %43, 0
  br i1 %49, label %57, label %50

50:                                               ; preds = %7
  %51 = getelementptr inbounds %class.Vec3, ptr %48, i64 %43
  br label %52

52:                                               ; preds = %54, %50
  %53 = phi ptr [ %48, %50 ], [ %55, %54 ]
  invoke void @_ZN4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %53)
          to label %54 unwind label %95

54:                                               ; preds = %52
  %55 = getelementptr inbounds %class.Vec3, ptr %53, i64 1
  %56 = icmp eq ptr %55, %51
  br i1 %56, label %57, label %52

57:                                               ; preds = %54, %7
  %58 = getelementptr inbounds %struct.Image, ptr %20, i32 0, i32 0
  store ptr %48, ptr %58, align 8, !tbaa !23
  %59 = getelementptr inbounds %struct.Image, ptr %20, i32 0, i32 4
  %60 = load i32, ptr %59, align 8, !tbaa !13
  %61 = getelementptr inbounds %struct.Image, ptr %20, i32 0, i32 5
  %62 = load i32, ptr %61, align 4, !tbaa !16
  %63 = mul nsw i32 %60, %62
  %64 = sext i32 %63 to i64
  %65 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %64, i64 12)
  %66 = extractvalue { i64, i1 } %65, 1
  %67 = extractvalue { i64, i1 } %65, 0
  %68 = select i1 %66, i64 -1, i64 %67
  %69 = call noalias noundef nonnull ptr @_Znam(i64 noundef %68) #6
  %70 = icmp eq i64 %64, 0
  br i1 %70, label %78, label %71

71:                                               ; preds = %57
  %72 = getelementptr inbounds %class.Vec3, ptr %69, i64 %64
  br label %73

73:                                               ; preds = %75, %71
  %74 = phi ptr [ %69, %71 ], [ %76, %75 ]
  invoke void @_ZN4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %74)
          to label %75 unwind label %99

75:                                               ; preds = %73
  %76 = getelementptr inbounds %class.Vec3, ptr %74, i64 1
  %77 = icmp eq ptr %76, %72
  br i1 %77, label %78, label %73

78:                                               ; preds = %75, %57
  %79 = getelementptr inbounds %struct.Image, ptr %20, i32 0, i32 1
  store ptr %69, ptr %79, align 8, !tbaa !24
  %80 = load i8, ptr %9, align 1, !tbaa !9, !range !19, !noundef !20
  %81 = trunc i8 %80 to i1
  br i1 %81, label %82, label %103

82:                                               ; preds = %78
  %83 = getelementptr inbounds %struct.Image, ptr %20, i32 0, i32 4
  %84 = load i32, ptr %83, align 8, !tbaa !13
  %85 = getelementptr inbounds %struct.Image, ptr %20, i32 0, i32 5
  %86 = load i32, ptr %85, align 4, !tbaa !16
  %87 = mul nsw i32 %84, %86
  %88 = sext i32 %87 to i64
  %89 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %88, i64 4)
  %90 = extractvalue { i64, i1 } %89, 1
  %91 = extractvalue { i64, i1 } %89, 0
  %92 = select i1 %90, i64 -1, i64 %91
  %93 = call noalias noundef nonnull ptr @_Znam(i64 noundef %92) #6
  %94 = getelementptr inbounds %struct.Image, ptr %20, i32 0, i32 2
  store ptr %93, ptr %94, align 8, !tbaa !25
  br label %103

95:                                               ; preds = %52
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %15, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %16, align 4
  call void @_ZdaPvm(ptr noundef %48, i64 noundef %47) #7
  br label %124

99:                                               ; preds = %73
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %15, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %16, align 4
  call void @_ZdaPvm(ptr noundef %69, i64 noundef %68) #7
  br label %124

103:                                              ; preds = %82, %78
  %104 = load i8, ptr %10, align 1, !tbaa !9, !range !19, !noundef !20
  %105 = trunc i8 %104 to i1
  br i1 %105, label %106, label %116

106:                                              ; preds = %103
  %107 = getelementptr inbounds %struct.Image, ptr %20, i32 0, i32 4
  %108 = load i32, ptr %107, align 8, !tbaa !13
  %109 = getelementptr inbounds %struct.Image, ptr %20, i32 0, i32 5
  %110 = load i32, ptr %109, align 4, !tbaa !16
  %111 = mul nsw i32 %108, %110
  %112 = mul nsw i32 %111, 3
  %113 = sext i32 %112 to i64
  %114 = call noalias noundef nonnull ptr @_Znam(i64 noundef %113) #6
  %115 = getelementptr inbounds %struct.Image, ptr %20, i32 0, i32 3
  store ptr %114, ptr %115, align 8, !tbaa !26
  br label %116

116:                                              ; preds = %106, %103
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #8
  %117 = getelementptr inbounds %struct.Image, ptr %20, i32 0, i32 1
  %118 = load ptr, ptr %117, align 8, !tbaa !24
  %119 = getelementptr inbounds %struct.Image, ptr %20, i32 0, i32 4
  %120 = load i32, ptr %119, align 8, !tbaa !13
  %121 = getelementptr inbounds %struct.Image, ptr %20, i32 0, i32 5
  %122 = load i32, ptr %121, align 4, !tbaa !16
  call void @_ZN13ImageDenoiserC2EP4Vec3ii(ptr noundef nonnull align 1 dereferenceable(1) %17, ptr noundef %118, i32 noundef %120, i32 noundef %122)
  %123 = getelementptr inbounds i8, ptr %20, i64 50
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #8
  ret void

124:                                              ; preds = %99, %95
  %125 = load ptr, ptr %15, align 8
  %126 = load i32, ptr %16, align 4
  %127 = insertvalue { ptr, i32 } poison, ptr %125, 0
  %128 = insertvalue { ptr, i32 } %127, i32 %126, 1
  resume { ptr, i32 } %128
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN13ImageDenoiserC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPvm(ptr noundef, i64 noundef) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN13ImageDenoiserC2EP4Vec3ii(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i32 noundef, i32 noundef) unnamed_addr #1 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { 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) }
attributes #3 = { 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 #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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { builtin allocsize(0) }
attributes #7 = { builtin nounwind }
attributes #8 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 32}
!14 = !{!"_ZTS5Image", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !10, i64 48, !10, i64 49, !15, i64 50}
!15 = !{!"_ZTS13ImageDenoiser"}
!16 = !{!14, !12, i64 36}
!17 = !{!14, !12, i64 40}
!18 = !{!14, !12, i64 44}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!14, !10, i64 48}
!22 = !{!14, !10, i64 49}
!23 = !{!14, !6, i64 0}
!24 = !{!14, !6, i64 8}
!25 = !{!14, !6, i64 16}
!26 = !{!14, !6, i64 24}


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

%struct.ImageDenoiser = type { i8 }
%class.Vec3 = type { [3 x float] }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImageC2Ebbiiii(ptr noundef nonnull align 8 dereferenceable(51) %0, i1 noundef zeroext %1, i1 noundef zeroext %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %struct.ImageDenoiser, align 1
  %9 = zext i1 %1 to i8
  %10 = zext i1 %2 to i8
  %11 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 %3, ptr %11, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 36
  store i32 %4, ptr %12, align 4, !tbaa !13
  %13 = getelementptr inbounds i8, ptr %0, i64 40
  store i32 %5, ptr %13, align 8, !tbaa !14
  %14 = getelementptr inbounds i8, ptr %0, i64 44
  store i32 %6, ptr %14, align 4, !tbaa !15
  %15 = getelementptr inbounds i8, ptr %0, i64 48
  store i8 %9, ptr %15, align 8, !tbaa !16
  %16 = getelementptr inbounds i8, ptr %0, i64 49
  store i8 %10, ptr %16, align 1, !tbaa !17
  %17 = getelementptr inbounds i8, ptr %0, i64 50
  tail call void @_ZN13ImageDenoiserC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17)
  %18 = load i32, ptr %11, align 8, !tbaa !5
  %19 = load i32, ptr %12, align 4, !tbaa !13
  %20 = mul nsw i32 %19, %18
  %21 = sext i32 %20 to i64
  %22 = tail call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %21, i64 12)
  %23 = extractvalue { i64, i1 } %22, 1
  %24 = extractvalue { i64, i1 } %22, 0
  %25 = select i1 %23, i64 -1, i64 %24
  %26 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %25) #5
  %27 = icmp eq i32 %20, 0
  br i1 %27, label %.loopexit9.thread, label %29

.loopexit9.thread:                                ; preds = %7
  store ptr %26, ptr %0, align 8, !tbaa !18
  %28 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %25) #5
  br label %.loopexit

29:                                               ; preds = %7
  %30 = getelementptr inbounds %class.Vec3, ptr %26, i64 %21
  br label %31

31:                                               ; preds = %31, %29
  %32 = phi ptr [ %26, %29 ], [ %33, %31 ]
  tail call void @_ZN4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %32)
  %33 = getelementptr inbounds i8, ptr %32, i64 12
  %34 = icmp eq ptr %33, %30
  br i1 %34, label %.loopexit9, label %31

.loopexit9:                                       ; preds = %31
  %.pre = load i32, ptr %11, align 8, !tbaa !5
  %.pre10 = load i32, ptr %12, align 4, !tbaa !13
  %.pre15 = mul nsw i32 %.pre10, %.pre
  %.pre16 = sext i32 %.pre15 to i64
  %.pre18 = tail call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %.pre16, i64 12)
  %.pre20 = extractvalue { i64, i1 } %.pre18, 1
  %.pre22 = extractvalue { i64, i1 } %.pre18, 0
  %.pre24 = select i1 %.pre20, i64 -1, i64 %.pre22
  %35 = icmp eq i32 %.pre15, 0
  store ptr %26, ptr %0, align 8, !tbaa !18
  %36 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %.pre24) #5
  br i1 %35, label %.loopexit, label %37

37:                                               ; preds = %.loopexit9
  %38 = getelementptr inbounds %class.Vec3, ptr %36, i64 %.pre16
  br label %39

39:                                               ; preds = %39, %37
  %40 = phi ptr [ %36, %37 ], [ %41, %39 ]
  tail call void @_ZN4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %40)
  %41 = getelementptr inbounds i8, ptr %40, i64 12
  %42 = icmp eq ptr %41, %38
  br i1 %42, label %.loopexit.loopexit, label %39

.loopexit.loopexit:                               ; preds = %39
  %.pre11.pre.pre = load i32, ptr %11, align 8, !tbaa !5
  %.pre12.pre.pre = load i32, ptr %12, align 4, !tbaa !13
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit9.thread, %.loopexit.loopexit, %.loopexit9
  %43 = phi ptr [ %36, %.loopexit.loopexit ], [ %36, %.loopexit9 ], [ %28, %.loopexit9.thread ]
  %.pre12.pre = phi i32 [ %.pre12.pre.pre, %.loopexit.loopexit ], [ %.pre10, %.loopexit9 ], [ %19, %.loopexit9.thread ]
  %.pre11.pre = phi i32 [ %.pre11.pre.pre, %.loopexit.loopexit ], [ %.pre, %.loopexit9 ], [ %18, %.loopexit9.thread ]
  %44 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %43, ptr %44, align 8, !tbaa !19
  br i1 %1, label %45, label %53

45:                                               ; preds = %.loopexit
  %46 = mul nsw i32 %.pre12.pre, %.pre11.pre
  %47 = sext i32 %46 to i64
  %48 = icmp slt i32 %46, 0
  %49 = shl nsw i64 %47, 2
  %50 = select i1 %48, i64 -1, i64 %49
  %51 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %50) #5
  %52 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %51, ptr %52, align 8, !tbaa !20
  br label %53

53:                                               ; preds = %45, %.loopexit
  br i1 %2, label %54, label %60

54:                                               ; preds = %53
  %55 = mul i32 %.pre11.pre, 3
  %56 = mul i32 %55, %.pre12.pre
  %57 = sext i32 %56 to i64
  %58 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %57) #5
  %59 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %58, ptr %59, align 8, !tbaa !21
  br label %60

60:                                               ; preds = %54, %53
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @_ZN13ImageDenoiserC2EP4Vec3ii(ptr noundef nonnull align 1 dereferenceable(1) %8, ptr noundef nonnull %43, i32 noundef %.pre11.pre, i32 noundef %.pre12.pre)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN13ImageDenoiserC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN13ImageDenoiserC2EP4Vec3ii(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i32 noundef, i32 noundef) unnamed_addr #1 align 2

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

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 = { 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { builtin allocsize(0) }
attributes #6 = { 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, !10, i64 32}
!6 = !{!"_ZTS5Image", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !11, i64 48, !11, i64 49, !12, i64 50}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTS13ImageDenoiser"}
!13 = !{!6, !10, i64 36}
!14 = !{!6, !10, i64 40}
!15 = !{!6, !10, i64 44}
!16 = !{!6, !11, i64 48}
!17 = !{!6, !11, i64 49}
!18 = !{!6, !7, i64 0}
!19 = !{!6, !7, i64 8}
!20 = !{!6, !7, i64 16}
!21 = !{!6, !7, i64 24}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopSimplifyPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass