; LLVM IR from niessner/Matterport :: code/gaps/pkgs/R2Shapes/R2Grid.ll (ZN6R2Grid18HarrisCornerFilterEid)

; 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.R2Grid = type { %class.R2Affine, %class.R2Affine, double, ptr, [2 x i32], i32, i32 }
%class.R2Affine = type <{ %class.R2Transformation, %class.R3Matrix, i32, [4 x i8] }>
%class.R2Transformation = type { ptr }
%class.R3Matrix = type { [3 x [3 x double]] }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208), i32 noundef, i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6R2Grid12SetGridValueEiid(ptr noundef nonnull align 8 dereferenceable(208), i32 noundef, i32 noundef, double noundef) #2 align 2

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

; Function Attrs: nounwind
declare double @exp(double noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6R2Grid5ClearEd(ptr noundef nonnull align 8 dereferenceable(208), double noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6R2Grid8GradientEi(ptr noundef nonnull align 8 dereferenceable(208), i32 noundef) #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6R2Grid18HarrisCornerFilterEid(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %1, double noundef %2) #6 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca double, align 8
  %7 = alloca %class.R2Grid, align 8
  %8 = alloca %class.R2Grid, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store double %2, ptr %6, align 8, !tbaa !11
  %30 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 208, ptr %7) #7
  call void @_ZN6R2GridC1ERKS_(ptr noundef nonnull align 8 dereferenceable(208) %7, ptr noundef nonnull align 8 dereferenceable(208) %30)
  call void @llvm.lifetime.start.p0(i64 208, ptr %8) #7
  invoke void @_ZN6R2GridC1ERKS_(ptr noundef nonnull align 8 dereferenceable(208) %8, ptr noundef nonnull align 8 dereferenceable(208) %30)
          to label %31 unwind label %46

31:                                               ; preds = %3
  invoke void @_ZN6R2Grid8GradientEi(ptr noundef nonnull align 8 dereferenceable(208) %7, i32 noundef 0)
          to label %32 unwind label %50

32:                                               ; preds = %31
  invoke void @_ZN6R2Grid8GradientEi(ptr noundef nonnull align 8 dereferenceable(208) %8, i32 noundef 1)
          to label %33 unwind label %50

33:                                               ; preds = %32
  call void @_ZN6R2Grid5ClearEd(ptr noundef nonnull align 8 dereferenceable(208) %30, double noundef -3.210000e+02)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %34 = load i32, ptr %5, align 4, !tbaa !9
  %35 = sitofp i32 %34 to double
  %36 = fmul double 5.000000e-01, %35
  %37 = load i32, ptr %5, align 4, !tbaa !9
  %38 = sitofp i32 %37 to double
  %39 = fmul double %36, %38
  store double %39, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %238, %33
  %41 = load i32, ptr %12, align 4, !tbaa !9
  %42 = invoke noundef i32 @_ZNK6R2Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(208) %30)
          to label %43 unwind label %54

43:                                               ; preds = %40
  %44 = icmp slt i32 %41, %42
  br i1 %44, label %58, label %45

45:                                               ; preds = %43
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %242

46:                                               ; preds = %3
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %9, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %10, align 4
  br label %244

50:                                               ; preds = %32, %31
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %9, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %10, align 4
  br label %243

54:                                               ; preds = %40
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %9, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %10, align 4
  br label %241

58:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %228, %58
  %60 = load i32, ptr %14, align 4, !tbaa !9
  %61 = invoke noundef i32 @_ZNK6R2Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(208) %30)
          to label %62 unwind label %65

62:                                               ; preds = %59
  %63 = icmp slt i32 %60, %61
  br i1 %63, label %69, label %64

64:                                               ; preds = %62
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %237

65:                                               ; preds = %76, %69, %59
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %9, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %10, align 4
  br label %236

69:                                               ; preds = %62
  %70 = load i32, ptr %12, align 4, !tbaa !9
  %71 = load i32, ptr %14, align 4, !tbaa !9
  %72 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %7, i32 noundef %70, i32 noundef %71)
          to label %73 unwind label %65

73:                                               ; preds = %69
  %74 = fcmp oeq double %72, -3.210000e+02
  br i1 %74, label %75, label %76

75:                                               ; preds = %73
  br label %228

76:                                               ; preds = %73
  %77 = load i32, ptr %12, align 4, !tbaa !9
  %78 = load i32, ptr %14, align 4, !tbaa !9
  %79 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %8, i32 noundef %77, i32 noundef %78)
          to label %80 unwind label %65

80:                                               ; preds = %76
  %81 = fcmp oeq double %79, -3.210000e+02
  br i1 %81, label %82, label %83

82:                                               ; preds = %80
  br label %228

83:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store double 0.000000e+00, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store double 0.000000e+00, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  store double 0.000000e+00, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %84 = load i32, ptr %5, align 4, !tbaa !9
  %85 = sub nsw i32 0, %84
  store i32 %85, ptr %18, align 4, !tbaa !9
  br label %86

86:                                               ; preds = %202, %83
  %87 = load i32, ptr %18, align 4, !tbaa !9
  %88 = load i32, ptr %5, align 4, !tbaa !9
  %89 = icmp sle i32 %87, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %86
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %206

91:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %92 = load i32, ptr %18, align 4, !tbaa !9
  %93 = load i32, ptr %18, align 4, !tbaa !9
  %94 = mul nsw i32 %92, %93
  store i32 %94, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %95 = load i32, ptr %12, align 4, !tbaa !9
  %96 = load i32, ptr %18, align 4, !tbaa !9
  %97 = add nsw i32 %95, %96
  store i32 %97, ptr %20, align 4, !tbaa !9
  %98 = load i32, ptr %20, align 4, !tbaa !9
  %99 = icmp slt i32 %98, 0
  br i1 %99, label %105, label %100

100:                                              ; preds = %91
  %101 = load i32, ptr %20, align 4, !tbaa !9
  %102 = invoke noundef i32 @_ZNK6R2Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(208) %30)
          to label %103 unwind label %106

103:                                              ; preds = %100
  %104 = icmp sge i32 %101, %102
  br i1 %104, label %105, label %110

105:                                              ; preds = %103, %91
  store i32 10, ptr %13, align 4
  br label %199

106:                                              ; preds = %100
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %9, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %10, align 4
  br label %205

110:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %111 = load i32, ptr %5, align 4, !tbaa !9
  %112 = sub nsw i32 0, %111
  store i32 %112, ptr %21, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %193, %110
  %114 = load i32, ptr %21, align 4, !tbaa !9
  %115 = load i32, ptr %5, align 4, !tbaa !9
  %116 = icmp sle i32 %114, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %113
  store i32 11, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %198

118:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %119 = load i32, ptr %21, align 4, !tbaa !9
  %120 = load i32, ptr %21, align 4, !tbaa !9
  %121 = mul nsw i32 %119, %120
  store i32 %121, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %122 = load i32, ptr %14, align 4, !tbaa !9
  %123 = load i32, ptr %21, align 4, !tbaa !9
  %124 = add nsw i32 %122, %123
  store i32 %124, ptr %23, align 4, !tbaa !9
  %125 = load i32, ptr %23, align 4, !tbaa !9
  %126 = icmp slt i32 %125, 0
  br i1 %126, label %132, label %127

127:                                              ; preds = %118
  %128 = load i32, ptr %23, align 4, !tbaa !9
  %129 = invoke noundef i32 @_ZNK6R2Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(208) %30)
          to label %130 unwind label %133

130:                                              ; preds = %127
  %131 = icmp sge i32 %128, %129
  br i1 %131, label %132, label %137

132:                                              ; preds = %130, %118
  store i32 13, ptr %13, align 4
  br label %190

133:                                              ; preds = %127
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %9, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %10, align 4
  br label %197

137:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %138 = load i32, ptr %20, align 4, !tbaa !9
  %139 = load i32, ptr %23, align 4, !tbaa !9
  %140 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %7, i32 noundef %138, i32 noundef %139)
          to label %141 unwind label %145

141:                                              ; preds = %137
  store double %140, ptr %24, align 8, !tbaa !11
  %142 = load double, ptr %24, align 8, !tbaa !11
  %143 = fcmp oeq double %142, -3.210000e+02
  br i1 %143, label %144, label %149

144:                                              ; preds = %141
  store i32 13, ptr %13, align 4
  br label %189

145:                                              ; preds = %137
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %9, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %10, align 4
  br label %196

149:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %150 = load i32, ptr %20, align 4, !tbaa !9
  %151 = load i32, ptr %23, align 4, !tbaa !9
  %152 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %8, i32 noundef %150, i32 noundef %151)
          to label %153 unwind label %157

153:                                              ; preds = %149
  store double %152, ptr %25, align 8, !tbaa !11
  %154 = load double, ptr %25, align 8, !tbaa !11
  %155 = fcmp oeq double %154, -3.210000e+02
  br i1 %155, label %156, label %161

156:                                              ; preds = %153
  store i32 13, ptr %13, align 4
  br label %188

157:                                              ; preds = %149
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %9, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %196

161:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %162 = load i32, ptr %19, align 4, !tbaa !9
  %163 = load i32, ptr %22, align 4, !tbaa !9
  %164 = add nsw i32 %162, %163
  %165 = sub nsw i32 0, %164
  %166 = sitofp i32 %165 to double
  %167 = load double, ptr %11, align 8, !tbaa !11
  %168 = fdiv double %166, %167
  %169 = call double @exp(double noundef %168) #7
  store double %169, ptr %26, align 8, !tbaa !11
  %170 = load double, ptr %26, align 8, !tbaa !11
  %171 = load double, ptr %24, align 8, !tbaa !11
  %172 = fmul double %170, %171
  %173 = load double, ptr %24, align 8, !tbaa !11
  %174 = load double, ptr %15, align 8, !tbaa !11
  %175 = call double @llvm.fmuladd.f64(double %172, double %173, double %174)
  store double %175, ptr %15, align 8, !tbaa !11
  %176 = load double, ptr %26, align 8, !tbaa !11
  %177 = load double, ptr %25, align 8, !tbaa !11
  %178 = fmul double %176, %177
  %179 = load double, ptr %25, align 8, !tbaa !11
  %180 = load double, ptr %16, align 8, !tbaa !11
  %181 = call double @llvm.fmuladd.f64(double %178, double %179, double %180)
  store double %181, ptr %16, align 8, !tbaa !11
  %182 = load double, ptr %26, align 8, !tbaa !11
  %183 = load double, ptr %24, align 8, !tbaa !11
  %184 = fmul double %182, %183
  %185 = load double, ptr %25, align 8, !tbaa !11
  %186 = load double, ptr %17, align 8, !tbaa !11
  %187 = call double @llvm.fmuladd.f64(double %184, double %185, double %186)
  store double %187, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  store i32 0, ptr %13, align 4
  br label %188

188:                                              ; preds = %161, %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %189

189:                                              ; preds = %188, %144
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %190

190:                                              ; preds = %189, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  %191 = load i32, ptr %13, align 4
  switch i32 %191, label %250 [
    i32 0, label %192
    i32 13, label %193
  ]

192:                                              ; preds = %190
  br label %193

193:                                              ; preds = %192, %190
  %194 = load i32, ptr %21, align 4, !tbaa !9
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %21, align 4, !tbaa !9
  br label %113, !llvm.loop !13

196:                                              ; preds = %157, %145
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %197

197:                                              ; preds = %196, %133
  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 %205

198:                                              ; preds = %117
  store i32 0, ptr %13, align 4
  br label %199

199:                                              ; preds = %198, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  %200 = load i32, ptr %13, align 4
  switch i32 %200, label %250 [
    i32 0, label %201
    i32 10, label %202
  ]

201:                                              ; preds = %199
  br label %202

202:                                              ; preds = %201, %199
  %203 = load i32, ptr %18, align 4, !tbaa !9
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %18, align 4, !tbaa !9
  br label %86, !llvm.loop !15

205:                                              ; preds = %197, %106
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %235

206:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %207 = load double, ptr %15, align 8, !tbaa !11
  %208 = load double, ptr %16, align 8, !tbaa !11
  %209 = load double, ptr %17, align 8, !tbaa !11
  %210 = load double, ptr %17, align 8, !tbaa !11
  %211 = fmul double %209, %210
  %212 = fneg double %211
  %213 = call double @llvm.fmuladd.f64(double %207, double %208, double %212)
  store double %213, ptr %27, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %214 = load double, ptr %15, align 8, !tbaa !11
  %215 = load double, ptr %16, align 8, !tbaa !11
  %216 = fadd double %214, %215
  store double %216, ptr %28, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %217 = load double, ptr %27, align 8, !tbaa !11
  %218 = load double, ptr %6, align 8, !tbaa !11
  %219 = load double, ptr %28, align 8, !tbaa !11
  %220 = fmul double %218, %219
  %221 = load double, ptr %28, align 8, !tbaa !11
  %222 = fneg double %220
  %223 = call double @llvm.fmuladd.f64(double %222, double %221, double %217)
  store double %223, ptr %29, align 8, !tbaa !11
  %224 = load i32, ptr %12, align 4, !tbaa !9
  %225 = load i32, ptr %14, align 4, !tbaa !9
  %226 = load double, ptr %29, align 8, !tbaa !11
  invoke void @_ZN6R2Grid12SetGridValueEiid(ptr noundef nonnull align 8 dereferenceable(208) %30, i32 noundef %224, i32 noundef %225, double noundef %226)
          to label %227 unwind label %231

227:                                              ; preds = %206
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %228

228:                                              ; preds = %227, %82, %75
  %229 = load i32, ptr %14, align 4, !tbaa !9
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %14, align 4, !tbaa !9
  br label %59, !llvm.loop !16

231:                                              ; preds = %206
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %9, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %235

235:                                              ; preds = %231, %205
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %236

236:                                              ; preds = %235, %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %241

237:                                              ; preds = %64
  br label %238

238:                                              ; preds = %237
  %239 = load i32, ptr %12, align 4, !tbaa !9
  %240 = add nsw i32 %239, 1
  store i32 %240, ptr %12, align 4, !tbaa !9
  br label %40, !llvm.loop !17

241:                                              ; preds = %236, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %243

242:                                              ; preds = %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @_ZN6R2GridD1Ev(ptr noundef nonnull align 8 dereferenceable(208) %8) #7
  call void @llvm.lifetime.end.p0(i64 208, ptr %8) #7
  call void @_ZN6R2GridD1Ev(ptr noundef nonnull align 8 dereferenceable(208) %7) #7
  call void @llvm.lifetime.end.p0(i64 208, ptr %7) #7
  ret void

243:                                              ; preds = %241, %50
  call void @_ZN6R2GridD1Ev(ptr noundef nonnull align 8 dereferenceable(208) %8) #7
  br label %244

244:                                              ; preds = %243, %46
  call void @llvm.lifetime.end.p0(i64 208, ptr %8) #7
  call void @_ZN6R2GridD1Ev(ptr noundef nonnull align 8 dereferenceable(208) %7) #7
  call void @llvm.lifetime.end.p0(i64 208, ptr %7) #7
  br label %245

245:                                              ; preds = %244
  %246 = load ptr, ptr %9, align 8
  %247 = load i32, ptr %10, align 4
  %248 = insertvalue { ptr, i32 } poison, ptr %246, 0
  %249 = insertvalue { ptr, i32 } %248, i32 %247, 1
  resume { ptr, i32 } %249

250:                                              ; preds = %199, %190
  unreachable
}

declare void @_ZN6R2GridC1ERKS_(ptr, ptr)

declare void @_ZN6R2GridD1Ev(ptr)

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !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"

%class.R2Grid = type { %class.R2Affine, %class.R2Affine, double, ptr, [2 x i32], i32, i32 }
%class.R2Affine = type <{ %class.R2Transformation, %class.R3Matrix, i32, [4 x i8] }>
%class.R2Transformation = type { ptr }
%class.R3Matrix = type { [3 x [3 x double]] }

declare i32 @__gxx_personality_v0(...)

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6R2Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(208)) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6R2Grid12SetGridValueEiid(ptr noundef nonnull align 8 dereferenceable(208), i32 noundef, i32 noundef, double noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6R2Grid5ClearEd(ptr noundef nonnull align 8 dereferenceable(208), double noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6R2Grid8GradientEi(ptr noundef nonnull align 8 dereferenceable(208), i32 noundef) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6R2Grid18HarrisCornerFilterEid(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %1, double noundef %2) local_unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %class.R2Grid, align 8
  %5 = alloca %class.R2Grid, align 8
  call void @llvm.lifetime.start.p0(i64 208, ptr nonnull %4) #8
  call void @_ZN6R2GridC1ERKS_(ptr noundef nonnull align 8 dereferenceable(208) %4, ptr noundef nonnull align 8 dereferenceable(208) %0)
  call void @llvm.lifetime.start.p0(i64 208, ptr nonnull %5) #8
  invoke void @_ZN6R2GridC1ERKS_(ptr noundef nonnull align 8 dereferenceable(208) %5, ptr noundef nonnull align 8 dereferenceable(208) %0)
          to label %6 unwind label %38

6:                                                ; preds = %3
  invoke void @_ZN6R2Grid8GradientEi(ptr noundef nonnull align 8 dereferenceable(208) %4, i32 noundef 0)
          to label %7 unwind label %40

7:                                                ; preds = %6
  invoke void @_ZN6R2Grid8GradientEi(ptr noundef nonnull align 8 dereferenceable(208) %5, i32 noundef 1)
          to label %8 unwind label %40

8:                                                ; preds = %7
  call void @_ZN6R2Grid5ClearEd(ptr noundef nonnull align 8 dereferenceable(208) %0, double noundef -3.210000e+02)
  %9 = sitofp i32 %1 to double
  %10 = fmul double %9, 5.000000e-01
  %11 = fmul double %10, %9
  %12 = call noundef i32 @_ZNK6R2Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(208) %0)
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.preheader105.lr.ph, label %._crit_edge144

.preheader105.lr.ph:                              ; preds = %8
  %14 = sub nsw i32 0, %1
  %.not125 = icmp slt i32 %1, 0
  %15 = fmul double %2, -0.000000e+00
  %16 = call double @llvm.fmuladd.f64(double %15, double 0.000000e+00, double 0.000000e+00)
  br i1 %.not125, label %.preheader105.us, label %.preheader105

.preheader105.us:                                 ; preds = %.preheader105.lr.ph, %._crit_edge.split141.us.us
  %.071142.us = phi i32 [ %19, %._crit_edge.split141.us.us ], [ 0, %.preheader105.lr.ph ]
  %17 = call noundef i32 @_ZNK6R2Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(208) %0)
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.lr.ph.us, label %._crit_edge.split141.us.us

._crit_edge.split141.us.us:                       ; preds = %30, %.preheader105.us
  %19 = add nuw nsw i32 %.071142.us, 1
  %20 = call noundef i32 @_ZNK6R2Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(208) %0)
  %21 = icmp slt i32 %19, %20
  br i1 %21, label %.preheader105.us, label %._crit_edge144, !llvm.loop !5

.lr.ph.us:                                        ; preds = %.preheader105.us, %30
  %.072136.us.us = phi i32 [ %31, %30 ], [ 0, %.preheader105.us ]
  %22 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %4, i32 noundef %.071142.us, i32 noundef %.072136.us.us)
          to label %23 unwind label %.split.us.split.us

23:                                               ; preds = %.lr.ph.us
  %24 = fcmp oeq double %22, -3.210000e+02
  br i1 %24, label %30, label %25

25:                                               ; preds = %23
  %26 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %5, i32 noundef %.071142.us, i32 noundef %.072136.us.us)
          to label %27 unwind label %.split.us.split.us

27:                                               ; preds = %25
  %28 = fcmp oeq double %26, -3.210000e+02
  br i1 %28, label %30, label %29

29:                                               ; preds = %27
  invoke void @_ZN6R2Grid12SetGridValueEiid(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %.071142.us, i32 noundef %.072136.us.us, double noundef %16)
          to label %30 unwind label %.split138.us.split.us

30:                                               ; preds = %29, %27, %23
  %31 = add nuw nsw i32 %.072136.us.us, 1
  %32 = call noundef i32 @_ZNK6R2Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(208) %0)
  %33 = icmp slt i32 %31, %32
  br i1 %33, label %.lr.ph.us, label %._crit_edge.split141.us.us, !llvm.loop !7

.split.us.split.us:                               ; preds = %25, %.lr.ph.us
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %111

.split138.us.split.us:                            ; preds = %29
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %111

.preheader105:                                    ; preds = %.preheader105.lr.ph, %._crit_edge.split141
  %.071142 = phi i32 [ %42, %._crit_edge.split141 ], [ 0, %.preheader105.lr.ph ]
  %36 = call noundef i32 @_ZNK6R2Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(208) %0)
  %37 = icmp sgt i32 %36, 0
  br i1 %37, label %.lr.ph, label %._crit_edge.split141

._crit_edge144:                                   ; preds = %._crit_edge.split141, %._crit_edge.split141.us.us, %8
  call void @_ZN6R2GridD1Ev(ptr noundef nonnull align 8 dereferenceable(208) %5) #8
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %5) #8
  call void @_ZN6R2GridD1Ev(ptr noundef nonnull align 8 dereferenceable(208) %4) #8
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %4) #8
  ret void

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

40:                                               ; preds = %7, %6
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %111

._crit_edge.split141:                             ; preds = %106, %.preheader105
  %42 = add nuw nsw i32 %.071142, 1
  %43 = call noundef i32 @_ZNK6R2Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(208) %0)
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %.preheader105, label %._crit_edge144, !llvm.loop !5

.split:                                           ; preds = %49, %.lr.ph
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %111

.lr.ph:                                           ; preds = %.preheader105, %106
  %.072136 = phi i32 [ %107, %106 ], [ 0, %.preheader105 ]
  %46 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %4, i32 noundef %.071142, i32 noundef %.072136)
          to label %47 unwind label %.split

47:                                               ; preds = %.lr.ph
  %48 = fcmp oeq double %46, -3.210000e+02
  br i1 %48, label %106, label %49

49:                                               ; preds = %47
  %50 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %5, i32 noundef %.071142, i32 noundef %.072136)
          to label %51 unwind label %.split

51:                                               ; preds = %49
  %52 = fcmp oeq double %50, -3.210000e+02
  br i1 %52, label %106, label %.lr.ph130

._crit_edge.split:                                ; preds = %..loopexit_crit_edge
  %53 = extractelement <2 x double> %104, i64 0
  %54 = fneg double %53
  %55 = fmul double %53, %54
  %56 = extractelement <2 x double> %104, i64 1
  %57 = call double @llvm.fmuladd.f64(double %.5, double %56, double %55)
  %58 = fadd double %56, %.5
  %59 = fneg double %58
  %60 = fmul double %59, %2
  %61 = call double @llvm.fmuladd.f64(double %60, double %58, double %57)
  invoke void @_ZN6R2Grid12SetGridValueEiid(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %.071142, i32 noundef %.072136, double noundef %61)
          to label %106 unwind label %.split138

.lr.ph130:                                        ; preds = %51, %..loopexit_crit_edge
  %.073129 = phi double [ %.5, %..loopexit_crit_edge ], [ 0.000000e+00, %51 ]
  %.091126 = phi i32 [ %105, %..loopexit_crit_edge ], [ %14, %51 ]
  %62 = phi <2 x double> [ %104, %..loopexit_crit_edge ], [ zeroinitializer, %51 ]
  %63 = mul nsw i32 %.091126, %.091126
  %64 = add nsw i32 %.091126, %.071142
  %65 = icmp slt i32 %64, 0
  br i1 %65, label %..loopexit_crit_edge, label %66

66:                                               ; preds = %.lr.ph130
  %67 = call noundef i32 @_ZNK6R2Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(208) %0)
  %.not97 = icmp slt i32 %64, %67
  br i1 %.not97, label %.preheader, label %..loopexit_crit_edge

.preheader:                                       ; preds = %66, %101
  %.174122 = phi double [ %.477, %101 ], [ %.073129, %66 ]
  %.090119 = phi i32 [ %103, %101 ], [ %14, %66 ]
  %68 = phi <2 x double> [ %102, %101 ], [ %62, %66 ]
  %69 = mul nsw i32 %.090119, %.090119
  %70 = add nsw i32 %.090119, %.072136
  %71 = icmp slt i32 %70, 0
  br i1 %71, label %101, label %72

72:                                               ; preds = %.preheader
  %73 = call noundef i32 @_ZNK6R2Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(208) %0)
  %.not99 = icmp slt i32 %70, %73
  br i1 %.not99, label %74, label %101

74:                                               ; preds = %72
  %75 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %4, i32 noundef %64, i32 noundef %70)
          to label %76 unwind label %78

76:                                               ; preds = %74
  %77 = fcmp oeq double %75, -3.210000e+02
  br i1 %77, label %101, label %80

78:                                               ; preds = %74
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %111

80:                                               ; preds = %76
  %81 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %5, i32 noundef %64, i32 noundef %70)
          to label %82 unwind label %84

82:                                               ; preds = %80
  %83 = fcmp oeq double %81, -3.210000e+02
  br i1 %83, label %101, label %86

84:                                               ; preds = %80
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %111

86:                                               ; preds = %82
  %87 = add nuw nsw i32 %63, %69
  %88 = sub nsw i32 0, %87
  %89 = sitofp i32 %88 to double
  %90 = fdiv double %89, %11
  %91 = call double @exp(double noundef %90) #8
  %92 = insertelement <2 x double> poison, double %75, i64 0
  %93 = insertelement <2 x double> %92, double %81, i64 1
  %94 = insertelement <2 x double> poison, double %91, i64 0
  %95 = shufflevector <2 x double> %94, <2 x double> poison, <2 x i32> zeroinitializer
  %96 = fmul <2 x double> %93, %95
  %97 = extractelement <2 x double> %96, i64 0
  %98 = call double @llvm.fmuladd.f64(double %97, double %75, double %.174122)
  %99 = shufflevector <2 x double> %93, <2 x double> poison, <2 x i32> <i32 1, i32 1>
  %100 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %96, <2 x double> %99, <2 x double> %68)
  br label %101

101:                                              ; preds = %76, %82, %86, %.preheader, %72
  %.477 = phi double [ %.174122, %72 ], [ %.174122, %.preheader ], [ %.174122, %76 ], [ %98, %86 ], [ %.174122, %82 ]
  %102 = phi <2 x double> [ %68, %72 ], [ %68, %.preheader ], [ %68, %76 ], [ %100, %86 ], [ %68, %82 ]
  %103 = add i32 %.090119, 1
  %exitcond.not = icmp eq i32 %.090119, %1
  br i1 %exitcond.not, label %..loopexit_crit_edge, label %.preheader, !llvm.loop !8

..loopexit_crit_edge:                             ; preds = %101, %.lr.ph130, %66
  %.5 = phi double [ %.073129, %66 ], [ %.073129, %.lr.ph130 ], [ %.477, %101 ]
  %104 = phi <2 x double> [ %62, %66 ], [ %62, %.lr.ph130 ], [ %102, %101 ]
  %105 = add i32 %.091126, 1
  %exitcond148.not = icmp eq i32 %.091126, %1
  br i1 %exitcond148.not, label %._crit_edge.split, label %.lr.ph130, !llvm.loop !9

106:                                              ; preds = %._crit_edge.split, %51, %47
  %107 = add nuw nsw i32 %.072136, 1
  %108 = call noundef i32 @_ZNK6R2Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(208) %0)
  %109 = icmp slt i32 %107, %108
  br i1 %109, label %.lr.ph, label %._crit_edge.split141, !llvm.loop !7

.split138:                                        ; preds = %._crit_edge.split
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %111

111:                                              ; preds = %.split138, %.split138.us.split.us, %.split, %.split.us.split.us, %78, %84, %40
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %41, %40 ], [ %85, %84 ], [ %79, %78 ], [ %45, %.split ], [ %34, %.split.us.split.us ], [ %110, %.split138 ], [ %35, %.split138.us.split.us ]
  call void @_ZN6R2GridD1Ev(ptr noundef nonnull align 8 dereferenceable(208) %5) #8
  br label %112

112:                                              ; preds = %111, %38
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %111 ], [ %39, %38 ]
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %5) #8
  call void @_ZN6R2GridD1Ev(ptr noundef nonnull align 8 dereferenceable(208) %4) #8
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %4) #8
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

declare void @_ZN6R2GridC1ERKS_(ptr, ptr) local_unnamed_addr

declare void @_ZN6R2GridD1Ev(ptr) local_unnamed_addr

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

attributes #0 = { mustprogress 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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}


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