; LLVM IR from ox-vgg/vise :: src/search_engine/relja_retrival/external/KMCode_relja/descriptor/CCDescriptor._2ebfee5d (ZN12CCDescriptor17computeComponentsEP12ImageContent)

; 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.ImageContent = type { i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%class.CornerDescriptor = type <{ %class.Corner, ptr, i32, float, i64, i32, [4 x i8] }>
%class.Corner = type { i32, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, i32, i32, float, i32, i32 }

@_ZL6CCSize = external hidden global i32, align 4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12CCDescriptor17computeComponentsEP12ImageContent(ptr noundef nonnull align 8 dereferenceable(116) %0, ptr noundef %1) #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %23 = load ptr, ptr %3, align 8
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = icmp eq ptr %24, null
  br i1 %25, label %26, label %27

26:                                               ; preds = %2
  br label %196

27:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %28 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #9
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %28, i32 noundef 41, i32 noundef 41)
          to label %29 unwind label %59

29:                                               ; preds = %27
  store ptr %28, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %30 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #9
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %30, i32 noundef 41, i32 noundef 41)
          to label %31 unwind label %63

31:                                               ; preds = %29
  store ptr %30, ptr %8, align 8, !tbaa !5
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = call noundef zeroext i1 @_ZN6Corner15normalizeAffineEP12ImageContentS1_(ptr noundef nonnull align 4 dereferenceable(88) %23, ptr noundef %32, ptr noundef %33)
  %35 = load i32, ptr @_ZL6CCSize, align 4, !tbaa !9
  %36 = load i32, ptr @_ZL6CCSize, align 4, !tbaa !9
  %37 = mul nsw i32 %35, %36
  call void @_ZN16CornerDescriptor8allocVecEi(ptr noundef nonnull align 8 dereferenceable(116) %23, i32 noundef %37)
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_Z10smoothSqrtP12ImageContentS0_(ptr noundef %38, ptr noundef %39)
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %41)
  %43 = lshr i32 %42, 1
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %44)
  %46 = lshr i32 %45, 1
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %47)
  %49 = lshr i32 %48, 1
  %50 = uitofp i32 %49 to float
  call void @_Z9normalizeP12ImageContentiif(ptr noundef %40, i32 noundef %43, i32 noundef %46, float noundef %50)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %51 = load i32, ptr @_ZL6CCSize, align 4, !tbaa !9
  %52 = sdiv i32 41, %51
  store i32 %52, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %53 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %53, ptr %11, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %102, %31
  %55 = load i32, ptr %10, align 4, !tbaa !9
  %56 = load i32, ptr @_ZL6CCSize, align 4, !tbaa !9
  %57 = icmp slt i32 %55, %56
  br i1 %57, label %67, label %58

58:                                               ; preds = %54
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %108

59:                                               ; preds = %27
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %6, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %7, align 4
  call void @_ZdlPvm(ptr noundef %28, i64 noundef 80) #10
  br label %197

63:                                               ; preds = %29
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %6, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %7, align 4
  call void @_ZdlPvm(ptr noundef %30, i64 noundef 80) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %197

67:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %68 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %68, ptr %14, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %95, %67
  %70 = load i32, ptr %13, align 4, !tbaa !9
  %71 = load i32, ptr @_ZL6CCSize, align 4, !tbaa !9
  %72 = icmp slt i32 %70, %71
  br i1 %72, label %74, label %73

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

74:                                               ; preds = %69
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = getelementptr inbounds %class.ImageContent, ptr %75, i32 0, i32 4
  %77 = load ptr, ptr %76, align 8, !tbaa !11
  %78 = load i32, ptr %11, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds ptr, ptr %77, i64 %79
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  %82 = load i32, ptr %14, align 4, !tbaa !9
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds float, ptr %81, i64 %83
  %85 = load float, ptr %84, align 4, !tbaa !13
  %86 = getelementptr inbounds %class.CornerDescriptor, ptr %23, i32 0, i32 1
  %87 = load ptr, ptr %86, align 8, !tbaa !15
  %88 = load i32, ptr %10, align 4, !tbaa !9
  %89 = load i32, ptr @_ZL6CCSize, align 4, !tbaa !9
  %90 = mul nsw i32 %88, %89
  %91 = load i32, ptr %13, align 4, !tbaa !9
  %92 = add nsw i32 %90, %91
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds float, ptr %87, i64 %93
  store float %85, ptr %94, align 4, !tbaa !13
  br label %95

95:                                               ; preds = %74
  %96 = load i32, ptr %13, align 4, !tbaa !9
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %13, align 4, !tbaa !9
  %98 = load i32, ptr %9, align 4, !tbaa !9
  %99 = load i32, ptr %14, align 4, !tbaa !9
  %100 = add nsw i32 %99, %98
  store i32 %100, ptr %14, align 4, !tbaa !9
  br label %69, !llvm.loop !19

101:                                              ; preds = %73
  br label %102

102:                                              ; preds = %101
  %103 = load i32, ptr %10, align 4, !tbaa !9
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %10, align 4, !tbaa !9
  %105 = load i32, ptr %9, align 4, !tbaa !9
  %106 = load i32, ptr %11, align 4, !tbaa !9
  %107 = add nsw i32 %106, %105
  store i32 %107, ptr %11, align 4, !tbaa !9
  br label %54, !llvm.loop !21

108:                                              ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store float 0.000000e+00, ptr %15, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %109

109:                                              ; preds = %126, %108
  %110 = load i32, ptr %17, align 4, !tbaa !9
  %111 = getelementptr inbounds %class.CornerDescriptor, ptr %23, i32 0, i32 2
  %112 = load i32, ptr %111, align 8, !tbaa !22
  %113 = icmp slt i32 %110, %112
  br i1 %113, label %115, label %114

114:                                              ; preds = %109
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %129

115:                                              ; preds = %109
  %116 = getelementptr inbounds %class.CornerDescriptor, ptr %23, i32 0, i32 1
  %117 = load ptr, ptr %116, align 8, !tbaa !15
  %118 = load i32, ptr %17, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds float, ptr %117, i64 %119
  %121 = load float, ptr %120, align 4, !tbaa !13
  store float %121, ptr %16, align 4, !tbaa !13
  %122 = load float, ptr %16, align 4, !tbaa !13
  %123 = load float, ptr %16, align 4, !tbaa !13
  %124 = load float, ptr %15, align 4, !tbaa !13
  %125 = call float @llvm.fmuladd.f32(float %122, float %123, float %124)
  store float %125, ptr %15, align 4, !tbaa !13
  br label %126

126:                                              ; preds = %115
  %127 = load i32, ptr %17, align 4, !tbaa !9
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %17, align 4, !tbaa !9
  br label %109, !llvm.loop !23

129:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %130 = load float, ptr %15, align 4, !tbaa !13
  %131 = call noundef float @_ZSt4sqrtf(float noundef %130)
  %132 = fpext float %131 to double
  %133 = fdiv double 1.000000e+00, %132
  %134 = fptrunc double %133 to float
  store float %134, ptr %18, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %135

135:                                              ; preds = %150, %129
  %136 = load i32, ptr %19, align 4, !tbaa !9
  %137 = getelementptr inbounds %class.CornerDescriptor, ptr %23, i32 0, i32 2
  %138 = load i32, ptr %137, align 8, !tbaa !22
  %139 = icmp slt i32 %136, %138
  br i1 %139, label %141, label %140

140:                                              ; preds = %135
  store i32 11, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %153

141:                                              ; preds = %135
  %142 = load float, ptr %18, align 4, !tbaa !13
  %143 = getelementptr inbounds %class.CornerDescriptor, ptr %23, i32 0, i32 1
  %144 = load ptr, ptr %143, align 8, !tbaa !15
  %145 = load i32, ptr %19, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds float, ptr %144, i64 %146
  %148 = load float, ptr %147, align 4, !tbaa !13
  %149 = fmul float %148, %142
  store float %149, ptr %147, align 4, !tbaa !13
  br label %150

150:                                              ; preds = %141
  %151 = load i32, ptr %19, align 4, !tbaa !9
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %19, align 4, !tbaa !9
  br label %135, !llvm.loop !24

153:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %154

154:                                              ; preds = %183, %153
  %155 = load i32, ptr %21, align 4, !tbaa !9
  %156 = getelementptr inbounds %class.CornerDescriptor, ptr %23, i32 0, i32 2
  %157 = load i32, ptr %156, align 8, !tbaa !22
  %158 = icmp slt i32 %155, %157
  br i1 %158, label %160, label %159

159:                                              ; preds = %154
  store i32 14, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %186

160:                                              ; preds = %154
  %161 = getelementptr inbounds %class.CornerDescriptor, ptr %23, i32 0, i32 1
  %162 = load ptr, ptr %161, align 8, !tbaa !15
  %163 = load i32, ptr %21, align 4, !tbaa !9
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds float, ptr %162, i64 %164
  %166 = load float, ptr %165, align 4, !tbaa !13
  %167 = fpext float %166 to double
  %168 = fmul double 5.120000e+02, %167
  %169 = fptosi double %168 to i32
  store i32 %169, ptr %20, align 4, !tbaa !9
  %170 = load i32, ptr %20, align 4, !tbaa !9
  %171 = icmp slt i32 255, %170
  br i1 %171, label %172, label %173

172:                                              ; preds = %160
  br label %175

173:                                              ; preds = %160
  %174 = load i32, ptr %20, align 4, !tbaa !9
  br label %175

175:                                              ; preds = %173, %172
  %176 = phi i32 [ 255, %172 ], [ %174, %173 ]
  %177 = sitofp i32 %176 to float
  %178 = getelementptr inbounds %class.CornerDescriptor, ptr %23, i32 0, i32 1
  %179 = load ptr, ptr %178, align 8, !tbaa !15
  %180 = load i32, ptr %21, align 4, !tbaa !9
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds float, ptr %179, i64 %181
  store float %177, ptr %182, align 4, !tbaa !13
  br label %183

183:                                              ; preds = %175
  %184 = load i32, ptr %21, align 4, !tbaa !9
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %21, align 4, !tbaa !9
  br label %154, !llvm.loop !25

186:                                              ; preds = %159
  %187 = getelementptr inbounds %class.Corner, ptr %23, i32 0, i32 20
  store i32 1, ptr %187, align 8, !tbaa !26
  %188 = load ptr, ptr %5, align 8, !tbaa !5
  %189 = icmp eq ptr %188, null
  br i1 %189, label %191, label %190

190:                                              ; preds = %186
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %188) #8
  call void @_ZdlPvm(ptr noundef %188, i64 noundef 80) #10
  br label %191

191:                                              ; preds = %190, %186
  %192 = load ptr, ptr %8, align 8, !tbaa !5
  %193 = icmp eq ptr %192, null
  br i1 %193, label %195, label %194

194:                                              ; preds = %191
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %192) #8
  call void @_ZdlPvm(ptr noundef %192, i64 noundef 80) #10
  br label %195

195:                                              ; preds = %194, %191
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 81, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %196

196:                                              ; preds = %195, %26
  ret void

197:                                              ; preds = %63, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %198

198:                                              ; preds = %197
  %199 = load ptr, ptr %6, align 8
  %200 = load i32, ptr %7, align 4
  %201 = insertvalue { ptr, i32 } poison, ptr %199, 0
  %202 = insertvalue { ptr, i32 } %201, i32 %200, 1
  resume { ptr, i32 } %202
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

declare noundef zeroext i1 @_ZN6Corner15normalizeAffineEP12ImageContentS1_(ptr noundef nonnull align 4 dereferenceable(88), ptr noundef, ptr noundef) #4

declare void @_ZN16CornerDescriptor8allocVecEi(ptr noundef nonnull align 8 dereferenceable(116), i32 noundef) #4

declare void @_Z10smoothSqrtP12ImageContentS0_(ptr noundef, ptr noundef) #4

declare void @_Z9normalizeP12ImageContentiif(ptr noundef, i32 noundef, i32 noundef, float noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80)) #5 align 2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) #5

; Function Attrs: nounwind
declare void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #7

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 16}
!12 = !{!"_ZTS12ImageContent", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!16, !6, i64 88}
!16 = !{!"_ZTS16CornerDescriptor", !17, i64 0, !6, i64 88, !10, i64 96, !14, i64 100, !18, i64 104, !10, i64 112}
!17 = !{!"_ZTS6Corner", !10, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !14, i64 40, !14, i64 44, !14, i64 48, !14, i64 52, !14, i64 56, !14, i64 60, !14, i64 64, !10, i64 68, !10, i64 72, !14, i64 76, !10, i64 80, !10, i64 84}
!18 = !{!"long", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!16, !10, i64 96}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = !{!17, !10, i64 80}


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

@_ZL6CCSize = external hidden local_unnamed_addr global i32, align 4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12CCDescriptor17computeComponentsEP12ImageContent(ptr noundef nonnull align 8 dereferenceable(116) %0, ptr noundef %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = icmp eq ptr %1, null
  br i1 %3, label %141, label %4

4:                                                ; preds = %2
  %5 = tail call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #8
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %5, i32 noundef 41, i32 noundef 41)
          to label %6 unwind label %90

6:                                                ; preds = %4
  %7 = tail call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #8
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %7, i32 noundef 41, i32 noundef 41)
          to label %8 unwind label %92

8:                                                ; preds = %6
  %9 = tail call noundef zeroext i1 @_ZN6Corner15normalizeAffineEP12ImageContentS1_(ptr noundef nonnull align 4 dereferenceable(88) %0, ptr noundef nonnull %1, ptr noundef nonnull %5)
  %10 = load i32, ptr @_ZL6CCSize, align 4, !tbaa !5
  %11 = mul nsw i32 %10, %10
  tail call void @_ZN16CornerDescriptor8allocVecEi(ptr noundef nonnull align 8 dereferenceable(116) %0, i32 noundef %11)
  tail call void @_Z10smoothSqrtP12ImageContentS0_(ptr noundef nonnull %5, ptr noundef nonnull %7)
  %12 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %7)
  %13 = lshr i32 %12, 1
  %14 = tail call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %7)
  %15 = lshr i32 %14, 1
  %16 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %7)
  %17 = lshr i32 %16, 1
  %18 = uitofp nneg i32 %17 to float
  tail call void @_Z9normalizeP12ImageContentiif(ptr noundef nonnull %7, i32 noundef %13, i32 noundef %15, float noundef %18)
  %19 = load i32, ptr @_ZL6CCSize, align 4, !tbaa !5
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.preheader58.lr.ph, label %.preheader57

.preheader58.lr.ph:                               ; preds = %8
  %21 = udiv i32 41, %19
  %22 = getelementptr inbounds i8, ptr %7, i64 16
  %23 = getelementptr inbounds i8, ptr %0, i64 88
  %24 = load ptr, ptr %23, align 8
  %25 = load ptr, ptr %22, align 8, !tbaa !9
  %26 = zext nneg i32 %21 to i64
  %27 = zext nneg i32 %19 to i64
  %28 = mul nuw nsw i64 %27, %27
  %29 = shl nuw i64 %28, 2
  %scevgep = getelementptr i8, ptr %24, i64 %29
  %30 = mul nuw nsw i64 %26, %27
  %31 = shl nuw nsw i64 %30, 2
  %32 = shl nuw nsw i64 %26, 2
  %min.iters.check = icmp ult i32 %19, 8
  %n.vec = and i64 %27, 2147483640
  %33 = or disjoint i64 %n.vec, 1
  %ind.end = mul nuw nsw i64 %33, %26
  %cmp.n = icmp eq i64 %n.vec, %27
  %xtraiter = and i64 %27, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader58.us

.preheader58.us:                                  ; preds = %._crit_edge.us, %.preheader58.lr.ph
  %indvars.iv80 = phi i64 [ %indvars.iv.next81, %._crit_edge.us ], [ %26, %.preheader58.lr.ph ]
  %indvars.iv78 = phi i64 [ %indvars.iv.next79, %._crit_edge.us ], [ 0, %.preheader58.lr.ph ]
  %34 = getelementptr inbounds ptr, ptr %25, i64 %indvars.iv80
  %35 = load ptr, ptr %34, align 8, !tbaa !12
  %36 = mul nuw nsw i64 %indvars.iv78, %27
  %invariant.gep = getelementptr inbounds float, ptr %24, i64 %36
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.preheader58.us
  %scevgep102 = getelementptr i8, ptr %35, i64 %31
  %scevgep103 = getelementptr i8, ptr %35, i64 %32
  %37 = icmp ult ptr %scevgep102, %scevgep103
  %umin = select i1 %37, ptr %scevgep102, ptr %scevgep103
  %38 = icmp ugt ptr %scevgep102, %scevgep103
  %umax = select i1 %38, ptr %scevgep102, ptr %scevgep103
  %scevgep104 = getelementptr i8, ptr %umax, i64 4
  %bound0 = icmp ult ptr %24, %scevgep104
  %bound1 = icmp ult ptr %umin, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %invariant.gep141 = getelementptr float, ptr %35, i64 %26
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %39 = or disjoint i64 %index, 1
  %offset.idx = mul i64 %39, %26
  %offset.idx130 = or disjoint i64 %index, 3
  %40 = mul i64 %offset.idx130, %26
  %offset.idx131 = or disjoint i64 %index, 4
  %41 = mul i64 %offset.idx131, %26
  %offset.idx132 = or disjoint i64 %index, 5
  %42 = mul i64 %offset.idx132, %26
  %offset.idx133 = or disjoint i64 %index, 6
  %43 = mul i64 %offset.idx133, %26
  %offset.idx134 = or disjoint i64 %index, 7
  %44 = mul i64 %offset.idx134, %26
  %offset.idx135 = add i64 %index, 8
  %45 = mul i64 %offset.idx135, %26
  %46 = getelementptr inbounds float, ptr %35, i64 %offset.idx
  %gep142 = getelementptr float, ptr %invariant.gep141, i64 %offset.idx
  %47 = getelementptr inbounds float, ptr %35, i64 %40
  %48 = getelementptr inbounds float, ptr %35, i64 %41
  %49 = getelementptr inbounds float, ptr %35, i64 %42
  %50 = getelementptr inbounds float, ptr %35, i64 %43
  %51 = getelementptr inbounds float, ptr %35, i64 %44
  %52 = getelementptr inbounds float, ptr %35, i64 %45
  %53 = load float, ptr %46, align 4, !tbaa !13, !alias.scope !15
  %54 = load float, ptr %gep142, align 4, !tbaa !13, !alias.scope !15
  %55 = load float, ptr %47, align 4, !tbaa !13, !alias.scope !15
  %56 = load float, ptr %48, align 4, !tbaa !13, !alias.scope !15
  %57 = insertelement <4 x float> poison, float %53, i64 0
  %58 = insertelement <4 x float> %57, float %54, i64 1
  %59 = insertelement <4 x float> %58, float %55, i64 2
  %60 = insertelement <4 x float> %59, float %56, i64 3
  %61 = load float, ptr %49, align 4, !tbaa !13, !alias.scope !15
  %62 = load float, ptr %50, align 4, !tbaa !13, !alias.scope !15
  %63 = load float, ptr %51, align 4, !tbaa !13, !alias.scope !15
  %64 = load float, ptr %52, align 4, !tbaa !13, !alias.scope !15
  %65 = insertelement <4 x float> poison, float %61, i64 0
  %66 = insertelement <4 x float> %65, float %62, i64 1
  %67 = insertelement <4 x float> %66, float %63, i64 2
  %68 = insertelement <4 x float> %67, float %64, i64 3
  %69 = getelementptr inbounds float, ptr %invariant.gep, i64 %index
  %70 = getelementptr inbounds i8, ptr %69, i64 16
  store <4 x float> %60, ptr %69, align 4, !tbaa !13, !alias.scope !18, !noalias !15
  store <4 x float> %68, ptr %70, align 4, !tbaa !13, !alias.scope !18, !noalias !15
  %index.next = add nuw i64 %index, 8
  %71 = icmp eq i64 %index.next, %n.vec
  br i1 %71, label %middle.block, label %vector.body, !llvm.loop !20

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.preheader58.us
  %indvars.iv73.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.preheader58.us ], [ %n.vec, %middle.block ]
  %indvars.iv.ph = phi i64 [ %26, %vector.memcheck ], [ %26, %.preheader58.us ], [ %ind.end, %middle.block ]
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv73.prol = phi i64 [ %indvars.iv.next74.prol, %scalar.ph.prol ], [ %indvars.iv73.ph, %scalar.ph.preheader ]
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %scalar.ph.prol ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %72 = getelementptr inbounds float, ptr %35, i64 %indvars.iv.prol
  %73 = load float, ptr %72, align 4, !tbaa !13
  %gep.prol = getelementptr inbounds float, ptr %invariant.gep, i64 %indvars.iv73.prol
  store float %73, ptr %gep.prol, align 4, !tbaa !13
  %indvars.iv.next74.prol = add nuw nsw i64 %indvars.iv73.prol, 1
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, %26
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !24

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv73.unr = phi i64 [ %indvars.iv73.ph, %scalar.ph.preheader ], [ %indvars.iv.next74.prol, %scalar.ph.prol ]
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %74 = sub nsw i64 %indvars.iv73.ph, %27
  %75 = icmp ugt i64 %74, -4
  br i1 %75, label %._crit_edge.us, label %scalar.ph.preheader.new

scalar.ph.preheader.new:                          ; preds = %scalar.ph.prol.loopexit
  %invariant.gep143 = getelementptr i8, ptr %invariant.gep, i64 4
  %invariant.gep145 = getelementptr i8, ptr %invariant.gep, i64 8
  %invariant.gep147 = getelementptr i8, ptr %invariant.gep, i64 12
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph, %scalar.ph.preheader.new
  %indvars.iv73 = phi i64 [ %indvars.iv73.unr, %scalar.ph.preheader.new ], [ %indvars.iv.next74.3, %scalar.ph ]
  %indvars.iv = phi i64 [ %indvars.iv.unr, %scalar.ph.preheader.new ], [ %indvars.iv.next.3, %scalar.ph ]
  %76 = getelementptr inbounds float, ptr %35, i64 %indvars.iv
  %77 = load float, ptr %76, align 4, !tbaa !13
  %gep = getelementptr inbounds float, ptr %invariant.gep, i64 %indvars.iv73
  store float %77, ptr %gep, align 4, !tbaa !13
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, %26
  %78 = getelementptr inbounds float, ptr %35, i64 %indvars.iv.next
  %79 = load float, ptr %78, align 4, !tbaa !13
  %gep144 = getelementptr float, ptr %invariant.gep143, i64 %indvars.iv73
  store float %79, ptr %gep144, align 4, !tbaa !13
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.next, %26
  %80 = getelementptr inbounds float, ptr %35, i64 %indvars.iv.next.1
  %81 = load float, ptr %80, align 4, !tbaa !13
  %gep146 = getelementptr float, ptr %invariant.gep145, i64 %indvars.iv73
  store float %81, ptr %gep146, align 4, !tbaa !13
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv.next.1, %26
  %82 = getelementptr inbounds float, ptr %35, i64 %indvars.iv.next.2
  %83 = load float, ptr %82, align 4, !tbaa !13
  %gep148 = getelementptr float, ptr %invariant.gep147, i64 %indvars.iv73
  store float %83, ptr %gep148, align 4, !tbaa !13
  %indvars.iv.next74.3 = add nuw nsw i64 %indvars.iv73, 4
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv.next.2, %26
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next74.3, %27
  br i1 %exitcond.not.3, label %._crit_edge.us, label %scalar.ph, !llvm.loop !26

._crit_edge.us:                                   ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %indvars.iv.next79 = add nuw nsw i64 %indvars.iv78, 1
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, %26
  %exitcond86.not = icmp eq i64 %indvars.iv.next79, %27
  br i1 %exitcond86.not, label %.preheader57, label %.preheader58.us, !llvm.loop !27

.preheader57:                                     ; preds = %._crit_edge.us, %8
  %84 = getelementptr inbounds i8, ptr %0, i64 96
  %85 = load i32, ptr %84, align 8, !tbaa !28
  %86 = icmp sgt i32 %85, 0
  br i1 %86, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader57
  %87 = getelementptr inbounds i8, ptr %0, i64 88
  %88 = load ptr, ptr %87, align 8, !tbaa !32
  %wide.trip.count90 = zext nneg i32 %85 to i64
  %xtraiter136 = and i64 %wide.trip.count90, 3
  %89 = icmp ult i32 %85, 4
  br i1 %89, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count90, 2147483644
  br label %108

90:                                               ; preds = %4
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %142

92:                                               ; preds = %6
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %142

._crit_edge.loopexit.unr-lcssa:                   ; preds = %108, %.lr.ph
  %.lcssa.ph = phi float [ poison, %.lr.ph ], [ %120, %108 ]
  %indvars.iv87.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next88.3, %108 ]
  %.05164.unr = phi float [ 0.000000e+00, %.lr.ph ], [ %120, %108 ]
  %lcmp.mod137.not = icmp eq i64 %xtraiter136, 0
  br i1 %lcmp.mod137.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv87.epil = phi i64 [ %indvars.iv.next88.epil, %.epil.preheader ], [ %indvars.iv87.unr, %._crit_edge.loopexit.unr-lcssa ]
  %.05164.epil = phi float [ %96, %.epil.preheader ], [ %.05164.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %94 = getelementptr inbounds float, ptr %88, i64 %indvars.iv87.epil
  %95 = load float, ptr %94, align 4, !tbaa !13
  %96 = tail call float @llvm.fmuladd.f32(float %95, float %95, float %.05164.epil)
  %indvars.iv.next88.epil = add nuw nsw i64 %indvars.iv87.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter136
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !33

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %.preheader57
  %.051.lcssa = phi float [ 0.000000e+00, %.preheader57 ], [ %.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %96, %.epil.preheader ]
  %97 = tail call noundef float @_ZSt4sqrtf(float noundef %.051.lcssa)
  %98 = fdiv float 1.000000e+00, %97
  %99 = load i32, ptr %84, align 8, !tbaa !28
  %100 = icmp sgt i32 %99, 0
  br i1 %100, label %.lr.ph68, label %._crit_edge72

.lr.ph68:                                         ; preds = %._crit_edge
  %101 = getelementptr inbounds i8, ptr %0, i64 88
  %102 = load ptr, ptr %101, align 8, !tbaa !32
  %wide.trip.count95 = zext nneg i32 %99 to i64
  %min.iters.check108 = icmp ult i32 %99, 8
  br i1 %min.iters.check108, label %scalar.ph107.preheader, label %vector.ph109

scalar.ph107.preheader:                           ; preds = %middle.block106, %.lr.ph68
  %indvars.iv92.ph = phi i64 [ 0, %.lr.ph68 ], [ %n.vec111, %middle.block106 ]
  br label %scalar.ph107

vector.ph109:                                     ; preds = %.lr.ph68
  %n.vec111 = and i64 %wide.trip.count95, 2147483640
  %broadcast.splatinsert = insertelement <4 x float> poison, float %98, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body113

vector.body113:                                   ; preds = %vector.body113, %vector.ph109
  %index114 = phi i64 [ 0, %vector.ph109 ], [ %index.next116, %vector.body113 ]
  %103 = getelementptr inbounds float, ptr %102, i64 %index114
  %104 = getelementptr inbounds i8, ptr %103, i64 16
  %wide.load = load <4 x float>, ptr %103, align 4, !tbaa !13
  %wide.load115 = load <4 x float>, ptr %104, align 4, !tbaa !13
  %105 = fmul <4 x float> %broadcast.splat, %wide.load
  %106 = fmul <4 x float> %broadcast.splat, %wide.load115
  store <4 x float> %105, ptr %103, align 4, !tbaa !13
  store <4 x float> %106, ptr %104, align 4, !tbaa !13
  %index.next116 = add nuw i64 %index114, 8
  %107 = icmp eq i64 %index.next116, %n.vec111
  br i1 %107, label %middle.block106, label %vector.body113, !llvm.loop !34

middle.block106:                                  ; preds = %vector.body113
  %cmp.n117 = icmp eq i64 %n.vec111, %wide.trip.count95
  br i1 %cmp.n117, label %.preheader, label %scalar.ph107.preheader

108:                                              ; preds = %108, %.lr.ph.new
  %indvars.iv87 = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next88.3, %108 ]
  %.05164 = phi float [ 0.000000e+00, %.lr.ph.new ], [ %120, %108 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %108 ]
  %109 = getelementptr inbounds float, ptr %88, i64 %indvars.iv87
  %110 = load float, ptr %109, align 4, !tbaa !13
  %111 = tail call float @llvm.fmuladd.f32(float %110, float %110, float %.05164)
  %indvars.iv.next88 = or disjoint i64 %indvars.iv87, 1
  %112 = getelementptr inbounds float, ptr %88, i64 %indvars.iv.next88
  %113 = load float, ptr %112, align 4, !tbaa !13
  %114 = tail call float @llvm.fmuladd.f32(float %113, float %113, float %111)
  %indvars.iv.next88.1 = or disjoint i64 %indvars.iv87, 2
  %115 = getelementptr inbounds float, ptr %88, i64 %indvars.iv.next88.1
  %116 = load float, ptr %115, align 4, !tbaa !13
  %117 = tail call float @llvm.fmuladd.f32(float %116, float %116, float %114)
  %indvars.iv.next88.2 = or disjoint i64 %indvars.iv87, 3
  %118 = getelementptr inbounds float, ptr %88, i64 %indvars.iv.next88.2
  %119 = load float, ptr %118, align 4, !tbaa !13
  %120 = tail call float @llvm.fmuladd.f32(float %119, float %119, float %117)
  %indvars.iv.next88.3 = add nuw nsw i64 %indvars.iv87, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %108, !llvm.loop !35

.preheader:                                       ; preds = %scalar.ph107, %middle.block106
  br i1 %100, label %.lr.ph71, label %._crit_edge72

.lr.ph71:                                         ; preds = %.preheader
  %121 = getelementptr inbounds i8, ptr %0, i64 88
  %122 = load ptr, ptr %121, align 8, !tbaa !32
  %wide.trip.count100 = zext nneg i32 %99 to i64
  %min.iters.check120 = icmp ult i32 %99, 4
  br i1 %min.iters.check120, label %scalar.ph119.preheader, label %vector.ph121

scalar.ph119.preheader:                           ; preds = %middle.block118, %.lr.ph71
  %indvars.iv97.ph = phi i64 [ 0, %.lr.ph71 ], [ %n.vec123, %middle.block118 ]
  br label %scalar.ph119

vector.ph121:                                     ; preds = %.lr.ph71
  %n.vec123 = and i64 %wide.trip.count95, 2147483644
  br label %vector.body125

vector.body125:                                   ; preds = %vector.body125, %vector.ph121
  %index126 = phi i64 [ 0, %vector.ph121 ], [ %index.next128, %vector.body125 ]
  %123 = getelementptr inbounds float, ptr %122, i64 %index126
  %wide.load127 = load <4 x float>, ptr %123, align 4, !tbaa !13
  %124 = fpext <4 x float> %wide.load127 to <4 x double>
  %125 = fmul <4 x double> %124, <double 5.120000e+02, double 5.120000e+02, double 5.120000e+02, double 5.120000e+02>
  %126 = fptosi <4 x double> %125 to <4 x i32>
  %127 = tail call <4 x i32> @llvm.smin.v4i32(<4 x i32> %126, <4 x i32> <i32 255, i32 255, i32 255, i32 255>)
  %128 = sitofp <4 x i32> %127 to <4 x float>
  store <4 x float> %128, ptr %123, align 4, !tbaa !13
  %index.next128 = add nuw i64 %index126, 4
  %129 = icmp eq i64 %index.next128, %n.vec123
  br i1 %129, label %middle.block118, label %vector.body125, !llvm.loop !36

middle.block118:                                  ; preds = %vector.body125
  %cmp.n129 = icmp eq i64 %n.vec123, %wide.trip.count95
  br i1 %cmp.n129, label %._crit_edge72, label %scalar.ph119.preheader

scalar.ph107:                                     ; preds = %scalar.ph107.preheader, %scalar.ph107
  %indvars.iv92 = phi i64 [ %indvars.iv.next93, %scalar.ph107 ], [ %indvars.iv92.ph, %scalar.ph107.preheader ]
  %130 = getelementptr inbounds float, ptr %102, i64 %indvars.iv92
  %131 = load float, ptr %130, align 4, !tbaa !13
  %132 = fmul float %98, %131
  store float %132, ptr %130, align 4, !tbaa !13
  %indvars.iv.next93 = add nuw nsw i64 %indvars.iv92, 1
  %exitcond96.not = icmp eq i64 %indvars.iv.next93, %wide.trip.count95
  br i1 %exitcond96.not, label %.preheader, label %scalar.ph107, !llvm.loop !37

._crit_edge72:                                    ; preds = %scalar.ph119, %middle.block118, %._crit_edge, %.preheader
  %133 = getelementptr inbounds i8, ptr %0, i64 80
  store i32 1, ptr %133, align 8, !tbaa !38
  tail call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #9
  tail call void @_ZdlPvm(ptr noundef nonnull %5, i64 noundef 80) #10
  tail call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %7) #9
  tail call void @_ZdlPvm(ptr noundef nonnull %7, i64 noundef 80) #10
  br label %141

scalar.ph119:                                     ; preds = %scalar.ph119.preheader, %scalar.ph119
  %indvars.iv97 = phi i64 [ %indvars.iv.next98, %scalar.ph119 ], [ %indvars.iv97.ph, %scalar.ph119.preheader ]
  %134 = getelementptr inbounds float, ptr %122, i64 %indvars.iv97
  %135 = load float, ptr %134, align 4, !tbaa !13
  %136 = fpext float %135 to double
  %137 = fmul double %136, 5.120000e+02
  %138 = fptosi double %137 to i32
  %139 = tail call i32 @llvm.smin.i32(i32 %138, i32 255)
  %140 = sitofp i32 %139 to float
  store float %140, ptr %134, align 4, !tbaa !13
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  %exitcond101.not = icmp eq i64 %indvars.iv.next98, %wide.trip.count100
  br i1 %exitcond101.not, label %._crit_edge72, label %scalar.ph119, !llvm.loop !39

141:                                              ; preds = %2, %._crit_edge72
  ret void

142:                                              ; preds = %92, %90
  %.sink = phi ptr [ %7, %92 ], [ %5, %90 ]
  %.pn = phi { ptr, i32 } [ %93, %92 ], [ %91, %90 ]
  tail call void @_ZdlPvm(ptr noundef nonnull %.sink, i64 noundef 80) #10
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN6Corner15normalizeAffineEP12ImageContentS1_(ptr noundef nonnull align 4 dereferenceable(88), ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN16CornerDescriptor8allocVecEi(ptr noundef nonnull align 8 dereferenceable(116), i32 noundef) local_unnamed_addr #3

declare void @_Z10smoothSqrtP12ImageContentS0_(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_Z9normalizeP12ImageContentiif(ptr noundef, i32 noundef, i32 noundef, float noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) local_unnamed_addr #4

; Function Attrs: nounwind
declare void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #7

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x i32> @llvm.smin.v4i32(<4 x i32>, <4 x i32>) #7

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { nounwind }
attributes #10 = { builtin 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 16}
!10 = !{!"_ZTS12ImageContent", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!16}
!16 = distinct !{!16, !17}
!17 = distinct !{!17, !"LVerDomain"}
!18 = !{!19}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !21, !22, !23}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!"llvm.loop.isvectorized", i32 1}
!23 = !{!"llvm.loop.unroll.runtime.disable"}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.unroll.disable"}
!26 = distinct !{!26, !21, !22}
!27 = distinct !{!27, !21}
!28 = !{!29, !6, i64 96}
!29 = !{!"_ZTS16CornerDescriptor", !30, i64 0, !11, i64 88, !6, i64 96, !14, i64 100, !31, i64 104, !6, i64 112}
!30 = !{!"_ZTS6Corner", !6, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !14, i64 40, !14, i64 44, !14, i64 48, !14, i64 52, !14, i64 56, !14, i64 60, !14, i64 64, !6, i64 68, !6, i64 72, !14, i64 76, !6, i64 80, !6, i64 84}
!31 = !{!"long", !7, i64 0}
!32 = !{!29, !11, i64 88}
!33 = distinct !{!33, !25}
!34 = distinct !{!34, !21, !22, !23}
!35 = distinct !{!35, !21}
!36 = distinct !{!36, !21, !22, !23}
!37 = distinct !{!37, !21, !23, !22}
!38 = !{!30, !6, i64 80}
!39 = distinct !{!39, !21, !23, !22}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass