; LLVM IR from giacomo-ascari/dichotomic-compression :: src/dc/dc-compressor (dc-compressor)

; 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._dc_corners = type { i64, i64, i64, i64 }
%struct._dc_heavy_sector = type <{ %struct._dc_corners, %class.dc_pixel, i8, i8, [3 x i8] }>
%class.dc_pixel = type { i8, i8, i8 }
%"struct.std::pair.7" = type { i64, %struct._dc_heavy_sector }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_iterator" = type { ptr }
%class.dc = type { i8, i64, i64, i64, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i64, %class.dc_pixel_matrix, %"class.std::map", %"class.std::vector" }
%"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] }
%class.dc_pixel_matrix = type { ptr, i64, i64 }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, _dc_heavy_sector>, std::_Select1st<std::pair<const unsigned long, _dc_heavy_sector>>, std::less<unsigned long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, _dc_heavy_sector>, std::_Select1st<std::pair<const unsigned long, _dc_heavy_sector>>, std::less<unsigned long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<_dc_light_sector, std::allocator<_dc_light_sector>>::_Vector_impl" }
%"struct.std::_Vector_base<_dc_light_sector, std::allocator<_dc_light_sector>>::_Vector_impl" = type { %"struct.std::_Vector_base<_dc_light_sector, std::allocator<_dc_light_sector>>::_Vector_impl_data" }
%"struct.std::_Vector_base<_dc_light_sector, std::allocator<_dc_light_sector>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN15dc_pixel_matrix9get_widthEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN15dc_pixel_matrix10get_heightEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13dc_compressor10_sectorizeE11_dc_cornersm11dc_channels(ptr noundef nonnull align 8 dereferenceable(204) %0, ptr noundef byval(%struct._dc_corners) align 8 %1, i64 noundef %2, i32 noundef %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca %struct._dc_corners, align 8
  %14 = alloca %struct._dc_heavy_sector, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %struct._dc_corners, align 8
  %18 = alloca %struct._dc_corners, align 8
  %19 = alloca %struct._dc_corners, align 8
  %20 = alloca %struct._dc_corners, align 8
  %21 = alloca %struct._dc_corners, align 8
  %22 = alloca %struct._dc_corners, align 8
  %23 = alloca %struct._dc_corners, align 8
  %24 = alloca %struct._dc_corners, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca %"struct.std::pair.7", align 8
  %28 = alloca %"struct.std::pair", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  store i32 %3, ptr %7, align 4, !tbaa !11
  %29 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %30 = getelementptr inbounds %class.dc, ptr %29, i32 0, i32 7
  %31 = load i32, ptr %7, align 4, !tbaa !11
  %32 = call noundef i64 @_ZN15dc_pixel_matrix9get_deltaER11_dc_corners11dc_channels(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %31)
  store i64 %32, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %33 = getelementptr inbounds %struct._dc_corners, ptr %1, i32 0, i32 2
  %34 = load i64, ptr %33, align 8, !tbaa !13
  %35 = getelementptr inbounds %struct._dc_corners, ptr %1, i32 0, i32 0
  %36 = load i64, ptr %35, align 8, !tbaa !15
  %37 = sub i64 %34, %36
  store i64 %37, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %38 = getelementptr inbounds %struct._dc_corners, ptr %1, i32 0, i32 3
  %39 = load i64, ptr %38, align 8, !tbaa !16
  %40 = getelementptr inbounds %struct._dc_corners, ptr %1, i32 0, i32 1
  %41 = load i64, ptr %40, align 8, !tbaa !17
  %42 = sub i64 %39, %41
  store i64 %42, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %43 = load i64, ptr %9, align 8, !tbaa !9
  %44 = load i64, ptr %10, align 8, !tbaa !9
  %45 = mul i64 %43, %44
  store i64 %45, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  store i64 0, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #8
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr %14) #8
  call void @_ZN16_dc_heavy_sectorC2Ev(ptr noundef nonnull align 8 dereferenceable(37) %14)
  %46 = load i64, ptr %11, align 8, !tbaa !9
  %47 = icmp ugt i64 %46, 1
  br i1 %47, label %48, label %134

48:                                               ; preds = %4
  %49 = load i64, ptr %8, align 8, !tbaa !9
  %50 = getelementptr inbounds %class.dc, ptr %29, i32 0, i32 3
  %51 = load i64, ptr %50, align 8, !tbaa !18
  %52 = icmp ugt i64 %49, %51
  br i1 %52, label %53, label %134

53:                                               ; preds = %48
  %54 = load i64, ptr %6, align 8, !tbaa !9
  %55 = add i64 %54, 1
  store i64 %55, ptr %6, align 8, !tbaa !9
  %56 = load i64, ptr %9, align 8, !tbaa !9
  %57 = load i64, ptr %10, align 8, !tbaa !9
  %58 = icmp ugt i64 %56, %57
  br i1 %58, label %59, label %98

59:                                               ; preds = %53
  %60 = getelementptr inbounds %struct._dc_corners, ptr %1, i32 0, i32 0
  %61 = load i64, ptr %60, align 8, !tbaa !15
  %62 = getelementptr inbounds %struct._dc_corners, ptr %1, i32 0, i32 2
  %63 = load i64, ptr %62, align 8, !tbaa !13
  %64 = invoke noundef i64 @_Z6middlemm(i64 noundef %61, i64 noundef %63)
          to label %65 unwind label %94

65:                                               ; preds = %59
  store i64 %64, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #8
  %66 = getelementptr inbounds %struct._dc_corners, ptr %17, i32 0, i32 0
  %67 = getelementptr inbounds %struct._dc_corners, ptr %1, i32 0, i32 0
  %68 = load i64, ptr %67, align 8, !tbaa !15
  store i64 %68, ptr %66, align 8, !tbaa !15
  %69 = getelementptr inbounds %struct._dc_corners, ptr %17, i32 0, i32 1
  %70 = getelementptr inbounds %struct._dc_corners, ptr %1, i32 0, i32 1
  %71 = load i64, ptr %70, align 8, !tbaa !17
  store i64 %71, ptr %69, align 8, !tbaa !17
  %72 = getelementptr inbounds %struct._dc_corners, ptr %17, i32 0, i32 2
  %73 = load i64, ptr %12, align 8, !tbaa !9
  store i64 %73, ptr %72, align 8, !tbaa !13
  %74 = getelementptr inbounds %struct._dc_corners, ptr %17, i32 0, i32 3
  %75 = getelementptr inbounds %struct._dc_corners, ptr %1, i32 0, i32 3
  %76 = load i64, ptr %75, align 8, !tbaa !16
  store i64 %76, ptr %74, align 8, !tbaa !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %17, i64 32, i1 false), !tbaa.struct !36
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %13, i64 32, i1 false), !tbaa.struct !36
  %77 = load i64, ptr %6, align 8, !tbaa !9
  %78 = load i32, ptr %7, align 4, !tbaa !11
  invoke void @_ZN13dc_compressor10_sectorizeE11_dc_cornersm11dc_channels(ptr noundef nonnull align 8 dereferenceable(204) %29, ptr noundef byval(%struct._dc_corners) align 8 %18, i64 noundef %77, i32 noundef %78)
          to label %79 unwind label %94

79:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #8
  %80 = getelementptr inbounds %struct._dc_corners, ptr %19, i32 0, i32 0
  %81 = load i64, ptr %12, align 8, !tbaa !9
  store i64 %81, ptr %80, align 8, !tbaa !15
  %82 = getelementptr inbounds %struct._dc_corners, ptr %19, i32 0, i32 1
  %83 = getelementptr inbounds %struct._dc_corners, ptr %1, i32 0, i32 1
  %84 = load i64, ptr %83, align 8, !tbaa !17
  store i64 %84, ptr %82, align 8, !tbaa !17
  %85 = getelementptr inbounds %struct._dc_corners, ptr %19, i32 0, i32 2
  %86 = getelementptr inbounds %struct._dc_corners, ptr %1, i32 0, i32 2
  %87 = load i64, ptr %86, align 8, !tbaa !13
  store i64 %87, ptr %85, align 8, !tbaa !13
  %88 = getelementptr inbounds %struct._dc_corners, ptr %19, i32 0, i32 3
  %89 = getelementptr inbounds %struct._dc_corners, ptr %1, i32 0, i32 3
  %90 = load i64, ptr %89, align 8, !tbaa !16
  store i64 %90, ptr %88, align 8, !tbaa !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %19, i64 32, i1 false), !tbaa.struct !36
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %13, i64 32, i1 false), !tbaa.struct !36
  %91 = load i64, ptr %6, align 8, !tbaa !9
  %92 = load i32, ptr %7, align 4, !tbaa !11
  invoke void @_ZN13dc_compressor10_sectorizeE11_dc_cornersm11dc_channels(ptr noundef nonnull align 8 dereferenceable(204) %29, ptr noundef byval(%struct._dc_corners) align 8 %20, i64 noundef %91, i32 noundef %92)
          to label %93 unwind label %94

93:                                               ; preds = %79
  br label %133

94:                                               ; preds = %118, %104, %98, %79, %65, %59
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %15, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %16, align 4
  br label %203

98:                                               ; preds = %53
  %99 = getelementptr inbounds %struct._dc_corners, ptr %1, i32 0, i32 1
  %100 = load i64, ptr %99, align 8, !tbaa !17
  %101 = getelementptr inbounds %struct._dc_corners, ptr %1, i32 0, i32 3
  %102 = load i64, ptr %101, align 8, !tbaa !16
  %103 = invoke noundef i64 @_Z6middlemm(i64 noundef %100, i64 noundef %102)
          to label %104 unwind label %94

104:                                              ; preds = %98
  store i64 %103, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #8
  %105 = getelementptr inbounds %struct._dc_corners, ptr %21, i32 0, i32 0
  %106 = getelementptr inbounds %struct._dc_corners, ptr %1, i32 0, i32 0
  %107 = load i64, ptr %106, align 8, !tbaa !15
  store i64 %107, ptr %105, align 8, !tbaa !15
  %108 = getelementptr inbounds %struct._dc_corners, ptr %21, i32 0, i32 1
  %109 = getelementptr inbounds %struct._dc_corners, ptr %1, i32 0, i32 1
  %110 = load i64, ptr %109, align 8, !tbaa !17
  store i64 %110, ptr %108, align 8, !tbaa !17
  %111 = getelementptr inbounds %struct._dc_corners, ptr %21, i32 0, i32 2
  %112 = getelementptr inbounds %struct._dc_corners, ptr %1, i32 0, i32 2
  %113 = load i64, ptr %112, align 8, !tbaa !13
  store i64 %113, ptr %111, align 8, !tbaa !13
  %114 = getelementptr inbounds %struct._dc_corners, ptr %21, i32 0, i32 3
  %115 = load i64, ptr %12, align 8, !tbaa !9
  store i64 %115, ptr %114, align 8, !tbaa !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %21, i64 32, i1 false), !tbaa.struct !36
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %13, i64 32, i1 false), !tbaa.struct !36
  %116 = load i64, ptr %6, align 8, !tbaa !9
  %117 = load i32, ptr %7, align 4, !tbaa !11
  invoke void @_ZN13dc_compressor10_sectorizeE11_dc_cornersm11dc_channels(ptr noundef nonnull align 8 dereferenceable(204) %29, ptr noundef byval(%struct._dc_corners) align 8 %22, i64 noundef %116, i32 noundef %117)
          to label %118 unwind label %94

118:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #8
  %119 = getelementptr inbounds %struct._dc_corners, ptr %23, i32 0, i32 0
  %120 = getelementptr inbounds %struct._dc_corners, ptr %1, i32 0, i32 0
  %121 = load i64, ptr %120, align 8, !tbaa !15
  store i64 %121, ptr %119, align 8, !tbaa !15
  %122 = getelementptr inbounds %struct._dc_corners, ptr %23, i32 0, i32 1
  %123 = load i64, ptr %12, align 8, !tbaa !9
  store i64 %123, ptr %122, align 8, !tbaa !17
  %124 = getelementptr inbounds %struct._dc_corners, ptr %23, i32 0, i32 2
  %125 = getelementptr inbounds %struct._dc_corners, ptr %1, i32 0, i32 2
  %126 = load i64, ptr %125, align 8, !tbaa !13
  store i64 %126, ptr %124, align 8, !tbaa !13
  %127 = getelementptr inbounds %struct._dc_corners, ptr %23, i32 0, i32 3
  %128 = getelementptr inbounds %struct._dc_corners, ptr %1, i32 0, i32 3
  %129 = load i64, ptr %128, align 8, !tbaa !16
  store i64 %129, ptr %127, align 8, !tbaa !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %23, i64 32, i1 false), !tbaa.struct !36
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %13, i64 32, i1 false), !tbaa.struct !36
  %130 = load i64, ptr %6, align 8, !tbaa !9
  %131 = load i32, ptr %7, align 4, !tbaa !11
  invoke void @_ZN13dc_compressor10_sectorizeE11_dc_cornersm11dc_channels(ptr noundef nonnull align 8 dereferenceable(204) %29, ptr noundef byval(%struct._dc_corners) align 8 %24, i64 noundef %130, i32 noundef %131)
          to label %132 unwind label %94

132:                                              ; preds = %118
  br label %133

133:                                              ; preds = %132, %93
  br label %202

134:                                              ; preds = %48, %4
  %135 = getelementptr inbounds %class.dc, ptr %29, i32 0, i32 6
  %136 = load i64, ptr %135, align 8, !tbaa !37
  %137 = add i64 %136, 1
  store i64 %137, ptr %135, align 8, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %138 = load i32, ptr %7, align 4, !tbaa !11
  %139 = icmp eq i32 %138, 3
  br i1 %139, label %140, label %154

140:                                              ; preds = %134
  %141 = getelementptr inbounds %struct._dc_corners, ptr %1, i32 0, i32 0
  %142 = load i64, ptr %141, align 8, !tbaa !15
  %143 = getelementptr inbounds %struct._dc_corners, ptr %1, i32 0, i32 1
  %144 = load i64, ptr %143, align 8, !tbaa !17
  %145 = getelementptr inbounds %class.dc, ptr %29, i32 0, i32 7
  %146 = invoke noundef i64 @_ZN15dc_pixel_matrix9get_widthEv(ptr noundef nonnull align 8 dereferenceable(24) %145)
          to label %147 unwind label %150

147:                                              ; preds = %140
  %148 = invoke noundef i64 @_Z2ixmmm(i64 noundef %142, i64 noundef %144, i64 noundef %146)
          to label %149 unwind label %150

149:                                              ; preds = %147
  store i64 %148, ptr %25, align 8, !tbaa !9
  br label %176

150:                                              ; preds = %176, %168, %160, %157, %154, %147, %140
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %15, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %16, align 4
  br label %201

154:                                              ; preds = %134
  %155 = getelementptr inbounds %class.dc, ptr %29, i32 0, i32 7
  %156 = invoke noundef i64 @_ZN15dc_pixel_matrix9get_widthEv(ptr noundef nonnull align 8 dereferenceable(24) %155)
          to label %157 unwind label %150

157:                                              ; preds = %154
  %158 = getelementptr inbounds %class.dc, ptr %29, i32 0, i32 7
  %159 = invoke noundef i64 @_ZN15dc_pixel_matrix10get_heightEv(ptr noundef nonnull align 8 dereferenceable(24) %158)
          to label %160 unwind label %150

160:                                              ; preds = %157
  %161 = mul i64 %156, %159
  store i64 %161, ptr %26, align 8, !tbaa !9
  %162 = getelementptr inbounds %struct._dc_corners, ptr %1, i32 0, i32 0
  %163 = load i64, ptr %162, align 8, !tbaa !15
  %164 = getelementptr inbounds %struct._dc_corners, ptr %1, i32 0, i32 1
  %165 = load i64, ptr %164, align 8, !tbaa !17
  %166 = getelementptr inbounds %class.dc, ptr %29, i32 0, i32 7
  %167 = invoke noundef i64 @_ZN15dc_pixel_matrix9get_widthEv(ptr noundef nonnull align 8 dereferenceable(24) %166)
          to label %168 unwind label %150

168:                                              ; preds = %160
  %169 = invoke noundef i64 @_Z2ixmmm(i64 noundef %163, i64 noundef %165, i64 noundef %167)
          to label %170 unwind label %150

170:                                              ; preds = %168
  %171 = load i64, ptr %26, align 8, !tbaa !9
  %172 = load i32, ptr %7, align 4, !tbaa !11
  %173 = sext i32 %172 to i64
  %174 = mul i64 %171, %173
  %175 = add i64 %169, %174
  store i64 %175, ptr %25, align 8, !tbaa !9
  br label %176

176:                                              ; preds = %170, %149
  %177 = getelementptr inbounds %class.dc, ptr %29, i32 0, i32 7
  %178 = load i32, ptr %7, align 4, !tbaa !11
  invoke void @_ZN15dc_pixel_matrix11get_averageER11_dc_cornersR16_dc_heavy_sector11dc_channels(ptr noundef nonnull align 8 dereferenceable(24) %177, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(37) %14, i32 noundef %178)
          to label %179 unwind label %150

179:                                              ; preds = %176
  %180 = getelementptr inbounds %struct._dc_heavy_sector, ptr %14, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %180, ptr align 8 %1, i64 32, i1 false), !tbaa.struct !36
  %181 = load i64, ptr %6, align 8, !tbaa !9
  %182 = trunc i64 %181 to i8
  %183 = getelementptr inbounds %struct._dc_heavy_sector, ptr %14, i32 0, i32 3
  store i8 %182, ptr %183, align 4, !tbaa !38
  %184 = getelementptr inbounds %class.dc, ptr %29, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 48, ptr %27) #8
  invoke void @_ZNSt4pairIm16_dc_heavy_sectorEC2IRmRS0_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(48) %27, ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(37) %14)
          to label %185 unwind label %192

185:                                              ; preds = %179
  %186 = invoke { ptr, i8 } @_ZNSt3mapIm16_dc_heavy_sectorSt4lessImESaISt4pairIKmS0_EEE6insertIS3_ImS0_EEENSt9enable_ifIXsr16is_constructibleIS5_T_EE5valueES3_ISt17_Rb_tree_iteratorIS5_EbEE4typeEOSB_(ptr noundef nonnull align 8 dereferenceable(48) %184, ptr noundef nonnull align 8 dereferenceable(48) %27)
          to label %187 unwind label %196

187:                                              ; preds = %185
  %188 = getelementptr inbounds { ptr, i8 }, ptr %28, i32 0, i32 0
  %189 = extractvalue { ptr, i8 } %186, 0
  store ptr %189, ptr %188, align 8
  %190 = getelementptr inbounds { ptr, i8 }, ptr %28, i32 0, i32 1
  %191 = extractvalue { ptr, i8 } %186, 1
  store i8 %191, ptr %190, align 8
  call void @_ZNSt4pairIm16_dc_heavy_sectorED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %27) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %202

192:                                              ; preds = %179
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %15, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %16, align 4
  br label %200

196:                                              ; preds = %185
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %15, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %16, align 4
  call void @_ZNSt4pairIm16_dc_heavy_sectorED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %27) #8
  br label %200

200:                                              ; preds = %196, %192
  call void @llvm.lifetime.end.p0(i64 48, ptr %27) #8
  br label %201

201:                                              ; preds = %200, %150
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %203

202:                                              ; preds = %187, %133
  call void @_ZN16_dc_heavy_sectorD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %14) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  ret void

203:                                              ; preds = %201, %94
  call void @_ZN16_dc_heavy_sectorD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %14) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %204

204:                                              ; preds = %203
  %205 = load ptr, ptr %15, align 8
  %206 = load i32, ptr %16, align 4
  %207 = insertvalue { ptr, i32 } poison, ptr %205, 0
  %208 = insertvalue { ptr, i32 } %207, i32 %206, 1
  resume { ptr, i32 } %208
}

declare noundef i64 @_ZN15dc_pixel_matrix9get_deltaER11_dc_corners11dc_channels(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN16_dc_heavy_sectorC2Ev(ptr noundef nonnull align 8 dereferenceable(37)) unnamed_addr #5 align 2

declare noundef i64 @_Z6middlemm(i64 noundef, i64 noundef) #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) #6

declare noundef i64 @_Z2ixmmm(i64 noundef, i64 noundef, i64 noundef) #3

declare void @_ZN15dc_pixel_matrix11get_averageER11_dc_cornersR16_dc_heavy_sector11dc_channels(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(37), i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapIm16_dc_heavy_sectorSt4lessImESaISt4pairIKmS0_EEE6insertIS3_ImS0_EEENSt9enable_ifIXsr16is_constructibleIS5_T_EE5valueES3_ISt17_Rb_tree_iteratorIS5_EbEE4typeEOSB_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIm16_dc_heavy_sectorEC2IRmRS0_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(37)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIm16_dc_heavy_sectorED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN16_dc_heavy_sectorD2Ev(ptr noundef nonnull align 8 dereferenceable(37)) unnamed_addr #7 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { "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: write) }
attributes #5 = { inlinehint 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS11dc_channels", !7, i64 0}
!13 = !{!14, !10, i64 16}
!14 = !{!"_ZTS11_dc_corners", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!15 = !{!14, !10, i64 0}
!16 = !{!14, !10, i64 24}
!17 = !{!14, !10, i64 8}
!18 = !{!19, !10, i64 24}
!19 = !{!"_ZTS2dc", !20, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !21, i64 32, !21, i64 64, !10, i64 96, !23, i64 104, !24, i64 128, !32, i64 176}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !10, i64 8, !7, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!23 = !{!"_ZTS15dc_pixel_matrix", !6, i64 0, !10, i64 8, !10, i64 16}
!24 = !{!"_ZTSSt3mapIm16_dc_heavy_sectorSt4lessImESaISt4pairIKmS0_EEE", !25, i64 0}
!25 = !{!"_ZTSSt8_Rb_treeImSt4pairIKm16_dc_heavy_sectorESt10_Select1stIS3_ESt4lessImESaIS3_EE", !26, i64 0}
!26 = !{!"_ZTSNSt8_Rb_treeImSt4pairIKm16_dc_heavy_sectorESt10_Select1stIS3_ESt4lessImESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !27, i64 0, !29, i64 8}
!27 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessImEE", !28, i64 0}
!28 = !{!"_ZTSSt4lessImE"}
!29 = !{!"_ZTSSt15_Rb_tree_header", !30, i64 0, !10, i64 32}
!30 = !{!"_ZTSSt18_Rb_tree_node_base", !31, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!31 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!32 = !{!"_ZTSSt6vectorI16_dc_light_sectorSaIS0_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseI16_dc_light_sectorSaIS0_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseI16_dc_light_sectorSaIS0_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseI16_dc_light_sectorSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{i64 0, i64 8, !9, i64 8, i64 8, !9, i64 16, i64 8, !9, i64 24, i64 8, !9}
!37 = !{!19, !10, i64 96}
!38 = !{!39, !7, i64 36}
!39 = !{!"_ZTS16_dc_heavy_sector", !14, i64 0, !40, i64 32, !7, i64 35, !7, i64 36}
!40 = !{!"_ZTS8dc_pixel", !7, i64 0, !7, i64 1, !7, i64 2}


; 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._dc_corners = type { i64, i64, i64, i64 }
%struct._dc_heavy_sector = type <{ %struct._dc_corners, %class.dc_pixel, i8, i8, [3 x i8] }>
%class.dc_pixel = type { i8, i8, i8 }
%"struct.std::pair.7" = type { i64, %struct._dc_heavy_sector }

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN15dc_pixel_matrix9get_widthEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN15dc_pixel_matrix10get_heightEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13dc_compressor10_sectorizeE11_dc_cornersm11dc_channels(ptr noundef nonnull align 8 dereferenceable(204) %0, ptr noundef nonnull byval(%struct._dc_corners) align 8 %1, i64 noundef %2, i32 noundef %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %struct._dc_heavy_sector, align 8
  %6 = alloca %struct._dc_corners, align 16
  %7 = alloca %struct._dc_corners, align 8
  %8 = alloca %struct._dc_corners, align 16
  %9 = alloca %struct._dc_corners, align 8
  %10 = alloca i64, align 8
  %11 = alloca %"struct.std::pair.7", align 8
  %12 = getelementptr inbounds i8, ptr %0, i64 104
  %13 = call noundef i64 @_ZN15dc_pixel_matrix9get_deltaER11_dc_corners11dc_channels(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %3)
  %14 = getelementptr inbounds i8, ptr %1, i64 16
  %15 = load i64, ptr %14, align 8, !tbaa !5
  %16 = load i64, ptr %1, align 8, !tbaa !10
  %17 = sub i64 %15, %16
  %18 = getelementptr inbounds i8, ptr %1, i64 24
  %19 = load i64, ptr %18, align 8, !tbaa !11
  %20 = getelementptr inbounds i8, ptr %1, i64 8
  %21 = load i64, ptr %20, align 8, !tbaa !12
  %22 = sub i64 %19, %21
  %23 = mul i64 %22, %17
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #7
  call void @_ZN16_dc_heavy_sectorC2Ev(ptr noundef nonnull align 8 dereferenceable(37) %5)
  %24 = icmp ugt i64 %23, 1
  %25 = getelementptr inbounds i8, ptr %0, i64 24
  %26 = load i64, ptr %25, align 8
  %27 = icmp ugt i64 %13, %26
  %or.cond = select i1 %24, i1 %27, i1 false
  %.sink83.sroa.gep = getelementptr inbounds i8, ptr %7, i64 8
  %.sink83.sroa.gep84 = getelementptr inbounds i8, ptr %9, i64 8
  %.sink83.sroa.gep86 = getelementptr inbounds i8, ptr %7, i64 16
  %.sink83.sroa.gep87 = getelementptr inbounds i8, ptr %9, i64 16
  br i1 %or.cond, label %28, label %54

28:                                               ; preds = %4
  %29 = add i64 %2, 1
  %30 = icmp ugt i64 %17, %22
  br i1 %30, label %31, label %43

31:                                               ; preds = %28
  %32 = load i64, ptr %1, align 8, !tbaa !10
  %33 = load i64, ptr %14, align 8, !tbaa !5
  %34 = invoke noundef i64 @_Z6middlemm(i64 noundef %32, i64 noundef %33)
          to label %35 unwind label %41

35:                                               ; preds = %31
  %36 = load i64, ptr %18, align 8, !tbaa !11
  %37 = load <2 x i64>, ptr %1, align 8, !tbaa !13
  store <2 x i64> %37, ptr %6, align 16, !tbaa !13
  %.sroa.16.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 16
  store i64 %34, ptr %.sroa.16.0..sroa_idx, align 16, !tbaa !13
  %.sroa.20.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 24
  store i64 %36, ptr %.sroa.20.0..sroa_idx, align 8, !tbaa !13
  invoke void @_ZN13dc_compressor10_sectorizeE11_dc_cornersm11dc_channels(ptr noundef nonnull align 8 dereferenceable(204) %0, ptr noundef nonnull byval(%struct._dc_corners) align 8 %6, i64 noundef %29, i32 noundef %3)
          to label %38 unwind label %41

38:                                               ; preds = %35
  %39 = load i64, ptr %20, align 8, !tbaa !12
  %40 = load <2 x i64>, ptr %14, align 8, !tbaa !13
  store i64 %34, ptr %7, align 8, !tbaa !13
  br label %.invoke

41:                                               ; preds = %.invoke, %47, %43, %35, %31
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %89

43:                                               ; preds = %28
  %44 = load i64, ptr %20, align 8, !tbaa !12
  %45 = load i64, ptr %18, align 8, !tbaa !11
  %46 = invoke noundef i64 @_Z6middlemm(i64 noundef %44, i64 noundef %45)
          to label %47 unwind label %41

47:                                               ; preds = %43
  %48 = load i64, ptr %14, align 8, !tbaa !5
  %49 = load <2 x i64>, ptr %1, align 8, !tbaa !13
  store <2 x i64> %49, ptr %8, align 16, !tbaa !13
  %.sroa.16.0..sroa_idx27 = getelementptr inbounds i8, ptr %8, i64 16
  store i64 %48, ptr %.sroa.16.0..sroa_idx27, align 16, !tbaa !13
  %.sroa.20.0..sroa_idx33 = getelementptr inbounds i8, ptr %8, i64 24
  store i64 %46, ptr %.sroa.20.0..sroa_idx33, align 8, !tbaa !13
  invoke void @_ZN13dc_compressor10_sectorizeE11_dc_cornersm11dc_channels(ptr noundef nonnull align 8 dereferenceable(204) %0, ptr noundef nonnull byval(%struct._dc_corners) align 8 %8, i64 noundef %29, i32 noundef %3)
          to label %50 unwind label %41

50:                                               ; preds = %47
  %51 = load i64, ptr %1, align 8, !tbaa !10
  %52 = load <2 x i64>, ptr %14, align 8, !tbaa !13
  store i64 %51, ptr %9, align 8, !tbaa !13
  br label %.invoke

.invoke:                                          ; preds = %38, %50
  %.sink83.sroa.phi = phi ptr [ %.sink83.sroa.gep, %38 ], [ %.sink83.sroa.gep84, %50 ]
  %.sink83.sroa.phi85 = phi ptr [ %.sink83.sroa.gep86, %38 ], [ %.sink83.sroa.gep87, %50 ]
  %.sink83 = phi ptr [ %7, %38 ], [ %9, %50 ]
  %.sink82 = phi i64 [ %39, %38 ], [ %46, %50 ]
  %53 = phi <2 x i64> [ %40, %38 ], [ %52, %50 ]
  store i64 %.sink82, ptr %.sink83.sroa.phi, align 8, !tbaa !13
  store <2 x i64> %53, ptr %.sink83.sroa.phi85, align 8, !tbaa !13
  invoke void @_ZN13dc_compressor10_sectorizeE11_dc_cornersm11dc_channels(ptr noundef nonnull align 8 dereferenceable(204) %0, ptr noundef nonnull byval(%struct._dc_corners) align 8 %.sink83, i64 noundef %29, i32 noundef %3)
          to label %88 unwind label %41

54:                                               ; preds = %4
  %55 = getelementptr inbounds i8, ptr %0, i64 96
  %56 = load i64, ptr %55, align 8, !tbaa !14
  %57 = add i64 %56, 1
  store i64 %57, ptr %55, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %58 = icmp eq i32 %3, 3
  br i1 %58, label %59, label %66

59:                                               ; preds = %54
  %60 = load i64, ptr %1, align 8, !tbaa !10
  %61 = load i64, ptr %20, align 8, !tbaa !12
  %62 = call noundef i64 @_ZN15dc_pixel_matrix9get_widthEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %63 = invoke noundef i64 @_Z2ixmmm(i64 noundef %60, i64 noundef %61, i64 noundef %62)
          to label %78 unwind label %64

64:                                               ; preds = %78, %66, %59
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %87

66:                                               ; preds = %54
  %67 = call noundef i64 @_ZN15dc_pixel_matrix9get_widthEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %68 = call noundef i64 @_ZN15dc_pixel_matrix10get_heightEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %69 = load i64, ptr %1, align 8, !tbaa !10
  %70 = load i64, ptr %20, align 8, !tbaa !12
  %71 = call noundef i64 @_ZN15dc_pixel_matrix9get_widthEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %72 = invoke noundef i64 @_Z2ixmmm(i64 noundef %69, i64 noundef %70, i64 noundef %71)
          to label %73 unwind label %64

73:                                               ; preds = %66
  %74 = sext i32 %3 to i64
  %75 = mul i64 %67, %74
  %76 = mul i64 %75, %68
  %77 = add i64 %72, %76
  br label %78

78:                                               ; preds = %59, %73
  %storemerge = phi i64 [ %77, %73 ], [ %63, %59 ]
  store i64 %storemerge, ptr %10, align 8, !tbaa !13
  invoke void @_ZN15dc_pixel_matrix11get_averageER11_dc_cornersR16_dc_heavy_sector11dc_channels(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(37) %5, i32 noundef %3)
          to label %79 unwind label %64

79:                                               ; preds = %78
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %1, i64 32, i1 false), !tbaa.struct !33
  %80 = trunc i64 %2 to i8
  %81 = getelementptr inbounds i8, ptr %5, i64 36
  store i8 %80, ptr %81, align 4, !tbaa !34
  %82 = getelementptr inbounds i8, ptr %0, i64 128
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %11) #7
  call void @_ZNSt4pairIm16_dc_heavy_sectorEC2IRmRS0_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(37) %5)
  %83 = invoke { ptr, i8 } @_ZNSt3mapIm16_dc_heavy_sectorSt4lessImESaISt4pairIKmS0_EEE6insertIS3_ImS0_EEENSt9enable_ifIXsr16is_constructibleIS5_T_EE5valueES3_ISt17_Rb_tree_iteratorIS5_EbEE4typeEOSB_(ptr noundef nonnull align 8 dereferenceable(48) %82, ptr noundef nonnull align 8 dereferenceable(48) %11)
          to label %84 unwind label %85

84:                                               ; preds = %79
  call void @_ZNSt4pairIm16_dc_heavy_sectorED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br label %88

85:                                               ; preds = %79
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairIm16_dc_heavy_sectorED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #7
  br label %87

87:                                               ; preds = %85, %64
  %.pn = phi { ptr, i32 } [ %86, %85 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br label %89

88:                                               ; preds = %.invoke, %84
  call void @_ZN16_dc_heavy_sectorD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %5) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #7
  ret void

89:                                               ; preds = %87, %41
  %.pn75 = phi { ptr, i32 } [ %42, %41 ], [ %.pn, %87 ]
  call void @_ZN16_dc_heavy_sectorD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %5) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #7
  resume { ptr, i32 } %.pn75
}

declare noundef i64 @_ZN15dc_pixel_matrix9get_deltaER11_dc_corners11dc_channels(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN16_dc_heavy_sectorC2Ev(ptr noundef nonnull align 8 dereferenceable(37)) unnamed_addr #4 align 2

declare noundef i64 @_Z6middlemm(i64 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress 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) #5

declare noundef i64 @_Z2ixmmm(i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

declare void @_ZN15dc_pixel_matrix11get_averageER11_dc_cornersR16_dc_heavy_sector11dc_channels(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(37), i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapIm16_dc_heavy_sectorSt4lessImESaISt4pairIKmS0_EEE6insertIS3_ImS0_EEENSt9enable_ifIXsr16is_constructibleIS5_T_EE5valueES3_ISt17_Rb_tree_iteratorIS5_EbEE4typeEOSB_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIm16_dc_heavy_sectorEC2IRmRS0_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(37)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIm16_dc_heavy_sectorED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN16_dc_heavy_sectorD2Ev(ptr noundef nonnull align 8 dereferenceable(37)) unnamed_addr #6 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { "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 = { inlinehint 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #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, !7, i64 16}
!6 = !{!"_ZTS11_dc_corners", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 0}
!11 = !{!6, !7, i64 24}
!12 = !{!6, !7, i64 8}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !7, i64 96}
!15 = !{!"_ZTS2dc", !16, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !17, i64 32, !17, i64 64, !7, i64 96, !20, i64 104, !21, i64 128, !29, i64 176}
!16 = !{!"bool", !8, i64 0}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !7, i64 8, !8, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !19, i64 0}
!19 = !{!"any pointer", !8, i64 0}
!20 = !{!"_ZTS15dc_pixel_matrix", !19, i64 0, !7, i64 8, !7, i64 16}
!21 = !{!"_ZTSSt3mapIm16_dc_heavy_sectorSt4lessImESaISt4pairIKmS0_EEE", !22, i64 0}
!22 = !{!"_ZTSSt8_Rb_treeImSt4pairIKm16_dc_heavy_sectorESt10_Select1stIS3_ESt4lessImESaIS3_EE", !23, i64 0}
!23 = !{!"_ZTSNSt8_Rb_treeImSt4pairIKm16_dc_heavy_sectorESt10_Select1stIS3_ESt4lessImESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !24, i64 0, !26, i64 8}
!24 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessImEE", !25, i64 0}
!25 = !{!"_ZTSSt4lessImE"}
!26 = !{!"_ZTSSt15_Rb_tree_header", !27, i64 0, !7, i64 32}
!27 = !{!"_ZTSSt18_Rb_tree_node_base", !28, i64 0, !19, i64 8, !19, i64 16, !19, i64 24}
!28 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!29 = !{!"_ZTSSt6vectorI16_dc_light_sectorSaIS0_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseI16_dc_light_sectorSaIS0_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseI16_dc_light_sectorSaIS0_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseI16_dc_light_sectorSaIS0_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!33 = !{i64 0, i64 8, !13, i64 8, i64 8, !13, i64 16, i64 8, !13, i64 24, i64 8, !13}
!34 = !{!35, !8, i64 36}
!35 = !{!"_ZTS16_dc_heavy_sector", !6, i64 0, !36, i64 32, !8, i64 35, !8, i64 36}
!36 = !{!"_ZTS8dc_pixel", !8, i64 0, !8, i64 1, !8, i64 2}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass