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

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

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) unnamed_addr #1 align 2

; 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 uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) #3 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_Z10ellipsArea6MatrixS_RiS0_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3) #3 {
  %5 = alloca float, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca i32, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 1, i32 noundef 1)
  %29 = load double, ptr %28, align 8, !tbaa !9
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 1, i32 noundef 1)
  %31 = load double, ptr %30, align 8, !tbaa !9
  %32 = fmul double %29, %31
  %33 = fptrunc double %32 to float
  store float %33, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 2, i32 noundef 2)
  %35 = load double, ptr %34, align 8, !tbaa !9
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 2, i32 noundef 2)
  %37 = load double, ptr %36, align 8, !tbaa !9
  %38 = fmul double %35, %37
  %39 = fptrunc double %38 to float
  store float %39, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 1, i32 noundef 1)
  %41 = load double, ptr %40, align 8, !tbaa !9
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 1, i32 noundef 1)
  %43 = load double, ptr %42, align 8, !tbaa !9
  %44 = fmul double %41, %43
  %45 = fptrunc double %44 to float
  store float %45, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %46 = load float, ptr %12, align 4, !tbaa !11
  %47 = load float, ptr %10, align 4, !tbaa !11
  %48 = fsub float %46, %47
  %49 = load float, ptr %10, align 4, !tbaa !11
  %50 = load float, ptr %11, align 4, !tbaa !11
  %51 = fdiv float %49, %50
  %52 = fsub float 1.000000e+00, %51
  %53 = fdiv float %48, %52
  store float %53, ptr %13, align 4, !tbaa !11
  %54 = load float, ptr %13, align 4, !tbaa !11
  %55 = fcmp ogt float %54, 0.000000e+00
  br i1 %55, label %56, label %62

56:                                               ; preds = %4
  %57 = load float, ptr %13, align 4, !tbaa !11
  %58 = call noundef float @_ZSt4sqrtf(float noundef %57)
  %59 = call noundef float @_ZSt4rintf(float noundef %58)
  %60 = fptosi float %59 to i32
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 %60, ptr %61, align 4, !tbaa !13
  br label %64

62:                                               ; preds = %4
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 0, ptr %63, align 4, !tbaa !13
  br label %64

64:                                               ; preds = %62, %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %65 = load float, ptr %10, align 4, !tbaa !11
  %66 = load float, ptr %12, align 4, !tbaa !11
  %67 = load float, ptr %10, align 4, !tbaa !11
  %68 = load float, ptr %11, align 4, !tbaa !11
  %69 = fdiv float %67, %68
  %70 = fneg float %66
  %71 = call float @llvm.fmuladd.f32(float %70, float %69, float %65)
  %72 = load float, ptr %10, align 4, !tbaa !11
  %73 = load float, ptr %11, align 4, !tbaa !11
  %74 = fdiv float %72, %73
  %75 = fsub float 1.000000e+00, %74
  %76 = fdiv float %71, %75
  store float %76, ptr %14, align 4, !tbaa !11
  %77 = load float, ptr %14, align 4, !tbaa !11
  %78 = fcmp ogt float %77, 0.000000e+00
  br i1 %78, label %79, label %89

79:                                               ; preds = %64
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = load i32, ptr %80, align 4, !tbaa !13
  %82 = icmp sgt i32 %81, 0
  br i1 %82, label %83, label %89

83:                                               ; preds = %79
  %84 = load float, ptr %14, align 4, !tbaa !11
  %85 = call noundef float @_ZSt4sqrtf(float noundef %84)
  %86 = call noundef float @_ZSt4rintf(float noundef %85)
  %87 = fptosi float %86 to i32
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %87, ptr %88, align 4, !tbaa !13
  br label %92

89:                                               ; preds = %79, %64
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 0, ptr %90, align 4, !tbaa !13
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 0, ptr %91, align 4, !tbaa !13
  br label %92

92:                                               ; preds = %89, %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %93 = load float, ptr %12, align 4, !tbaa !11
  %94 = fpext float %93 to double
  %95 = fmul double 0x400921FB54442D18, %94
  %96 = fptrunc double %95 to float
  store float %96, ptr %15, align 4, !tbaa !11
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 1, i32 noundef 1)
  %98 = load double, ptr %97, align 8, !tbaa !9
  %99 = fmul double 0x400921FB54442D18, %98
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 2, i32 noundef 2)
  %101 = load double, ptr %100, align 8, !tbaa !9
  %102 = fmul double %99, %101
  %103 = fptrunc double %102 to float
  store float %103, ptr %16, align 4, !tbaa !11
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = load i32, ptr %104, align 4, !tbaa !13
  %106 = icmp eq i32 %105, 0
  br i1 %106, label %107, label %142

107:                                              ; preds = %92
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = load i32, ptr %108, align 4, !tbaa !13
  %110 = icmp eq i32 %109, 0
  br i1 %110, label %111, label %142

111:                                              ; preds = %107
  %112 = load float, ptr %16, align 4, !tbaa !11
  %113 = load float, ptr %15, align 4, !tbaa !11
  %114 = fsub float %112, %113
  %115 = call noundef float @_ZSt4fabsf(float noundef %114)
  store float %115, ptr %17, align 4, !tbaa !11
  %116 = load float, ptr %17, align 4, !tbaa !11
  %117 = fpext float %116 to double
  %118 = fmul double 1.000000e+02, %117
  %119 = load float, ptr %16, align 4, !tbaa !11
  %120 = load float, ptr %15, align 4, !tbaa !11
  %121 = fcmp olt float %119, %120
  br i1 %121, label %122, label %124

122:                                              ; preds = %111
  %123 = load float, ptr %15, align 4, !tbaa !11
  br label %126

124:                                              ; preds = %111
  %125 = load float, ptr %16, align 4, !tbaa !11
  br label %126

126:                                              ; preds = %124, %122
  %127 = phi float [ %123, %122 ], [ %125, %124 ]
  %128 = fpext float %127 to double
  %129 = fdiv double %118, %128
  %130 = fptrunc double %129 to float
  store float %130, ptr %19, align 4, !tbaa !11
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.10)
  %132 = load float, ptr %15, align 4, !tbaa !11
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %131, float noundef %132)
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %133, ptr noundef @.str.11)
  %135 = load float, ptr %16, align 4, !tbaa !11
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %134, float noundef %135)
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef @.str.12)
  %138 = load float, ptr %17, align 4, !tbaa !11
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %137, float noundef %138)
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %139, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %141 = load float, ptr %19, align 4, !tbaa !11
  store float %141, ptr %5, align 4
  store i32 1, ptr %20, align 4
  br label %228

142:                                              ; preds = %107, %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = load i32, ptr %143, align 4, !tbaa !13
  %145 = sitofp i32 %144 to double
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 1, i32 noundef 1)
  %147 = load double, ptr %146, align 8, !tbaa !9
  %148 = fdiv double %145, %147
  %149 = call double @asin(double noundef %148) #7
  %150 = fptrunc double %149 to float
  store float %150, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %151 = load ptr, ptr %8, align 8, !tbaa !5
  %152 = load i32, ptr %151, align 4, !tbaa !13
  %153 = sitofp i32 %152 to double
  %154 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 1, i32 noundef 1)
  %155 = load double, ptr %154, align 8, !tbaa !9
  %156 = fdiv double %153, %155
  %157 = call double @asin(double noundef %156) #7
  %158 = fptrunc double %157 to float
  store float %158, ptr %22, align 4, !tbaa !11
  %159 = load ptr, ptr %8, align 8, !tbaa !5
  %160 = load i32, ptr %159, align 4, !tbaa !13
  %161 = sitofp i32 %160 to float
  %162 = load ptr, ptr %8, align 8, !tbaa !5
  %163 = load i32, ptr %162, align 4, !tbaa !13
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  %165 = load i32, ptr %164, align 4, !tbaa !13
  %166 = mul nsw i32 %163, %165
  %167 = load ptr, ptr %9, align 8, !tbaa !5
  %168 = load i32, ptr %167, align 4, !tbaa !13
  %169 = load ptr, ptr %9, align 8, !tbaa !5
  %170 = load i32, ptr %169, align 4, !tbaa !13
  %171 = mul nsw i32 %168, %170
  %172 = add nsw i32 %166, %171
  %173 = sitofp i32 %172 to float
  %174 = call noundef float @_ZSt4sqrtf(float noundef %173)
  %175 = fdiv float %161, %174
  %176 = call noundef float @_ZSt4asinf(float noundef %175)
  store float %176, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 1, i32 noundef 1)
  %178 = load double, ptr %177, align 8, !tbaa !9
  %179 = fmul double 5.000000e-01, %178
  %180 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 2, i32 noundef 2)
  %181 = load double, ptr %180, align 8, !tbaa !9
  %182 = fmul double %179, %181
  %183 = load float, ptr %21, align 4, !tbaa !11
  %184 = fpext float %183 to double
  %185 = load float, ptr %21, align 4, !tbaa !11
  %186 = fmul float 2.000000e+00, %185
  %187 = call noundef float @_ZSt3sinf(float noundef %186)
  %188 = fpext float %187 to double
  %189 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %188, double %184)
  %190 = fmul double %182, %189
  %191 = fptrunc double %190 to float
  store float %191, ptr %23, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %192 = load float, ptr %12, align 4, !tbaa !11
  %193 = fpext float %192 to double
  %194 = fmul double 5.000000e-01, %193
  %195 = load float, ptr %22, align 4, !tbaa !11
  %196 = fpext float %195 to double
  %197 = load float, ptr %22, align 4, !tbaa !11
  %198 = fmul float 2.000000e+00, %197
  %199 = call noundef float @_ZSt3sinf(float noundef %198)
  %200 = fpext float %199 to double
  %201 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %200, double %196)
  %202 = fmul double %194, %201
  %203 = fptrunc double %202 to float
  store float %203, ptr %24, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %204 = load float, ptr %24, align 4, !tbaa !11
  %205 = load float, ptr %23, align 4, !tbaa !11
  %206 = fsub float %204, %205
  %207 = fmul float 4.000000e+00, %206
  store float %207, ptr %25, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %208 = load float, ptr %15, align 4, !tbaa !11
  %209 = load float, ptr %25, align 4, !tbaa !11
  %210 = fsub float %208, %209
  store float %210, ptr %26, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %211 = load float, ptr %16, align 4, !tbaa !11
  %212 = load float, ptr %26, align 4, !tbaa !11
  %213 = fsub float %211, %212
  store float %213, ptr %27, align 4, !tbaa !11
  %214 = load float, ptr %27, align 4, !tbaa !11
  %215 = load float, ptr %25, align 4, !tbaa !11
  %216 = fadd float %214, %215
  %217 = load float, ptr %26, align 4, !tbaa !11
  %218 = load float, ptr %27, align 4, !tbaa !11
  %219 = fadd float %217, %218
  %220 = load float, ptr %25, align 4, !tbaa !11
  %221 = fadd float %219, %220
  %222 = fdiv float %216, %221
  store float %222, ptr %17, align 4, !tbaa !11
  %223 = load float, ptr %17, align 4, !tbaa !11
  %224 = fpext float %223 to double
  %225 = fmul double 1.000000e+02, %224
  %226 = fptrunc double %225 to float
  store float %226, ptr %19, align 4, !tbaa !11
  %227 = load float, ptr %19, align 4, !tbaa !11
  store float %227, ptr %5, align 4
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %228

228:                                              ; preds = %142, %126
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  %229 = load float, ptr %5, align 4
  ret float %229
}

; Function Attrs: nounwind
declare double @asin(double noundef) #6

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

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

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 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}


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

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) unnamed_addr #0 align 2

; 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 #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) local_unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_Z10ellipsArea6MatrixS_RiS0_(ptr noundef nonnull %0, ptr noundef %1, ptr nocapture noundef nonnull align 4 dereferenceable(4) %2, ptr nocapture noundef nonnull align 4 dereferenceable(4) %3) local_unnamed_addr #2 {
  %5 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 1, i32 noundef 1)
  %6 = load double, ptr %5, align 8, !tbaa !5
  %7 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 1, i32 noundef 1)
  %8 = load double, ptr %7, align 8, !tbaa !5
  %9 = fmul double %6, %8
  %10 = fptrunc double %9 to float
  %11 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 2, i32 noundef 2)
  %12 = load double, ptr %11, align 8, !tbaa !5
  %13 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 2, i32 noundef 2)
  %14 = load double, ptr %13, align 8, !tbaa !5
  %15 = fmul double %12, %14
  %16 = fptrunc double %15 to float
  %17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 1, i32 noundef 1)
  %18 = load double, ptr %17, align 8, !tbaa !5
  %19 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 1, i32 noundef 1)
  %20 = load double, ptr %19, align 8, !tbaa !5
  %21 = fmul double %18, %20
  %22 = fptrunc double %21 to float
  %23 = fsub float %22, %10
  %24 = fdiv float %10, %16
  %25 = fsub float 1.000000e+00, %24
  %26 = fdiv float %23, %25
  %27 = fcmp ogt float %26, 0.000000e+00
  br i1 %27, label %28, label %32

28:                                               ; preds = %4
  %29 = tail call noundef float @_ZSt4sqrtf(float noundef %26)
  %30 = tail call noundef float @_ZSt4rintf(float noundef %29)
  %31 = fptosi float %30 to i32
  br label %32

32:                                               ; preds = %4, %28
  %storemerge = phi i32 [ %31, %28 ], [ 0, %4 ]
  store i32 %storemerge, ptr %3, align 4, !tbaa !9
  %33 = fneg float %22
  %34 = tail call float @llvm.fmuladd.f32(float %33, float %24, float %10)
  %35 = fdiv float %34, %25
  %36 = fcmp ogt float %35, 0.000000e+00
  %37 = icmp sgt i32 %storemerge, 0
  %or.cond = select i1 %36, i1 %37, i1 false
  br i1 %or.cond, label %38, label %42

38:                                               ; preds = %32
  %39 = tail call noundef float @_ZSt4sqrtf(float noundef %35)
  %40 = tail call noundef float @_ZSt4rintf(float noundef %39)
  %41 = fptosi float %40 to i32
  br label %43

42:                                               ; preds = %32
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %42, %38
  %storemerge62 = phi i32 [ 0, %42 ], [ %41, %38 ]
  store i32 %storemerge62, ptr %2, align 4, !tbaa !9
  %44 = fpext float %22 to double
  %45 = fmul double %44, 0x400921FB54442D18
  %46 = fptrunc double %45 to float
  %47 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 1, i32 noundef 1)
  %48 = load double, ptr %47, align 8, !tbaa !5
  %49 = fmul double %48, 0x400921FB54442D18
  %50 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 2, i32 noundef 2)
  %51 = load double, ptr %50, align 8, !tbaa !5
  %52 = fmul double %49, %51
  %53 = fptrunc double %52 to float
  %54 = load i32, ptr %3, align 4, !tbaa !9
  %55 = icmp eq i32 %54, 0
  %56 = load i32, ptr %2, align 4
  %57 = icmp eq i32 %56, 0
  %or.cond65 = select i1 %55, i1 %57, i1 false
  br i1 %or.cond65, label %58, label %75

58:                                               ; preds = %43
  %59 = fsub float %53, %46
  %60 = tail call noundef float @_ZSt4fabsf(float noundef %59)
  %61 = fpext float %60 to double
  %62 = fmul double %61, 1.000000e+02
  %63 = fcmp olt float %53, %46
  %64 = select i1 %63, float %46, float %53
  %65 = fpext float %64 to double
  %66 = fdiv double %62, %65
  %67 = fptrunc double %66 to float
  %68 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.10)
  %69 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %68, float noundef %46)
  %70 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull @.str.11)
  %71 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %70, float noundef %53)
  %72 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef nonnull @.str.12)
  %73 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %72, float noundef %60)
  %74 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %132

75:                                               ; preds = %43
  %76 = sitofp i32 %56 to double
  %77 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 1, i32 noundef 1)
  %78 = load double, ptr %77, align 8, !tbaa !5
  %79 = fdiv double %76, %78
  %80 = tail call double @asin(double noundef %79) #7
  %81 = load i32, ptr %2, align 4, !tbaa !9
  %82 = sitofp i32 %81 to double
  %83 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 1, i32 noundef 1)
  %84 = load double, ptr %83, align 8, !tbaa !5
  %85 = fdiv double %82, %84
  %86 = tail call double @asin(double noundef %85) #7
  %87 = load i32, ptr %2, align 4, !tbaa !9
  %88 = sitofp i32 %87 to float
  %89 = mul nsw i32 %87, %87
  %90 = load i32, ptr %3, align 4, !tbaa !9
  %91 = mul nsw i32 %90, %90
  %92 = add nuw nsw i32 %91, %89
  %93 = uitofp nneg i32 %92 to float
  %94 = tail call noundef float @_ZSt4sqrtf(float noundef %93)
  %95 = fdiv float %88, %94
  %96 = tail call noundef float @_ZSt4asinf(float noundef %95)
  %97 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 1, i32 noundef 1)
  %98 = load double, ptr %97, align 8, !tbaa !5
  %99 = fmul double %98, 5.000000e-01
  %100 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef 2, i32 noundef 2)
  %101 = load double, ptr %100, align 8, !tbaa !5
  %102 = insertelement <2 x double> poison, double %86, i64 0
  %103 = insertelement <2 x double> %102, double %80, i64 1
  %104 = fptrunc <2 x double> %103 to <2 x float>
  %105 = extractelement <2 x float> %104, i64 1
  %106 = fmul float %105, 2.000000e+00
  %107 = tail call noundef float @_ZSt3sinf(float noundef %106)
  %108 = insertelement <2 x double> <double 5.000000e-01, double poison>, double %99, i64 1
  %109 = insertelement <2 x double> poison, double %44, i64 0
  %110 = insertelement <2 x double> %109, double %101, i64 1
  %111 = fmul <2 x double> %108, %110
  %112 = fpext <2 x float> %104 to <2 x double>
  %113 = extractelement <2 x float> %104, i64 0
  %114 = fmul float %113, 2.000000e+00
  %115 = tail call noundef float @_ZSt3sinf(float noundef %114)
  %116 = insertelement <2 x float> poison, float %115, i64 0
  %117 = insertelement <2 x float> %116, float %107, i64 1
  %118 = fpext <2 x float> %117 to <2 x double>
  %119 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %118, <2 x double> <double 5.000000e-01, double 5.000000e-01>, <2 x double> %112)
  %120 = fmul <2 x double> %111, %119
  %121 = fptrunc <2 x double> %120 to <2 x float>
  %shift = shufflevector <2 x float> %121, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %122 = fsub <2 x float> %121, %shift
  %123 = extractelement <2 x float> %122, i64 0
  %124 = fmul float %123, 4.000000e+00
  %125 = fsub float %46, %124
  %126 = fsub float %53, %125
  %127 = fadd float %124, %126
  %128 = fadd float %125, %126
  %129 = fadd float %124, %128
  %130 = fdiv float %127, %129
  %131 = fmul float %130, 1.000000e+02
  br label %132

132:                                              ; preds = %75, %58
  %.0 = phi float [ %67, %58 ], [ %131, %75 ]
  ret float %.0
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @asin(double noundef) local_unnamed_addr #5

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #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 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }

!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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalDCEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass