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

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

@.str.20 = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external global ptr, align 8
@.str.21 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [5 x i8], align 1

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

declare i32 @fclose(ptr noundef) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13dc_compressor10_serializeEb(ptr noundef nonnull align 8 dereferenceable(204) %0, i1 noundef zeroext %1) #3 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca [4 x i8], align 1
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %13 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %14 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %15 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %16 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %17 = alloca %"struct.std::_Rb_tree_iterator", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %18 = zext i1 %1 to i8
  store i8 %18, ptr %4, align 1, !tbaa !9
  %19 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %20 = getelementptr inbounds %class.dc, ptr %19, i32 0, i32 5
  %21 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  %22 = call noalias ptr @fopen(ptr noundef %21, ptr noundef @.str.20)
  store ptr %22, ptr %5, align 8, !tbaa !5
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %28, label %25

25:                                               ; preds = %2
  %26 = load ptr, ptr @stderr, align 8, !tbaa !5
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef @.str.21) #6
  call void @exit(i32 noundef 1) #7
  unreachable

28:                                               ; preds = %2
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %class.dc, ptr %19, i32 0, i32 2
  %31 = load i64, ptr %30, align 8, !tbaa !11
  %32 = trunc i64 %31 to i8
  %33 = zext i8 %32 to i32
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef @.str.22, i32 noundef %33) #6
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %class.dc, ptr %19, i32 0, i32 3
  %37 = load i64, ptr %36, align 8, !tbaa !29
  %38 = trunc i64 %37 to i8
  %39 = zext i8 %38 to i32
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef @.str.22, i32 noundef %39) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %41 = getelementptr inbounds %class.dc, ptr %19, i32 0, i32 7
  %42 = call noundef i64 @_ZN15dc_pixel_matrix9get_widthEv(ptr noundef nonnull align 8 dereferenceable(24) %41)
  store i64 %42, ptr %6, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %43 = getelementptr inbounds %class.dc, ptr %19, i32 0, i32 7
  %44 = call noundef i64 @_ZN15dc_pixel_matrix10get_heightEv(ptr noundef nonnull align 8 dereferenceable(24) %43)
  store i64 %44, ptr %7, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %45 = load i64, ptr %6, align 8, !tbaa !30
  %46 = lshr i64 %45, 24
  %47 = and i64 %46, 255
  %48 = trunc i64 %47 to i8
  %49 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
  store i8 %48, ptr %49, align 1, !tbaa !31
  %50 = load i64, ptr %6, align 8, !tbaa !30
  %51 = lshr i64 %50, 16
  %52 = and i64 %51, 255
  %53 = trunc i64 %52 to i8
  %54 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 1
  store i8 %53, ptr %54, align 1, !tbaa !31
  %55 = load i64, ptr %6, align 8, !tbaa !30
  %56 = lshr i64 %55, 8
  %57 = and i64 %56, 255
  %58 = trunc i64 %57 to i8
  %59 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 2
  store i8 %58, ptr %59, align 1, !tbaa !31
  %60 = load i64, ptr %6, align 8, !tbaa !30
  %61 = and i64 %60, 255
  %62 = trunc i64 %61 to i8
  %63 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 3
  store i8 %62, ptr %63, align 1, !tbaa !31
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 3
  %66 = load i8, ptr %65, align 1, !tbaa !31
  %67 = zext i8 %66 to i32
  %68 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 2
  %69 = load i8, ptr %68, align 1, !tbaa !31
  %70 = zext i8 %69 to i32
  %71 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 1
  %72 = load i8, ptr %71, align 1, !tbaa !31
  %73 = zext i8 %72 to i32
  %74 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
  %75 = load i8, ptr %74, align 1, !tbaa !31
  %76 = zext i8 %75 to i32
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef @.str.23, i32 noundef %67, i32 noundef %70, i32 noundef %73, i32 noundef %76) #6
  %78 = load i64, ptr %7, align 8, !tbaa !30
  %79 = lshr i64 %78, 24
  %80 = and i64 %79, 255
  %81 = trunc i64 %80 to i8
  %82 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
  store i8 %81, ptr %82, align 1, !tbaa !31
  %83 = load i64, ptr %7, align 8, !tbaa !30
  %84 = lshr i64 %83, 16
  %85 = and i64 %84, 255
  %86 = trunc i64 %85 to i8
  %87 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 1
  store i8 %86, ptr %87, align 1, !tbaa !31
  %88 = load i64, ptr %7, align 8, !tbaa !30
  %89 = lshr i64 %88, 8
  %90 = and i64 %89, 255
  %91 = trunc i64 %90 to i8
  %92 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 2
  store i8 %91, ptr %92, align 1, !tbaa !31
  %93 = load i64, ptr %7, align 8, !tbaa !30
  %94 = and i64 %93, 255
  %95 = trunc i64 %94 to i8
  %96 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 3
  store i8 %95, ptr %96, align 1, !tbaa !31
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 3
  %99 = load i8, ptr %98, align 1, !tbaa !31
  %100 = zext i8 %99 to i32
  %101 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 2
  %102 = load i8, ptr %101, align 1, !tbaa !31
  %103 = zext i8 %102 to i32
  %104 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 1
  %105 = load i8, ptr %104, align 1, !tbaa !31
  %106 = zext i8 %105 to i32
  %107 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
  %108 = load i8, ptr %107, align 1, !tbaa !31
  %109 = zext i8 %108 to i32
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef @.str.23, i32 noundef %100, i32 noundef %103, i32 noundef %106, i32 noundef %109) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %111 = load i64, ptr %6, align 8, !tbaa !30
  %112 = load i64, ptr %7, align 8, !tbaa !30
  %113 = mul i64 %111, %112
  store i64 %113, ptr %9, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %114 = load i8, ptr %4, align 1, !tbaa !9, !range !32, !noundef !33
  %115 = trunc i8 %114 to i1
  br i1 %115, label %116, label %143

116:                                              ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %117 = getelementptr inbounds %class.dc, ptr %19, i32 0, i32 8
  %118 = call ptr @_ZNSt3mapIm16_dc_heavy_sectorSt4lessImESaISt4pairIKmS0_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %117) #6
  %119 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %12, i32 0, i32 0
  store ptr %118, ptr %119, align 8
  br label %120

120:                                              ; preds = %139, %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %121 = getelementptr inbounds %class.dc, ptr %19, i32 0, i32 8
  %122 = call ptr @_ZNSt3mapIm16_dc_heavy_sectorSt4lessImESaISt4pairIKmS0_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %121) #6
  %123 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %13, i32 0, i32 0
  store ptr %122, ptr %123, align 8
  %124 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKm16_dc_heavy_sectorEES6_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br i1 %124, label %126, label %125

125:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %142

126:                                              ; preds = %120
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKm16_dc_heavy_sectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  %129 = getelementptr inbounds %"struct.std::pair.9", ptr %128, i32 0, i32 1
  %130 = getelementptr inbounds %struct._dc_heavy_sector, ptr %129, i32 0, i32 3
  %131 = load i8, ptr %130, align 4, !tbaa !34
  %132 = zext i8 %131 to i32
  %133 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKm16_dc_heavy_sectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  %134 = getelementptr inbounds %"struct.std::pair.9", ptr %133, i32 0, i32 1
  %135 = getelementptr inbounds %struct._dc_heavy_sector, ptr %134, i32 0, i32 2
  %136 = load i8, ptr %135, align 1, !tbaa !39
  %137 = zext i8 %136 to i32
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %127, ptr noundef @.str.24, i32 noundef %132, i32 noundef %137) #6
  br label %139

139:                                              ; preds = %126
  %140 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKm16_dc_heavy_sectorEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 0) #6
  %141 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %14, i32 0, i32 0
  store ptr %140, ptr %141, align 8
  br label %120, !llvm.loop !40

142:                                              ; preds = %125
  br label %177

143:                                              ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %144 = getelementptr inbounds %class.dc, ptr %19, i32 0, i32 8
  %145 = call ptr @_ZNSt3mapIm16_dc_heavy_sectorSt4lessImESaISt4pairIKmS0_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %144) #6
  %146 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %15, i32 0, i32 0
  store ptr %145, ptr %146, align 8
  br label %147

147:                                              ; preds = %173, %143
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %148 = getelementptr inbounds %class.dc, ptr %19, i32 0, i32 8
  %149 = call ptr @_ZNSt3mapIm16_dc_heavy_sectorSt4lessImESaISt4pairIKmS0_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %148) #6
  %150 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %16, i32 0, i32 0
  store ptr %149, ptr %150, align 8
  %151 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKm16_dc_heavy_sectorEES6_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br i1 %151, label %153, label %152

152:                                              ; preds = %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %176

153:                                              ; preds = %147
  %154 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKm16_dc_heavy_sectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  %155 = getelementptr inbounds %"struct.std::pair.9", ptr %154, i32 0, i32 1
  %156 = getelementptr inbounds %struct._dc_heavy_sector, ptr %155, i32 0, i32 1
  store ptr %156, ptr %10, align 8, !tbaa !5
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  %158 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKm16_dc_heavy_sectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  %159 = getelementptr inbounds %"struct.std::pair.9", ptr %158, i32 0, i32 1
  %160 = getelementptr inbounds %struct._dc_heavy_sector, ptr %159, i32 0, i32 3
  %161 = load i8, ptr %160, align 4, !tbaa !34
  %162 = zext i8 %161 to i32
  %163 = load ptr, ptr %10, align 8, !tbaa !5
  %164 = call noundef zeroext i8 @_ZN8dc_pixel5get_rEv(ptr noundef nonnull align 1 dereferenceable(3) %163)
  %165 = zext i8 %164 to i32
  %166 = load ptr, ptr %10, align 8, !tbaa !5
  %167 = call noundef zeroext i8 @_ZN8dc_pixel5get_gEv(ptr noundef nonnull align 1 dereferenceable(3) %166)
  %168 = zext i8 %167 to i32
  %169 = load ptr, ptr %10, align 8, !tbaa !5
  %170 = call noundef zeroext i8 @_ZN8dc_pixel5get_bEv(ptr noundef nonnull align 1 dereferenceable(3) %169)
  %171 = zext i8 %170 to i32
  %172 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %157, ptr noundef @.str.23, i32 noundef %162, i32 noundef %165, i32 noundef %168, i32 noundef %171) #6
  br label %173

173:                                              ; preds = %153
  %174 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKm16_dc_heavy_sectorEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %15, i32 noundef 0) #6
  %175 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %17, i32 0, i32 0
  store ptr %174, ptr %175, align 8
  br label %147, !llvm.loop !42

176:                                              ; preds = %152
  br label %177

177:                                              ; preds = %176, %142
  %178 = load ptr, ptr %5, align 8, !tbaa !5
  %179 = call i32 @fclose(ptr noundef %178)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

declare noalias ptr @fopen(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIm16_dc_heavy_sectorSt4lessImESaISt4pairIKmS0_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKm16_dc_heavy_sectorEES6_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIm16_dc_heavy_sectorSt4lessImESaISt4pairIKmS0_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKm16_dc_heavy_sectorEEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2 align 2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { noreturn 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 = { 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 #6 = { nounwind }
attributes #7 = { noreturn 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, !13, i64 16}
!12 = !{!"_ZTS2dc", !10, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !14, i64 32, !14, i64 64, !13, i64 96, !16, i64 104, !17, i64 128, !25, i64 176}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !13, i64 8, !7, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!16 = !{!"_ZTS15dc_pixel_matrix", !6, i64 0, !13, i64 8, !13, i64 16}
!17 = !{!"_ZTSSt3mapIm16_dc_heavy_sectorSt4lessImESaISt4pairIKmS0_EEE", !18, i64 0}
!18 = !{!"_ZTSSt8_Rb_treeImSt4pairIKm16_dc_heavy_sectorESt10_Select1stIS3_ESt4lessImESaIS3_EE", !19, i64 0}
!19 = !{!"_ZTSNSt8_Rb_treeImSt4pairIKm16_dc_heavy_sectorESt10_Select1stIS3_ESt4lessImESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !20, i64 0, !22, i64 8}
!20 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessImEE", !21, i64 0}
!21 = !{!"_ZTSSt4lessImE"}
!22 = !{!"_ZTSSt15_Rb_tree_header", !23, i64 0, !13, i64 32}
!23 = !{!"_ZTSSt18_Rb_tree_node_base", !24, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!24 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!25 = !{!"_ZTSSt6vectorI16_dc_light_sectorSaIS0_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseI16_dc_light_sectorSaIS0_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseI16_dc_light_sectorSaIS0_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseI16_dc_light_sectorSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!12, !13, i64 24}
!30 = !{!13, !13, i64 0}
!31 = !{!7, !7, i64 0}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!35, !7, i64 44}
!35 = !{!"_ZTSSt4pairIKm16_dc_heavy_sectorE", !13, i64 0, !36, i64 8}
!36 = !{!"_ZTS16_dc_heavy_sector", !37, i64 0, !38, i64 32, !7, i64 35, !7, i64 36}
!37 = !{!"_ZTS11_dc_corners", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!38 = !{!"_ZTS8dc_pixel", !7, i64 0, !7, i64 1, !7, i64 2}
!39 = !{!35, !7, i64 43}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = distinct !{!42, !41}


; 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.std::_Rb_tree_iterator" = type { ptr }

@.str.20 = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.21 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [5 x i8], align 1

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

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN15dc_pixel_matrix9get_widthEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 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 #2 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN13dc_compressor10_serializeEb(ptr noundef nonnull align 8 dereferenceable(204) %0, i1 noundef zeroext %1) local_unnamed_addr #2 align 2 {
  %3 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %4 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %5 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %6 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %7 = getelementptr inbounds i8, ptr %0, i64 64
  %8 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %7) #4
  %9 = tail call noalias ptr @fopen(ptr noundef %8, ptr noundef nonnull @.str.20)
  %.not = icmp eq ptr %9, null
  br i1 %.not, label %10, label %13

10:                                               ; preds = %2
  %11 = load ptr, ptr @stderr, align 8, !tbaa !5
  %12 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str.21) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

13:                                               ; preds = %2
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = load i64, ptr %14, align 8, !tbaa !9
  %16 = trunc i64 %15 to i32
  %17 = and i32 %16, 255
  %18 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.22, i32 noundef %17) #4
  %19 = getelementptr inbounds i8, ptr %0, i64 24
  %20 = load i64, ptr %19, align 8, !tbaa !28
  %21 = trunc i64 %20 to i32
  %22 = and i32 %21, 255
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.22, i32 noundef %22) #4
  %24 = getelementptr inbounds i8, ptr %0, i64 104
  %25 = tail call noundef i64 @_ZN15dc_pixel_matrix9get_widthEv(ptr noundef nonnull align 8 dereferenceable(24) %24)
  %26 = tail call noundef i64 @_ZN15dc_pixel_matrix10get_heightEv(ptr noundef nonnull align 8 dereferenceable(24) %24)
  %27 = trunc i64 %25 to i32
  %28 = lshr i32 %27, 24
  %29 = lshr i32 %27, 16
  %30 = lshr i32 %27, 8
  %31 = and i32 %27, 255
  %32 = and i32 %30, 255
  %33 = and i32 %29, 255
  %34 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.23, i32 noundef %31, i32 noundef %32, i32 noundef %33, i32 noundef %28) #4
  %35 = trunc i64 %26 to i32
  %36 = lshr i32 %35, 24
  %37 = lshr i32 %35, 16
  %38 = lshr i32 %35, 8
  %39 = and i32 %35, 255
  %40 = and i32 %38, 255
  %41 = and i32 %37, 255
  %42 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.23, i32 noundef %39, i32 noundef %40, i32 noundef %41, i32 noundef %36) #4
  %43 = getelementptr inbounds i8, ptr %0, i64 128
  br i1 %1, label %44, label %60

44:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %45 = tail call ptr @_ZNSt3mapIm16_dc_heavy_sectorSt4lessImESaISt4pairIKmS0_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %43) #4
  store ptr %45, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %46 = tail call ptr @_ZNSt3mapIm16_dc_heavy_sectorSt4lessImESaISt4pairIKmS0_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %43) #4
  store ptr %46, ptr %4, align 8
  %47 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKm16_dc_heavy_sectorEES6_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br i1 %47, label %.lr.ph29, label %._crit_edge30

._crit_edge30:                                    ; preds = %.lr.ph29, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  br label %80

.lr.ph29:                                         ; preds = %44, %.lr.ph29
  %48 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKm16_dc_heavy_sectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %49 = getelementptr inbounds i8, ptr %48, i64 44
  %50 = load i8, ptr %49, align 4, !tbaa !29
  %51 = zext i8 %50 to i32
  %52 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKm16_dc_heavy_sectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %53 = getelementptr inbounds i8, ptr %52, i64 43
  %54 = load i8, ptr %53, align 1, !tbaa !34
  %55 = zext i8 %54 to i32
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.24, i32 noundef %51, i32 noundef %55) #4
  %57 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKm16_dc_heavy_sectorEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %58 = call ptr @_ZNSt3mapIm16_dc_heavy_sectorSt4lessImESaISt4pairIKmS0_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %43) #4
  store ptr %58, ptr %4, align 8
  %59 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKm16_dc_heavy_sectorEES6_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br i1 %59, label %.lr.ph29, label %._crit_edge30, !llvm.loop !35

60:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %61 = tail call ptr @_ZNSt3mapIm16_dc_heavy_sectorSt4lessImESaISt4pairIKmS0_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %43) #4
  store ptr %61, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %62 = tail call ptr @_ZNSt3mapIm16_dc_heavy_sectorSt4lessImESaISt4pairIKmS0_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %43) #4
  store ptr %62, ptr %6, align 8
  %63 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKm16_dc_heavy_sectorEES6_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  br i1 %63, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %80

.lr.ph:                                           ; preds = %60, %.lr.ph
  %64 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKm16_dc_heavy_sectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %65 = getelementptr inbounds i8, ptr %64, i64 40
  %66 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKm16_dc_heavy_sectorEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %67 = getelementptr inbounds i8, ptr %66, i64 44
  %68 = load i8, ptr %67, align 4, !tbaa !29
  %69 = zext i8 %68 to i32
  %70 = call noundef zeroext i8 @_ZN8dc_pixel5get_rEv(ptr noundef nonnull align 1 dereferenceable(3) %65)
  %71 = zext i8 %70 to i32
  %72 = call noundef zeroext i8 @_ZN8dc_pixel5get_gEv(ptr noundef nonnull align 1 dereferenceable(3) %65)
  %73 = zext i8 %72 to i32
  %74 = call noundef zeroext i8 @_ZN8dc_pixel5get_bEv(ptr noundef nonnull align 1 dereferenceable(3) %65)
  %75 = zext i8 %74 to i32
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.23, i32 noundef %69, i32 noundef %71, i32 noundef %73, i32 noundef %75) #4
  %77 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKm16_dc_heavy_sectorEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %78 = call ptr @_ZNSt3mapIm16_dc_heavy_sectorSt4lessImESaISt4pairIKmS0_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %43) #4
  store ptr %78, ptr %6, align 8
  %79 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKm16_dc_heavy_sectorEES6_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  br i1 %79, label %.lr.ph, label %._crit_edge, !llvm.loop !37

80:                                               ; preds = %._crit_edge, %._crit_edge30
  %81 = call i32 @fclose(ptr noundef nonnull %9)
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIm16_dc_heavy_sectorSt4lessImESaISt4pairIKmS0_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKm16_dc_heavy_sectorEES6_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIm16_dc_heavy_sectorSt4lessImESaISt4pairIKmS0_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKm16_dc_heavy_sectorEEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2 align 2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn 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 #4 = { nounwind }
attributes #5 = { cold nounwind }
attributes #6 = { noreturn 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, !12, i64 16}
!10 = !{!"_ZTS2dc", !11, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32, !13, i64 64, !12, i64 96, !15, i64 104, !16, i64 128, !24, i64 176}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !12, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!"_ZTS15dc_pixel_matrix", !6, i64 0, !12, i64 8, !12, i64 16}
!16 = !{!"_ZTSSt3mapIm16_dc_heavy_sectorSt4lessImESaISt4pairIKmS0_EEE", !17, i64 0}
!17 = !{!"_ZTSSt8_Rb_treeImSt4pairIKm16_dc_heavy_sectorESt10_Select1stIS3_ESt4lessImESaIS3_EE", !18, i64 0}
!18 = !{!"_ZTSNSt8_Rb_treeImSt4pairIKm16_dc_heavy_sectorESt10_Select1stIS3_ESt4lessImESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !19, i64 0, !21, i64 8}
!19 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessImEE", !20, i64 0}
!20 = !{!"_ZTSSt4lessImE"}
!21 = !{!"_ZTSSt15_Rb_tree_header", !22, i64 0, !12, i64 32}
!22 = !{!"_ZTSSt18_Rb_tree_node_base", !23, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!23 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!24 = !{!"_ZTSSt6vectorI16_dc_light_sectorSaIS0_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseI16_dc_light_sectorSaIS0_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseI16_dc_light_sectorSaIS0_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseI16_dc_light_sectorSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!10, !12, i64 24}
!29 = !{!30, !7, i64 44}
!30 = !{!"_ZTSSt4pairIKm16_dc_heavy_sectorE", !12, i64 0, !31, i64 8}
!31 = !{!"_ZTS16_dc_heavy_sector", !32, i64 0, !33, i64 32, !7, i64 35, !7, i64 36}
!32 = !{!"_ZTS11_dc_corners", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!33 = !{!"_ZTS8dc_pixel", !7, i64 0, !7, i64 1, !7, i64 2}
!34 = !{!30, !7, i64 43}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = distinct !{!37, !36}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass