; LLVM IR from hlzz/libvot :: src/feature (vlfeat_libvot_api)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"struct.vot::Vlfeature" = type { float, float, float, float, [128 x float] }
%"struct.vot::VlFeatParam" = type <{ double, double, double, i32, [4 x i8] }>
%struct._VlSiftKeypoint = type { i32, i32, i32, i32, float, float, float, float }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [41 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: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

declare ptr @vl_sift_new(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL18vl_sift_set_magnifP11_VlSiftFiltd(ptr noundef, double noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3vot9VlfeatureESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(528)) #4 align 2

declare void @vl_sift_delete(ptr noundef) #2

; Function Attrs: nounwind
declare void @free(ptr noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vot18VlFeatureDetectionEPKhRSt6vectorINS_9VlfeatureESaIS3_EEiiRKNS_11VlFeatParamE(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(28) %4) #4 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca [4 x double], align 16
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca [128 x float], align 16
  %24 = alloca i32, align 4
  %25 = alloca %"struct.vot::Vlfeature", align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %27 = load i32, ptr %8, align 4, !tbaa !9
  %28 = load i32, ptr %9, align 4, !tbaa !9
  %29 = mul nsw i32 %27, %28
  %30 = sext i32 %29 to i64
  %31 = mul i64 %30, 4
  %32 = call noalias ptr @malloc(i64 noundef %31) #8
  store ptr %32, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %51, %5
  %34 = load i32, ptr %12, align 4, !tbaa !9
  %35 = load i32, ptr %8, align 4, !tbaa !9
  %36 = load i32, ptr %9, align 4, !tbaa !9
  %37 = mul nsw i32 %35, %36
  %38 = icmp slt i32 %34, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %54

40:                                               ; preds = %33
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = load i32, ptr %12, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds i8, ptr %41, i64 %43
  %45 = load i8, ptr %44, align 1, !tbaa !11
  %46 = uitofp i8 %45 to float
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = load i32, ptr %12, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds float, ptr %47, i64 %49
  store float %46, ptr %50, align 4, !tbaa !12
  br label %51

51:                                               ; preds = %40
  %52 = load i32, ptr %12, align 4, !tbaa !9
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %12, align 4, !tbaa !9
  br label %33, !llvm.loop !14

54:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %55 = load i32, ptr %8, align 4, !tbaa !9
  %56 = load i32, ptr %9, align 4, !tbaa !9
  %57 = call ptr @vl_sift_new(i32 noundef %55, i32 noundef %56, i32 noundef -1, i32 noundef 3, i32 noundef -1)
  store ptr %57, ptr %13, align 8, !tbaa !5
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.vot::VlFeatParam", ptr %58, i32 0, i32 0
  %60 = load double, ptr %59, align 8, !tbaa !16
  %61 = fcmp oge double %60, 0.000000e+00
  br i1 %61, label %62, label %67

62:                                               ; preds = %54
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.vot::VlFeatParam", ptr %64, i32 0, i32 0
  %66 = load double, ptr %65, align 8, !tbaa !16
  call void @_ZL23vl_sift_set_edge_threshP11_VlSiftFiltd(ptr noundef %63, double noundef %66)
  br label %67

67:                                               ; preds = %62, %54
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.vot::VlFeatParam", ptr %68, i32 0, i32 1
  %70 = load double, ptr %69, align 8, !tbaa !20
  %71 = fcmp oge double %70, 0.000000e+00
  br i1 %71, label %72, label %77

72:                                               ; preds = %67
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.vot::VlFeatParam", ptr %74, i32 0, i32 1
  %76 = load double, ptr %75, align 8, !tbaa !20
  call void @_ZL23vl_sift_set_peak_threshP11_VlSiftFiltd(ptr noundef %73, double noundef %76)
  br label %77

77:                                               ; preds = %72, %67
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.vot::VlFeatParam", ptr %78, i32 0, i32 2
  %80 = load double, ptr %79, align 8, !tbaa !21
  %81 = fcmp oge double %80, 0.000000e+00
  br i1 %81, label %82, label %87

82:                                               ; preds = %77
  %83 = load ptr, ptr %13, align 8, !tbaa !5
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.vot::VlFeatParam", ptr %84, i32 0, i32 2
  %86 = load double, ptr %85, align 8, !tbaa !21
  call void @_ZL18vl_sift_set_magnifP11_VlSiftFiltd(ptr noundef %83, double noundef %86)
  br label %87

87:                                               ; preds = %82, %77
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  %89 = icmp ne ptr %88, null
  br i1 %89, label %92, label %90

90:                                               ; preds = %87
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
  store i32 1, ptr %14, align 4
  br label %208

92:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #7
  store i8 1, ptr %15, align 1, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %93

93:                                               ; preds = %196, %92
  br label %94

94:                                               ; preds = %93
  %95 = load i8, ptr %15, align 1, !tbaa !22, !range !24, !noundef !25
  %96 = trunc i8 %95 to i1
  br i1 %96, label %97, label %101

97:                                               ; preds = %94
  store i8 0, ptr %15, align 1, !tbaa !22
  %98 = load ptr, ptr %13, align 8, !tbaa !5
  %99 = load ptr, ptr %11, align 8, !tbaa !5
  %100 = call i32 @vl_sift_process_first_octave(ptr noundef %98, ptr noundef %99)
  store i32 %100, ptr %16, align 4, !tbaa !9
  br label %104

101:                                              ; preds = %94
  %102 = load ptr, ptr %13, align 8, !tbaa !5
  %103 = call i32 @vl_sift_process_next_octave(ptr noundef %102)
  store i32 %103, ptr %16, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %101, %97
  %105 = load i32, ptr %16, align 4, !tbaa !9
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %108

107:                                              ; preds = %104
  br label %197

108:                                              ; preds = %104
  %109 = load ptr, ptr %13, align 8, !tbaa !5
  call void @vl_sift_detect(ptr noundef %109)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %110 = load ptr, ptr %13, align 8, !tbaa !5
  %111 = call noundef ptr @_ZL21vl_sift_get_keypointsPK11_VlSiftFilt(ptr noundef %110)
  store ptr %111, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %112 = load ptr, ptr %13, align 8, !tbaa !5
  %113 = call noundef i32 @_ZL22vl_sift_get_nkeypointsPK11_VlSiftFilt(ptr noundef %112)
  store i32 %113, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %114

114:                                              ; preds = %193, %108
  %115 = load i32, ptr %19, align 4, !tbaa !9
  %116 = load i32, ptr %18, align 4, !tbaa !9
  %117 = icmp slt i32 %115, %116
  br i1 %117, label %119, label %118

118:                                              ; preds = %114
  store i32 7, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %196

119:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %120 = load ptr, ptr %17, align 8, !tbaa !5
  %121 = load i32, ptr %19, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds %struct._VlSiftKeypoint, ptr %120, i64 %122
  store ptr %123, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %124 = load ptr, ptr %13, align 8, !tbaa !5
  %125 = getelementptr inbounds [4 x double], ptr %20, i64 0, i64 0
  %126 = load ptr, ptr %21, align 8, !tbaa !5
  %127 = call i32 @vl_sift_calc_keypoint_orientations(ptr noundef %124, ptr noundef %125, ptr noundef %126)
  store i32 %127, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 512, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %128

128:                                              ; preds = %189, %119
  %129 = load i32, ptr %24, align 4, !tbaa !9
  %130 = load i32, ptr %22, align 4, !tbaa !9
  %131 = icmp slt i32 %129, %130
  br i1 %131, label %133, label %132

132:                                              ; preds = %128
  store i32 10, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %192

133:                                              ; preds = %128
  %134 = load ptr, ptr %13, align 8, !tbaa !5
  %135 = getelementptr inbounds [128 x float], ptr %23, i64 0, i64 0
  %136 = load ptr, ptr %21, align 8, !tbaa !5
  %137 = load i32, ptr %24, align 4, !tbaa !9
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [4 x double], ptr %20, i64 0, i64 %138
  %140 = load double, ptr %139, align 8, !tbaa !26
  call void @vl_sift_calc_keypoint_descriptor(ptr noundef %134, ptr noundef %135, ptr noundef %136, double noundef %140)
  call void @llvm.lifetime.start.p0(i64 528, ptr %25) #7
  %141 = load ptr, ptr %21, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct._VlSiftKeypoint, ptr %141, i32 0, i32 4
  %143 = load float, ptr %142, align 4, !tbaa !27
  %144 = getelementptr inbounds %"struct.vot::Vlfeature", ptr %25, i32 0, i32 0
  store float %143, ptr %144, align 4, !tbaa !29
  %145 = load ptr, ptr %21, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct._VlSiftKeypoint, ptr %145, i32 0, i32 5
  %147 = load float, ptr %146, align 4, !tbaa !31
  %148 = getelementptr inbounds %"struct.vot::Vlfeature", ptr %25, i32 0, i32 1
  store float %147, ptr %148, align 4, !tbaa !32
  %149 = load ptr, ptr %21, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct._VlSiftKeypoint, ptr %149, i32 0, i32 7
  %151 = load float, ptr %150, align 4, !tbaa !33
  %152 = getelementptr inbounds %"struct.vot::Vlfeature", ptr %25, i32 0, i32 2
  store float %151, ptr %152, align 4, !tbaa !34
  %153 = load i32, ptr %24, align 4, !tbaa !9
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [4 x double], ptr %20, i64 0, i64 %154
  %156 = load double, ptr %155, align 8, !tbaa !26
  %157 = fptrunc double %156 to float
  %158 = getelementptr inbounds %"struct.vot::Vlfeature", ptr %25, i32 0, i32 3
  store float %157, ptr %158, align 4, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %159

159:                                              ; preds = %184, %133
  %160 = load i32, ptr %26, align 4, !tbaa !9
  %161 = icmp slt i32 %160, 128
  br i1 %161, label %163, label %162

162:                                              ; preds = %159
  store i32 13, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %187

163:                                              ; preds = %159
  %164 = load i32, ptr %26, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [128 x float], ptr %23, i64 0, i64 %165
  %167 = load float, ptr %166, align 4, !tbaa !12
  %168 = fpext float %167 to double
  %169 = fcmp olt double %168, 5.000000e-01
  br i1 %169, label %170, label %176

170:                                              ; preds = %163
  %171 = load i32, ptr %26, align 4, !tbaa !9
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [128 x float], ptr %23, i64 0, i64 %172
  %174 = load float, ptr %173, align 4, !tbaa !12
  %175 = fpext float %174 to double
  br label %177

176:                                              ; preds = %163
  br label %177

177:                                              ; preds = %176, %170
  %178 = phi double [ %175, %170 ], [ 5.000000e-01, %176 ]
  %179 = fptrunc double %178 to float
  %180 = getelementptr inbounds %"struct.vot::Vlfeature", ptr %25, i32 0, i32 4
  %181 = load i32, ptr %26, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [128 x float], ptr %180, i64 0, i64 %182
  store float %179, ptr %183, align 4, !tbaa !12
  br label %184

184:                                              ; preds = %177
  %185 = load i32, ptr %26, align 4, !tbaa !9
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %26, align 4, !tbaa !9
  br label %159, !llvm.loop !36

187:                                              ; preds = %162
  %188 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNSt6vectorIN3vot9VlfeatureESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %188, ptr noundef nonnull align 4 dereferenceable(528) %25)
  call void @llvm.lifetime.end.p0(i64 528, ptr %25) #7
  br label %189

189:                                              ; preds = %187
  %190 = load i32, ptr %24, align 4, !tbaa !9
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %24, align 4, !tbaa !9
  br label %128, !llvm.loop !37

192:                                              ; preds = %132
  call void @llvm.lifetime.end.p0(i64 512, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #7
  br label %193

193:                                              ; preds = %192
  %194 = load i32, ptr %19, align 4, !tbaa !9
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %19, align 4, !tbaa !9
  br label %114, !llvm.loop !38

196:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %93, !llvm.loop !39

197:                                              ; preds = %107
  %198 = load ptr, ptr %13, align 8, !tbaa !5
  %199 = icmp ne ptr %198, null
  br i1 %199, label %200, label %202

200:                                              ; preds = %197
  %201 = load ptr, ptr %13, align 8, !tbaa !5
  call void @vl_sift_delete(ptr noundef %201)
  store ptr null, ptr %13, align 8, !tbaa !5
  br label %202

202:                                              ; preds = %200, %197
  %203 = load ptr, ptr %11, align 8, !tbaa !5
  %204 = icmp ne ptr %203, null
  br i1 %204, label %205, label %207

205:                                              ; preds = %202
  %206 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %206) #7
  store ptr null, ptr %11, align 8, !tbaa !5
  br label %207

207:                                              ; preds = %205, %202
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #7
  br label %208

208:                                              ; preds = %207, %90
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL23vl_sift_set_edge_threshP11_VlSiftFiltd(ptr noundef, double noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL23vl_sift_set_peak_threshP11_VlSiftFiltd(ptr noundef, double noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #6

declare i32 @vl_sift_process_first_octave(ptr noundef, ptr noundef) #2

declare i32 @vl_sift_process_next_octave(ptr noundef) #2

declare void @vl_sift_detect(ptr noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL21vl_sift_get_keypointsPK11_VlSiftFilt(ptr noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL22vl_sift_get_nkeypointsPK11_VlSiftFilt(ptr noundef) #3

declare i32 @vl_sift_calc_keypoint_orientations(ptr noundef, ptr noundef, ptr noundef) #2

declare void @vl_sift_calc_keypoint_descriptor(ptr noundef, ptr noundef, ptr noundef, double noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind 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 = { "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 = { 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 #4 = { 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 #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint 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 #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }

!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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !18, i64 0}
!17 = !{!"_ZTSN3vot11VlFeatParamE", !18, i64 0, !18, i64 8, !18, i64 16, !19, i64 24}
!18 = !{!"double", !7, i64 0}
!19 = !{!"_ZTSN3vot19LIBVOT_FEATURE_TYPEE", !7, i64 0}
!20 = !{!17, !18, i64 8}
!21 = !{!17, !18, i64 16}
!22 = !{!23, !23, i64 0}
!23 = !{!"bool", !7, i64 0}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!18, !18, i64 0}
!27 = !{!28, !13, i64 16}
!28 = !{!"_ZTS15_VlSiftKeypoint", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28}
!29 = !{!30, !13, i64 0}
!30 = !{!"_ZTSN3vot9VlfeatureE", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !7, i64 16}
!31 = !{!28, !13, i64 20}
!32 = !{!30, !13, i64 4}
!33 = !{!28, !13, i64 28}
!34 = !{!30, !13, i64 8}
!35 = !{!30, !13, i64 12}
!36 = distinct !{!36, !15}
!37 = distinct !{!37, !15}
!38 = distinct !{!38, !15}
!39 = distinct !{!39, !15}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"struct.vot::Vlfeature" = type { float, float, float, float, [128 x float] }
%struct._VlSiftKeypoint = type { i32, i32, i32, i32, float, float, float, float }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [41 x i8], align 1

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

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

declare ptr @vl_sift_new(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL18vl_sift_set_magnifP11_VlSiftFiltd(ptr noundef, double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3vot9VlfeatureESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(528)) local_unnamed_addr #4 align 2

declare void @vl_sift_delete(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vot18VlFeatureDetectionEPKhRSt6vectorINS_9VlfeatureESaIS3_EEiiRKNS_11VlFeatParamE(ptr nocapture noundef readonly %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %2, i32 noundef %3, ptr nocapture noundef nonnull readonly align 8 dereferenceable(28) %4) local_unnamed_addr #4 {
  %6 = alloca [4 x double], align 16
  %7 = alloca [128 x float], align 16
  %8 = alloca %"struct.vot::Vlfeature", align 8
  %9 = mul nsw i32 %3, %2
  %10 = sext i32 %9 to i64
  %11 = shl nsw i64 %10, 2
  %12 = tail call noalias ptr @malloc(i64 noundef %11) #7
  %13 = icmp sgt i32 %9, 0
  br i1 %13, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %5
  %wide.trip.count = zext nneg i32 %9 to i64
  %min.iters.check = icmp ult i32 %9, 8
  br i1 %min.iters.check, label %.lr.ph.preheader107, label %vector.ph

.lr.ph.preheader107:                              ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %14 = getelementptr inbounds i8, ptr %0, i64 %index
  %15 = getelementptr inbounds i8, ptr %14, i64 4
  %wide.load = load <4 x i8>, ptr %14, align 1, !tbaa !5
  %wide.load96 = load <4 x i8>, ptr %15, align 1, !tbaa !5
  %16 = uitofp <4 x i8> %wide.load to <4 x float>
  %17 = uitofp <4 x i8> %wide.load96 to <4 x float>
  %18 = getelementptr inbounds float, ptr %12, i64 %index
  %19 = getelementptr inbounds i8, ptr %18, i64 16
  store <4 x float> %16, ptr %18, align 4, !tbaa !8
  store <4 x float> %17, ptr %19, align 4, !tbaa !8
  %index.next = add nuw i64 %index, 8
  %20 = icmp eq i64 %index.next, %n.vec
  br i1 %20, label %middle.block, label %vector.body, !llvm.loop !10

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader107

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %5
  %21 = tail call ptr @vl_sift_new(i32 noundef %2, i32 noundef %3, i32 noundef -1, i32 noundef 3, i32 noundef -1)
  %22 = load double, ptr %4, align 8, !tbaa !14
  %23 = fcmp ult double %22, 0.000000e+00
  br i1 %23, label %29, label %28

.lr.ph:                                           ; preds = %.lr.ph.preheader107, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader107 ]
  %24 = getelementptr inbounds i8, ptr %0, i64 %indvars.iv
  %25 = load i8, ptr %24, align 1, !tbaa !5
  %26 = uitofp i8 %25 to float
  %27 = getelementptr inbounds float, ptr %12, i64 %indvars.iv
  store float %26, ptr %27, align 4, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !18

28:                                               ; preds = %._crit_edge
  tail call void @_ZL23vl_sift_set_edge_threshP11_VlSiftFiltd(ptr noundef %21, double noundef %22)
  br label %29

29:                                               ; preds = %28, %._crit_edge
  %30 = getelementptr inbounds i8, ptr %4, i64 8
  %31 = load double, ptr %30, align 8, !tbaa !19
  %32 = fcmp ult double %31, 0.000000e+00
  br i1 %32, label %34, label %33

33:                                               ; preds = %29
  tail call void @_ZL23vl_sift_set_peak_threshP11_VlSiftFiltd(ptr noundef %21, double noundef %31)
  br label %34

34:                                               ; preds = %33, %29
  %35 = getelementptr inbounds i8, ptr %4, i64 16
  %36 = load double, ptr %35, align 8, !tbaa !20
  %37 = fcmp ult double %36, 0.000000e+00
  br i1 %37, label %39, label %38

38:                                               ; preds = %34
  tail call void @_ZL18vl_sift_set_magnifP11_VlSiftFiltd(ptr noundef %21, double noundef %36)
  br label %39

39:                                               ; preds = %38, %34
  %.not = icmp eq ptr %21, null
  br i1 %.not, label %106, label %.preheader

.preheader:                                       ; preds = %39
  %40 = getelementptr inbounds i8, ptr %8, i64 8
  %41 = getelementptr inbounds i8, ptr %8, i64 12
  %42 = getelementptr inbounds i8, ptr %8, i64 16
  %43 = tail call i32 @vl_sift_process_first_octave(ptr noundef nonnull %21, ptr noundef %12)
  %.not6793 = icmp eq i32 %43, 0
  br i1 %.not6793, label %.lr.ph94.preheader, label %._crit_edge95

.lr.ph94.preheader:                               ; preds = %.preheader
  %44 = getelementptr inbounds i8, ptr %7, i64 16
  %45 = getelementptr inbounds i8, ptr %8, i64 32
  %46 = getelementptr inbounds i8, ptr %7, i64 32
  %47 = getelementptr inbounds i8, ptr %7, i64 48
  %48 = getelementptr inbounds i8, ptr %8, i64 48
  %49 = getelementptr inbounds i8, ptr %8, i64 64
  %50 = getelementptr inbounds i8, ptr %7, i64 64
  %51 = getelementptr inbounds i8, ptr %7, i64 80
  %52 = getelementptr inbounds i8, ptr %8, i64 80
  %53 = getelementptr inbounds i8, ptr %8, i64 96
  %54 = getelementptr inbounds i8, ptr %7, i64 96
  %55 = getelementptr inbounds i8, ptr %7, i64 112
  %56 = getelementptr inbounds i8, ptr %8, i64 112
  %57 = getelementptr inbounds i8, ptr %8, i64 128
  %58 = getelementptr inbounds i8, ptr %7, i64 128
  %59 = getelementptr inbounds i8, ptr %7, i64 144
  %60 = getelementptr inbounds i8, ptr %8, i64 144
  %61 = getelementptr inbounds i8, ptr %8, i64 160
  %62 = getelementptr inbounds i8, ptr %7, i64 160
  %63 = getelementptr inbounds i8, ptr %7, i64 176
  %64 = getelementptr inbounds i8, ptr %8, i64 176
  %65 = getelementptr inbounds i8, ptr %8, i64 192
  %66 = getelementptr inbounds i8, ptr %7, i64 192
  %67 = getelementptr inbounds i8, ptr %7, i64 208
  %68 = getelementptr inbounds i8, ptr %8, i64 208
  %69 = getelementptr inbounds i8, ptr %8, i64 224
  %70 = getelementptr inbounds i8, ptr %7, i64 224
  %71 = getelementptr inbounds i8, ptr %7, i64 240
  %72 = getelementptr inbounds i8, ptr %8, i64 240
  %73 = getelementptr inbounds i8, ptr %8, i64 256
  %74 = getelementptr inbounds i8, ptr %7, i64 256
  %75 = getelementptr inbounds i8, ptr %7, i64 272
  %76 = getelementptr inbounds i8, ptr %8, i64 272
  %77 = getelementptr inbounds i8, ptr %8, i64 288
  %78 = getelementptr inbounds i8, ptr %7, i64 288
  %79 = getelementptr inbounds i8, ptr %7, i64 304
  %80 = getelementptr inbounds i8, ptr %8, i64 304
  %81 = getelementptr inbounds i8, ptr %8, i64 320
  %82 = getelementptr inbounds i8, ptr %7, i64 320
  %83 = getelementptr inbounds i8, ptr %7, i64 336
  %84 = getelementptr inbounds i8, ptr %8, i64 336
  %85 = getelementptr inbounds i8, ptr %8, i64 352
  %86 = getelementptr inbounds i8, ptr %7, i64 352
  %87 = getelementptr inbounds i8, ptr %7, i64 368
  %88 = getelementptr inbounds i8, ptr %8, i64 368
  %89 = getelementptr inbounds i8, ptr %8, i64 384
  %90 = getelementptr inbounds i8, ptr %7, i64 384
  %91 = getelementptr inbounds i8, ptr %7, i64 400
  %92 = getelementptr inbounds i8, ptr %8, i64 400
  %93 = getelementptr inbounds i8, ptr %8, i64 416
  %94 = getelementptr inbounds i8, ptr %7, i64 416
  %95 = getelementptr inbounds i8, ptr %7, i64 432
  %96 = getelementptr inbounds i8, ptr %8, i64 432
  %97 = getelementptr inbounds i8, ptr %8, i64 448
  %98 = getelementptr inbounds i8, ptr %7, i64 448
  %99 = getelementptr inbounds i8, ptr %7, i64 464
  %100 = getelementptr inbounds i8, ptr %8, i64 464
  %101 = getelementptr inbounds i8, ptr %8, i64 480
  %102 = getelementptr inbounds i8, ptr %7, i64 480
  %103 = getelementptr inbounds i8, ptr %7, i64 496
  %104 = getelementptr inbounds i8, ptr %8, i64 496
  %105 = getelementptr inbounds i8, ptr %8, i64 512
  br label %.lr.ph94

106:                                              ; preds = %39
  %107 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str)
  br label %188

.loopexit:                                        ; preds = %._crit_edge74, %.lr.ph94
  %108 = call i32 @vl_sift_process_next_octave(ptr noundef nonnull %21)
  %.not67 = icmp eq i32 %108, 0
  br i1 %.not67, label %.lr.ph94, label %._crit_edge95

.lr.ph94:                                         ; preds = %.lr.ph94.preheader, %.loopexit
  call void @vl_sift_detect(ptr noundef nonnull %21)
  %109 = call noundef ptr @_ZL21vl_sift_get_keypointsPK11_VlSiftFilt(ptr noundef nonnull %21)
  %110 = call noundef i32 @_ZL22vl_sift_get_nkeypointsPK11_VlSiftFilt(ptr noundef nonnull %21)
  %111 = icmp sgt i32 %110, 0
  br i1 %111, label %.lr.ph77.preheader, label %.loopexit

.lr.ph77.preheader:                               ; preds = %.lr.ph94
  %wide.trip.count91 = zext nneg i32 %110 to i64
  br label %.lr.ph77

.lr.ph77:                                         ; preds = %.lr.ph77.preheader, %._crit_edge74
  %indvars.iv88 = phi i64 [ 0, %.lr.ph77.preheader ], [ %indvars.iv.next89, %._crit_edge74 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #8
  %112 = getelementptr inbounds %struct._VlSiftKeypoint, ptr %109, i64 %indvars.iv88
  %113 = call i32 @vl_sift_calc_keypoint_orientations(ptr noundef nonnull %21, ptr noundef nonnull %6, ptr noundef %112)
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %7) #8
  %114 = icmp sgt i32 %113, 0
  br i1 %114, label %.lr.ph73, label %._crit_edge74

.lr.ph73:                                         ; preds = %.lr.ph77
  %115 = getelementptr inbounds i8, ptr %112, i64 16
  %116 = getelementptr inbounds i8, ptr %112, i64 28
  %wide.trip.count86 = zext nneg i32 %113 to i64
  br label %vector.ph99

._crit_edge74:                                    ; preds = %vector.ph99, %.lr.ph77
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  %indvars.iv.next89 = add nuw nsw i64 %indvars.iv88, 1
  %exitcond92.not = icmp eq i64 %indvars.iv.next89, %wide.trip.count91
  br i1 %exitcond92.not, label %.loopexit, label %.lr.ph77, !llvm.loop !21

vector.ph99:                                      ; preds = %.lr.ph73, %vector.ph99
  %indvars.iv83 = phi i64 [ 0, %.lr.ph73 ], [ %indvars.iv.next84, %vector.ph99 ]
  %117 = getelementptr inbounds [4 x double], ptr %6, i64 0, i64 %indvars.iv83
  %118 = load double, ptr %117, align 8, !tbaa !22
  call void @vl_sift_calc_keypoint_descriptor(ptr noundef nonnull %21, ptr noundef nonnull %7, ptr noundef %112, double noundef %118)
  call void @llvm.lifetime.start.p0(i64 528, ptr nonnull %8) #8
  %119 = load <2 x float>, ptr %115, align 4, !tbaa !8
  store <2 x float> %119, ptr %8, align 8, !tbaa !8
  %120 = load float, ptr %116, align 4, !tbaa !23
  store float %120, ptr %40, align 8, !tbaa !26
  %121 = load double, ptr %117, align 8, !tbaa !22
  %122 = fptrunc double %121 to float
  store float %122, ptr %41, align 4, !tbaa !28
  %wide.load103 = load <4 x float>, ptr %7, align 16, !tbaa !8
  %wide.load104 = load <4 x float>, ptr %44, align 16, !tbaa !8
  %123 = fcmp olt <4 x float> %wide.load103, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %124 = fcmp olt <4 x float> %wide.load104, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %125 = select <4 x i1> %123, <4 x float> %wide.load103, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %126 = select <4 x i1> %124, <4 x float> %wide.load104, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  store <4 x float> %125, ptr %42, align 8, !tbaa !8
  store <4 x float> %126, ptr %45, align 8, !tbaa !8
  %wide.load103.1 = load <4 x float>, ptr %46, align 16, !tbaa !8
  %wide.load104.1 = load <4 x float>, ptr %47, align 16, !tbaa !8
  %127 = fcmp olt <4 x float> %wide.load103.1, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %128 = fcmp olt <4 x float> %wide.load104.1, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %129 = select <4 x i1> %127, <4 x float> %wide.load103.1, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %130 = select <4 x i1> %128, <4 x float> %wide.load104.1, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  store <4 x float> %129, ptr %48, align 8, !tbaa !8
  store <4 x float> %130, ptr %49, align 8, !tbaa !8
  %wide.load103.2 = load <4 x float>, ptr %50, align 16, !tbaa !8
  %wide.load104.2 = load <4 x float>, ptr %51, align 16, !tbaa !8
  %131 = fcmp olt <4 x float> %wide.load103.2, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %132 = fcmp olt <4 x float> %wide.load104.2, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %133 = select <4 x i1> %131, <4 x float> %wide.load103.2, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %134 = select <4 x i1> %132, <4 x float> %wide.load104.2, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  store <4 x float> %133, ptr %52, align 8, !tbaa !8
  store <4 x float> %134, ptr %53, align 8, !tbaa !8
  %wide.load103.3 = load <4 x float>, ptr %54, align 16, !tbaa !8
  %wide.load104.3 = load <4 x float>, ptr %55, align 16, !tbaa !8
  %135 = fcmp olt <4 x float> %wide.load103.3, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %136 = fcmp olt <4 x float> %wide.load104.3, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %137 = select <4 x i1> %135, <4 x float> %wide.load103.3, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %138 = select <4 x i1> %136, <4 x float> %wide.load104.3, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  store <4 x float> %137, ptr %56, align 8, !tbaa !8
  store <4 x float> %138, ptr %57, align 8, !tbaa !8
  %wide.load103.4 = load <4 x float>, ptr %58, align 16, !tbaa !8
  %wide.load104.4 = load <4 x float>, ptr %59, align 16, !tbaa !8
  %139 = fcmp olt <4 x float> %wide.load103.4, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %140 = fcmp olt <4 x float> %wide.load104.4, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %141 = select <4 x i1> %139, <4 x float> %wide.load103.4, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %142 = select <4 x i1> %140, <4 x float> %wide.load104.4, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  store <4 x float> %141, ptr %60, align 8, !tbaa !8
  store <4 x float> %142, ptr %61, align 8, !tbaa !8
  %wide.load103.5 = load <4 x float>, ptr %62, align 16, !tbaa !8
  %wide.load104.5 = load <4 x float>, ptr %63, align 16, !tbaa !8
  %143 = fcmp olt <4 x float> %wide.load103.5, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %144 = fcmp olt <4 x float> %wide.load104.5, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %145 = select <4 x i1> %143, <4 x float> %wide.load103.5, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %146 = select <4 x i1> %144, <4 x float> %wide.load104.5, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  store <4 x float> %145, ptr %64, align 8, !tbaa !8
  store <4 x float> %146, ptr %65, align 8, !tbaa !8
  %wide.load103.6 = load <4 x float>, ptr %66, align 16, !tbaa !8
  %wide.load104.6 = load <4 x float>, ptr %67, align 16, !tbaa !8
  %147 = fcmp olt <4 x float> %wide.load103.6, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %148 = fcmp olt <4 x float> %wide.load104.6, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %149 = select <4 x i1> %147, <4 x float> %wide.load103.6, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %150 = select <4 x i1> %148, <4 x float> %wide.load104.6, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  store <4 x float> %149, ptr %68, align 8, !tbaa !8
  store <4 x float> %150, ptr %69, align 8, !tbaa !8
  %wide.load103.7 = load <4 x float>, ptr %70, align 16, !tbaa !8
  %wide.load104.7 = load <4 x float>, ptr %71, align 16, !tbaa !8
  %151 = fcmp olt <4 x float> %wide.load103.7, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %152 = fcmp olt <4 x float> %wide.load104.7, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %153 = select <4 x i1> %151, <4 x float> %wide.load103.7, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %154 = select <4 x i1> %152, <4 x float> %wide.load104.7, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  store <4 x float> %153, ptr %72, align 8, !tbaa !8
  store <4 x float> %154, ptr %73, align 8, !tbaa !8
  %wide.load103.8 = load <4 x float>, ptr %74, align 16, !tbaa !8
  %wide.load104.8 = load <4 x float>, ptr %75, align 16, !tbaa !8
  %155 = fcmp olt <4 x float> %wide.load103.8, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %156 = fcmp olt <4 x float> %wide.load104.8, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %157 = select <4 x i1> %155, <4 x float> %wide.load103.8, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %158 = select <4 x i1> %156, <4 x float> %wide.load104.8, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  store <4 x float> %157, ptr %76, align 8, !tbaa !8
  store <4 x float> %158, ptr %77, align 8, !tbaa !8
  %wide.load103.9 = load <4 x float>, ptr %78, align 16, !tbaa !8
  %wide.load104.9 = load <4 x float>, ptr %79, align 16, !tbaa !8
  %159 = fcmp olt <4 x float> %wide.load103.9, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %160 = fcmp olt <4 x float> %wide.load104.9, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %161 = select <4 x i1> %159, <4 x float> %wide.load103.9, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %162 = select <4 x i1> %160, <4 x float> %wide.load104.9, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  store <4 x float> %161, ptr %80, align 8, !tbaa !8
  store <4 x float> %162, ptr %81, align 8, !tbaa !8
  %wide.load103.10 = load <4 x float>, ptr %82, align 16, !tbaa !8
  %wide.load104.10 = load <4 x float>, ptr %83, align 16, !tbaa !8
  %163 = fcmp olt <4 x float> %wide.load103.10, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %164 = fcmp olt <4 x float> %wide.load104.10, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %165 = select <4 x i1> %163, <4 x float> %wide.load103.10, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %166 = select <4 x i1> %164, <4 x float> %wide.load104.10, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  store <4 x float> %165, ptr %84, align 8, !tbaa !8
  store <4 x float> %166, ptr %85, align 8, !tbaa !8
  %wide.load103.11 = load <4 x float>, ptr %86, align 16, !tbaa !8
  %wide.load104.11 = load <4 x float>, ptr %87, align 16, !tbaa !8
  %167 = fcmp olt <4 x float> %wide.load103.11, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %168 = fcmp olt <4 x float> %wide.load104.11, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %169 = select <4 x i1> %167, <4 x float> %wide.load103.11, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %170 = select <4 x i1> %168, <4 x float> %wide.load104.11, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  store <4 x float> %169, ptr %88, align 8, !tbaa !8
  store <4 x float> %170, ptr %89, align 8, !tbaa !8
  %wide.load103.12 = load <4 x float>, ptr %90, align 16, !tbaa !8
  %wide.load104.12 = load <4 x float>, ptr %91, align 16, !tbaa !8
  %171 = fcmp olt <4 x float> %wide.load103.12, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %172 = fcmp olt <4 x float> %wide.load104.12, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %173 = select <4 x i1> %171, <4 x float> %wide.load103.12, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %174 = select <4 x i1> %172, <4 x float> %wide.load104.12, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  store <4 x float> %173, ptr %92, align 8, !tbaa !8
  store <4 x float> %174, ptr %93, align 8, !tbaa !8
  %wide.load103.13 = load <4 x float>, ptr %94, align 16, !tbaa !8
  %wide.load104.13 = load <4 x float>, ptr %95, align 16, !tbaa !8
  %175 = fcmp olt <4 x float> %wide.load103.13, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %176 = fcmp olt <4 x float> %wide.load104.13, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %177 = select <4 x i1> %175, <4 x float> %wide.load103.13, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %178 = select <4 x i1> %176, <4 x float> %wide.load104.13, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  store <4 x float> %177, ptr %96, align 8, !tbaa !8
  store <4 x float> %178, ptr %97, align 8, !tbaa !8
  %wide.load103.14 = load <4 x float>, ptr %98, align 16, !tbaa !8
  %wide.load104.14 = load <4 x float>, ptr %99, align 16, !tbaa !8
  %179 = fcmp olt <4 x float> %wide.load103.14, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %180 = fcmp olt <4 x float> %wide.load104.14, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %181 = select <4 x i1> %179, <4 x float> %wide.load103.14, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %182 = select <4 x i1> %180, <4 x float> %wide.load104.14, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  store <4 x float> %181, ptr %100, align 8, !tbaa !8
  store <4 x float> %182, ptr %101, align 8, !tbaa !8
  %wide.load103.15 = load <4 x float>, ptr %102, align 16, !tbaa !8
  %wide.load104.15 = load <4 x float>, ptr %103, align 16, !tbaa !8
  %183 = fcmp olt <4 x float> %wide.load103.15, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %184 = fcmp olt <4 x float> %wide.load104.15, <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %185 = select <4 x i1> %183, <4 x float> %wide.load103.15, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  %186 = select <4 x i1> %184, <4 x float> %wide.load104.15, <4 x float> <float 5.000000e-01, float 5.000000e-01, float 5.000000e-01, float 5.000000e-01>
  store <4 x float> %185, ptr %104, align 8, !tbaa !8
  store <4 x float> %186, ptr %105, align 8, !tbaa !8
  call void @_ZNSt6vectorIN3vot9VlfeatureESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(528) %8)
  call void @llvm.lifetime.end.p0(i64 528, ptr nonnull %8) #8
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %exitcond87.not = icmp eq i64 %indvars.iv.next84, %wide.trip.count86
  br i1 %exitcond87.not, label %._crit_edge74, label %vector.ph99, !llvm.loop !29

._crit_edge95:                                    ; preds = %.loopexit, %.preheader
  call void @vl_sift_delete(ptr noundef nonnull %21)
  %.not68 = icmp eq ptr %12, null
  br i1 %.not68, label %188, label %187

187:                                              ; preds = %._crit_edge95
  call void @free(ptr noundef nonnull %12) #8
  br label %188

188:                                              ; preds = %._crit_edge95, %187, %106
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL23vl_sift_set_edge_threshP11_VlSiftFiltd(ptr noundef, double noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL23vl_sift_set_peak_threshP11_VlSiftFiltd(ptr noundef, double noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #6

declare i32 @vl_sift_process_first_octave(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @vl_sift_process_next_octave(ptr noundef) local_unnamed_addr #2

declare void @vl_sift_detect(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL21vl_sift_get_keypointsPK11_VlSiftFilt(ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL22vl_sift_get_nkeypointsPK11_VlSiftFilt(ptr noundef) local_unnamed_addr #3

declare i32 @vl_sift_calc_keypoint_orientations(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @vl_sift_calc_keypoint_descriptor(ptr noundef, ptr noundef, ptr noundef, double noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { 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 #4 = { 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 #5 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 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 allocsize(0) }
attributes #8 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"float", !6, i64 0}
!10 = distinct !{!10, !11, !12, !13}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!"llvm.loop.isvectorized", i32 1}
!13 = !{!"llvm.loop.unroll.runtime.disable"}
!14 = !{!15, !16, i64 0}
!15 = !{!"_ZTSN3vot11VlFeatParamE", !16, i64 0, !16, i64 8, !16, i64 16, !17, i64 24}
!16 = !{!"double", !6, i64 0}
!17 = !{!"_ZTSN3vot19LIBVOT_FEATURE_TYPEE", !6, i64 0}
!18 = distinct !{!18, !11, !13, !12}
!19 = !{!15, !16, i64 8}
!20 = !{!15, !16, i64 16}
!21 = distinct !{!21, !11}
!22 = !{!16, !16, i64 0}
!23 = !{!24, !9, i64 28}
!24 = !{!"_ZTS15_VlSiftKeypoint", !25, i64 0, !25, i64 4, !25, i64 8, !25, i64 12, !9, i64 16, !9, i64 20, !9, i64 24, !9, i64 28}
!25 = !{!"int", !6, i64 0}
!26 = !{!27, !9, i64 8}
!27 = !{!"_ZTSN3vot9VlfeatureE", !9, i64 0, !9, i64 4, !9, i64 8, !9, i64 12, !6, i64 16}
!28 = !{!27, !9, i64 12}
!29 = distinct !{!29, !11}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass