; LLVM IR from ox-vgg/vise :: src/search_engine/relja_retrival/external/KMCode_relja/descriptor/AffineRegion._ddbf6a59 (EEPcf)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.ImageContent = type { i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z13displayCircleP12ImageContentP16CornerDescriptorf(ptr noundef, ptr noundef, float noundef) #0

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6Corner14getCornerScaleEv(ptr noundef nonnull align 4 dereferenceable(88)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z14displayEllipseP12ImageContentP16CornerDescriptorf(ptr noundef, ptr noundef, float noundef) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6Corner7getMi11Ev(ptr noundef nonnull align 4 dereferenceable(88)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6Corner7getMi22Ev(ptr noundef nonnull align 4 dereferenceable(88)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17drawAffineCornersP12ImageContentSt6vectorIP16CornerDescriptorSaIS3_EEPcf(ptr noundef %0, ptr noundef %1, ptr noundef %2, float noundef %3) #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca float, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca float, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store float %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %18 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #9
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN12ImageContentC1EPS_(ptr noundef nonnull align 8 dereferenceable(80) %18, ptr noundef %19)
          to label %20 unwind label %27

20:                                               ; preds = %4
  store ptr %18, ptr %9, align 8, !tbaa !5
  store float 4.000000e+02, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %21

21:                                               ; preds = %70, %20
  %22 = load i32, ptr %12, align 4, !tbaa !11
  %23 = zext i32 %22 to i64
  %24 = call noundef i64 @_ZNKSt6vectorIP16CornerDescriptorSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %25 = icmp ult i64 %23, %24
  br i1 %25, label %31, label %26

26:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %73

27:                                               ; preds = %4
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %10, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %11, align 4
  call void @_ZdlPvm(ptr noundef %18, i64 noundef 80) #10
  br label %229

31:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %32 = load i32, ptr %12, align 4, !tbaa !11
  %33 = zext i32 %32 to i64
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %33) #8
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  %36 = call noundef float @_ZNK6Corner14getCornerScaleEv(ptr noundef nonnull align 4 dereferenceable(88) %35)
  store float %36, ptr %13, align 4, !tbaa !9
  %37 = load i32, ptr %12, align 4, !tbaa !11
  %38 = zext i32 %37 to i64
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %38) #8
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %41 = call noundef float @_ZNK6Corner7getMi11Ev(ptr noundef nonnull align 4 dereferenceable(88) %40)
  %42 = fcmp oeq float %41, 1.000000e+00
  br i1 %42, label %43, label %57

43:                                               ; preds = %31
  %44 = load i32, ptr %12, align 4, !tbaa !11
  %45 = zext i32 %44 to i64
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %45) #8
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  %48 = call noundef float @_ZNK6Corner7getMi22Ev(ptr noundef nonnull align 4 dereferenceable(88) %47)
  %49 = fcmp oeq float %48, 1.000000e+00
  br i1 %49, label %50, label %57

50:                                               ; preds = %43
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = load i32, ptr %12, align 4, !tbaa !11
  %53 = zext i32 %52 to i64
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %53) #8
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  %56 = load float, ptr %8, align 4, !tbaa !9
  call void @_Z13displayCircleP12ImageContentP16CornerDescriptorf(ptr noundef %51, ptr noundef %55, float noundef %56)
  br label %64

57:                                               ; preds = %43, %31
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = load i32, ptr %12, align 4, !tbaa !11
  %60 = zext i32 %59 to i64
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %60) #8
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = load float, ptr %8, align 4, !tbaa !9
  call void @_Z14displayEllipseP12ImageContentP16CornerDescriptorf(ptr noundef %58, ptr noundef %62, float noundef %63)
  br label %64

64:                                               ; preds = %57, %50
  %65 = load i32, ptr %12, align 4, !tbaa !11
  %66 = zext i32 %65 to i64
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %66) #8
  %68 = load ptr, ptr %67, align 8, !tbaa !5
  %69 = load float, ptr %13, align 4, !tbaa !9
  call void @_ZN6Corner14setCornerScaleEf(ptr noundef nonnull align 4 dereferenceable(88) %68, float noundef %69)
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %70

70:                                               ; preds = %64
  %71 = load i32, ptr %12, align 4, !tbaa !11
  %72 = add i32 %71, 1
  store i32 %72, ptr %12, align 4, !tbaa !11
  br label %21, !llvm.loop !13

73:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %74 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #9
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = invoke noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %75)
          to label %77 unwind label %88

77:                                               ; preds = %73
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = invoke noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %78)
          to label %80 unwind label %88

80:                                               ; preds = %77
  invoke void @_ZN12ImageContentC1EjjPKc(ptr noundef nonnull align 8 dereferenceable(80) %74, i32 noundef %76, i32 noundef %79, ptr noundef @.str)
          to label %81 unwind label %88

81:                                               ; preds = %80
  store ptr %74, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !11
  br label %82

82:                                               ; preds = %215, %81
  %83 = load i32, ptr %15, align 4, !tbaa !11
  %84 = load ptr, ptr %14, align 8, !tbaa !5
  %85 = call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %84)
  %86 = icmp ult i32 %83, %85
  br i1 %86, label %92, label %87

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

88:                                               ; preds = %80, %77, %73
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %10, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %11, align 4
  call void @_ZdlPvm(ptr noundef %74, i64 noundef 80) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %229

92:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !11
  br label %93

93:                                               ; preds = %211, %92
  %94 = load i32, ptr %17, align 4, !tbaa !11
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  %96 = call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %95)
  %97 = icmp ult i32 %94, %96
  br i1 %97, label %99, label %98

98:                                               ; preds = %93
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %214

99:                                               ; preds = %93
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = getelementptr inbounds %class.ImageContent, ptr %100, i32 0, i32 4
  %102 = load ptr, ptr %101, align 8, !tbaa !15
  %103 = load i32, ptr %15, align 4, !tbaa !11
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds ptr, ptr %102, i64 %104
  %106 = load ptr, ptr %105, align 8, !tbaa !5
  %107 = load i32, ptr %17, align 4, !tbaa !11
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds float, ptr %106, i64 %108
  %110 = load float, ptr %109, align 4, !tbaa !9
  %111 = fcmp oeq float %110, 4.000000e+02
  br i1 %111, label %112, label %143

112:                                              ; preds = %99
  %113 = load ptr, ptr %14, align 8, !tbaa !5
  %114 = getelementptr inbounds %class.ImageContent, ptr %113, i32 0, i32 9
  %115 = load ptr, ptr %114, align 8, !tbaa !17
  %116 = load i32, ptr %15, align 4, !tbaa !11
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds ptr, ptr %115, i64 %117
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = load i32, ptr %17, align 4, !tbaa !11
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds i8, ptr %119, i64 %121
  store i8 -1, ptr %122, align 1, !tbaa !18
  %123 = load ptr, ptr %14, align 8, !tbaa !5
  %124 = getelementptr inbounds %class.ImageContent, ptr %123, i32 0, i32 10
  %125 = load ptr, ptr %124, align 8, !tbaa !19
  %126 = load i32, ptr %15, align 4, !tbaa !11
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds ptr, ptr %125, i64 %127
  %129 = load ptr, ptr %128, align 8, !tbaa !5
  %130 = load i32, ptr %17, align 4, !tbaa !11
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds i8, ptr %129, i64 %131
  store i8 -1, ptr %132, align 1, !tbaa !18
  %133 = load ptr, ptr %14, align 8, !tbaa !5
  %134 = getelementptr inbounds %class.ImageContent, ptr %133, i32 0, i32 11
  %135 = load ptr, ptr %134, align 8, !tbaa !20
  %136 = load i32, ptr %15, align 4, !tbaa !11
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds ptr, ptr %135, i64 %137
  %139 = load ptr, ptr %138, align 8, !tbaa !5
  %140 = load i32, ptr %17, align 4, !tbaa !11
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds i8, ptr %139, i64 %141
  store i8 0, ptr %142, align 1, !tbaa !18
  br label %210

143:                                              ; preds = %99
  %144 = load ptr, ptr %9, align 8, !tbaa !5
  %145 = getelementptr inbounds %class.ImageContent, ptr %144, i32 0, i32 4
  %146 = load ptr, ptr %145, align 8, !tbaa !15
  %147 = load i32, ptr %15, align 4, !tbaa !11
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds ptr, ptr %146, i64 %148
  %150 = load ptr, ptr %149, align 8, !tbaa !5
  %151 = load i32, ptr %17, align 4, !tbaa !11
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds float, ptr %150, i64 %152
  %154 = load float, ptr %153, align 4, !tbaa !9
  %155 = fptoui float %154 to i8
  %156 = load ptr, ptr %14, align 8, !tbaa !5
  %157 = getelementptr inbounds %class.ImageContent, ptr %156, i32 0, i32 9
  %158 = load ptr, ptr %157, align 8, !tbaa !17
  %159 = load i32, ptr %15, align 4, !tbaa !11
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds ptr, ptr %158, i64 %160
  %162 = load ptr, ptr %161, align 8, !tbaa !5
  %163 = load i32, ptr %17, align 4, !tbaa !11
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds i8, ptr %162, i64 %164
  store i8 %155, ptr %165, align 1, !tbaa !18
  %166 = load ptr, ptr %9, align 8, !tbaa !5
  %167 = getelementptr inbounds %class.ImageContent, ptr %166, i32 0, i32 4
  %168 = load ptr, ptr %167, align 8, !tbaa !15
  %169 = load i32, ptr %15, align 4, !tbaa !11
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds ptr, ptr %168, i64 %170
  %172 = load ptr, ptr %171, align 8, !tbaa !5
  %173 = load i32, ptr %17, align 4, !tbaa !11
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds float, ptr %172, i64 %174
  %176 = load float, ptr %175, align 4, !tbaa !9
  %177 = fptoui float %176 to i8
  %178 = load ptr, ptr %14, align 8, !tbaa !5
  %179 = getelementptr inbounds %class.ImageContent, ptr %178, i32 0, i32 10
  %180 = load ptr, ptr %179, align 8, !tbaa !19
  %181 = load i32, ptr %15, align 4, !tbaa !11
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds ptr, ptr %180, i64 %182
  %184 = load ptr, ptr %183, align 8, !tbaa !5
  %185 = load i32, ptr %17, align 4, !tbaa !11
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds i8, ptr %184, i64 %186
  store i8 %177, ptr %187, align 1, !tbaa !18
  %188 = load ptr, ptr %9, align 8, !tbaa !5
  %189 = getelementptr inbounds %class.ImageContent, ptr %188, i32 0, i32 4
  %190 = load ptr, ptr %189, align 8, !tbaa !15
  %191 = load i32, ptr %15, align 4, !tbaa !11
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds ptr, ptr %190, i64 %192
  %194 = load ptr, ptr %193, align 8, !tbaa !5
  %195 = load i32, ptr %17, align 4, !tbaa !11
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds float, ptr %194, i64 %196
  %198 = load float, ptr %197, align 4, !tbaa !9
  %199 = fptoui float %198 to i8
  %200 = load ptr, ptr %14, align 8, !tbaa !5
  %201 = getelementptr inbounds %class.ImageContent, ptr %200, i32 0, i32 11
  %202 = load ptr, ptr %201, align 8, !tbaa !20
  %203 = load i32, ptr %15, align 4, !tbaa !11
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds ptr, ptr %202, i64 %204
  %206 = load ptr, ptr %205, align 8, !tbaa !5
  %207 = load i32, ptr %17, align 4, !tbaa !11
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds i8, ptr %206, i64 %208
  store i8 %199, ptr %209, align 1, !tbaa !18
  br label %210

210:                                              ; preds = %143, %112
  br label %211

211:                                              ; preds = %210
  %212 = load i32, ptr %17, align 4, !tbaa !11
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %17, align 4, !tbaa !11
  br label %93, !llvm.loop !21

214:                                              ; preds = %98
  br label %215

215:                                              ; preds = %214
  %216 = load i32, ptr %15, align 4, !tbaa !11
  %217 = add nsw i32 %216, 1
  store i32 %217, ptr %15, align 4, !tbaa !11
  br label %82, !llvm.loop !22

218:                                              ; preds = %87
  %219 = load ptr, ptr %14, align 8, !tbaa !5
  %220 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN12ImageContent8writePNGEPKc(ptr noundef nonnull align 8 dereferenceable(80) %219, ptr noundef %220)
  %221 = load ptr, ptr %9, align 8, !tbaa !5
  %222 = icmp eq ptr %221, null
  br i1 %222, label %224, label %223

223:                                              ; preds = %218
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %221) #8
  call void @_ZdlPvm(ptr noundef %221, i64 noundef 80) #10
  br label %224

224:                                              ; preds = %223, %218
  %225 = load ptr, ptr %14, align 8, !tbaa !5
  %226 = icmp eq ptr %225, null
  br i1 %226, label %228, label %227

227:                                              ; preds = %224
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %225) #8
  call void @_ZdlPvm(ptr noundef %225, i64 noundef 80) #10
  br label %228

228:                                              ; preds = %227, %224
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  ret void

229:                                              ; preds = %88, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %230

230:                                              ; preds = %229
  %231 = load ptr, ptr %10, align 8
  %232 = load i32, ptr %11, align 4
  %233 = insertvalue { ptr, i32 } poison, ptr %231, 0
  %234 = insertvalue { ptr, i32 } %233, i32 %232, 1
  resume { ptr, i32 } %234
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIP16CornerDescriptorSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6Corner14setCornerScaleEf(ptr noundef nonnull align 4 dereferenceable(88), float noundef) #2 align 2

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

declare void @_ZN12ImageContent8writePNGEPKc(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef) #4

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

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


; 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 [7 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z13displayCircleP12ImageContentP16CornerDescriptorf(ptr noundef, ptr noundef, float noundef) local_unnamed_addr #0

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6Corner14getCornerScaleEv(ptr noundef nonnull align 4 dereferenceable(88)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z14displayEllipseP12ImageContentP16CornerDescriptorf(ptr noundef, ptr noundef, float noundef) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6Corner7getMi11Ev(ptr noundef nonnull align 4 dereferenceable(88)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6Corner7getMi22Ev(ptr noundef nonnull align 4 dereferenceable(88)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17drawAffineCornersP12ImageContentSt6vectorIP16CornerDescriptorSaIS3_EEPcf(ptr noundef %0, ptr noundef %1, ptr noundef %2, float noundef %3) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %5 = tail call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #7
  invoke void @_ZN12ImageContentC1EPS_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef %0)
          to label %.preheader65 unwind label %15

.preheader65:                                     ; preds = %4
  %6 = tail call noundef i64 @_ZNKSt6vectorIP16CornerDescriptorSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %.not = icmp eq i64 %6, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %36, %.preheader65
  %7 = tail call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #7
  %8 = tail call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  %9 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  invoke void @_ZN12ImageContentC1EjjPKc(ptr noundef nonnull align 8 dereferenceable(80) %7, i32 noundef %8, i32 noundef %9, ptr noundef nonnull @.str)
          to label %.preheader64 unwind label %44

.preheader64:                                     ; preds = %._crit_edge
  %10 = tail call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %7)
  %.not72 = icmp eq i32 %10, 0
  br i1 %.not72, label %._crit_edge71, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.preheader64
  %11 = getelementptr inbounds i8, ptr %5, i64 16
  %12 = getelementptr inbounds i8, ptr %7, i64 56
  %13 = getelementptr inbounds i8, ptr %7, i64 64
  %14 = getelementptr inbounds i8, ptr %7, i64 72
  br label %.preheader

15:                                               ; preds = %4
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %94

.lr.ph:                                           ; preds = %.preheader65, %36
  %17 = phi i64 [ %40, %36 ], [ 0, %.preheader65 ]
  %.05966 = phi i32 [ %39, %36 ], [ 0, %.preheader65 ]
  %18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %17) #8
  %19 = load ptr, ptr %18, align 8, !tbaa !5
  %20 = tail call noundef float @_ZNK6Corner14getCornerScaleEv(ptr noundef nonnull align 4 dereferenceable(88) %19)
  %21 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %17) #8
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  %23 = tail call noundef float @_ZNK6Corner7getMi11Ev(ptr noundef nonnull align 4 dereferenceable(88) %22)
  %24 = fcmp oeq float %23, 1.000000e+00
  br i1 %24, label %25, label %33

25:                                               ; preds = %.lr.ph
  %26 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %17) #8
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = tail call noundef float @_ZNK6Corner7getMi22Ev(ptr noundef nonnull align 4 dereferenceable(88) %27)
  %29 = fcmp oeq float %28, 1.000000e+00
  br i1 %29, label %30, label %33

30:                                               ; preds = %25
  %31 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %17) #8
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  tail call void @_Z13displayCircleP12ImageContentP16CornerDescriptorf(ptr noundef nonnull %5, ptr noundef %32, float noundef 4.000000e+02)
  br label %36

33:                                               ; preds = %25, %.lr.ph
  %34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %17) #8
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  tail call void @_Z14displayEllipseP12ImageContentP16CornerDescriptorf(ptr noundef nonnull %5, ptr noundef %35, float noundef 4.000000e+02)
  br label %36

36:                                               ; preds = %33, %30
  %37 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %17) #8
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  tail call void @_ZN6Corner14setCornerScaleEf(ptr noundef nonnull align 4 dereferenceable(88) %38, float noundef %20)
  %39 = add i32 %.05966, 1
  %40 = zext i32 %39 to i64
  %41 = tail call noundef i64 @_ZNKSt6vectorIP16CornerDescriptorSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %42 = icmp ugt i64 %41, %40
  br i1 %42, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge69
  %indvars.iv75 = phi i64 [ 0, %.preheader.lr.ph ], [ %indvars.iv.next76, %._crit_edge69 ]
  %43 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %7)
  %.not73 = icmp eq i32 %43, 0
  br i1 %.not73, label %._crit_edge69, label %.lr.ph68

._crit_edge71:                                    ; preds = %._crit_edge69, %.preheader64
  tail call void @_ZN12ImageContent8writePNGEPKc(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef %2)
  tail call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #8
  tail call void @_ZdlPvm(ptr noundef nonnull %5, i64 noundef 80) #9
  tail call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %7) #8
  tail call void @_ZdlPvm(ptr noundef nonnull %7, i64 noundef 80) #9
  ret void

44:                                               ; preds = %._crit_edge
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %94

._crit_edge69:                                    ; preds = %86, %.preheader
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 1
  %46 = tail call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %7)
  %47 = zext i32 %46 to i64
  %48 = icmp ult i64 %indvars.iv.next76, %47
  br i1 %48, label %.preheader, label %._crit_edge71, !llvm.loop !11

.lr.ph68:                                         ; preds = %.preheader, %86
  %indvars.iv = phi i64 [ %indvars.iv.next, %86 ], [ 0, %.preheader ]
  %49 = load ptr, ptr %11, align 8, !tbaa !12
  %50 = getelementptr inbounds ptr, ptr %49, i64 %indvars.iv75
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  %52 = getelementptr inbounds float, ptr %51, i64 %indvars.iv
  %53 = load float, ptr %52, align 4, !tbaa !15
  %54 = fcmp oeq float %53, 4.000000e+02
  br i1 %54, label %55, label %64

55:                                               ; preds = %.lr.ph68
  %56 = load ptr, ptr %12, align 8, !tbaa !17
  %57 = getelementptr inbounds ptr, ptr %56, i64 %indvars.iv75
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %58, i64 %indvars.iv
  store i8 -1, ptr %59, align 1, !tbaa !18
  %60 = load ptr, ptr %13, align 8, !tbaa !19
  %61 = getelementptr inbounds ptr, ptr %60, i64 %indvars.iv75
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %62, i64 %indvars.iv
  store i8 -1, ptr %63, align 1, !tbaa !18
  br label %86

64:                                               ; preds = %.lr.ph68
  %65 = fptoui float %53 to i8
  %66 = load ptr, ptr %12, align 8, !tbaa !17
  %67 = getelementptr inbounds ptr, ptr %66, i64 %indvars.iv75
  %68 = load ptr, ptr %67, align 8, !tbaa !5
  %69 = getelementptr inbounds i8, ptr %68, i64 %indvars.iv
  store i8 %65, ptr %69, align 1, !tbaa !18
  %70 = load ptr, ptr %11, align 8, !tbaa !12
  %71 = getelementptr inbounds ptr, ptr %70, i64 %indvars.iv75
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  %73 = getelementptr inbounds float, ptr %72, i64 %indvars.iv
  %74 = load float, ptr %73, align 4, !tbaa !15
  %75 = fptoui float %74 to i8
  %76 = load ptr, ptr %13, align 8, !tbaa !19
  %77 = getelementptr inbounds ptr, ptr %76, i64 %indvars.iv75
  %78 = load ptr, ptr %77, align 8, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %78, i64 %indvars.iv
  store i8 %75, ptr %79, align 1, !tbaa !18
  %80 = load ptr, ptr %11, align 8, !tbaa !12
  %81 = getelementptr inbounds ptr, ptr %80, i64 %indvars.iv75
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  %83 = getelementptr inbounds float, ptr %82, i64 %indvars.iv
  %84 = load float, ptr %83, align 4, !tbaa !15
  %85 = fptoui float %84 to i8
  br label %86

86:                                               ; preds = %55, %64
  %.sink = phi i8 [ 0, %55 ], [ %85, %64 ]
  %87 = load ptr, ptr %14, align 8, !tbaa !20
  %88 = getelementptr inbounds ptr, ptr %87, i64 %indvars.iv75
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %89, i64 %indvars.iv
  store i8 %.sink, ptr %90, align 1, !tbaa !18
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %91 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %7)
  %92 = zext i32 %91 to i64
  %93 = icmp ult i64 %indvars.iv.next, %92
  br i1 %93, label %.lr.ph68, label %._crit_edge69, !llvm.loop !21

94:                                               ; preds = %44, %15
  %.sink82 = phi ptr [ %7, %44 ], [ %5, %15 ]
  %.pn = phi { ptr, i32 } [ %45, %44 ], [ %16, %15 ]
  tail call void @_ZdlPvm(ptr noundef nonnull %.sink82, i64 noundef 80) #9
  resume { ptr, i32 } %.pn
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIP16CornerDescriptorSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16CornerDescriptorSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6Corner14setCornerScaleEf(ptr noundef nonnull align 4 dereferenceable(88), float noundef) local_unnamed_addr #1 align 2

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

declare void @_ZN12ImageContent8writePNGEPKc(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef) local_unnamed_addr #3

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { 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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !6, i64 16}
!13 = !{!"_ZTS12ImageContent", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!13, !6, i64 56}
!18 = !{!7, !7, i64 0}
!19 = !{!13, !6, i64 64}
!20 = !{!13, !6, i64 72}
!21 = distinct !{!21, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass