; LLVM IR from vectozavr/3dzavr :: engine/io/Image.ll (ZNK5Image11downSampledEv)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.Color = type { %"struct.std::array" }
%"struct.std::array" = type { [4 x i8] }
%class.Image = type { i16, i16, ptr, i8, %class.FilePath }
%class.FilePath = type { %"class.std::filesystem::__cxx11::path" }
%"class.std::filesystem::__cxx11::path" = type { %"class.std::__cxx11::basic_string", %"struct.std::filesystem::__cxx11::path::_List" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.std::filesystem::__cxx11::path::_List" = type { %"class.std::unique_ptr" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.2" }
%"struct.std::_Head_base.2" = type { ptr }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5ColorC2Ehhhh(ptr noundef nonnull align 1 dereferenceable(4), i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Image9set_pixelEttRK5Color(ptr noundef nonnull align 8 dereferenceable(64), i16 noundef zeroext, i16 noundef zeroext, ptr noundef nonnull align 1 dereferenceable(4)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZNK5Color1rEv(ptr noundef nonnull align 1 dereferenceable(4)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZNK5Color1gEv(ptr noundef nonnull align 1 dereferenceable(4)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZNK5Color1bEv(ptr noundef nonnull align 1 dereferenceable(4)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZNK5Color1aEv(ptr noundef nonnull align 1 dereferenceable(4)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK5Image9get_pixelEtt(ptr dead_on_unwind noalias writable sret(%class.Color) align 1, ptr noundef nonnull align 8 dereferenceable(64), i16 noundef zeroext, i16 noundef zeroext) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK5Image11downSampledEv(ptr dead_on_unwind noalias writable sret(%class.Image) align 8 %0, ptr noundef nonnull align 8 dereferenceable(64) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i16, align 2
  %6 = alloca i16, align 2
  %7 = alloca i16, align 2
  %8 = alloca i16, align 2
  %9 = alloca i16, align 2
  %10 = alloca i16, align 2
  %11 = alloca i1, align 1
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i16, align 2
  %16 = alloca i16, align 2
  %17 = alloca i16, align 2
  %18 = alloca i16, align 2
  %19 = alloca %class.Color, align 1
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %class.Color, align 1
  %23 = alloca %class.Color, align 1
  %24 = alloca %class.Color, align 1
  %25 = alloca %class.Color, align 1
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %26 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 2, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 2, ptr %6) #5
  %27 = getelementptr inbounds %class.Image, ptr %26, i32 0, i32 0
  %28 = load i16, ptr %27, align 8, !tbaa !9
  %29 = zext i16 %28 to i32
  %30 = sdiv i32 %29, 2
  %31 = trunc i32 %30 to i16
  store i16 %31, ptr %6, align 2, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 2, ptr %7) #5
  store i16 1, ptr %7, align 2, !tbaa !25
  %32 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3maxItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %6, ptr noundef nonnull align 2 dereferenceable(2) %7)
  %33 = load i16, ptr %32, align 2, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 2, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %6) #5
  store i16 %33, ptr %5, align 2, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 2, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 2, ptr %9) #5
  %34 = getelementptr inbounds %class.Image, ptr %26, i32 0, i32 1
  %35 = load i16, ptr %34, align 2, !tbaa !26
  %36 = zext i16 %35 to i32
  %37 = sdiv i32 %36, 2
  %38 = trunc i32 %37 to i16
  store i16 %38, ptr %9, align 2, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 2, ptr %10) #5
  store i16 1, ptr %10, align 2, !tbaa !25
  %39 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3maxItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %9, ptr noundef nonnull align 2 dereferenceable(2) %10)
  %40 = load i16, ptr %39, align 2, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 2, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %9) #5
  store i16 %40, ptr %8, align 2, !tbaa !25
  store i1 false, ptr %11, align 1
  %41 = load i16, ptr %5, align 2, !tbaa !25
  %42 = load i16, ptr %8, align 2, !tbaa !25
  call void @_ZN5ImageC1Ett(ptr noundef nonnull align 8 dereferenceable(64) %0, i16 noundef zeroext %41, i16 noundef zeroext %42)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 0, ptr %12, align 8, !tbaa !27
  br label %43

43:                                               ; preds = %232, %2
  %44 = load i64, ptr %12, align 8, !tbaa !27
  %45 = load i16, ptr %8, align 2, !tbaa !25
  %46 = zext i16 %45 to i64
  %47 = icmp ult i64 %44, %46
  br i1 %47, label %49, label %48

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

49:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store i64 0, ptr %14, align 8, !tbaa !27
  br label %50

50:                                               ; preds = %207, %49
  %51 = load i64, ptr %14, align 8, !tbaa !27
  %52 = load i16, ptr %5, align 2, !tbaa !25
  %53 = zext i16 %52 to i64
  %54 = icmp ult i64 %51, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %50
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %231

56:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 2, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 2, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 2, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 2, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %57 = load i64, ptr %14, align 8, !tbaa !27
  %58 = mul i64 %57, 2
  %59 = trunc i64 %58 to i16
  %60 = load i64, ptr %12, align 8, !tbaa !27
  %61 = mul i64 %60, 2
  %62 = trunc i64 %61 to i16
  invoke void @_ZNK5Image9get_pixelEtt(ptr dead_on_unwind writable sret(%class.Color) align 1 %19, ptr noundef nonnull align 8 dereferenceable(64) %26, i16 noundef zeroext %59, i16 noundef zeroext %62)
          to label %63 unwind label %210

63:                                               ; preds = %56
  %64 = invoke noundef zeroext i8 @_ZNK5Color1rEv(ptr noundef nonnull align 1 dereferenceable(4) %19)
          to label %65 unwind label %210

65:                                               ; preds = %63
  %66 = zext i8 %64 to i16
  store i16 %66, ptr %15, align 2, !tbaa !25
  %67 = invoke noundef zeroext i8 @_ZNK5Color1gEv(ptr noundef nonnull align 1 dereferenceable(4) %19)
          to label %68 unwind label %210

68:                                               ; preds = %65
  %69 = zext i8 %67 to i16
  store i16 %69, ptr %16, align 2, !tbaa !25
  %70 = invoke noundef zeroext i8 @_ZNK5Color1bEv(ptr noundef nonnull align 1 dereferenceable(4) %19)
          to label %71 unwind label %210

71:                                               ; preds = %68
  %72 = zext i8 %70 to i16
  store i16 %72, ptr %17, align 2, !tbaa !25
  %73 = invoke noundef zeroext i8 @_ZNK5Color1aEv(ptr noundef nonnull align 1 dereferenceable(4) %19)
          to label %74 unwind label %210

74:                                               ; preds = %71
  %75 = zext i8 %73 to i16
  store i16 %75, ptr %18, align 2, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %76 = load i64, ptr %14, align 8, !tbaa !27
  %77 = mul i64 %76, 2
  %78 = add i64 %77, 1
  %79 = trunc i64 %78 to i16
  %80 = load i64, ptr %12, align 8, !tbaa !27
  %81 = mul i64 %80, 2
  %82 = trunc i64 %81 to i16
  invoke void @_ZNK5Image9get_pixelEtt(ptr dead_on_unwind writable sret(%class.Color) align 1 %22, ptr noundef nonnull align 8 dereferenceable(64) %26, i16 noundef zeroext %79, i16 noundef zeroext %82)
          to label %83 unwind label %214

83:                                               ; preds = %74
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %19, ptr align 1 %22, i64 4, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  %84 = invoke noundef zeroext i8 @_ZNK5Color1rEv(ptr noundef nonnull align 1 dereferenceable(4) %19)
          to label %85 unwind label %210

85:                                               ; preds = %83
  %86 = zext i8 %84 to i32
  %87 = load i16, ptr %15, align 2, !tbaa !25
  %88 = zext i16 %87 to i32
  %89 = add nsw i32 %88, %86
  %90 = trunc i32 %89 to i16
  store i16 %90, ptr %15, align 2, !tbaa !25
  %91 = invoke noundef zeroext i8 @_ZNK5Color1gEv(ptr noundef nonnull align 1 dereferenceable(4) %19)
          to label %92 unwind label %210

92:                                               ; preds = %85
  %93 = zext i8 %91 to i32
  %94 = load i16, ptr %16, align 2, !tbaa !25
  %95 = zext i16 %94 to i32
  %96 = add nsw i32 %95, %93
  %97 = trunc i32 %96 to i16
  store i16 %97, ptr %16, align 2, !tbaa !25
  %98 = invoke noundef zeroext i8 @_ZNK5Color1bEv(ptr noundef nonnull align 1 dereferenceable(4) %19)
          to label %99 unwind label %210

99:                                               ; preds = %92
  %100 = zext i8 %98 to i32
  %101 = load i16, ptr %17, align 2, !tbaa !25
  %102 = zext i16 %101 to i32
  %103 = add nsw i32 %102, %100
  %104 = trunc i32 %103 to i16
  store i16 %104, ptr %17, align 2, !tbaa !25
  %105 = invoke noundef zeroext i8 @_ZNK5Color1aEv(ptr noundef nonnull align 1 dereferenceable(4) %19)
          to label %106 unwind label %210

106:                                              ; preds = %99
  %107 = zext i8 %105 to i32
  %108 = load i16, ptr %18, align 2, !tbaa !25
  %109 = zext i16 %108 to i32
  %110 = add nsw i32 %109, %107
  %111 = trunc i32 %110 to i16
  store i16 %111, ptr %18, align 2, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %112 = load i64, ptr %14, align 8, !tbaa !27
  %113 = mul i64 %112, 2
  %114 = trunc i64 %113 to i16
  %115 = load i64, ptr %12, align 8, !tbaa !27
  %116 = mul i64 %115, 2
  %117 = add i64 %116, 1
  %118 = trunc i64 %117 to i16
  invoke void @_ZNK5Image9get_pixelEtt(ptr dead_on_unwind writable sret(%class.Color) align 1 %23, ptr noundef nonnull align 8 dereferenceable(64) %26, i16 noundef zeroext %114, i16 noundef zeroext %118)
          to label %119 unwind label %218

119:                                              ; preds = %106
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %19, ptr align 1 %23, i64 4, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  %120 = invoke noundef zeroext i8 @_ZNK5Color1rEv(ptr noundef nonnull align 1 dereferenceable(4) %19)
          to label %121 unwind label %210

121:                                              ; preds = %119
  %122 = zext i8 %120 to i32
  %123 = load i16, ptr %15, align 2, !tbaa !25
  %124 = zext i16 %123 to i32
  %125 = add nsw i32 %124, %122
  %126 = trunc i32 %125 to i16
  store i16 %126, ptr %15, align 2, !tbaa !25
  %127 = invoke noundef zeroext i8 @_ZNK5Color1gEv(ptr noundef nonnull align 1 dereferenceable(4) %19)
          to label %128 unwind label %210

128:                                              ; preds = %121
  %129 = zext i8 %127 to i32
  %130 = load i16, ptr %16, align 2, !tbaa !25
  %131 = zext i16 %130 to i32
  %132 = add nsw i32 %131, %129
  %133 = trunc i32 %132 to i16
  store i16 %133, ptr %16, align 2, !tbaa !25
  %134 = invoke noundef zeroext i8 @_ZNK5Color1bEv(ptr noundef nonnull align 1 dereferenceable(4) %19)
          to label %135 unwind label %210

135:                                              ; preds = %128
  %136 = zext i8 %134 to i32
  %137 = load i16, ptr %17, align 2, !tbaa !25
  %138 = zext i16 %137 to i32
  %139 = add nsw i32 %138, %136
  %140 = trunc i32 %139 to i16
  store i16 %140, ptr %17, align 2, !tbaa !25
  %141 = invoke noundef zeroext i8 @_ZNK5Color1aEv(ptr noundef nonnull align 1 dereferenceable(4) %19)
          to label %142 unwind label %210

142:                                              ; preds = %135
  %143 = zext i8 %141 to i32
  %144 = load i16, ptr %18, align 2, !tbaa !25
  %145 = zext i16 %144 to i32
  %146 = add nsw i32 %145, %143
  %147 = trunc i32 %146 to i16
  store i16 %147, ptr %18, align 2, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %148 = load i64, ptr %14, align 8, !tbaa !27
  %149 = mul i64 %148, 2
  %150 = add i64 %149, 1
  %151 = trunc i64 %150 to i16
  %152 = load i64, ptr %12, align 8, !tbaa !27
  %153 = mul i64 %152, 2
  %154 = add i64 %153, 1
  %155 = trunc i64 %154 to i16
  invoke void @_ZNK5Image9get_pixelEtt(ptr dead_on_unwind writable sret(%class.Color) align 1 %24, ptr noundef nonnull align 8 dereferenceable(64) %26, i16 noundef zeroext %151, i16 noundef zeroext %155)
          to label %156 unwind label %222

156:                                              ; preds = %142
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %19, ptr align 1 %24, i64 4, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  %157 = invoke noundef zeroext i8 @_ZNK5Color1rEv(ptr noundef nonnull align 1 dereferenceable(4) %19)
          to label %158 unwind label %210

158:                                              ; preds = %156
  %159 = zext i8 %157 to i32
  %160 = load i16, ptr %15, align 2, !tbaa !25
  %161 = zext i16 %160 to i32
  %162 = add nsw i32 %161, %159
  %163 = trunc i32 %162 to i16
  store i16 %163, ptr %15, align 2, !tbaa !25
  %164 = invoke noundef zeroext i8 @_ZNK5Color1gEv(ptr noundef nonnull align 1 dereferenceable(4) %19)
          to label %165 unwind label %210

165:                                              ; preds = %158
  %166 = zext i8 %164 to i32
  %167 = load i16, ptr %16, align 2, !tbaa !25
  %168 = zext i16 %167 to i32
  %169 = add nsw i32 %168, %166
  %170 = trunc i32 %169 to i16
  store i16 %170, ptr %16, align 2, !tbaa !25
  %171 = invoke noundef zeroext i8 @_ZNK5Color1bEv(ptr noundef nonnull align 1 dereferenceable(4) %19)
          to label %172 unwind label %210

172:                                              ; preds = %165
  %173 = zext i8 %171 to i32
  %174 = load i16, ptr %17, align 2, !tbaa !25
  %175 = zext i16 %174 to i32
  %176 = add nsw i32 %175, %173
  %177 = trunc i32 %176 to i16
  store i16 %177, ptr %17, align 2, !tbaa !25
  %178 = invoke noundef zeroext i8 @_ZNK5Color1aEv(ptr noundef nonnull align 1 dereferenceable(4) %19)
          to label %179 unwind label %210

179:                                              ; preds = %172
  %180 = zext i8 %178 to i32
  %181 = load i16, ptr %18, align 2, !tbaa !25
  %182 = zext i16 %181 to i32
  %183 = add nsw i32 %182, %180
  %184 = trunc i32 %183 to i16
  store i16 %184, ptr %18, align 2, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %185 = load i16, ptr %15, align 2, !tbaa !25
  %186 = zext i16 %185 to i32
  %187 = sdiv i32 %186, 4
  %188 = trunc i32 %187 to i8
  %189 = load i16, ptr %16, align 2, !tbaa !25
  %190 = zext i16 %189 to i32
  %191 = sdiv i32 %190, 4
  %192 = trunc i32 %191 to i8
  %193 = load i16, ptr %17, align 2, !tbaa !25
  %194 = zext i16 %193 to i32
  %195 = sdiv i32 %194, 4
  %196 = trunc i32 %195 to i8
  %197 = load i16, ptr %18, align 2, !tbaa !25
  %198 = zext i16 %197 to i32
  %199 = sdiv i32 %198, 4
  %200 = trunc i32 %199 to i8
  invoke void @_ZN5ColorC2Ehhhh(ptr noundef nonnull align 1 dereferenceable(4) %25, i8 noundef zeroext %188, i8 noundef zeroext %192, i8 noundef zeroext %196, i8 noundef zeroext %200)
          to label %201 unwind label %226

201:                                              ; preds = %179
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %19, ptr align 1 %25, i64 4, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  %202 = load i64, ptr %14, align 8, !tbaa !27
  %203 = trunc i64 %202 to i16
  %204 = load i64, ptr %12, align 8, !tbaa !27
  %205 = trunc i64 %204 to i16
  invoke void @_ZN5Image9set_pixelEttRK5Color(ptr noundef nonnull align 8 dereferenceable(64) %0, i16 noundef zeroext %203, i16 noundef zeroext %205, ptr noundef nonnull align 1 dereferenceable(4) %19)
          to label %206 unwind label %210

206:                                              ; preds = %201
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #5
  br label %207

207:                                              ; preds = %206
  %208 = load i64, ptr %14, align 8, !tbaa !27
  %209 = add i64 %208, 1
  store i64 %209, ptr %14, align 8, !tbaa !27
  br label %50, !llvm.loop !30

210:                                              ; preds = %201, %172, %165, %158, %156, %135, %128, %121, %119, %99, %92, %85, %83, %71, %68, %65, %63, %56
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %20, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %21, align 4
  br label %230

214:                                              ; preds = %74
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %20, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %230

218:                                              ; preds = %106
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %20, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %230

222:                                              ; preds = %142
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %20, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %230

226:                                              ; preds = %179
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %20, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %230

230:                                              ; preds = %226, %222, %218, %214, %210
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @_ZN5ImageD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %0) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %5) #5
  br label %239

231:                                              ; preds = %55
  br label %232

232:                                              ; preds = %231
  %233 = load i64, ptr %12, align 8, !tbaa !27
  %234 = add i64 %233, 1
  store i64 %234, ptr %12, align 8, !tbaa !27
  br label %43, !llvm.loop !32

235:                                              ; preds = %48
  store i1 true, ptr %11, align 1
  store i32 1, ptr %13, align 4
  %236 = load i1, ptr %11, align 1
  br i1 %236, label %238, label %237

237:                                              ; preds = %235
  call void @_ZN5ImageD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %0) #5
  br label %238

238:                                              ; preds = %237, %235
  call void @llvm.lifetime.end.p0(i64 2, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %5) #5
  ret void

239:                                              ; preds = %230
  %240 = load ptr, ptr %20, align 8
  %241 = load i32, ptr %21, align 4
  %242 = insertvalue { ptr, i32 } poison, ptr %240, 0
  %243 = insertvalue { ptr, i32 } %242, i32 %241, 1
  resume { ptr, i32 } %243
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3maxItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2), ptr noundef nonnull align 2 dereferenceable(2)) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

declare void @_ZN5ImageC1Ett(ptr, i16, i16)

declare void @_ZN5ImageD1Ev(ptr)

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS5Image", !11, i64 0, !11, i64 2, !6, i64 8, !12, i64 16, !13, i64 24}
!11 = !{!"short", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTS8FilePath", !14, i64 0}
!14 = !{!"_ZTSNSt10filesystem7__cxx114pathE", !15, i64 0, !18, i64 32}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !17, i64 8, !7, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSNSt10filesystem7__cxx114path5_ListE", !19, i64 0}
!19 = !{!"_ZTSSt10unique_ptrINSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEE", !20, i64 0}
!20 = !{!"_ZTSSt15__uniq_ptr_dataINSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterELb1ELb1EE", !21, i64 0}
!21 = !{!"_ZTSSt15__uniq_ptr_implINSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEE", !22, i64 0}
!22 = !{!"_ZTSSt5tupleIJPNSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEEE", !23, i64 0}
!23 = !{!"_ZTSSt11_Tuple_implILm0EJPNSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEEE", !24, i64 0}
!24 = !{!"_ZTSSt10_Head_baseILm0EPNSt10filesystem7__cxx114path5_List5_ImplELb0EE", !6, i64 0}
!25 = !{!11, !11, i64 0}
!26 = !{!10, !11, i64 2}
!27 = !{!17, !17, i64 0}
!28 = !{i64 0, i64 4, !29}
!29 = !{!7, !7, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.Color = type { %"struct.std::array" }
%"struct.std::array" = type { [4 x i8] }
%class.Image = type { i16, i16, ptr, i8, %class.FilePath }
%class.FilePath = type { %"class.std::filesystem::__cxx11::path" }
%"class.std::filesystem::__cxx11::path" = type { %"class.std::__cxx11::basic_string", %"struct.std::filesystem::__cxx11::path::_List" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.std::filesystem::__cxx11::path::_List" = type { %"class.std::unique_ptr" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.2" }
%"struct.std::_Head_base.2" = type { ptr }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5ColorC2Ehhhh(ptr noundef nonnull align 1 dereferenceable(4), i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Image9set_pixelEttRK5Color(ptr noundef nonnull align 8 dereferenceable(64), i16 noundef zeroext, i16 noundef zeroext, ptr noundef nonnull align 1 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZNK5Color1rEv(ptr noundef nonnull align 1 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZNK5Color1gEv(ptr noundef nonnull align 1 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZNK5Color1bEv(ptr noundef nonnull align 1 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZNK5Color1aEv(ptr noundef nonnull align 1 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK5Image9get_pixelEtt(ptr dead_on_unwind noalias writable sret(%class.Color) align 1, ptr noundef nonnull align 8 dereferenceable(64), i16 noundef zeroext, i16 noundef zeroext) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK5Image11downSampledEv(ptr dead_on_unwind noalias writable sret(%class.Image) align 8 %0, ptr noundef nonnull align 8 dereferenceable(64) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i16, align 2
  %4 = alloca i16, align 2
  %5 = alloca i16, align 2
  %6 = alloca i16, align 2
  %7 = alloca %class.Color, align 4
  %8 = alloca %class.Color, align 4
  %9 = alloca %class.Color, align 4
  %10 = alloca %class.Color, align 4
  %11 = alloca %class.Color, align 4
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %3) #4
  %12 = load i16, ptr %1, align 8, !tbaa !5
  %13 = lshr i16 %12, 1
  store i16 %13, ptr %3, align 2, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %4) #4
  store i16 1, ptr %4, align 2, !tbaa !24
  %14 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3maxItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %3, ptr noundef nonnull align 2 dereferenceable(2) %4)
  %15 = load i16, ptr %14, align 2, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %5) #4
  %16 = getelementptr inbounds i8, ptr %1, i64 2
  %17 = load i16, ptr %16, align 2, !tbaa !25
  %18 = lshr i16 %17, 1
  store i16 %18, ptr %5, align 2, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %6) #4
  store i16 1, ptr %6, align 2, !tbaa !24
  %19 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3maxItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2) %5, ptr noundef nonnull align 2 dereferenceable(2) %6)
  %20 = load i16, ptr %19, align 2, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %5) #4
  call void @_ZN5ImageC1Ett(ptr noundef nonnull align 8 dereferenceable(64) %0, i16 noundef zeroext %15, i16 noundef zeroext %20)
  %21 = zext i16 %20 to i64
  %.not = icmp eq i16 %20, 0
  br i1 %.not, label %._crit_edge43, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %2
  %22 = zext i16 %15 to i64
  %.not53 = icmp eq i16 %15, 0
  br i1 %.not53, label %._crit_edge43, label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.lr.ph, %._crit_edge.us
  %.03942.us = phi i64 [ %90, %._crit_edge.us ], [ 0, %.preheader.lr.ph ]
  %.039.tr.us = trunc i64 %.03942.us to i16
  %23 = shl i16 %.039.tr.us, 1
  %24 = or disjoint i16 %23, 1
  br label %25

25:                                               ; preds = %.preheader.us, %88
  %.03841.us = phi i64 [ 0, %.preheader.us ], [ %89, %88 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  %.038.tr.us = trunc i64 %.03841.us to i16
  %26 = shl i16 %.038.tr.us, 1
  invoke void @_ZNK5Image9get_pixelEtt(ptr dead_on_unwind nonnull writable sret(%class.Color) align 1 %7, ptr noundef nonnull align 8 dereferenceable(64) %1, i16 noundef zeroext %26, i16 noundef zeroext %23)
          to label %27 unwind label %.split.us

27:                                               ; preds = %25
  %28 = call noundef zeroext i8 @_ZNK5Color1rEv(ptr noundef nonnull align 1 dereferenceable(4) %7)
  %29 = call noundef zeroext i8 @_ZNK5Color1gEv(ptr noundef nonnull align 1 dereferenceable(4) %7)
  %30 = call noundef zeroext i8 @_ZNK5Color1bEv(ptr noundef nonnull align 1 dereferenceable(4) %7)
  %31 = call noundef zeroext i8 @_ZNK5Color1aEv(ptr noundef nonnull align 1 dereferenceable(4) %7)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  %32 = or disjoint i16 %26, 1
  invoke void @_ZNK5Image9get_pixelEtt(ptr dead_on_unwind nonnull writable sret(%class.Color) align 1 %8, ptr noundef nonnull align 8 dereferenceable(64) %1, i16 noundef zeroext %32, i16 noundef zeroext %23)
          to label %33 unwind label %.split45.us

33:                                               ; preds = %27
  %34 = load i32, ptr %8, align 4, !tbaa !26
  store i32 %34, ptr %7, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  %35 = call noundef zeroext i8 @_ZNK5Color1rEv(ptr noundef nonnull align 1 dereferenceable(4) %7)
  %36 = call noundef zeroext i8 @_ZNK5Color1gEv(ptr noundef nonnull align 1 dereferenceable(4) %7)
  %37 = call noundef zeroext i8 @_ZNK5Color1bEv(ptr noundef nonnull align 1 dereferenceable(4) %7)
  %38 = call noundef zeroext i8 @_ZNK5Color1aEv(ptr noundef nonnull align 1 dereferenceable(4) %7)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  invoke void @_ZNK5Image9get_pixelEtt(ptr dead_on_unwind nonnull writable sret(%class.Color) align 1 %9, ptr noundef nonnull align 8 dereferenceable(64) %1, i16 noundef zeroext %26, i16 noundef zeroext %24)
          to label %39 unwind label %.split48.us

39:                                               ; preds = %33
  %40 = load i32, ptr %9, align 4, !tbaa !26
  store i32 %40, ptr %7, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  %41 = call noundef zeroext i8 @_ZNK5Color1rEv(ptr noundef nonnull align 1 dereferenceable(4) %7)
  %42 = call noundef zeroext i8 @_ZNK5Color1gEv(ptr noundef nonnull align 1 dereferenceable(4) %7)
  %43 = call noundef zeroext i8 @_ZNK5Color1bEv(ptr noundef nonnull align 1 dereferenceable(4) %7)
  %44 = call noundef zeroext i8 @_ZNK5Color1aEv(ptr noundef nonnull align 1 dereferenceable(4) %7)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  invoke void @_ZNK5Image9get_pixelEtt(ptr dead_on_unwind nonnull writable sret(%class.Color) align 1 %10, ptr noundef nonnull align 8 dereferenceable(64) %1, i16 noundef zeroext %32, i16 noundef zeroext %24)
          to label %45 unwind label %.split51.us

45:                                               ; preds = %39
  %46 = zext i8 %31 to i16
  %47 = zext i8 %38 to i16
  %48 = add nuw nsw i16 %47, %46
  %49 = zext i8 %44 to i16
  %50 = add nuw nsw i16 %48, %49
  %51 = zext i8 %30 to i16
  %52 = zext i8 %37 to i16
  %53 = add nuw nsw i16 %52, %51
  %54 = zext i8 %43 to i16
  %55 = add nuw nsw i16 %53, %54
  %56 = zext i8 %29 to i16
  %57 = zext i8 %36 to i16
  %58 = add nuw nsw i16 %57, %56
  %59 = zext i8 %42 to i16
  %60 = add nuw nsw i16 %58, %59
  %61 = zext i8 %28 to i16
  %62 = zext i8 %35 to i16
  %63 = add nuw nsw i16 %62, %61
  %64 = zext i8 %41 to i16
  %65 = add nuw nsw i16 %63, %64
  %66 = load i32, ptr %10, align 4, !tbaa !26
  store i32 %66, ptr %7, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  %67 = call noundef zeroext i8 @_ZNK5Color1rEv(ptr noundef nonnull align 1 dereferenceable(4) %7)
  %68 = zext i8 %67 to i16
  %69 = add nuw nsw i16 %65, %68
  %70 = call noundef zeroext i8 @_ZNK5Color1gEv(ptr noundef nonnull align 1 dereferenceable(4) %7)
  %71 = zext i8 %70 to i16
  %72 = add nuw nsw i16 %60, %71
  %73 = call noundef zeroext i8 @_ZNK5Color1bEv(ptr noundef nonnull align 1 dereferenceable(4) %7)
  %74 = zext i8 %73 to i16
  %75 = add nuw nsw i16 %55, %74
  %76 = call noundef zeroext i8 @_ZNK5Color1aEv(ptr noundef nonnull align 1 dereferenceable(4) %7)
  %77 = zext i8 %76 to i16
  %78 = add nuw nsw i16 %50, %77
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  %79 = lshr i16 %69, 2
  %80 = trunc nuw i16 %79 to i8
  %81 = lshr i16 %72, 2
  %82 = trunc nuw i16 %81 to i8
  %83 = lshr i16 %75, 2
  %84 = trunc nuw i16 %83 to i8
  %85 = lshr i16 %78, 2
  %86 = trunc nuw i16 %85 to i8
  call void @_ZN5ColorC2Ehhhh(ptr noundef nonnull align 1 dereferenceable(4) %11, i8 noundef zeroext %80, i8 noundef zeroext %82, i8 noundef zeroext %84, i8 noundef zeroext %86)
  %87 = load i32, ptr %11, align 4, !tbaa !26
  store i32 %87, ptr %7, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  invoke void @_ZN5Image9set_pixelEttRK5Color(ptr noundef nonnull align 8 dereferenceable(64) %0, i16 noundef zeroext %.038.tr.us, i16 noundef zeroext %.039.tr.us, ptr noundef nonnull align 1 dereferenceable(4) %7)
          to label %88 unwind label %.split.us

88:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  %89 = add nuw nsw i64 %.03841.us, 1
  %exitcond.not = icmp eq i64 %89, %22
  br i1 %exitcond.not, label %._crit_edge.us, label %25, !llvm.loop !27

._crit_edge.us:                                   ; preds = %88
  %90 = add nuw nsw i64 %.03942.us, 1
  %exitcond55.not = icmp eq i64 %90, %21
  br i1 %exitcond55.not, label %._crit_edge43, label %.preheader.us, !llvm.loop !29

.split.us:                                        ; preds = %45, %25
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %95

.split45.us:                                      ; preds = %27
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  br label %95

.split48.us:                                      ; preds = %33
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  br label %95

.split51.us:                                      ; preds = %39
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  br label %95

95:                                               ; preds = %.split51.us, %.split48.us, %.split45.us, %.split.us
  %.pn = phi { ptr, i32 } [ %91, %.split.us ], [ %94, %.split51.us ], [ %93, %.split48.us ], [ %92, %.split45.us ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @_ZN5ImageD1Ev(ptr noundef nonnull align 8 dereferenceable(64) %0) #4
  resume { ptr, i32 } %.pn

._crit_edge43:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph, %2
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 2 dereferenceable(2) ptr @_ZSt3maxItERKT_S2_S2_(ptr noundef nonnull align 2 dereferenceable(2), ptr noundef nonnull align 2 dereferenceable(2)) local_unnamed_addr #3

declare void @_ZN5ImageC1Ett(ptr, i16, i16) local_unnamed_addr

declare void @_ZN5ImageD1Ev(ptr) local_unnamed_addr

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 = { 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 0}
!6 = !{!"_ZTS5Image", !7, i64 0, !7, i64 2, !10, i64 8, !11, i64 16, !12, i64 24}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTS8FilePath", !13, i64 0}
!13 = !{!"_ZTSNSt10filesystem7__cxx114pathE", !14, i64 0, !17, i64 32}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !16, i64 8, !8, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!16 = !{!"long", !8, i64 0}
!17 = !{!"_ZTSNSt10filesystem7__cxx114path5_ListE", !18, i64 0}
!18 = !{!"_ZTSSt10unique_ptrINSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEE", !19, i64 0}
!19 = !{!"_ZTSSt15__uniq_ptr_dataINSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterELb1ELb1EE", !20, i64 0}
!20 = !{!"_ZTSSt15__uniq_ptr_implINSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEE", !21, i64 0}
!21 = !{!"_ZTSSt5tupleIJPNSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEEE", !22, i64 0}
!22 = !{!"_ZTSSt11_Tuple_implILm0EJPNSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEEE", !23, i64 0}
!23 = !{!"_ZTSSt10_Head_baseILm0EPNSt10filesystem7__cxx114path5_List5_ImplELb0EE", !10, i64 0}
!24 = !{!7, !7, i64 0}
!25 = !{!6, !7, i64 2}
!26 = !{!8, !8, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass