; LLVM IR from ox-vgg/vise :: src/search_engine/relja_retrival/external/KMCode_relja/descriptor/ComplexGauss._1ba95b91 (ZN12ComplexGauss17computeComponentsEP12ImageContent)

; 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.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 }

@_ZL7cf_base = external hidden global [15 x float], align 16

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K11iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K22iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K33iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K10iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K21iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K32iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K20iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K31iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K42iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K30iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K41iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K40iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K51iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K50iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K60iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12ComplexGauss17computeComponentsEP12ImageContent(ptr noundef nonnull align 8 dereferenceable(116) %0, ptr noundef %1) #2 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 i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %11 = load ptr, ptr %3, align 8
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = icmp eq ptr %12, null
  br i1 %13, label %14, label %15

14:                                               ; preds = %2
  br label %162

15:                                               ; preds = %2
  call void @_ZN16CornerDescriptor8allocVecEi(ptr noundef nonnull align 8 dereferenceable(116) %11, i32 noundef 15)
  %16 = getelementptr inbounds %class.CornerDescriptor, ptr %11, i32 0, i32 1
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  %18 = icmp eq ptr %17, null
  br i1 %18, label %19, label %20

19:                                               ; preds = %15
  br label %162

20:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %21 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #9
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %21, i32 noundef 41, i32 noundef 41)
          to label %22 unwind label %163

22:                                               ; preds = %20
  store ptr %21, ptr %5, align 8, !tbaa !5
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = call noundef zeroext i1 @_ZN6Corner15normalizeAffineEP12ImageContentS1_(ptr noundef nonnull align 4 dereferenceable(88) %11, ptr noundef %23, ptr noundef %24)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %26)
  %28 = lshr i32 %27, 1
  store i32 %28, ptr %8, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %29)
  %31 = lshr i32 %30, 1
  store i32 %31, ptr %9, align 4, !tbaa !15
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = load i32, ptr %8, align 4, !tbaa !15
  %34 = load i32, ptr %9, align 4, !tbaa !15
  %35 = load i32, ptr %8, align 4, !tbaa !15
  %36 = sitofp i32 %35 to float
  call void @_Z9normalizeP12ImageContentiif(ptr noundef %32, i32 noundef %33, i32 noundef %34, float noundef %36)
  %37 = load i32, ptr %8, align 4, !tbaa !15
  %38 = load i32, ptr %9, align 4, !tbaa !15
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = call noundef double @_Z3K11iiP12ImageContent(i32 noundef %37, i32 noundef %38, ptr noundef %39)
  %41 = fptrunc double %40 to float
  %42 = getelementptr inbounds %class.CornerDescriptor, ptr %11, i32 0, i32 1
  %43 = load ptr, ptr %42, align 8, !tbaa !9
  %44 = getelementptr inbounds float, ptr %43, i64 0
  store float %41, ptr %44, align 4, !tbaa !16
  %45 = load i32, ptr %8, align 4, !tbaa !15
  %46 = load i32, ptr %9, align 4, !tbaa !15
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = call noundef double @_Z3K22iiP12ImageContent(i32 noundef %45, i32 noundef %46, ptr noundef %47)
  %49 = fptrunc double %48 to float
  %50 = getelementptr inbounds %class.CornerDescriptor, ptr %11, i32 0, i32 1
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  %52 = getelementptr inbounds float, ptr %51, i64 1
  store float %49, ptr %52, align 4, !tbaa !16
  %53 = load i32, ptr %8, align 4, !tbaa !15
  %54 = load i32, ptr %9, align 4, !tbaa !15
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = call noundef double @_Z3K33iiP12ImageContent(i32 noundef %53, i32 noundef %54, ptr noundef %55)
  %57 = fptrunc double %56 to float
  %58 = getelementptr inbounds %class.CornerDescriptor, ptr %11, i32 0, i32 1
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  %60 = getelementptr inbounds float, ptr %59, i64 2
  store float %57, ptr %60, align 4, !tbaa !16
  %61 = load i32, ptr %8, align 4, !tbaa !15
  %62 = load i32, ptr %9, align 4, !tbaa !15
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = call noundef double @_Z3K10iiP12ImageContent(i32 noundef %61, i32 noundef %62, ptr noundef %63)
  %65 = fptrunc double %64 to float
  %66 = getelementptr inbounds %class.CornerDescriptor, ptr %11, i32 0, i32 1
  %67 = load ptr, ptr %66, align 8, !tbaa !9
  %68 = getelementptr inbounds float, ptr %67, i64 3
  store float %65, ptr %68, align 4, !tbaa !16
  %69 = load i32, ptr %8, align 4, !tbaa !15
  %70 = load i32, ptr %9, align 4, !tbaa !15
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = call noundef double @_Z3K21iiP12ImageContent(i32 noundef %69, i32 noundef %70, ptr noundef %71)
  %73 = fptrunc double %72 to float
  %74 = getelementptr inbounds %class.CornerDescriptor, ptr %11, i32 0, i32 1
  %75 = load ptr, ptr %74, align 8, !tbaa !9
  %76 = getelementptr inbounds float, ptr %75, i64 4
  store float %73, ptr %76, align 4, !tbaa !16
  %77 = load i32, ptr %8, align 4, !tbaa !15
  %78 = load i32, ptr %9, align 4, !tbaa !15
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = call noundef double @_Z3K32iiP12ImageContent(i32 noundef %77, i32 noundef %78, ptr noundef %79)
  %81 = fptrunc double %80 to float
  %82 = getelementptr inbounds %class.CornerDescriptor, ptr %11, i32 0, i32 1
  %83 = load ptr, ptr %82, align 8, !tbaa !9
  %84 = getelementptr inbounds float, ptr %83, i64 5
  store float %81, ptr %84, align 4, !tbaa !16
  %85 = load i32, ptr %8, align 4, !tbaa !15
  %86 = load i32, ptr %9, align 4, !tbaa !15
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = call noundef double @_Z3K20iiP12ImageContent(i32 noundef %85, i32 noundef %86, ptr noundef %87)
  %89 = fptrunc double %88 to float
  %90 = getelementptr inbounds %class.CornerDescriptor, ptr %11, i32 0, i32 1
  %91 = load ptr, ptr %90, align 8, !tbaa !9
  %92 = getelementptr inbounds float, ptr %91, i64 6
  store float %89, ptr %92, align 4, !tbaa !16
  %93 = load i32, ptr %8, align 4, !tbaa !15
  %94 = load i32, ptr %9, align 4, !tbaa !15
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = call noundef double @_Z3K31iiP12ImageContent(i32 noundef %93, i32 noundef %94, ptr noundef %95)
  %97 = fptrunc double %96 to float
  %98 = getelementptr inbounds %class.CornerDescriptor, ptr %11, i32 0, i32 1
  %99 = load ptr, ptr %98, align 8, !tbaa !9
  %100 = getelementptr inbounds float, ptr %99, i64 7
  store float %97, ptr %100, align 4, !tbaa !16
  %101 = load i32, ptr %8, align 4, !tbaa !15
  %102 = load i32, ptr %9, align 4, !tbaa !15
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = call noundef double @_Z3K42iiP12ImageContent(i32 noundef %101, i32 noundef %102, ptr noundef %103)
  %105 = fptrunc double %104 to float
  %106 = getelementptr inbounds %class.CornerDescriptor, ptr %11, i32 0, i32 1
  %107 = load ptr, ptr %106, align 8, !tbaa !9
  %108 = getelementptr inbounds float, ptr %107, i64 8
  store float %105, ptr %108, align 4, !tbaa !16
  %109 = load i32, ptr %8, align 4, !tbaa !15
  %110 = load i32, ptr %9, align 4, !tbaa !15
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = call noundef double @_Z3K30iiP12ImageContent(i32 noundef %109, i32 noundef %110, ptr noundef %111)
  %113 = fptrunc double %112 to float
  %114 = getelementptr inbounds %class.CornerDescriptor, ptr %11, i32 0, i32 1
  %115 = load ptr, ptr %114, align 8, !tbaa !9
  %116 = getelementptr inbounds float, ptr %115, i64 9
  store float %113, ptr %116, align 4, !tbaa !16
  %117 = load i32, ptr %8, align 4, !tbaa !15
  %118 = load i32, ptr %9, align 4, !tbaa !15
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = call noundef double @_Z3K41iiP12ImageContent(i32 noundef %117, i32 noundef %118, ptr noundef %119)
  %121 = fptrunc double %120 to float
  %122 = getelementptr inbounds %class.CornerDescriptor, ptr %11, i32 0, i32 1
  %123 = load ptr, ptr %122, align 8, !tbaa !9
  %124 = getelementptr inbounds float, ptr %123, i64 10
  store float %121, ptr %124, align 4, !tbaa !16
  %125 = load i32, ptr %8, align 4, !tbaa !15
  %126 = load i32, ptr %9, align 4, !tbaa !15
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = call noundef double @_Z3K40iiP12ImageContent(i32 noundef %125, i32 noundef %126, ptr noundef %127)
  %129 = fptrunc double %128 to float
  %130 = getelementptr inbounds %class.CornerDescriptor, ptr %11, i32 0, i32 1
  %131 = load ptr, ptr %130, align 8, !tbaa !9
  %132 = getelementptr inbounds float, ptr %131, i64 11
  store float %129, ptr %132, align 4, !tbaa !16
  %133 = load i32, ptr %8, align 4, !tbaa !15
  %134 = load i32, ptr %9, align 4, !tbaa !15
  %135 = load ptr, ptr %5, align 8, !tbaa !5
  %136 = call noundef double @_Z3K51iiP12ImageContent(i32 noundef %133, i32 noundef %134, ptr noundef %135)
  %137 = fptrunc double %136 to float
  %138 = getelementptr inbounds %class.CornerDescriptor, ptr %11, i32 0, i32 1
  %139 = load ptr, ptr %138, align 8, !tbaa !9
  %140 = getelementptr inbounds float, ptr %139, i64 12
  store float %137, ptr %140, align 4, !tbaa !16
  %141 = load i32, ptr %8, align 4, !tbaa !15
  %142 = load i32, ptr %9, align 4, !tbaa !15
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = call noundef double @_Z3K50iiP12ImageContent(i32 noundef %141, i32 noundef %142, ptr noundef %143)
  %145 = fptrunc double %144 to float
  %146 = getelementptr inbounds %class.CornerDescriptor, ptr %11, i32 0, i32 1
  %147 = load ptr, ptr %146, align 8, !tbaa !9
  %148 = getelementptr inbounds float, ptr %147, i64 13
  store float %145, ptr %148, align 4, !tbaa !16
  %149 = load i32, ptr %8, align 4, !tbaa !15
  %150 = load i32, ptr %9, align 4, !tbaa !15
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = call noundef double @_Z3K60iiP12ImageContent(i32 noundef %149, i32 noundef %150, ptr noundef %151)
  %153 = fptrunc double %152 to float
  %154 = getelementptr inbounds %class.CornerDescriptor, ptr %11, i32 0, i32 1
  %155 = load ptr, ptr %154, align 8, !tbaa !9
  %156 = getelementptr inbounds float, ptr %155, i64 14
  store float %153, ptr %156, align 4, !tbaa !16
  %157 = getelementptr inbounds %class.Corner, ptr %11, i32 0, i32 20
  store i32 1, ptr %157, align 8, !tbaa !17
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = icmp eq ptr %158, null
  br i1 %159, label %161, label %160

160:                                              ; preds = %22
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %158) #8
  call void @_ZdlPvm(ptr noundef %158, i64 noundef 80) #10
  br label %161

161:                                              ; preds = %160, %22
  call void @_ZN16CornerDescriptor10changeBaseEPf(ptr noundef nonnull align 8 dereferenceable(116) %11, ptr noundef @_ZL7cf_base)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 15, ptr %10, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %162

162:                                              ; preds = %161, %19, %14
  ret void

163:                                              ; preds = %20
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %6, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %7, align 4
  call void @_ZdlPvm(ptr noundef %21, i64 noundef 80) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %167

167:                                              ; preds = %163
  %168 = load ptr, ptr %6, align 8
  %169 = load i32, ptr %7, align 4
  %170 = insertvalue { ptr, i32 } poison, ptr %168, 0
  %171 = insertvalue { ptr, i32 } %170, i32 %169, 1
  resume { ptr, i32 } %171
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

declare void @_ZN16CornerDescriptor10changeBaseEPf(ptr noundef nonnull align 8 dereferenceable(116), ptr noundef) #3

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

@_ZL7cf_base = external hidden global [15 x float], align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K11iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K22iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K33iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K10iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K21iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K32iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K20iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K31iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K42iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K30iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K41iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K40iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K51iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K50iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z3K60iiP12ImageContent(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

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

4:                                                ; preds = %2
  tail call void @_ZN16CornerDescriptor8allocVecEi(ptr noundef nonnull align 8 dereferenceable(116) %0, i32 noundef 15)
  %5 = getelementptr inbounds i8, ptr %0, i64 88
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = icmp eq ptr %6, null
  br i1 %7, label %77, label %8

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

10:                                               ; preds = %8
  %11 = tail call noundef zeroext i1 @_ZN6Corner15normalizeAffineEP12ImageContentS1_(ptr noundef nonnull align 4 dereferenceable(88) %0, ptr noundef nonnull %1, ptr noundef nonnull %9)
  %12 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %9)
  %13 = lshr i32 %12, 1
  %14 = tail call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %9)
  %15 = lshr i32 %14, 1
  %16 = uitofp nneg i32 %13 to float
  tail call void @_Z9normalizeP12ImageContentiif(ptr noundef nonnull %9, i32 noundef %13, i32 noundef %15, float noundef %16)
  %17 = tail call noundef double @_Z3K11iiP12ImageContent(i32 noundef %13, i32 noundef %15, ptr noundef nonnull %9)
  %18 = fptrunc double %17 to float
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  store float %18, ptr %19, align 4, !tbaa !14
  %20 = tail call noundef double @_Z3K22iiP12ImageContent(i32 noundef %13, i32 noundef %15, ptr noundef nonnull %9)
  %21 = fptrunc double %20 to float
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %22, i64 4
  store float %21, ptr %23, align 4, !tbaa !14
  %24 = tail call noundef double @_Z3K33iiP12ImageContent(i32 noundef %13, i32 noundef %15, ptr noundef nonnull %9)
  %25 = fptrunc double %24 to float
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %26, i64 8
  store float %25, ptr %27, align 4, !tbaa !14
  %28 = tail call noundef double @_Z3K10iiP12ImageContent(i32 noundef %13, i32 noundef %15, ptr noundef nonnull %9)
  %29 = fptrunc double %28 to float
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %30, i64 12
  store float %29, ptr %31, align 4, !tbaa !14
  %32 = tail call noundef double @_Z3K21iiP12ImageContent(i32 noundef %13, i32 noundef %15, ptr noundef nonnull %9)
  %33 = fptrunc double %32 to float
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 16
  store float %33, ptr %35, align 4, !tbaa !14
  %36 = tail call noundef double @_Z3K32iiP12ImageContent(i32 noundef %13, i32 noundef %15, ptr noundef nonnull %9)
  %37 = fptrunc double %36 to float
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i64 20
  store float %37, ptr %39, align 4, !tbaa !14
  %40 = tail call noundef double @_Z3K20iiP12ImageContent(i32 noundef %13, i32 noundef %15, ptr noundef nonnull %9)
  %41 = fptrunc double %40 to float
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %42, i64 24
  store float %41, ptr %43, align 4, !tbaa !14
  %44 = tail call noundef double @_Z3K31iiP12ImageContent(i32 noundef %13, i32 noundef %15, ptr noundef nonnull %9)
  %45 = fptrunc double %44 to float
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %46, i64 28
  store float %45, ptr %47, align 4, !tbaa !14
  %48 = tail call noundef double @_Z3K42iiP12ImageContent(i32 noundef %13, i32 noundef %15, ptr noundef nonnull %9)
  %49 = fptrunc double %48 to float
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %50, i64 32
  store float %49, ptr %51, align 4, !tbaa !14
  %52 = tail call noundef double @_Z3K30iiP12ImageContent(i32 noundef %13, i32 noundef %15, ptr noundef nonnull %9)
  %53 = fptrunc double %52 to float
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 36
  store float %53, ptr %55, align 4, !tbaa !14
  %56 = tail call noundef double @_Z3K41iiP12ImageContent(i32 noundef %13, i32 noundef %15, ptr noundef nonnull %9)
  %57 = fptrunc double %56 to float
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %58, i64 40
  store float %57, ptr %59, align 4, !tbaa !14
  %60 = tail call noundef double @_Z3K40iiP12ImageContent(i32 noundef %13, i32 noundef %15, ptr noundef nonnull %9)
  %61 = fptrunc double %60 to float
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %62, i64 44
  store float %61, ptr %63, align 4, !tbaa !14
  %64 = tail call noundef double @_Z3K51iiP12ImageContent(i32 noundef %13, i32 noundef %15, ptr noundef nonnull %9)
  %65 = fptrunc double %64 to float
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %66, i64 48
  store float %65, ptr %67, align 4, !tbaa !14
  %68 = tail call noundef double @_Z3K50iiP12ImageContent(i32 noundef %13, i32 noundef %15, ptr noundef nonnull %9)
  %69 = fptrunc double %68 to float
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %70, i64 52
  store float %69, ptr %71, align 4, !tbaa !14
  %72 = tail call noundef double @_Z3K60iiP12ImageContent(i32 noundef %13, i32 noundef %15, ptr noundef nonnull %9)
  %73 = fptrunc double %72 to float
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %74, i64 56
  store float %73, ptr %75, align 4, !tbaa !14
  %76 = getelementptr inbounds i8, ptr %0, i64 80
  store i32 1, ptr %76, align 8, !tbaa !15
  tail call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %9) #8
  tail call void @_ZdlPvm(ptr noundef nonnull %9, i64 noundef 80) #9
  tail call void @_ZN16CornerDescriptor10changeBaseEPf(ptr noundef nonnull align 8 dereferenceable(116) %0, ptr noundef nonnull @_ZL7cf_base)
  br label %77

77:                                               ; preds = %4, %2, %10
  ret void

78:                                               ; preds = %8
  %79 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %9, i64 noundef 80) #9
  resume { ptr, i32 } %79
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

declare void @_ZN16CornerDescriptor10changeBaseEPf(ptr noundef nonnull align 8 dereferenceable(116), ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 = { "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 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 #4 = { 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 #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 "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 = { builtin allocsize(0) }
attributes #8 = { nounwind }
attributes #9 = { 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, !12, i64 88}
!6 = !{!"_ZTS16CornerDescriptor", !7, i64 0, !12, i64 88, !8, i64 96, !11, i64 100, !13, i64 104, !8, i64 112}
!7 = !{!"_ZTS6Corner", !8, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !8, i64 68, !8, i64 72, !11, i64 76, !8, i64 80, !8, i64 84}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"float", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!"long", !9, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!7, !8, i64 80}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass