; LLVM IR from ox-vgg/vise :: src/search_engine/relja_retrival/external/KMCode_relja/descriptor/CSiftDescript_1162da41 (ZN15CSiftDescriptor17computeComponentsEP12ImageContent)

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

@.str = external hidden unnamed_addr constant [6 x i8], align 1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15CSiftDescriptor18MakeKeypointSampleEP12ImageContentS1_(ptr noundef nonnull align 8 dereferenceable(116), ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15CSiftDescriptor17computeComponentsEP12ImageContent(ptr noundef nonnull align 8 dereferenceable(116) %0, ptr noundef %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = icmp eq ptr %13, null
  br i1 %14, label %15, label %16

15:                                               ; preds = %2
  br label %85

16:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  %17 = getelementptr inbounds %class.Corner, ptr %12, i32 0, i32 14
  %18 = load float, ptr %17, align 8, !tbaa !9
  %19 = call float @llvm.fmuladd.f32(float 3.000000e+00, float %18, float 2.000000e+00)
  %20 = fptosi float %19 to i32
  store i32 %20, ptr %5, align 4, !tbaa !13
  %21 = load i32, ptr %5, align 4, !tbaa !13
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %22)
  %24 = load i32, ptr %5, align 4, !tbaa !13
  %25 = sub i32 %23, %24
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %26)
  %28 = load i32, ptr %5, align 4, !tbaa !13
  %29 = sub i32 %27, %28
  %30 = call noundef i32 @_ZN6Corner4isOKEiii(ptr noundef nonnull align 4 dereferenceable(88) %12, i32 noundef %21, i32 noundef %25, i32 noundef %29)
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %33, label %32

32:                                               ; preds = %16
  store i32 1, ptr %6, align 4
  br label %83

33:                                               ; preds = %16
  %34 = getelementptr inbounds %class.CornerDescriptor, ptr %12, i32 0, i32 2
  store i32 96, ptr %34, align 8, !tbaa !14
  %35 = getelementptr inbounds %class.CornerDescriptor, ptr %12, i32 0, i32 2
  %36 = load i32, ptr %35, align 8, !tbaa !14
  call void @_ZN16CornerDescriptor8allocVecEi(ptr noundef nonnull align 8 dereferenceable(116) %12, i32 noundef %36)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %37 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #9
  invoke void @_ZN12ImageContentC1EjjPKc(ptr noundef nonnull align 8 dereferenceable(80) %37, i32 noundef 41, i32 noundef 41, ptr noundef @.str)
          to label %38 unwind label %86

38:                                               ; preds = %33
  store ptr %37, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %39 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #9
  invoke void @_ZN12ImageContentC1EjjPKc(ptr noundef nonnull align 8 dereferenceable(80) %39, i32 noundef 41, i32 noundef 41, ptr noundef @.str)
          to label %40 unwind label %90

40:                                               ; preds = %38
  store ptr %39, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %41 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #9
  invoke void @_ZN12ImageContentC1EjjPKc(ptr noundef nonnull align 8 dereferenceable(80) %41, i32 noundef 41, i32 noundef 41, ptr noundef @.str)
          to label %42 unwind label %94

42:                                               ; preds = %40
  store ptr %41, ptr %11, align 8, !tbaa !5
  %43 = getelementptr inbounds %class.Corner, ptr %12, i32 0, i32 14
  %44 = load float, ptr %43, align 8, !tbaa !9
  %45 = fmul float 2.000000e+00, %44
  %46 = getelementptr inbounds %class.Corner, ptr %12, i32 0, i32 14
  store float %45, ptr %46, align 8, !tbaa !9
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = call noundef zeroext i1 @_ZN6Corner15normalizeAffineEP12ImageContentS1_(ptr noundef nonnull align 4 dereferenceable(88) %12, ptr noundef %47, ptr noundef %48)
  %50 = getelementptr inbounds %class.Corner, ptr %12, i32 0, i32 14
  %51 = load float, ptr %50, align 8, !tbaa !9
  %52 = fdiv float %51, 2.000000e+00
  %53 = getelementptr inbounds %class.Corner, ptr %12, i32 0, i32 14
  store float %52, ptr %53, align 8, !tbaa !9
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %55)
  %57 = lshr i32 %56, 1
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %58)
  %60 = lshr i32 %59, 1
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %61)
  %63 = lshr i32 %62, 1
  %64 = uitofp i32 %63 to float
  call void @_Z9normalizeP12ImageContentiif(ptr noundef %54, i32 noundef %57, i32 noundef %60, float noundef %64)
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_Z13GradOriImagesP12ImageContentS0_S0_(ptr noundef %65, ptr noundef %66, ptr noundef %67)
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN15CSiftDescriptor18MakeKeypointSampleEP12ImageContentS1_(ptr noundef nonnull align 8 dereferenceable(116) %12, ptr noundef %68, ptr noundef %69)
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = icmp eq ptr %70, null
  br i1 %71, label %73, label %72

72:                                               ; preds = %42
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %70) #8
  call void @_ZdlPvm(ptr noundef %70, i64 noundef 80) #10
  br label %73

73:                                               ; preds = %72, %42
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = icmp eq ptr %74, null
  br i1 %75, label %77, label %76

76:                                               ; preds = %73
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %74) #8
  call void @_ZdlPvm(ptr noundef %74, i64 noundef 80) #10
  br label %77

77:                                               ; preds = %76, %73
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  %79 = icmp eq ptr %78, null
  br i1 %79, label %81, label %80

80:                                               ; preds = %77
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %78) #8
  call void @_ZdlPvm(ptr noundef %78, i64 noundef 80) #10
  br label %81

81:                                               ; preds = %80, %77
  %82 = getelementptr inbounds %class.Corner, ptr %12, i32 0, i32 20
  store i32 1, ptr %82, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  store i32 0, ptr %6, align 4
  br label %83

83:                                               ; preds = %81, %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  %84 = load i32, ptr %6, align 4
  switch i32 %84, label %105 [
    i32 0, label %85
    i32 1, label %85
  ]

85:                                               ; preds = %83, %83, %15
  ret void

86:                                               ; preds = %33
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %8, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %37, i64 noundef 80) #10
  br label %99

90:                                               ; preds = %38
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %8, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %39, i64 noundef 80) #10
  br label %98

94:                                               ; preds = %40
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %8, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %41, i64 noundef 80) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %98

98:                                               ; preds = %94, %90
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %99

99:                                               ; preds = %98, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %100

100:                                              ; preds = %99
  %101 = load ptr, ptr %8, align 8
  %102 = load i32, ptr %9, align 4
  %103 = insertvalue { ptr, i32 } poison, ptr %101, 0
  %104 = insertvalue { ptr, i32 } %103, i32 %102, 1
  resume { ptr, i32 } %104

105:                                              ; preds = %83
  unreachable
}

declare noundef i32 @_ZN6Corner4isOKEiii(ptr noundef nonnull align 4 dereferenceable(88), i32 noundef, i32 noundef, i32 noundef) #4

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

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

declare void @_ZN12ImageContentC1EjjPKc(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef, ptr noundef) unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

@.str = external hidden unnamed_addr constant [6 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15CSiftDescriptor18MakeKeypointSampleEP12ImageContentS1_(ptr noundef nonnull align 8 dereferenceable(116), ptr noundef, ptr noundef) local_unnamed_addr #2 align 2

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

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 56
  %6 = load float, ptr %5, align 8, !tbaa !5
  %7 = tail call float @llvm.fmuladd.f32(float %6, float 3.000000e+00, float 2.000000e+00)
  %8 = fptosi float %7 to i32
  %9 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %10 = sub i32 %9, %8
  %11 = tail call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %12 = sub i32 %11, %8
  %13 = tail call noundef i32 @_ZN6Corner4isOKEiii(ptr noundef nonnull align 4 dereferenceable(88) %0, i32 noundef %8, i32 noundef %10, i32 noundef %12)
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %35, label %14

14:                                               ; preds = %4
  %15 = getelementptr inbounds i8, ptr %0, i64 96
  store i32 96, ptr %15, align 8, !tbaa !11
  tail call void @_ZN16CornerDescriptor8allocVecEi(ptr noundef nonnull align 8 dereferenceable(116) %0, i32 noundef 96)
  %16 = tail call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #7
  invoke void @_ZN12ImageContentC1EjjPKc(ptr noundef nonnull align 8 dereferenceable(80) %16, i32 noundef 41, i32 noundef 41, ptr noundef nonnull @.str)
          to label %17 unwind label %36

17:                                               ; preds = %14
  %18 = tail call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #7
  invoke void @_ZN12ImageContentC1EjjPKc(ptr noundef nonnull align 8 dereferenceable(80) %18, i32 noundef 41, i32 noundef 41, ptr noundef nonnull @.str)
          to label %19 unwind label %38

19:                                               ; preds = %17
  %20 = tail call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #7
  invoke void @_ZN12ImageContentC1EjjPKc(ptr noundef nonnull align 8 dereferenceable(80) %20, i32 noundef 41, i32 noundef 41, ptr noundef nonnull @.str)
          to label %21 unwind label %40

21:                                               ; preds = %19
  %22 = load float, ptr %5, align 8, !tbaa !5
  %23 = fmul float %22, 2.000000e+00
  store float %23, ptr %5, align 8, !tbaa !5
  %24 = tail call noundef zeroext i1 @_ZN6Corner15normalizeAffineEP12ImageContentS1_(ptr noundef nonnull align 4 dereferenceable(88) %0, ptr noundef nonnull %1, ptr noundef nonnull %16)
  %25 = load float, ptr %5, align 8, !tbaa !5
  %26 = fmul float %25, 5.000000e-01
  store float %26, ptr %5, align 8, !tbaa !5
  %27 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %16)
  %28 = lshr i32 %27, 1
  %29 = tail call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %16)
  %30 = lshr i32 %29, 1
  %31 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %16)
  %32 = lshr i32 %31, 1
  %33 = uitofp nneg i32 %32 to float
  tail call void @_Z9normalizeP12ImageContentiif(ptr noundef nonnull %16, i32 noundef %28, i32 noundef %30, float noundef %33)
  tail call void @_Z13GradOriImagesP12ImageContentS0_S0_(ptr noundef nonnull %16, ptr noundef nonnull %18, ptr noundef nonnull %20)
  tail call void @_ZN15CSiftDescriptor18MakeKeypointSampleEP12ImageContentS1_(ptr noundef nonnull align 8 dereferenceable(116) %0, ptr noundef nonnull %18, ptr noundef nonnull %20)
  tail call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %16) #8
  tail call void @_ZdlPvm(ptr noundef nonnull %16, i64 noundef 80) #9
  tail call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %18) #8
  tail call void @_ZdlPvm(ptr noundef nonnull %18, i64 noundef 80) #9
  tail call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %20) #8
  tail call void @_ZdlPvm(ptr noundef nonnull %20, i64 noundef 80) #9
  %34 = getelementptr inbounds i8, ptr %0, i64 80
  store i32 1, ptr %34, align 8, !tbaa !15
  br label %35

35:                                               ; preds = %21, %4, %2
  ret void

36:                                               ; preds = %14
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %42

38:                                               ; preds = %17
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %42

40:                                               ; preds = %19
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %42

42:                                               ; preds = %38, %40, %36
  %.sink = phi ptr [ %18, %38 ], [ %20, %40 ], [ %16, %36 ]
  %.pn.pn = phi { ptr, i32 } [ %39, %38 ], [ %41, %40 ], [ %37, %36 ]
  tail call void @_ZdlPvm(ptr noundef nonnull %.sink, i64 noundef 80) #9
  resume { ptr, i32 } %.pn.pn
}

declare noundef i32 @_ZN6Corner4isOKEiii(ptr noundef nonnull align 4 dereferenceable(88), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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

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

declare void @_ZN12ImageContentC1EjjPKc(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef, ptr noundef) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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, !10, i64 56}
!6 = !{!"_ZTS6Corner", !7, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !7, i64 68, !7, i64 72, !10, i64 76, !7, i64 80, !7, i64 84}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!12, !7, i64 96}
!12 = !{!"_ZTS16CornerDescriptor", !6, i64 0, !13, i64 88, !7, i64 96, !10, i64 100, !14, i64 104, !7, i64 112}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"long", !8, i64 0}
!15 = !{!6, !7, i64 80}


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