; LLVM IR from robinrodricks/InspiritImage :: Inspirit.Assurf/clib (utils)

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

%struct._IPointMatch = type { ptr, ptr, ptr, double, double, i32, i32, i32 }
%struct._IPoint = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, double, ptr, i32, [256 x i8] }

@__const.getHomographyPoints.idx = external hidden unnamed_addr constant [16 x [4 x i32]], align 16

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #2

; Function Attrs: inlinehint nounwind uwtable
declare i32 @iSquare(i32 noundef) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #2

; Function Attrs: inlinehint nounwind uwtable
declare i32 @IMIN(i32 noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @get2ClosestPoints(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #5

; Function Attrs: nounwind uwtable
define dso_local void @getHomographyPoints(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #5 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca ptr, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca double, align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca [8 x %struct._IPointMatch], align 16
  %36 = alloca [16 x [4 x i32]], align 16
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 1000, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 1000, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !9
  %42 = load i32, ptr %6, align 4, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = call ptr @llvm.stacksave.p0()
  store ptr %44, ptr %18, align 8
  %45 = alloca i32, i64 %43, align 16
  store i64 %43, ptr %19, align 8
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %46

46:                                               ; preds = %105, %4
  %47 = load i32, ptr %9, align 4, !tbaa !9
  %48 = load i32, ptr %6, align 4, !tbaa !9
  %49 = icmp slt i32 %47, %48
  br i1 %49, label %50, label %108

50:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = load i32, ptr %9, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds %struct._IPointMatch, ptr %51, i64 %53
  %55 = getelementptr inbounds %struct._IPointMatch, ptr %54, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8, !tbaa !11
  store ptr %56, ptr %20, align 8, !tbaa !5
  %57 = load ptr, ptr %20, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct._IPoint, ptr %57, i32 0, i32 4
  %59 = load i32, ptr %58, align 8, !tbaa !14
  %60 = load i32, ptr %10, align 4, !tbaa !9
  %61 = add nsw i32 %60, %59
  store i32 %61, ptr %10, align 4, !tbaa !9
  %62 = load ptr, ptr %20, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct._IPoint, ptr %62, i32 0, i32 5
  %64 = load i32, ptr %63, align 4, !tbaa !16
  %65 = load i32, ptr %11, align 4, !tbaa !9
  %66 = add nsw i32 %65, %64
  store i32 %66, ptr %11, align 4, !tbaa !9
  %67 = load ptr, ptr %20, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct._IPoint, ptr %67, i32 0, i32 4
  %69 = load i32, ptr %68, align 8, !tbaa !14
  %70 = load ptr, ptr %20, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct._IPoint, ptr %70, i32 0, i32 5
  %72 = load i32, ptr %71, align 4, !tbaa !16
  %73 = mul nsw i32 %69, %72
  %74 = load i32, ptr %12, align 4, !tbaa !9
  %75 = add nsw i32 %74, %73
  store i32 %75, ptr %12, align 4, !tbaa !9
  %76 = load ptr, ptr %20, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct._IPoint, ptr %76, i32 0, i32 4
  %78 = load i32, ptr %77, align 8, !tbaa !14
  %79 = call i32 @iSquare(i32 noundef %78)
  %80 = load i32, ptr %13, align 4, !tbaa !9
  %81 = add nsw i32 %80, %79
  store i32 %81, ptr %13, align 4, !tbaa !9
  %82 = load i32, ptr %14, align 4, !tbaa !9
  %83 = load ptr, ptr %20, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct._IPoint, ptr %83, i32 0, i32 4
  %85 = load i32, ptr %84, align 8, !tbaa !14
  %86 = call i32 @IMIN(i32 noundef %82, i32 noundef %85)
  store i32 %86, ptr %14, align 4, !tbaa !9
  %87 = load i32, ptr %15, align 4, !tbaa !9
  %88 = load ptr, ptr %20, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct._IPoint, ptr %88, i32 0, i32 4
  %90 = load i32, ptr %89, align 8, !tbaa !14
  %91 = call i32 @IMAX(i32 noundef %87, i32 noundef %90)
  store i32 %91, ptr %15, align 4, !tbaa !9
  %92 = load i32, ptr %16, align 4, !tbaa !9
  %93 = load ptr, ptr %20, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct._IPoint, ptr %93, i32 0, i32 5
  %95 = load i32, ptr %94, align 4, !tbaa !16
  %96 = call i32 @IMIN(i32 noundef %92, i32 noundef %95)
  store i32 %96, ptr %16, align 4, !tbaa !9
  %97 = load i32, ptr %17, align 4, !tbaa !9
  %98 = load ptr, ptr %20, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct._IPoint, ptr %98, i32 0, i32 5
  %100 = load i32, ptr %99, align 4, !tbaa !16
  %101 = call i32 @IMAX(i32 noundef %97, i32 noundef %100)
  store i32 %101, ptr %17, align 4, !tbaa !9
  %102 = load i32, ptr %9, align 4, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds i32, ptr %45, i64 %103
  store i32 0, ptr %104, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %105

105:                                              ; preds = %50
  %106 = load i32, ptr %9, align 4, !tbaa !9
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %9, align 4, !tbaa !9
  br label %46, !llvm.loop !17

108:                                              ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %109 = load i32, ptr %6, align 4, !tbaa !9
  %110 = load i32, ptr %12, align 4, !tbaa !9
  %111 = mul nsw i32 %109, %110
  %112 = load i32, ptr %10, align 4, !tbaa !9
  %113 = load i32, ptr %11, align 4, !tbaa !9
  %114 = mul nsw i32 %112, %113
  %115 = sub nsw i32 %111, %114
  %116 = sitofp i32 %115 to double
  %117 = load i32, ptr %6, align 4, !tbaa !9
  %118 = load i32, ptr %13, align 4, !tbaa !9
  %119 = mul nsw i32 %117, %118
  %120 = load i32, ptr %10, align 4, !tbaa !9
  %121 = load i32, ptr %10, align 4, !tbaa !9
  %122 = mul nsw i32 %120, %121
  %123 = sub nsw i32 %119, %122
  %124 = sitofp i32 %123 to double
  %125 = fdiv double %116, %124
  store double %125, ptr %21, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %126 = load i32, ptr %11, align 4, !tbaa !9
  %127 = sitofp i32 %126 to double
  %128 = load double, ptr %21, align 8, !tbaa !19
  %129 = load i32, ptr %10, align 4, !tbaa !9
  %130 = sitofp i32 %129 to double
  %131 = fneg double %128
  %132 = call double @llvm.fmuladd.f64(double %131, double %130, double %127)
  %133 = load i32, ptr %6, align 4, !tbaa !9
  %134 = sitofp i32 %133 to double
  %135 = fdiv double %132, %134
  store double %135, ptr %22, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %136 = load double, ptr %21, align 8, !tbaa !19
  %137 = fdiv double -1.000000e+00, %136
  store double %137, ptr %23, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %138 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %138, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %139 = load double, ptr %22, align 8, !tbaa !19
  %140 = load double, ptr %21, align 8, !tbaa !19
  %141 = load i32, ptr %24, align 4, !tbaa !9
  %142 = sitofp i32 %141 to double
  %143 = call double @llvm.fmuladd.f64(double %140, double %142, double %139)
  %144 = fptosi double %143 to i32
  store i32 %144, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %145 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %145, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %146 = load double, ptr %22, align 8, !tbaa !19
  %147 = load double, ptr %21, align 8, !tbaa !19
  %148 = load i32, ptr %26, align 4, !tbaa !9
  %149 = sitofp i32 %148 to double
  %150 = call double @llvm.fmuladd.f64(double %147, double %149, double %146)
  %151 = fptosi double %150 to i32
  store i32 %151, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %152 = load i32, ptr %24, align 4, !tbaa !9
  %153 = load i32, ptr %26, align 4, !tbaa !9
  %154 = add nsw i32 %152, %153
  %155 = sitofp i32 %154 to double
  %156 = fmul double %155, 5.000000e-01
  %157 = fptosi double %156 to i32
  store i32 %157, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %158 = load i32, ptr %25, align 4, !tbaa !9
  %159 = load i32, ptr %27, align 4, !tbaa !9
  %160 = add nsw i32 %158, %159
  %161 = sitofp i32 %160 to double
  %162 = fmul double %161, 5.000000e-01
  %163 = fptosi double %162 to i32
  store i32 %163, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %164 = load i32, ptr %29, align 4, !tbaa !9
  %165 = sitofp i32 %164 to double
  %166 = load double, ptr %23, align 8, !tbaa !19
  %167 = load i32, ptr %28, align 4, !tbaa !9
  %168 = sitofp i32 %167 to double
  %169 = fneg double %166
  %170 = call double @llvm.fmuladd.f64(double %169, double %168, double %165)
  store double %170, ptr %30, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %171 = load i32, ptr %16, align 4, !tbaa !9
  %172 = sitofp i32 %171 to double
  %173 = load double, ptr %23, align 8, !tbaa !19
  %174 = fdiv double %172, %173
  %175 = load double, ptr %30, align 8, !tbaa !19
  %176 = load double, ptr %23, align 8, !tbaa !19
  %177 = fdiv double %175, %176
  %178 = fsub double %174, %177
  %179 = fptosi double %178 to i32
  store i32 %179, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  %180 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %180, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  %181 = load i32, ptr %17, align 4, !tbaa !9
  %182 = sitofp i32 %181 to double
  %183 = load double, ptr %23, align 8, !tbaa !19
  %184 = fdiv double %182, %183
  %185 = load double, ptr %30, align 8, !tbaa !19
  %186 = load double, ptr %23, align 8, !tbaa !19
  %187 = fdiv double %185, %186
  %188 = fsub double %184, %187
  %189 = fptosi double %188 to i32
  store i32 %189, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  %190 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %190, ptr %34, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 448, ptr %35) #6
  %191 = load i32, ptr %31, align 4, !tbaa !9
  %192 = load i32, ptr %32, align 4, !tbaa !9
  %193 = load ptr, ptr %5, align 8, !tbaa !5
  %194 = load i32, ptr %6, align 4, !tbaa !9
  %195 = getelementptr inbounds [8 x %struct._IPointMatch], ptr %35, i64 0, i64 0
  call void @get2ClosestPoints(i32 noundef %191, i32 noundef %192, ptr noundef %193, i32 noundef %194, ptr noundef %195, ptr noundef %45)
  %196 = load i32, ptr %33, align 4, !tbaa !9
  %197 = load i32, ptr %34, align 4, !tbaa !9
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = load i32, ptr %6, align 4, !tbaa !9
  %200 = getelementptr inbounds [8 x %struct._IPointMatch], ptr %35, i64 0, i64 0
  %201 = getelementptr inbounds %struct._IPointMatch, ptr %200, i64 2
  call void @get2ClosestPoints(i32 noundef %196, i32 noundef %197, ptr noundef %198, i32 noundef %199, ptr noundef %201, ptr noundef %45)
  %202 = load i32, ptr %24, align 4, !tbaa !9
  %203 = load i32, ptr %25, align 4, !tbaa !9
  %204 = load ptr, ptr %5, align 8, !tbaa !5
  %205 = load i32, ptr %6, align 4, !tbaa !9
  %206 = getelementptr inbounds [8 x %struct._IPointMatch], ptr %35, i64 0, i64 0
  %207 = getelementptr inbounds %struct._IPointMatch, ptr %206, i64 4
  call void @get2ClosestPoints(i32 noundef %202, i32 noundef %203, ptr noundef %204, i32 noundef %205, ptr noundef %207, ptr noundef %45)
  %208 = load i32, ptr %26, align 4, !tbaa !9
  %209 = load i32, ptr %27, align 4, !tbaa !9
  %210 = load ptr, ptr %5, align 8, !tbaa !5
  %211 = load i32, ptr %6, align 4, !tbaa !9
  %212 = getelementptr inbounds [8 x %struct._IPointMatch], ptr %35, i64 0, i64 0
  %213 = getelementptr inbounds %struct._IPointMatch, ptr %212, i64 6
  call void @get2ClosestPoints(i32 noundef %208, i32 noundef %209, ptr noundef %210, i32 noundef %211, ptr noundef %213, ptr noundef %45)
  call void @llvm.lifetime.start.p0(i64 256, ptr %36) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %36, ptr align 16 @__const.getHomographyPoints.idx, i64 256, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  store i32 0, ptr %38, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #6
  store i32 0, ptr %39, align 4, !tbaa !9
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %214

214:                                              ; preds = %284, %108
  %215 = load i32, ptr %9, align 4, !tbaa !9
  %216 = icmp slt i32 %215, 16
  br i1 %216, label %217, label %287

217:                                              ; preds = %214
  store i32 0, ptr %37, align 4, !tbaa !9
  br label %218

218:                                              ; preds = %280, %217
  %219 = load i32, ptr %37, align 4, !tbaa !9
  %220 = icmp slt i32 %219, 4
  br i1 %220, label %221, label %283

221:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #6
  %222 = load i32, ptr %9, align 4, !tbaa !9
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [16 x [4 x i32]], ptr %36, i64 0, i64 %223
  %225 = load i32, ptr %37, align 4, !tbaa !9
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [4 x i32], ptr %224, i64 0, i64 %226
  %228 = load i32, ptr %227, align 4, !tbaa !9
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [8 x %struct._IPointMatch], ptr %35, i64 0, i64 %229
  %231 = getelementptr inbounds %struct._IPointMatch, ptr %230, i32 0, i32 0
  %232 = load ptr, ptr %231, align 8, !tbaa !11
  store ptr %232, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #6
  %233 = load i32, ptr %9, align 4, !tbaa !9
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [16 x [4 x i32]], ptr %36, i64 0, i64 %234
  %236 = load i32, ptr %37, align 4, !tbaa !9
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [4 x i32], ptr %235, i64 0, i64 %237
  %239 = load i32, ptr %238, align 4, !tbaa !9
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [8 x %struct._IPointMatch], ptr %35, i64 0, i64 %240
  %242 = getelementptr inbounds %struct._IPointMatch, ptr %241, i32 0, i32 1
  %243 = load ptr, ptr %242, align 8, !tbaa !20
  store ptr %243, ptr %41, align 8, !tbaa !5
  %244 = load ptr, ptr %40, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct._IPoint, ptr %244, i32 0, i32 4
  %246 = load i32, ptr %245, align 8, !tbaa !14
  %247 = sitofp i32 %246 to double
  %248 = load ptr, ptr %7, align 8, !tbaa !5
  %249 = load i32, ptr %38, align 4, !tbaa !9
  %250 = add nsw i32 %249, 1
  store i32 %250, ptr %38, align 4, !tbaa !9
  %251 = sext i32 %249 to i64
  %252 = getelementptr inbounds double, ptr %248, i64 %251
  store double %247, ptr %252, align 8, !tbaa !19
  %253 = load ptr, ptr %40, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct._IPoint, ptr %253, i32 0, i32 5
  %255 = load i32, ptr %254, align 4, !tbaa !16
  %256 = sitofp i32 %255 to double
  %257 = load ptr, ptr %7, align 8, !tbaa !5
  %258 = load i32, ptr %38, align 4, !tbaa !9
  %259 = add nsw i32 %258, 1
  store i32 %259, ptr %38, align 4, !tbaa !9
  %260 = sext i32 %258 to i64
  %261 = getelementptr inbounds double, ptr %257, i64 %260
  store double %256, ptr %261, align 8, !tbaa !19
  %262 = load ptr, ptr %41, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct._IPoint, ptr %262, i32 0, i32 4
  %264 = load i32, ptr %263, align 8, !tbaa !14
  %265 = sitofp i32 %264 to double
  %266 = load ptr, ptr %8, align 8, !tbaa !5
  %267 = load i32, ptr %39, align 4, !tbaa !9
  %268 = add nsw i32 %267, 1
  store i32 %268, ptr %39, align 4, !tbaa !9
  %269 = sext i32 %267 to i64
  %270 = getelementptr inbounds double, ptr %266, i64 %269
  store double %265, ptr %270, align 8, !tbaa !19
  %271 = load ptr, ptr %41, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct._IPoint, ptr %271, i32 0, i32 5
  %273 = load i32, ptr %272, align 4, !tbaa !16
  %274 = sitofp i32 %273 to double
  %275 = load ptr, ptr %8, align 8, !tbaa !5
  %276 = load i32, ptr %39, align 4, !tbaa !9
  %277 = add nsw i32 %276, 1
  store i32 %277, ptr %39, align 4, !tbaa !9
  %278 = sext i32 %276 to i64
  %279 = getelementptr inbounds double, ptr %275, i64 %278
  store double %274, ptr %279, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  br label %280

280:                                              ; preds = %221
  %281 = load i32, ptr %37, align 4, !tbaa !9
  %282 = add nsw i32 %281, 1
  store i32 %282, ptr %37, align 4, !tbaa !9
  br label %218, !llvm.loop !21

283:                                              ; preds = %218
  br label %284

284:                                              ; preds = %283
  %285 = load i32, ptr %9, align 4, !tbaa !9
  %286 = add nsw i32 %285, 1
  store i32 %286, ptr %9, align 4, !tbaa !9
  br label %214, !llvm.loop !22

287:                                              ; preds = %214
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 448, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  %288 = load ptr, ptr %18, align 8
  call void @llvm.stackrestore.p0(ptr %288)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare i32 @IMAX(i32 noundef, i32 noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
attributes #3 = { inlinehint 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 }

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_IPointMatch", !6, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !13, i64 32, !10, i64 40, !10, i64 44, !10, i64 48}
!13 = !{!"double", !7, i64 0}
!14 = !{!15, !10, i64 16}
!15 = !{!"_IPoint", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !13, i64 40, !13, i64 48, !10, i64 56, !10, i64 60, !10, i64 64, !13, i64 72, !6, i64 80, !10, i64 88, !7, i64 92}
!16 = !{!15, !10, i64 20}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!13, !13, i64 0}
!20 = !{!12, !6, i64 8}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}


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

%struct._IPointMatch = type { ptr, ptr, ptr, double, double, i32, i32, i32 }

@__const.getHomographyPoints.idx = external hidden unnamed_addr constant [16 x [4 x i32]], align 16

; 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: inlinehint nounwind uwtable
declare i32 @iSquare(i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare i32 @IMIN(i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @get2ClosestPoints(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @getHomographyPoints(ptr noundef %0, i32 noundef %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #3 {
  %5 = alloca [8 x %struct._IPointMatch], align 16
  %6 = zext i32 %1 to i64
  %7 = alloca i32, i64 %6, align 16
  %8 = icmp sgt i32 %1, 0
  br i1 %8, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %4, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %4 ]
  %.098119 = phi i32 [ %13, %.lr.ph ], [ 0, %4 ]
  %.0104118 = phi i32 [ %16, %.lr.ph ], [ 0, %4 ]
  %.0105117 = phi i32 [ %18, %.lr.ph ], [ 0, %4 ]
  %.0106116 = phi i32 [ %20, %.lr.ph ], [ 0, %4 ]
  %.0107115 = phi i32 [ %22, %.lr.ph ], [ 1000, %4 ]
  %.0108114 = phi i32 [ %24, %.lr.ph ], [ 0, %4 ]
  %.0109113 = phi i32 [ %26, %.lr.ph ], [ 1000, %4 ]
  %.0110112 = phi i32 [ %28, %.lr.ph ], [ 0, %4 ]
  %9 = getelementptr inbounds %struct._IPointMatch, ptr %0, i64 %indvars.iv
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %10, i64 16
  %12 = load i32, ptr %11, align 8, !tbaa !12
  %13 = add nsw i32 %12, %.098119
  %14 = getelementptr inbounds i8, ptr %10, i64 20
  %15 = load i32, ptr %14, align 4, !tbaa !14
  %16 = add nsw i32 %15, %.0104118
  %17 = mul nsw i32 %15, %12
  %18 = add nsw i32 %17, %.0105117
  %19 = tail call i32 @iSquare(i32 noundef %12)
  %20 = add nsw i32 %19, %.0106116
  %21 = load i32, ptr %11, align 8, !tbaa !12
  %22 = tail call i32 @IMIN(i32 noundef %.0107115, i32 noundef %21)
  %23 = load i32, ptr %11, align 8, !tbaa !12
  %24 = tail call i32 @IMAX(i32 noundef %.0108114, i32 noundef %23)
  %25 = load i32, ptr %14, align 4, !tbaa !14
  %26 = tail call i32 @IMIN(i32 noundef %.0109113, i32 noundef %25)
  %27 = load i32, ptr %14, align 4, !tbaa !14
  %28 = tail call i32 @IMAX(i32 noundef %.0110112, i32 noundef %27)
  %29 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv
  store i32 0, ptr %29, align 4, !tbaa !15
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %6
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !16

._crit_edge:                                      ; preds = %.lr.ph, %4
  %.0110.lcssa = phi i32 [ 0, %4 ], [ %28, %.lr.ph ]
  %.0109.lcssa = phi i32 [ 1000, %4 ], [ %26, %.lr.ph ]
  %.0108.lcssa = phi i32 [ 0, %4 ], [ %24, %.lr.ph ]
  %.0107.lcssa = phi i32 [ 1000, %4 ], [ %22, %.lr.ph ]
  %.0106.lcssa = phi i32 [ 0, %4 ], [ %20, %.lr.ph ]
  %.0105.lcssa = phi i32 [ 0, %4 ], [ %18, %.lr.ph ]
  %.0104.lcssa = phi i32 [ 0, %4 ], [ %16, %.lr.ph ]
  %.098.lcssa = phi i32 [ 0, %4 ], [ %13, %.lr.ph ]
  %30 = mul nsw i32 %.0105.lcssa, %1
  %31 = mul nsw i32 %.098.lcssa, %.0104.lcssa
  %32 = sub nsw i32 %30, %31
  %33 = sitofp i32 %32 to double
  %34 = mul nsw i32 %.0106.lcssa, %1
  %35 = mul nsw i32 %.098.lcssa, %.098.lcssa
  %36 = sub nsw i32 %34, %35
  %37 = sitofp i32 %36 to double
  %38 = fdiv double %33, %37
  %39 = sitofp i32 %.0104.lcssa to double
  %40 = sitofp i32 %.098.lcssa to double
  %41 = fneg double %38
  %42 = tail call double @llvm.fmuladd.f64(double %41, double %40, double %39)
  %43 = sitofp i32 %1 to double
  %44 = fdiv double %42, %43
  %45 = fdiv double -1.000000e+00, %38
  %46 = sitofp i32 %.0107.lcssa to double
  %47 = tail call double @llvm.fmuladd.f64(double %38, double %46, double %44)
  %48 = fptosi double %47 to i32
  %49 = sitofp i32 %.0108.lcssa to double
  %50 = tail call double @llvm.fmuladd.f64(double %38, double %49, double %44)
  %51 = fptosi double %50 to i32
  %52 = add nsw i32 %.0107.lcssa, %.0108.lcssa
  %53 = sitofp i32 %52 to double
  %54 = fmul double %53, 5.000000e-01
  %55 = fptosi double %54 to i32
  %56 = add nsw i32 %48, %51
  %57 = sitofp i32 %56 to double
  %58 = fmul double %57, 5.000000e-01
  %59 = fptosi double %58 to i32
  %60 = sitofp i32 %59 to double
  %61 = sitofp i32 %55 to double
  %62 = fneg double %45
  %63 = tail call double @llvm.fmuladd.f64(double %62, double %61, double %60)
  %64 = sitofp i32 %.0109.lcssa to double
  %65 = fdiv double %64, %45
  %66 = fdiv double %63, %45
  %67 = fsub double %65, %66
  %68 = fptosi double %67 to i32
  %69 = sitofp i32 %.0110.lcssa to double
  %70 = fdiv double %69, %45
  %71 = fsub double %70, %66
  %72 = fptosi double %71 to i32
  call void @llvm.lifetime.start.p0(i64 448, ptr nonnull %5) #4
  call void @get2ClosestPoints(i32 noundef %68, i32 noundef %.0109.lcssa, ptr noundef %0, i32 noundef %1, ptr noundef nonnull %5, ptr noundef nonnull %7)
  %73 = getelementptr inbounds i8, ptr %5, i64 112
  call void @get2ClosestPoints(i32 noundef %72, i32 noundef %.0110.lcssa, ptr noundef %0, i32 noundef %1, ptr noundef nonnull %73, ptr noundef nonnull %7)
  %74 = getelementptr inbounds i8, ptr %5, i64 224
  call void @get2ClosestPoints(i32 noundef %.0107.lcssa, i32 noundef %48, ptr noundef %0, i32 noundef %1, ptr noundef nonnull %74, ptr noundef nonnull %7)
  %75 = getelementptr inbounds i8, ptr %5, i64 336
  call void @get2ClosestPoints(i32 noundef %.0108.lcssa, i32 noundef %51, ptr noundef %0, i32 noundef %1, ptr noundef nonnull %75, ptr noundef nonnull %7)
  br label %.preheader

.preheader:                                       ; preds = %._crit_edge, %.preheader
  %indvars.iv158 = phi i64 [ 0, %._crit_edge ], [ %indvars.iv.next159, %.preheader ]
  %indvars.iv156 = phi i64 [ 0, %._crit_edge ], [ %indvars.iv.next157, %.preheader ]
  %76 = getelementptr inbounds [16 x [4 x i32]], ptr @__const.getHomographyPoints.idx, i64 0, i64 %indvars.iv156, i64 0
  %77 = load i32, ptr %76, align 16, !tbaa !15
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [8 x %struct._IPointMatch], ptr %5, i64 0, i64 %78
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  %81 = getelementptr inbounds i8, ptr %79, i64 8
  %82 = load ptr, ptr %81, align 8, !tbaa !18
  %83 = getelementptr inbounds i8, ptr %80, i64 16
  %84 = getelementptr inbounds double, ptr %2, i64 %indvars.iv158
  %indvars.iv.next147 = or disjoint i64 %indvars.iv158, 2
  %85 = load <2 x i32>, ptr %83, align 8, !tbaa !15
  %86 = sitofp <2 x i32> %85 to <2 x double>
  store <2 x double> %86, ptr %84, align 8, !tbaa !19
  %87 = getelementptr inbounds i8, ptr %82, i64 16
  %88 = getelementptr inbounds double, ptr %3, i64 %indvars.iv158
  %89 = load <2 x i32>, ptr %87, align 8, !tbaa !15
  %90 = sitofp <2 x i32> %89 to <2 x double>
  store <2 x double> %90, ptr %88, align 8, !tbaa !19
  %91 = getelementptr inbounds [16 x [4 x i32]], ptr @__const.getHomographyPoints.idx, i64 0, i64 %indvars.iv156, i64 1
  %92 = load i32, ptr %91, align 4, !tbaa !15
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [8 x %struct._IPointMatch], ptr %5, i64 0, i64 %93
  %95 = load ptr, ptr %94, align 8, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %94, i64 8
  %97 = load ptr, ptr %96, align 8, !tbaa !18
  %98 = getelementptr inbounds i8, ptr %95, i64 16
  %99 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next147
  %indvars.iv.next147.1 = or disjoint i64 %indvars.iv158, 4
  %100 = load <2 x i32>, ptr %98, align 8, !tbaa !15
  %101 = sitofp <2 x i32> %100 to <2 x double>
  store <2 x double> %101, ptr %99, align 8, !tbaa !19
  %102 = getelementptr inbounds i8, ptr %97, i64 16
  %103 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next147
  %104 = load <2 x i32>, ptr %102, align 8, !tbaa !15
  %105 = sitofp <2 x i32> %104 to <2 x double>
  store <2 x double> %105, ptr %103, align 8, !tbaa !19
  %106 = getelementptr inbounds [16 x [4 x i32]], ptr @__const.getHomographyPoints.idx, i64 0, i64 %indvars.iv156, i64 2
  %107 = load i32, ptr %106, align 8, !tbaa !15
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [8 x %struct._IPointMatch], ptr %5, i64 0, i64 %108
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  %111 = getelementptr inbounds i8, ptr %109, i64 8
  %112 = load ptr, ptr %111, align 8, !tbaa !18
  %113 = getelementptr inbounds i8, ptr %110, i64 16
  %114 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next147.1
  %indvars.iv.next147.2 = or disjoint i64 %indvars.iv158, 6
  %115 = load <2 x i32>, ptr %113, align 8, !tbaa !15
  %116 = sitofp <2 x i32> %115 to <2 x double>
  store <2 x double> %116, ptr %114, align 8, !tbaa !19
  %117 = getelementptr inbounds i8, ptr %112, i64 16
  %118 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next147.1
  %119 = load <2 x i32>, ptr %117, align 8, !tbaa !15
  %120 = sitofp <2 x i32> %119 to <2 x double>
  store <2 x double> %120, ptr %118, align 8, !tbaa !19
  %121 = getelementptr inbounds [16 x [4 x i32]], ptr @__const.getHomographyPoints.idx, i64 0, i64 %indvars.iv156, i64 3
  %122 = load i32, ptr %121, align 4, !tbaa !15
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [8 x %struct._IPointMatch], ptr %5, i64 0, i64 %123
  %125 = load ptr, ptr %124, align 8, !tbaa !5
  %126 = getelementptr inbounds i8, ptr %124, i64 8
  %127 = load ptr, ptr %126, align 8, !tbaa !18
  %128 = getelementptr inbounds i8, ptr %125, i64 16
  %129 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next147.2
  %130 = load <2 x i32>, ptr %128, align 8, !tbaa !15
  %131 = sitofp <2 x i32> %130 to <2 x double>
  store <2 x double> %131, ptr %129, align 8, !tbaa !19
  %132 = getelementptr inbounds i8, ptr %127, i64 16
  %133 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next147.2
  %134 = load <2 x i32>, ptr %132, align 8, !tbaa !15
  %135 = sitofp <2 x i32> %134 to <2 x double>
  store <2 x double> %135, ptr %133, align 8, !tbaa !19
  %indvars.iv.next159 = add nuw nsw i64 %indvars.iv158, 8
  %indvars.iv.next157 = add nuw nsw i64 %indvars.iv156, 1
  %exitcond165.not = icmp eq i64 %indvars.iv.next157, 16
  br i1 %exitcond165.not, label %136, label %.preheader, !llvm.loop !20

136:                                              ; preds = %.preheader
  call void @llvm.lifetime.end.p0(i64 448, ptr nonnull %5) #4
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare i32 @IMAX(i32 noundef, i32 noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { inlinehint 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 = { 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 = { 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, !7, i64 0}
!6 = !{!"_IPointMatch", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 32, !11, i64 40, !11, i64 44, !11, i64 48}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !11, i64 16}
!13 = !{!"_IPoint", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !10, i64 40, !10, i64 48, !11, i64 56, !11, i64 60, !11, i64 64, !10, i64 72, !7, i64 80, !11, i64 88, !8, i64 92}
!14 = !{!13, !11, i64 20}
!15 = !{!11, !11, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!6, !7, i64 8}
!19 = !{!10, !10, i64 0}
!20 = distinct !{!20, !17}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass