; LLVM IR from giacomo-ascari/dichotomic-compression :: src/dc/dc-utils (dc-pixel-matrix)

; 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.dc_pixel = type { i8, i8, i8 }
%struct._dc_corners = type { i64, i64, i64, i64 }
%class.dc_pixel_matrix = type { ptr, i64, i64 }

; Function Attrs: nounwind
declare void @_ZN8dc_pixelD1Ev(ptr noundef nonnull align 1 dereferenceable(3)) unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN15dc_pixel_matrix9get_deltaER11_dc_corners11dc_channels(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %2) #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %class.dc_pixel, align 1
  %8 = alloca %class.dc_pixel, align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca i8, align 1
  %20 = alloca i8, align 1
  %21 = alloca i8, align 1
  %22 = alloca i8, align 1
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  %25 = alloca i8, align 1
  %26 = alloca i8, align 1
  %27 = alloca i8, align 1
  %28 = alloca i8, align 1
  %29 = alloca i8, align 1
  %30 = alloca i8, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %31 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 3, ptr %7) #6
  call void @_ZN8dc_pixelC1Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %7, i8 noundef zeroext 0, i8 noundef zeroext 0, i8 noundef zeroext 0)
  call void @llvm.lifetime.start.p0(i64 3, ptr %8) #6
  invoke void @_ZN8dc_pixelC1Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %8, i8 noundef zeroext -1, i8 noundef zeroext -1, i8 noundef zeroext -1)
          to label %32 unwind label %43

32:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store i64 0, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store i64 255, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct._dc_corners, ptr %33, i32 0, i32 1
  %35 = load i64, ptr %34, align 8, !tbaa !13
  store i64 %35, ptr %14, align 8, !tbaa !11
  br label %36

36:                                               ; preds = %206, %32
  %37 = load i64, ptr %14, align 8, !tbaa !11
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct._dc_corners, ptr %38, i32 0, i32 3
  %40 = load i64, ptr %39, align 8, !tbaa !15
  %41 = icmp ult i64 %37, %40
  br i1 %41, label %47, label %42

42:                                               ; preds = %36
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %209

43:                                               ; preds = %3
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %9, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %10, align 4
  br label %249

47:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct._dc_corners, ptr %48, i32 0, i32 0
  %50 = load i64, ptr %49, align 8, !tbaa !16
  store i64 %50, ptr %16, align 8, !tbaa !11
  br label %51

51:                                               ; preds = %200, %47
  %52 = load i64, ptr %16, align 8, !tbaa !11
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct._dc_corners, ptr %53, i32 0, i32 2
  %55 = load i64, ptr %54, align 8, !tbaa !17
  %56 = icmp ult i64 %52, %55
  br i1 %56, label %58, label %57

57:                                               ; preds = %51
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %205

58:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %59 = getelementptr inbounds %class.dc_pixel_matrix, ptr %31, i32 0, i32 0
  %60 = load ptr, ptr %59, align 8, !tbaa !18
  %61 = load i64, ptr %16, align 8, !tbaa !11
  %62 = load i64, ptr %14, align 8, !tbaa !11
  %63 = getelementptr inbounds %class.dc_pixel_matrix, ptr %31, i32 0, i32 1
  %64 = load i64, ptr %63, align 8, !tbaa !20
  %65 = invoke noundef i64 @_Z2ixmmm(i64 noundef %61, i64 noundef %62, i64 noundef %64)
          to label %66 unwind label %125

66:                                               ; preds = %58
  %67 = getelementptr inbounds %class.dc_pixel, ptr %60, i64 %65
  store ptr %67, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %68 = load i32, ptr %6, align 4, !tbaa !9
  %69 = icmp eq i32 %68, 3
  br i1 %69, label %70, label %183

70:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  %71 = load ptr, ptr %17, align 8, !tbaa !5
  %72 = invoke noundef zeroext i8 @_ZN8dc_pixel5get_rEv(ptr noundef nonnull align 1 dereferenceable(3) %71)
          to label %73 unwind label %129

73:                                               ; preds = %70
  store i8 %72, ptr %19, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #6
  %74 = invoke noundef zeroext i8 @_ZN8dc_pixel5get_rEv(ptr noundef nonnull align 1 dereferenceable(3) %7)
          to label %75 unwind label %133

75:                                               ; preds = %73
  store i8 %74, ptr %20, align 1, !tbaa !21
  %76 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3maxIhERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1) %19, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %77 unwind label %133

77:                                               ; preds = %75
  %78 = load i8, ptr %76, align 1, !tbaa !21
  invoke void @_ZN8dc_pixel5set_rEh(ptr noundef nonnull align 1 dereferenceable(3) %7, i8 noundef zeroext %78)
          to label %79 unwind label %133

79:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #6
  %80 = load ptr, ptr %17, align 8, !tbaa !5
  %81 = invoke noundef zeroext i8 @_ZN8dc_pixel5get_gEv(ptr noundef nonnull align 1 dereferenceable(3) %80)
          to label %82 unwind label %138

82:                                               ; preds = %79
  store i8 %81, ptr %21, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #6
  %83 = invoke noundef zeroext i8 @_ZN8dc_pixel5get_gEv(ptr noundef nonnull align 1 dereferenceable(3) %7)
          to label %84 unwind label %142

84:                                               ; preds = %82
  store i8 %83, ptr %22, align 1, !tbaa !21
  %85 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3maxIhERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1) %21, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %86 unwind label %142

86:                                               ; preds = %84
  %87 = load i8, ptr %85, align 1, !tbaa !21
  invoke void @_ZN8dc_pixel5set_gEh(ptr noundef nonnull align 1 dereferenceable(3) %7, i8 noundef zeroext %87)
          to label %88 unwind label %142

88:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #6
  %89 = load ptr, ptr %17, align 8, !tbaa !5
  %90 = invoke noundef zeroext i8 @_ZN8dc_pixel5get_bEv(ptr noundef nonnull align 1 dereferenceable(3) %89)
          to label %91 unwind label %147

91:                                               ; preds = %88
  store i8 %90, ptr %23, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  %92 = invoke noundef zeroext i8 @_ZN8dc_pixel5get_bEv(ptr noundef nonnull align 1 dereferenceable(3) %7)
          to label %93 unwind label %151

93:                                               ; preds = %91
  store i8 %92, ptr %24, align 1, !tbaa !21
  %94 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3maxIhERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1) %23, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %95 unwind label %151

95:                                               ; preds = %93
  %96 = load i8, ptr %94, align 1, !tbaa !21
  invoke void @_ZN8dc_pixel5set_bEh(ptr noundef nonnull align 1 dereferenceable(3) %7, i8 noundef zeroext %96)
          to label %97 unwind label %151

97:                                               ; preds = %95
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #6
  %98 = load ptr, ptr %17, align 8, !tbaa !5
  %99 = invoke noundef zeroext i8 @_ZN8dc_pixel5get_rEv(ptr noundef nonnull align 1 dereferenceable(3) %98)
          to label %100 unwind label %156

100:                                              ; preds = %97
  store i8 %99, ptr %25, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #6
  %101 = invoke noundef zeroext i8 @_ZN8dc_pixel5get_rEv(ptr noundef nonnull align 1 dereferenceable(3) %8)
          to label %102 unwind label %160

102:                                              ; preds = %100
  store i8 %101, ptr %26, align 1, !tbaa !21
  %103 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3minIhERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1) %25, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %104 unwind label %160

104:                                              ; preds = %102
  %105 = load i8, ptr %103, align 1, !tbaa !21
  invoke void @_ZN8dc_pixel5set_rEh(ptr noundef nonnull align 1 dereferenceable(3) %8, i8 noundef zeroext %105)
          to label %106 unwind label %160

106:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #6
  %107 = load ptr, ptr %17, align 8, !tbaa !5
  %108 = invoke noundef zeroext i8 @_ZN8dc_pixel5get_gEv(ptr noundef nonnull align 1 dereferenceable(3) %107)
          to label %109 unwind label %165

109:                                              ; preds = %106
  store i8 %108, ptr %27, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #6
  %110 = invoke noundef zeroext i8 @_ZN8dc_pixel5get_gEv(ptr noundef nonnull align 1 dereferenceable(3) %8)
          to label %111 unwind label %169

111:                                              ; preds = %109
  store i8 %110, ptr %28, align 1, !tbaa !21
  %112 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3minIhERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1) %27, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %113 unwind label %169

113:                                              ; preds = %111
  %114 = load i8, ptr %112, align 1, !tbaa !21
  invoke void @_ZN8dc_pixel5set_gEh(ptr noundef nonnull align 1 dereferenceable(3) %8, i8 noundef zeroext %114)
          to label %115 unwind label %169

115:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #6
  %116 = load ptr, ptr %17, align 8, !tbaa !5
  %117 = invoke noundef zeroext i8 @_ZN8dc_pixel5get_bEv(ptr noundef nonnull align 1 dereferenceable(3) %116)
          to label %118 unwind label %174

118:                                              ; preds = %115
  store i8 %117, ptr %29, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #6
  %119 = invoke noundef zeroext i8 @_ZN8dc_pixel5get_bEv(ptr noundef nonnull align 1 dereferenceable(3) %8)
          to label %120 unwind label %178

120:                                              ; preds = %118
  store i8 %119, ptr %30, align 1, !tbaa !21
  %121 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3minIhERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1) %29, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %122 unwind label %178

122:                                              ; preds = %120
  %123 = load i8, ptr %121, align 1, !tbaa !21
  invoke void @_ZN8dc_pixel5set_bEh(ptr noundef nonnull align 1 dereferenceable(3) %8, i8 noundef zeroext %123)
          to label %124 unwind label %178

124:                                              ; preds = %122
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #6
  br label %199

125:                                              ; preds = %58
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %9, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %10, align 4
  br label %204

129:                                              ; preds = %70
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %9, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %10, align 4
  br label %137

133:                                              ; preds = %77, %75, %73
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %9, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #6
  br label %137

137:                                              ; preds = %133, %129
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  br label %203

138:                                              ; preds = %79
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %9, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %10, align 4
  br label %146

142:                                              ; preds = %86, %84, %82
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %9, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  br label %146

146:                                              ; preds = %142, %138
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  br label %203

147:                                              ; preds = %88
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %9, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %10, align 4
  br label %155

151:                                              ; preds = %95, %93, %91
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %9, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  br label %155

155:                                              ; preds = %151, %147
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  br label %203

156:                                              ; preds = %97
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %9, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %10, align 4
  br label %164

160:                                              ; preds = %104, %102, %100
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %9, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #6
  br label %164

164:                                              ; preds = %160, %156
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  br label %203

165:                                              ; preds = %106
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %9, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %10, align 4
  br label %173

169:                                              ; preds = %113, %111, %109
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %9, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #6
  br label %173

173:                                              ; preds = %169, %165
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  br label %203

174:                                              ; preds = %115
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %9, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %10, align 4
  br label %182

178:                                              ; preds = %122, %120, %118
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %9, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #6
  br label %182

182:                                              ; preds = %178, %174
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #6
  br label %203

183:                                              ; preds = %66
  %184 = load ptr, ptr %17, align 8, !tbaa !5
  %185 = load i32, ptr %6, align 4, !tbaa !9
  %186 = invoke noundef zeroext i8 @_ZN8dc_pixel11get_channelE11dc_channels(ptr noundef nonnull align 1 dereferenceable(3) %184, i32 noundef %185)
          to label %187 unwind label %195

187:                                              ; preds = %183
  %188 = zext i8 %186 to i64
  store i64 %188, ptr %18, align 8, !tbaa !11
  %189 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %190 unwind label %195

190:                                              ; preds = %187
  %191 = load i64, ptr %189, align 8, !tbaa !11
  store i64 %191, ptr %12, align 8, !tbaa !11
  %192 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %193 unwind label %195

193:                                              ; preds = %190
  %194 = load i64, ptr %192, align 8, !tbaa !11
  store i64 %194, ptr %13, align 8, !tbaa !11
  br label %199

195:                                              ; preds = %190, %187, %183
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %9, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %10, align 4
  br label %203

199:                                              ; preds = %193, %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %200

200:                                              ; preds = %199
  %201 = load i64, ptr %16, align 8, !tbaa !11
  %202 = add i64 %201, 1
  store i64 %202, ptr %16, align 8, !tbaa !11
  br label %51, !llvm.loop !22

203:                                              ; preds = %195, %182, %173, %164, %155, %146, %137
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %204

204:                                              ; preds = %203, %125
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %248

205:                                              ; preds = %57
  br label %206

206:                                              ; preds = %205
  %207 = load i64, ptr %14, align 8, !tbaa !11
  %208 = add i64 %207, 1
  store i64 %208, ptr %14, align 8, !tbaa !11
  br label %36, !llvm.loop !24

209:                                              ; preds = %42
  %210 = load i32, ptr %6, align 4, !tbaa !9
  %211 = icmp eq i32 %210, 3
  br i1 %211, label %212, label %242

212:                                              ; preds = %209
  %213 = invoke noundef zeroext i8 @_ZN8dc_pixel5get_rEv(ptr noundef nonnull align 1 dereferenceable(3) %7)
          to label %214 unwind label %238

214:                                              ; preds = %212
  %215 = zext i8 %213 to i32
  %216 = invoke noundef zeroext i8 @_ZN8dc_pixel5get_rEv(ptr noundef nonnull align 1 dereferenceable(3) %8)
          to label %217 unwind label %238

217:                                              ; preds = %214
  %218 = zext i8 %216 to i32
  %219 = sub nsw i32 %215, %218
  %220 = invoke noundef zeroext i8 @_ZN8dc_pixel5get_gEv(ptr noundef nonnull align 1 dereferenceable(3) %7)
          to label %221 unwind label %238

221:                                              ; preds = %217
  %222 = zext i8 %220 to i32
  %223 = add nsw i32 %219, %222
  %224 = invoke noundef zeroext i8 @_ZN8dc_pixel5get_gEv(ptr noundef nonnull align 1 dereferenceable(3) %8)
          to label %225 unwind label %238

225:                                              ; preds = %221
  %226 = zext i8 %224 to i32
  %227 = sub nsw i32 %223, %226
  %228 = invoke noundef zeroext i8 @_ZN8dc_pixel5get_bEv(ptr noundef nonnull align 1 dereferenceable(3) %7)
          to label %229 unwind label %238

229:                                              ; preds = %225
  %230 = zext i8 %228 to i32
  %231 = add nsw i32 %227, %230
  %232 = invoke noundef zeroext i8 @_ZN8dc_pixel5get_bEv(ptr noundef nonnull align 1 dereferenceable(3) %8)
          to label %233 unwind label %238

233:                                              ; preds = %229
  %234 = zext i8 %232 to i32
  %235 = sub nsw i32 %231, %234
  %236 = sdiv i32 %235, 3
  %237 = sext i32 %236 to i64
  store i64 %237, ptr %11, align 8, !tbaa !11
  br label %246

238:                                              ; preds = %229, %225, %221, %217, %214, %212
  %239 = landingpad { ptr, i32 }
          cleanup
  %240 = extractvalue { ptr, i32 } %239, 0
  store ptr %240, ptr %9, align 8
  %241 = extractvalue { ptr, i32 } %239, 1
  store i32 %241, ptr %10, align 4
  br label %248

242:                                              ; preds = %209
  %243 = load i64, ptr %12, align 8, !tbaa !11
  %244 = load i64, ptr %13, align 8, !tbaa !11
  %245 = sub i64 %243, %244
  store i64 %245, ptr %11, align 8, !tbaa !11
  br label %246

246:                                              ; preds = %242, %233
  %247 = load i64, ptr %11, align 8, !tbaa !11
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @_ZN8dc_pixelD1Ev(ptr noundef nonnull align 1 dereferenceable(3) %8) #6
  call void @llvm.lifetime.end.p0(i64 3, ptr %8) #6
  call void @_ZN8dc_pixelD1Ev(ptr noundef nonnull align 1 dereferenceable(3) %7) #6
  call void @llvm.lifetime.end.p0(i64 3, ptr %7) #6
  ret i64 %247

248:                                              ; preds = %238, %204
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @_ZN8dc_pixelD1Ev(ptr noundef nonnull align 1 dereferenceable(3) %8) #6
  br label %249

249:                                              ; preds = %248, %43
  call void @llvm.lifetime.end.p0(i64 3, ptr %8) #6
  call void @_ZN8dc_pixelD1Ev(ptr noundef nonnull align 1 dereferenceable(3) %7) #6
  call void @llvm.lifetime.end.p0(i64 3, ptr %7) #6
  br label %250

250:                                              ; preds = %249
  %251 = load ptr, ptr %9, align 8
  %252 = load i32, ptr %10, align 4
  %253 = insertvalue { ptr, i32 } poison, ptr %251, 0
  %254 = insertvalue { ptr, i32 } %253, i32 %252, 1
  resume { ptr, i32 } %254
}

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

declare void @_ZN8dc_pixelC1Ehhh(ptr noundef nonnull align 1 dereferenceable(3), i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3maxIhERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #5

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3minIhERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #5

declare noundef zeroext i8 @_ZN8dc_pixel11get_channelE11dc_channels(ptr noundef nonnull align 1 dereferenceable(3), i32 noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

attributes #0 = { 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 #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"_ZTS11dc_channels", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !12, i64 8}
!14 = !{!"_ZTS11_dc_corners", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!15 = !{!14, !12, i64 24}
!16 = !{!14, !12, i64 0}
!17 = !{!14, !12, i64 16}
!18 = !{!19, !6, i64 0}
!19 = !{!"_ZTS15dc_pixel_matrix", !6, i64 0, !12, i64 8, !12, i64 16}
!20 = !{!19, !12, i64 8}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}


; 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.dc_pixel = type { i8, i8, i8 }

; Function Attrs: nounwind
declare void @_ZN8dc_pixelD1Ev(ptr noundef nonnull align 1 dereferenceable(3)) unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN15dc_pixel_matrix9get_deltaER11_dc_corners11dc_channels(ptr nocapture noundef nonnull readonly align 8 dereferenceable(24) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(32) %1, i32 noundef %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %class.dc_pixel, align 1
  %5 = alloca %class.dc_pixel, align 1
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %4) #6
  call void @_ZN8dc_pixelC1Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %4, i8 noundef zeroext 0, i8 noundef zeroext 0, i8 noundef zeroext 0)
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %5) #6
  invoke void @_ZN8dc_pixelC1Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %5, i8 noundef zeroext -1, i8 noundef zeroext -1, i8 noundef zeroext -1)
          to label %21 unwind label %34

21:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  store i64 0, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  store i64 255, ptr %7, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %1, i64 8
  %23 = load i64, ptr %22, align 8, !tbaa !9
  %24 = getelementptr inbounds i8, ptr %1, i64 24
  %25 = load i64, ptr %24, align 8, !tbaa !11
  %26 = icmp ult i64 %23, %25
  br i1 %26, label %.lr.ph39, label %._crit_edge40

.lr.ph39:                                         ; preds = %21
  %27 = getelementptr inbounds i8, ptr %1, i64 16
  %28 = getelementptr inbounds i8, ptr %0, i64 8
  %29 = icmp eq i32 %2, 3
  %30 = load i64, ptr %1, align 8, !tbaa !12
  %31 = load i64, ptr %27, align 8, !tbaa !13
  %32 = icmp ult i64 %30, %31
  br i1 %32, label %.lr.ph39.split, label %._crit_edge40

._crit_edge40:                                    ; preds = %._crit_edge, %.lr.ph39, %21
  %33 = icmp eq i32 %2, 3
  br i1 %33, label %95, label %114

34:                                               ; preds = %3
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %119

.lr.ph39.split:                                   ; preds = %.lr.ph39, %._crit_edge
  %36 = phi i64 [ %72, %._crit_edge ], [ %31, %.lr.ph39 ]
  %.02436 = phi i64 [ %73, %._crit_edge ], [ %23, %.lr.ph39 ]
  %37 = load i64, ptr %1, align 8, !tbaa !12
  %38 = icmp ult i64 %37, %36
  br i1 %38, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph39.split
  br i1 %29, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %42
  %.02335.us = phi i64 [ %68, %42 ], [ %37, %.lr.ph ]
  %39 = load ptr, ptr %0, align 8, !tbaa !14
  %40 = load i64, ptr %28, align 8, !tbaa !17
  %41 = invoke noundef i64 @_Z2ixmmm(i64 noundef %.02335.us, i64 noundef %.02436, i64 noundef %40)
          to label %42 unwind label %.split.us

42:                                               ; preds = %.lr.ph.split.us
  %43 = getelementptr inbounds %class.dc_pixel, ptr %39, i64 %41
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #6
  %44 = call noundef zeroext i8 @_ZN8dc_pixel5get_rEv(ptr noundef nonnull align 1 dereferenceable(3) %43)
  store i8 %44, ptr %9, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #6
  %45 = call noundef zeroext i8 @_ZN8dc_pixel5get_rEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  store i8 %45, ptr %10, align 1, !tbaa !18
  %46 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3maxIhERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1) %9, ptr noundef nonnull align 1 dereferenceable(1) %10)
  %47 = load i8, ptr %46, align 1, !tbaa !18
  call void @_ZN8dc_pixel5set_rEh(ptr noundef nonnull align 1 dereferenceable(3) %4, i8 noundef zeroext %47)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #6
  %48 = call noundef zeroext i8 @_ZN8dc_pixel5get_gEv(ptr noundef nonnull align 1 dereferenceable(3) %43)
  store i8 %48, ptr %11, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #6
  %49 = call noundef zeroext i8 @_ZN8dc_pixel5get_gEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  store i8 %49, ptr %12, align 1, !tbaa !18
  %50 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3maxIhERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1) %11, ptr noundef nonnull align 1 dereferenceable(1) %12)
  %51 = load i8, ptr %50, align 1, !tbaa !18
  call void @_ZN8dc_pixel5set_gEh(ptr noundef nonnull align 1 dereferenceable(3) %4, i8 noundef zeroext %51)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #6
  %52 = call noundef zeroext i8 @_ZN8dc_pixel5get_bEv(ptr noundef nonnull align 1 dereferenceable(3) %43)
  store i8 %52, ptr %13, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #6
  %53 = call noundef zeroext i8 @_ZN8dc_pixel5get_bEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  store i8 %53, ptr %14, align 1, !tbaa !18
  %54 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3maxIhERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1) %13, ptr noundef nonnull align 1 dereferenceable(1) %14)
  %55 = load i8, ptr %54, align 1, !tbaa !18
  call void @_ZN8dc_pixel5set_bEh(ptr noundef nonnull align 1 dereferenceable(3) %4, i8 noundef zeroext %55)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #6
  %56 = call noundef zeroext i8 @_ZN8dc_pixel5get_rEv(ptr noundef nonnull align 1 dereferenceable(3) %43)
  store i8 %56, ptr %15, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #6
  %57 = call noundef zeroext i8 @_ZN8dc_pixel5get_rEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  store i8 %57, ptr %16, align 1, !tbaa !18
  %58 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3minIhERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1) %15, ptr noundef nonnull align 1 dereferenceable(1) %16)
  %59 = load i8, ptr %58, align 1, !tbaa !18
  call void @_ZN8dc_pixel5set_rEh(ptr noundef nonnull align 1 dereferenceable(3) %5, i8 noundef zeroext %59)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #6
  %60 = call noundef zeroext i8 @_ZN8dc_pixel5get_gEv(ptr noundef nonnull align 1 dereferenceable(3) %43)
  store i8 %60, ptr %17, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #6
  %61 = call noundef zeroext i8 @_ZN8dc_pixel5get_gEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  store i8 %61, ptr %18, align 1, !tbaa !18
  %62 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3minIhERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1) %17, ptr noundef nonnull align 1 dereferenceable(1) %18)
  %63 = load i8, ptr %62, align 1, !tbaa !18
  call void @_ZN8dc_pixel5set_gEh(ptr noundef nonnull align 1 dereferenceable(3) %5, i8 noundef zeroext %63)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #6
  %64 = call noundef zeroext i8 @_ZN8dc_pixel5get_bEv(ptr noundef nonnull align 1 dereferenceable(3) %43)
  store i8 %64, ptr %19, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #6
  %65 = call noundef zeroext i8 @_ZN8dc_pixel5get_bEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  store i8 %65, ptr %20, align 1, !tbaa !18
  %66 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3minIhERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1) %19, ptr noundef nonnull align 1 dereferenceable(1) %20)
  %67 = load i8, ptr %66, align 1, !tbaa !18
  call void @_ZN8dc_pixel5set_bEh(ptr noundef nonnull align 1 dereferenceable(3) %5, i8 noundef zeroext %67)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  %68 = add nuw i64 %.02335.us, 1
  %69 = load i64, ptr %27, align 8, !tbaa !13
  %70 = icmp ult i64 %68, %69
  br i1 %70, label %.lr.ph.split.us, label %._crit_edge, !llvm.loop !19

.split.us:                                        ; preds = %.lr.ph.split.us
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %94

._crit_edge:                                      ; preds = %83, %42, %.lr.ph39.split
  %72 = phi i64 [ %36, %.lr.ph39.split ], [ %69, %42 ], [ %90, %83 ]
  %73 = add nuw i64 %.02436, 1
  %74 = load i64, ptr %24, align 8, !tbaa !11
  %75 = icmp ult i64 %73, %74
  br i1 %75, label %.lr.ph39.split, label %._crit_edge40, !llvm.loop !21

.lr.ph.split:                                     ; preds = %.lr.ph, %83
  %.02335 = phi i64 [ %89, %83 ], [ %37, %.lr.ph ]
  %76 = load ptr, ptr %0, align 8, !tbaa !14
  %77 = load i64, ptr %28, align 8, !tbaa !17
  %78 = invoke noundef i64 @_Z2ixmmm(i64 noundef %.02335, i64 noundef %.02436, i64 noundef %77)
          to label %79 unwind label %.split

79:                                               ; preds = %.lr.ph.split
  %80 = getelementptr inbounds %class.dc_pixel, ptr %76, i64 %78
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %81 = invoke noundef zeroext i8 @_ZN8dc_pixel11get_channelE11dc_channels(ptr noundef nonnull align 1 dereferenceable(3) %80, i32 noundef %2)
          to label %83 unwind label %92

.split:                                           ; preds = %.lr.ph.split
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %94

83:                                               ; preds = %79
  %84 = zext i8 %81 to i64
  store i64 %84, ptr %8, align 8, !tbaa !5
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %86 = load i64, ptr %85, align 8, !tbaa !5
  store i64 %86, ptr %6, align 8, !tbaa !5
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %88 = load i64, ptr %87, align 8, !tbaa !5
  store i64 %88, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  %89 = add nuw i64 %.02335, 1
  %90 = load i64, ptr %27, align 8, !tbaa !13
  %91 = icmp ult i64 %89, %90
  br i1 %91, label %.lr.ph.split, label %._crit_edge, !llvm.loop !19

92:                                               ; preds = %79
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %94

94:                                               ; preds = %.split, %.split.us, %92
  %.pn = phi { ptr, i32 } [ %93, %92 ], [ %82, %.split ], [ %71, %.split.us ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZN8dc_pixelD1Ev(ptr noundef nonnull align 1 dereferenceable(3) %5) #6
  br label %119

95:                                               ; preds = %._crit_edge40
  %96 = call noundef zeroext i8 @_ZN8dc_pixel5get_rEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %97 = zext i8 %96 to i16
  %98 = call noundef zeroext i8 @_ZN8dc_pixel5get_rEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %99 = zext i8 %98 to i16
  %100 = call noundef zeroext i8 @_ZN8dc_pixel5get_gEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %101 = zext i8 %100 to i16
  %102 = call noundef zeroext i8 @_ZN8dc_pixel5get_gEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %103 = zext i8 %102 to i16
  %104 = call noundef zeroext i8 @_ZN8dc_pixel5get_bEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %105 = zext i8 %104 to i16
  %106 = call noundef zeroext i8 @_ZN8dc_pixel5get_bEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %107 = zext i8 %106 to i16
  %108 = add nuw nsw i16 %97, %101
  %109 = add nuw nsw i16 %99, %103
  %110 = add nuw nsw i16 %108, %105
  %111 = add nuw nsw i16 %109, %107
  %.lhs.trunc = sub nsw i16 %110, %111
  %112 = sdiv i16 %.lhs.trunc, 3
  %113 = sext i16 %112 to i64
  br label %118

114:                                              ; preds = %._crit_edge40
  %115 = load i64, ptr %6, align 8, !tbaa !5
  %116 = load i64, ptr %7, align 8, !tbaa !5
  %117 = sub i64 %115, %116
  br label %118

118:                                              ; preds = %114, %95
  %.025 = phi i64 [ %113, %95 ], [ %117, %114 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZN8dc_pixelD1Ev(ptr noundef nonnull align 1 dereferenceable(3) %5) #6
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %5) #6
  call void @_ZN8dc_pixelD1Ev(ptr noundef nonnull align 1 dereferenceable(3) %4) #6
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %4) #6
  ret i64 %.025

119:                                              ; preds = %94, %34
  %.pn.pn = phi { ptr, i32 } [ %.pn, %94 ], [ %35, %34 ]
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %5) #6
  call void @_ZN8dc_pixelD1Ev(ptr noundef nonnull align 1 dereferenceable(3) %4) #6
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn.pn
}

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

declare void @_ZN8dc_pixelC1Ehhh(ptr noundef nonnull align 1 dereferenceable(3), i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3maxIhERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8dc_pixel5set_gEh(ptr noundef nonnull align 1 dereferenceable(3), i8 noundef zeroext) local_unnamed_addr #4 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 #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8dc_pixel5set_bEh(ptr noundef nonnull align 1 dereferenceable(3), i8 noundef zeroext) local_unnamed_addr #4 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 #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3minIhERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #5

declare noundef zeroext i8 @_ZN8dc_pixel11get_channelE11dc_channels(ptr noundef nonnull align 1 dereferenceable(3), i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

attributes #0 = { 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 #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_ZTS11_dc_corners", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!11 = !{!10, !6, i64 24}
!12 = !{!10, !6, i64 0}
!13 = !{!10, !6, i64 16}
!14 = !{!15, !16, i64 0}
!15 = !{!"_ZTS15dc_pixel_matrix", !16, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!15, !6, i64 8}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20, !22}
!22 = !{!"llvm.loop.unswitch.partial.disable"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass