; LLVM IR from Xingyu-Lin/softgym :: PyFlex/core/sdf.ll (Z7MakeSDFPKjjjPf)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<(anonymous namespace)::Coord2D, std::allocator<(anonymous namespace)::Coord2D>>::_Vector_impl" }
%"struct.std::_Vector_base<(anonymous namespace)::Coord2D, std::allocator<(anonymous namespace)::Coord2D>>::_Vector_impl" = type { %"struct.std::_Vector_base<(anonymous namespace)::Coord2D, std::allocator<(anonymous namespace)::Coord2D>>::_Vector_impl_data" }
%"struct.std::_Vector_base<(anonymous namespace)::Coord2D, std::allocator<(anonymous namespace)::Coord2D>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.(anonymous namespace)::Coord2D" = type { i32, i32, float, i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [72 x i8], align 1
@__PRETTY_FUNCTION__._Z7MakeSDFPKjjjPf = external hidden unnamed_addr constant [60 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7MakeSDFPKjjjPf(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca float, align 4
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"struct.(anonymous namespace)::Coord2D", align 4
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"struct.(anonymous namespace)::Coord2D", align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %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 i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca float, align 4
  %39 = alloca %"struct.(anonymous namespace)::Coord2D", align 4
  %40 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %41 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %45 = load i32, ptr %44, align 4, !tbaa !9
  %46 = uitofp i32 %45 to float
  %47 = fdiv float 1.000000e+00, %46
  store float %47, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #8
  call void @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %100, %4
  %49 = load i32, ptr %11, align 4, !tbaa !9
  %50 = load i32, ptr %7, align 4, !tbaa !9
  %51 = icmp ult i32 %49, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %48
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %103

53:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %95, %53
  %55 = load i32, ptr %13, align 4, !tbaa !9
  %56 = load i32, ptr %6, align 4, !tbaa !9
  %57 = icmp ult i32 %55, %56
  br i1 %57, label %59, label %58

58:                                               ; preds = %54
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %99

59:                                               ; preds = %54
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = load i32, ptr %6, align 4, !tbaa !9
  %62 = load i32, ptr %7, align 4, !tbaa !9
  %63 = load i32, ptr %13, align 4, !tbaa !9
  %64 = load i32, ptr %11, align 4, !tbaa !9
  %65 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_110EdgeDetectEPKjjjii(ptr noundef %60, i32 noundef %61, i32 noundef %62, i32 noundef %63, i32 noundef %64)
          to label %66 unwind label %78

66:                                               ; preds = %59
  br i1 %65, label %67, label %86

67:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 20, ptr %16) #8
  %68 = getelementptr inbounds %"struct.(anonymous namespace)::Coord2D", ptr %16, i32 0, i32 0
  %69 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %69, ptr %68, align 4, !tbaa !13
  %70 = getelementptr inbounds %"struct.(anonymous namespace)::Coord2D", ptr %16, i32 0, i32 1
  %71 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %71, ptr %70, align 4, !tbaa !15
  %72 = getelementptr inbounds %"struct.(anonymous namespace)::Coord2D", ptr %16, i32 0, i32 2
  store float 0.000000e+00, ptr %72, align 4, !tbaa !16
  %73 = getelementptr inbounds %"struct.(anonymous namespace)::Coord2D", ptr %16, i32 0, i32 3
  %74 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %74, ptr %73, align 4, !tbaa !17
  %75 = getelementptr inbounds %"struct.(anonymous namespace)::Coord2D", ptr %16, i32 0, i32 4
  %76 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %76, ptr %75, align 4, !tbaa !18
  invoke void @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(20) %16)
          to label %77 unwind label %82

77:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 20, ptr %16) #8
  br label %86

78:                                               ; preds = %59
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %14, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %15, align 4
  br label %98

82:                                               ; preds = %67
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %14, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 20, ptr %16) #8
  br label %98

86:                                               ; preds = %77, %66
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = load i32, ptr %11, align 4, !tbaa !9
  %89 = load i32, ptr %6, align 4, !tbaa !9
  %90 = mul i32 %88, %89
  %91 = load i32, ptr %13, align 4, !tbaa !9
  %92 = add i32 %90, %91
  %93 = zext i32 %92 to i64
  %94 = getelementptr inbounds float, ptr %87, i64 %93
  store float 0x47EFFFFFE0000000, ptr %94, align 4, !tbaa !11
  br label %95

95:                                               ; preds = %86
  %96 = load i32, ptr %13, align 4, !tbaa !9
  %97 = add i32 %96, 1
  store i32 %97, ptr %13, align 4, !tbaa !9
  br label %54, !llvm.loop !19

98:                                               ; preds = %82, %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %340

99:                                               ; preds = %58
  br label %100

100:                                              ; preds = %99
  %101 = load i32, ptr %11, align 4, !tbaa !9
  %102 = add i32 %101, 1
  store i32 %102, ptr %11, align 4, !tbaa !9
  br label %48, !llvm.loop !21

103:                                              ; preds = %52
  %104 = call ptr @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %105 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %104, ptr %105, align 8
  %106 = call ptr @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %107 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %106, ptr %107, align 8
  %108 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8
  %110 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8
  invoke void @_ZSt9make_heapIN9__gnu_cxx17__normal_iteratorIPN12_GLOBAL__N_17Coord2DESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %109, ptr %111)
          to label %112 unwind label %186

112:                                              ; preds = %103
  br label %113

113:                                              ; preds = %280, %112
  %114 = call noundef zeroext i1 @_ZNKSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %115 = xor i1 %114, true
  br i1 %115, label %116, label %281

116:                                              ; preds = %113
  %117 = call ptr @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %118 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %117, ptr %118, align 8
  %119 = call ptr @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %120 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %119, ptr %120, align 8
  %121 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8
  %123 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8
  invoke void @_ZSt8pop_heapIN9__gnu_cxx17__normal_iteratorIPN12_GLOBAL__N_17Coord2DESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %122, ptr %124)
          to label %125 unwind label %186

125:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 20, ptr %21) #8
  %126 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %126, i64 20, i1 false), !tbaa.struct !22
  call void @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.(anonymous namespace)::Coord2D", ptr %21, i32 0, i32 1
  %129 = load i32, ptr %128, align 4, !tbaa !15
  %130 = load i32, ptr %6, align 4, !tbaa !9
  %131 = mul i32 %129, %130
  %132 = getelementptr inbounds %"struct.(anonymous namespace)::Coord2D", ptr %21, i32 0, i32 0
  %133 = load i32, ptr %132, align 4, !tbaa !13
  %134 = add i32 %131, %133
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds float, ptr %127, i64 %135
  %137 = load float, ptr %136, align 4, !tbaa !11
  %138 = fcmp oeq float %137, 0x47EFFFFFE0000000
  br i1 %138, label %139, label %280

139:                                              ; preds = %125
  %140 = getelementptr inbounds %"struct.(anonymous namespace)::Coord2D", ptr %21, i32 0, i32 2
  %141 = load float, ptr %140, align 4, !tbaa !16
  %142 = load ptr, ptr %8, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.(anonymous namespace)::Coord2D", ptr %21, i32 0, i32 1
  %144 = load i32, ptr %143, align 4, !tbaa !15
  %145 = load i32, ptr %6, align 4, !tbaa !9
  %146 = mul i32 %144, %145
  %147 = getelementptr inbounds %"struct.(anonymous namespace)::Coord2D", ptr %21, i32 0, i32 0
  %148 = load i32, ptr %147, align 4, !tbaa !13
  %149 = add i32 %146, %148
  %150 = zext i32 %149 to i64
  %151 = getelementptr inbounds float, ptr %142, i64 %150
  store float %141, ptr %151, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %152 = getelementptr inbounds %"struct.(anonymous namespace)::Coord2D", ptr %21, i32 0, i32 0
  %153 = load i32, ptr %152, align 4, !tbaa !13
  %154 = sub nsw i32 %153, 1
  store i32 %154, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  store i32 0, ptr %24, align 4, !tbaa !9
  %155 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %156 unwind label %190

156:                                              ; preds = %139
  %157 = load i32, ptr %155, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  store i32 %157, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %158 = getelementptr inbounds %"struct.(anonymous namespace)::Coord2D", ptr %21, i32 0, i32 0
  %159 = load i32, ptr %158, align 4, !tbaa !13
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %161 = load i32, ptr %6, align 4, !tbaa !9
  %162 = sub i32 %161, 1
  store i32 %162, ptr %27, align 4, !tbaa !9
  %163 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %164 unwind label %194

164:                                              ; preds = %156
  %165 = load i32, ptr %163, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  store i32 %165, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %166 = getelementptr inbounds %"struct.(anonymous namespace)::Coord2D", ptr %21, i32 0, i32 1
  %167 = load i32, ptr %166, align 4, !tbaa !15
  %168 = sub nsw i32 %167, 1
  store i32 %168, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  store i32 0, ptr %30, align 4, !tbaa !9
  %169 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %30)
          to label %170 unwind label %198

170:                                              ; preds = %164
  %171 = load i32, ptr %169, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  store i32 %171, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  %172 = getelementptr inbounds %"struct.(anonymous namespace)::Coord2D", ptr %21, i32 0, i32 1
  %173 = load i32, ptr %172, align 4, !tbaa !15
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  %175 = load i32, ptr %7, align 4, !tbaa !9
  %176 = sub i32 %175, 1
  store i32 %176, ptr %33, align 4, !tbaa !9
  %177 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %32, ptr noundef nonnull align 4 dereferenceable(4) %33)
          to label %178 unwind label %202

178:                                              ; preds = %170
  %179 = load i32, ptr %177, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  store i32 %179, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %180 = load i32, ptr %28, align 4, !tbaa !9
  store i32 %180, ptr %34, align 4, !tbaa !9
  br label %181

181:                                              ; preds = %272, %178
  %182 = load i32, ptr %34, align 4, !tbaa !9
  %183 = load i32, ptr %31, align 4, !tbaa !9
  %184 = icmp sle i32 %182, %183
  br i1 %184, label %206, label %185

185:                                              ; preds = %181
  store i32 10, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %275

186:                                              ; preds = %116, %103
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %14, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %15, align 4
  br label %340

190:                                              ; preds = %139
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %14, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %279

194:                                              ; preds = %156
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %14, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %278

198:                                              ; preds = %164
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %14, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %277

202:                                              ; preds = %170
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %14, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  br label %276

206:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  %207 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %207, ptr %35, align 4, !tbaa !9
  br label %208

208:                                              ; preds = %268, %206
  %209 = load i32, ptr %35, align 4, !tbaa !9
  %210 = load i32, ptr %25, align 4, !tbaa !9
  %211 = icmp sle i32 %209, %210
  br i1 %211, label %213, label %212

212:                                              ; preds = %208
  store i32 13, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %271

213:                                              ; preds = %208
  %214 = getelementptr inbounds %"struct.(anonymous namespace)::Coord2D", ptr %21, i32 0, i32 0
  %215 = load i32, ptr %214, align 4, !tbaa !13
  %216 = load i32, ptr %35, align 4, !tbaa !9
  %217 = icmp ne i32 %215, %216
  br i1 %217, label %223, label %218

218:                                              ; preds = %213
  %219 = getelementptr inbounds %"struct.(anonymous namespace)::Coord2D", ptr %21, i32 0, i32 1
  %220 = load i32, ptr %219, align 4, !tbaa !15
  %221 = load i32, ptr %34, align 4, !tbaa !9
  %222 = icmp ne i32 %220, %221
  br i1 %222, label %223, label %267

223:                                              ; preds = %218, %213
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  %224 = load i32, ptr %35, align 4, !tbaa !9
  %225 = getelementptr inbounds %"struct.(anonymous namespace)::Coord2D", ptr %21, i32 0, i32 3
  %226 = load i32, ptr %225, align 4, !tbaa !17
  %227 = sub nsw i32 %224, %226
  store i32 %227, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  %228 = load i32, ptr %34, align 4, !tbaa !9
  %229 = getelementptr inbounds %"struct.(anonymous namespace)::Coord2D", ptr %21, i32 0, i32 4
  %230 = load i32, ptr %229, align 4, !tbaa !18
  %231 = sub nsw i32 %228, %230
  store i32 %231, ptr %37, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  %232 = load i32, ptr %36, align 4, !tbaa !9
  %233 = load i32, ptr %36, align 4, !tbaa !9
  %234 = mul nsw i32 %232, %233
  %235 = load i32, ptr %37, align 4, !tbaa !9
  %236 = load i32, ptr %37, align 4, !tbaa !9
  %237 = mul nsw i32 %235, %236
  %238 = add nsw i32 %234, %237
  %239 = sitofp i32 %238 to float
  %240 = call float @sqrtf(float noundef %239) #8
  store float %240, ptr %38, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 20, ptr %39) #8
  %241 = getelementptr inbounds %"struct.(anonymous namespace)::Coord2D", ptr %39, i32 0, i32 0
  %242 = load i32, ptr %35, align 4, !tbaa !9
  store i32 %242, ptr %241, align 4, !tbaa !13
  %243 = getelementptr inbounds %"struct.(anonymous namespace)::Coord2D", ptr %39, i32 0, i32 1
  %244 = load i32, ptr %34, align 4, !tbaa !9
  store i32 %244, ptr %243, align 4, !tbaa !15
  %245 = getelementptr inbounds %"struct.(anonymous namespace)::Coord2D", ptr %39, i32 0, i32 2
  %246 = load float, ptr %38, align 4, !tbaa !11
  store float %246, ptr %245, align 4, !tbaa !16
  %247 = getelementptr inbounds %"struct.(anonymous namespace)::Coord2D", ptr %39, i32 0, i32 3
  %248 = getelementptr inbounds %"struct.(anonymous namespace)::Coord2D", ptr %21, i32 0, i32 3
  %249 = load i32, ptr %248, align 4, !tbaa !17
  store i32 %249, ptr %247, align 4, !tbaa !17
  %250 = getelementptr inbounds %"struct.(anonymous namespace)::Coord2D", ptr %39, i32 0, i32 4
  %251 = getelementptr inbounds %"struct.(anonymous namespace)::Coord2D", ptr %21, i32 0, i32 4
  %252 = load i32, ptr %251, align 4, !tbaa !18
  store i32 %252, ptr %250, align 4, !tbaa !18
  invoke void @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(20) %39)
          to label %253 unwind label %263

253:                                              ; preds = %223
  %254 = call ptr @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %255 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %40, i32 0, i32 0
  store ptr %254, ptr %255, align 8
  %256 = call ptr @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %257 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %41, i32 0, i32 0
  store ptr %256, ptr %257, align 8
  %258 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %40, i32 0, i32 0
  %259 = load ptr, ptr %258, align 8
  %260 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %41, i32 0, i32 0
  %261 = load ptr, ptr %260, align 8
  invoke void @_ZSt9push_heapIN9__gnu_cxx17__normal_iteratorIPN12_GLOBAL__N_17Coord2DESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %259, ptr %261)
          to label %262 unwind label %263

262:                                              ; preds = %253
  call void @llvm.lifetime.end.p0(i64 20, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %267

263:                                              ; preds = %253, %223
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %14, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 20, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %276

267:                                              ; preds = %262, %218
  br label %268

268:                                              ; preds = %267
  %269 = load i32, ptr %35, align 4, !tbaa !9
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %35, align 4, !tbaa !9
  br label %208, !llvm.loop !23

271:                                              ; preds = %212
  br label %272

272:                                              ; preds = %271
  %273 = load i32, ptr %34, align 4, !tbaa !9
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %34, align 4, !tbaa !9
  br label %181, !llvm.loop !24

275:                                              ; preds = %185
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %280

276:                                              ; preds = %263, %202
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %277

277:                                              ; preds = %276, %198
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %278

278:                                              ; preds = %277, %194
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %279

279:                                              ; preds = %278, %190
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 20, ptr %21) #8
  br label %340

280:                                              ; preds = %275, %125
  call void @llvm.lifetime.end.p0(i64 20, ptr %21) #8
  br label %113, !llvm.loop !25

281:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #8
  store i32 0, ptr %42, align 4, !tbaa !9
  br label %282

282:                                              ; preds = %336, %281
  %283 = load i32, ptr %42, align 4, !tbaa !9
  %284 = load i32, ptr %7, align 4, !tbaa !9
  %285 = icmp ult i32 %283, %284
  br i1 %285, label %287, label %286

286:                                              ; preds = %282
  store i32 16, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  br label %339

287:                                              ; preds = %282
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #8
  store i32 0, ptr %43, align 4, !tbaa !9
  br label %288

288:                                              ; preds = %332, %287
  %289 = load i32, ptr %43, align 4, !tbaa !9
  %290 = load i32, ptr %6, align 4, !tbaa !9
  %291 = icmp ult i32 %289, %290
  br i1 %291, label %293, label %292

292:                                              ; preds = %288
  store i32 19, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  br label %335

293:                                              ; preds = %288
  %294 = load ptr, ptr %8, align 8, !tbaa !5
  %295 = load i32, ptr %42, align 4, !tbaa !9
  %296 = load i32, ptr %6, align 4, !tbaa !9
  %297 = mul i32 %295, %296
  %298 = load i32, ptr %43, align 4, !tbaa !9
  %299 = add i32 %297, %298
  %300 = zext i32 %299 to i64
  %301 = getelementptr inbounds float, ptr %294, i64 %300
  %302 = load float, ptr %301, align 4, !tbaa !11
  %303 = fcmp olt float %302, 0x47EFFFFFE0000000
  br i1 %303, label %304, label %305

304:                                              ; preds = %293
  br label %307

305:                                              ; preds = %293
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 180, ptr noundef @__PRETTY_FUNCTION__._Z7MakeSDFPKjjjPf) #9
  unreachable

306:                                              ; No predecessors!
  br label %307

307:                                              ; preds = %306, %304
  %308 = load ptr, ptr %5, align 8, !tbaa !5
  %309 = load i32, ptr %42, align 4, !tbaa !9
  %310 = load i32, ptr %6, align 4, !tbaa !9
  %311 = mul i32 %309, %310
  %312 = load i32, ptr %43, align 4, !tbaa !9
  %313 = add i32 %311, %312
  %314 = zext i32 %313 to i64
  %315 = getelementptr inbounds i32, ptr %308, i64 %314
  %316 = load i32, ptr %315, align 4, !tbaa !9
  %317 = icmp ne i32 %316, 0
  %318 = zext i1 %317 to i64
  %319 = select i1 %317, float -1.000000e+00, float 1.000000e+00
  %320 = load float, ptr %9, align 4, !tbaa !11
  %321 = fmul float %319, %320
  %322 = load ptr, ptr %8, align 8, !tbaa !5
  %323 = load i32, ptr %42, align 4, !tbaa !9
  %324 = load i32, ptr %6, align 4, !tbaa !9
  %325 = mul i32 %323, %324
  %326 = load i32, ptr %43, align 4, !tbaa !9
  %327 = add i32 %325, %326
  %328 = zext i32 %327 to i64
  %329 = getelementptr inbounds float, ptr %322, i64 %328
  %330 = load float, ptr %329, align 4, !tbaa !11
  %331 = fmul float %330, %321
  store float %331, ptr %329, align 4, !tbaa !11
  br label %332

332:                                              ; preds = %307
  %333 = load i32, ptr %43, align 4, !tbaa !9
  %334 = add i32 %333, 1
  store i32 %334, ptr %43, align 4, !tbaa !9
  br label %288, !llvm.loop !26

335:                                              ; preds = %292
  br label %336

336:                                              ; preds = %335
  %337 = load i32, ptr %42, align 4, !tbaa !9
  %338 = add i32 %337, 1
  store i32 %338, ptr %42, align 4, !tbaa !9
  br label %282, !llvm.loop !27

339:                                              ; preds = %286
  call void @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  ret void

340:                                              ; preds = %279, %186, %98
  call void @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %341

341:                                              ; preds = %340
  %342 = load ptr, ptr %14, align 8
  %343 = load i32, ptr %15, align 4
  %344 = insertvalue { ptr, i32 } poison, ptr %342, 0
  %345 = insertvalue { ptr, i32 } %344, i32 %343, 1
  resume { ptr, i32 } %345
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_110EdgeDetectEPKjjjii(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare hidden void @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(20)) #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZSt9make_heapIN9__gnu_cxx17__normal_iteratorIPN12_GLOBAL__N_17Coord2DESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr, ptr) #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZNKSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZSt8pop_heapIN9__gnu_cxx17__normal_iteratorIPN12_GLOBAL__N_17Coord2DESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr, ptr) #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

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

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

; Function Attrs: nounwind
declare float @sqrtf(float noundef) #6

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZSt9push_heapIN9__gnu_cxx17__normal_iteratorIPN12_GLOBAL__N_17Coord2DESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr, ptr) #4

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #7

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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


; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<(anonymous namespace)::Coord2D, std::allocator<(anonymous namespace)::Coord2D>>::_Vector_impl" }
%"struct.std::_Vector_base<(anonymous namespace)::Coord2D, std::allocator<(anonymous namespace)::Coord2D>>::_Vector_impl" = type { %"struct.std::_Vector_base<(anonymous namespace)::Coord2D, std::allocator<(anonymous namespace)::Coord2D>>::_Vector_impl_data" }
%"struct.std::_Vector_base<(anonymous namespace)::Coord2D, std::allocator<(anonymous namespace)::Coord2D>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.(anonymous namespace)::Coord2D" = type { i32, i32, float, i32, i32 }

@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [72 x i8], align 1
@__PRETTY_FUNCTION__._Z7MakeSDFPKjjjPf = external hidden unnamed_addr constant [60 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7MakeSDFPKjjjPf(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr nocapture noundef %3) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"struct.(anonymous namespace)::Coord2D", align 4
  %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 %"struct.(anonymous namespace)::Coord2D", align 4
  store i32 %1, ptr %5, align 4, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !5
  %18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = uitofp i32 %19 to float
  %21 = fdiv float 1.000000e+00, %20
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  call void @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %22 = load i32, ptr %6, align 4, !tbaa !5
  %.not = icmp eq i32 %22, 0
  br i1 %.not, label %._crit_edge90, label %.preheader87.lr.ph

.preheader87.lr.ph:                               ; preds = %4
  %23 = getelementptr inbounds i8, ptr %8, i64 4
  %24 = getelementptr inbounds i8, ptr %8, i64 8
  %25 = getelementptr inbounds i8, ptr %8, i64 12
  %26 = getelementptr inbounds i8, ptr %8, i64 16
  %27 = load i32, ptr %5, align 4, !tbaa !5
  %.not106 = icmp eq i32 %27, 0
  br i1 %.not106, label %._crit_edge90, label %.preheader87

.preheader87:                                     ; preds = %.preheader87.lr.ph, %._crit_edge
  %28 = phi i32 [ %37, %._crit_edge ], [ %22, %.preheader87.lr.ph ]
  %29 = phi i32 [ %38, %._crit_edge ], [ %27, %.preheader87.lr.ph ]
  %.06789 = phi i32 [ %39, %._crit_edge ], [ 0, %.preheader87.lr.ph ]
  %.not107 = icmp eq i32 %29, 0
  br i1 %.not107, label %._crit_edge, label %.lr.ph

._crit_edge90:                                    ; preds = %._crit_edge, %.preheader87.lr.ph, %4
  %30 = call ptr @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %31 = call ptr @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  invoke void @_ZSt9make_heapIN9__gnu_cxx17__normal_iteratorIPN12_GLOBAL__N_17Coord2DESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %30, ptr %31)
          to label %.preheader85 unwind label %.loopexit.split-lp

.preheader85:                                     ; preds = %._crit_edge90
  %32 = call noundef zeroext i1 @_ZNKSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  br i1 %32, label %.preheader83, label %.lr.ph98

.lr.ph98:                                         ; preds = %.preheader85
  %33 = getelementptr inbounds i8, ptr %17, i64 4
  %34 = getelementptr inbounds i8, ptr %17, i64 8
  %35 = getelementptr inbounds i8, ptr %17, i64 12
  %36 = getelementptr inbounds i8, ptr %17, i64 16
  br label %76

._crit_edge.loopexit:                             ; preds = %51
  %.pre = load i32, ptr %6, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader87
  %37 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %28, %.preheader87 ]
  %38 = phi i32 [ %52, %._crit_edge.loopexit ], [ 0, %.preheader87 ]
  %39 = add nuw i32 %.06789, 1
  %40 = icmp ult i32 %39, %37
  br i1 %40, label %.preheader87, label %._crit_edge90, !llvm.loop !9

.lr.ph:                                           ; preds = %.preheader87, %51
  %41 = phi i32 [ %52, %51 ], [ %29, %.preheader87 ]
  %.06888 = phi i32 [ %57, %51 ], [ 0, %.preheader87 ]
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %43 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_110EdgeDetectEPKjjjii(ptr noundef %0, i32 noundef %41, i32 noundef %42, i32 noundef %.06888, i32 noundef %.06789)
          to label %44 unwind label %47

44:                                               ; preds = %.lr.ph
  br i1 %43, label %45, label %51

45:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %8) #7
  store i32 %.06888, ptr %8, align 4, !tbaa !12
  store i32 %.06789, ptr %23, align 4, !tbaa !15
  store float 0.000000e+00, ptr %24, align 4, !tbaa !16
  store i32 %.06888, ptr %25, align 4, !tbaa !17
  store i32 %.06789, ptr %26, align 4, !tbaa !18
  invoke void @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(20) %8)
          to label %46 unwind label %49

46:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %8) #7
  br label %51

47:                                               ; preds = %.lr.ph
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %132

49:                                               ; preds = %45
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %8) #7
  br label %132

51:                                               ; preds = %46, %44
  %52 = load i32, ptr %5, align 4, !tbaa !5
  %53 = mul i32 %52, %.06789
  %54 = add i32 %53, %.06888
  %55 = zext i32 %54 to i64
  %56 = getelementptr inbounds float, ptr %3, i64 %55
  store float 0x47EFFFFFE0000000, ptr %56, align 4, !tbaa !19
  %57 = add nuw i32 %.06888, 1
  %58 = icmp ult i32 %57, %52
  br i1 %58, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !20

.preheader83:                                     ; preds = %.loopexit, %.preheader85
  %59 = load i32, ptr %6, align 4, !tbaa !5
  %.not108 = icmp eq i32 %59, 0
  br i1 %.not108, label %._crit_edge103, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.preheader83
  %60 = load i32, ptr %5, align 4, !tbaa !5
  %.not109 = icmp eq i32 %60, 0
  %61 = fneg float %21
  br i1 %.not109, label %._crit_edge103, label %.preheader.us.preheader

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %wide.trip.count = zext i32 %60 to i64
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge101.us
  %.066102.us = phi i32 [ %75, %._crit_edge101.us ], [ 0, %.preheader.us.preheader ]
  %62 = mul i32 %60, %.066102.us
  br label %63

63:                                               ; preds = %.preheader.us, %70
  %indvars.iv = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next, %70 ]
  %64 = trunc nuw i64 %indvars.iv to i32
  %65 = add i32 %62, %64
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds float, ptr %3, i64 %66
  %68 = load float, ptr %67, align 4, !tbaa !19
  %69 = fcmp olt float %68, 0x47EFFFFFE0000000
  br i1 %69, label %70, label %.split105.us

70:                                               ; preds = %63
  %71 = getelementptr inbounds i32, ptr %0, i64 %66
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %.not.us = icmp eq i32 %72, 0
  %73 = select i1 %.not.us, float %21, float %61
  %74 = fmul float %68, %73
  store float %74, ptr %67, align 4, !tbaa !19
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond117.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond117.not, label %._crit_edge101.us, label %63, !llvm.loop !21

._crit_edge101.us:                                ; preds = %70
  %75 = add nuw i32 %.066102.us, 1
  %exitcond118.not = icmp eq i32 %75, %59
  br i1 %exitcond118.not, label %._crit_edge103, label %.preheader.us, !llvm.loop !22

76:                                               ; preds = %.lr.ph98, %.loopexit
  %77 = call ptr @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %78 = call ptr @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  invoke void @_ZSt8pop_heapIN9__gnu_cxx17__normal_iteratorIPN12_GLOBAL__N_17Coord2DESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %77, ptr %78)
          to label %79 unwind label %.loopexit86

79:                                               ; preds = %76
  %80 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %.sroa.029.0.copyload = load i32, ptr %80, align 4, !tbaa !5
  %.sroa.9.0..sroa_idx = getelementptr inbounds i8, ptr %80, i64 4
  %.sroa.9.0.copyload = load i32, ptr %.sroa.9.0..sroa_idx, align 4, !tbaa !5
  %.sroa.14.0..sroa_idx = getelementptr inbounds i8, ptr %80, i64 8
  %.sroa.14.0.copyload = load float, ptr %.sroa.14.0..sroa_idx, align 4, !tbaa !19
  %.sroa.15.0..sroa_idx = getelementptr inbounds i8, ptr %80, i64 12
  %.sroa.15.0.copyload = load i32, ptr %.sroa.15.0..sroa_idx, align 4, !tbaa !5
  %.sroa.17.0..sroa_idx = getelementptr inbounds i8, ptr %80, i64 16
  %.sroa.17.0.copyload = load i32, ptr %.sroa.17.0..sroa_idx, align 4, !tbaa !5
  call void @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %81 = load i32, ptr %5, align 4, !tbaa !5
  %82 = mul i32 %81, %.sroa.9.0.copyload
  %83 = add i32 %82, %.sroa.029.0.copyload
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds float, ptr %3, i64 %84
  %86 = load float, ptr %85, align 4, !tbaa !19
  %87 = fcmp oeq float %86, 0x47EFFFFFE0000000
  br i1 %87, label %88, label %.loopexit

88:                                               ; preds = %79
  store float %.sroa.14.0.copyload, ptr %85, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  %89 = add nsw i32 %.sroa.029.0.copyload, -1
  store i32 %89, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  store i32 0, ptr %10, align 4, !tbaa !5
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %91 = load i32, ptr %90, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  %92 = add nsw i32 %.sroa.029.0.copyload, 1
  store i32 %92, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  %93 = load i32, ptr %5, align 4, !tbaa !5
  %94 = add i32 %93, -1
  store i32 %94, ptr %12, align 4, !tbaa !5
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %96 = load i32, ptr %95, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  %97 = add nsw i32 %.sroa.9.0.copyload, -1
  store i32 %97, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #7
  store i32 0, ptr %14, align 4, !tbaa !5
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %99 = load i32, ptr %98, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #7
  %100 = add nsw i32 %.sroa.9.0.copyload, 1
  store i32 %100, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #7
  %101 = load i32, ptr %6, align 4, !tbaa !5
  %102 = add i32 %101, -1
  store i32 %102, ptr %16, align 4, !tbaa !5
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %104 = load i32, ptr %103, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  %.not7795 = icmp sgt i32 %99, %104
  %.not7891 = icmp sgt i32 %91, %96
  %or.cond = select i1 %.not7795, i1 true, i1 %.not7891
  br i1 %or.cond, label %.loopexit, label %.preheader84

.preheader84:                                     ; preds = %88, %._crit_edge94
  %.07396 = phi i32 [ %117, %._crit_edge94 ], [ %99, %88 ]
  %.not80 = icmp eq i32 %.sroa.9.0.copyload, %.07396
  %105 = sub nsw i32 %.07396, %.sroa.17.0.copyload
  %106 = mul nsw i32 %105, %105
  %.not80.fr = freeze i1 %.not80
  br i1 %.not80.fr, label %.lr.ph93.split, label %.lr.ph93.split.us

.lr.ph93.split.us:                                ; preds = %.preheader84, %114
  %.07292.us = phi i32 [ %115, %114 ], [ %91, %.preheader84 ]
  %107 = sub nsw i32 %.07292.us, %.sroa.15.0.copyload
  %108 = mul nsw i32 %107, %107
  %109 = add nuw nsw i32 %108, %106
  %110 = uitofp nneg i32 %109 to float
  %sqrt.us = call float @llvm.sqrt.f32(float %110)
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %17) #7
  store i32 %.07292.us, ptr %17, align 4, !tbaa !12
  store i32 %.07396, ptr %33, align 4, !tbaa !15
  store float %sqrt.us, ptr %34, align 4, !tbaa !16
  store i32 %.sroa.15.0.copyload, ptr %35, align 4, !tbaa !17
  store i32 %.sroa.17.0.copyload, ptr %36, align 4, !tbaa !18
  invoke void @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(20) %17)
          to label %111 unwind label %.split.us

111:                                              ; preds = %.lr.ph93.split.us
  %112 = call ptr @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %113 = call ptr @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  invoke void @_ZSt9push_heapIN9__gnu_cxx17__normal_iteratorIPN12_GLOBAL__N_17Coord2DESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %112, ptr %113)
          to label %114 unwind label %.split.us

114:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %17) #7
  %115 = add i32 %.07292.us, 1
  %exitcond.not = icmp eq i32 %.07292.us, %96
  br i1 %exitcond.not, label %._crit_edge94, label %.lr.ph93.split.us, !llvm.loop !23

.split.us:                                        ; preds = %111, %.lr.ph93.split.us
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %128

.loopexit86:                                      ; preds = %76
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %132

.loopexit.split-lp:                               ; preds = %._crit_edge90
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %132

._crit_edge94:                                    ; preds = %114, %129
  %117 = add i32 %.07396, 1
  %exitcond115.not = icmp eq i32 %.07396, %104
  br i1 %exitcond115.not, label %.loopexit, label %.preheader84, !llvm.loop !24

.lr.ph93.split:                                   ; preds = %.preheader84, %129
  %.07292 = phi i32 [ %130, %129 ], [ %91, %.preheader84 ]
  %.not79 = icmp eq i32 %.sroa.029.0.copyload, %.07292
  br i1 %.not79, label %129, label %118

118:                                              ; preds = %.lr.ph93.split
  %119 = sub nsw i32 %.07292, %.sroa.15.0.copyload
  %120 = mul nsw i32 %119, %119
  %121 = add nuw nsw i32 %120, %106
  %122 = uitofp nneg i32 %121 to float
  %sqrt = call float @llvm.sqrt.f32(float %122)
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %17) #7
  store i32 %.07292, ptr %17, align 4, !tbaa !12
  store i32 %.07396, ptr %33, align 4, !tbaa !15
  store float %sqrt, ptr %34, align 4, !tbaa !16
  store i32 %.sroa.15.0.copyload, ptr %35, align 4, !tbaa !17
  store i32 %.sroa.17.0.copyload, ptr %36, align 4, !tbaa !18
  invoke void @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(20) %17)
          to label %123 unwind label %.split

123:                                              ; preds = %118
  %124 = call ptr @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %125 = call ptr @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  invoke void @_ZSt9push_heapIN9__gnu_cxx17__normal_iteratorIPN12_GLOBAL__N_17Coord2DESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %124, ptr %125)
          to label %126 unwind label %.split

126:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %17) #7
  br label %129

.split:                                           ; preds = %123, %118
  %127 = landingpad { ptr, i32 }
          cleanup
  br label %128

128:                                              ; preds = %.split.us, %.split
  %.us-phi = phi { ptr, i32 } [ %127, %.split ], [ %116, %.split.us ]
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %17) #7
  br label %132

129:                                              ; preds = %.lr.ph93.split, %126
  %130 = add i32 %.07292, 1
  %exitcond114.not = icmp eq i32 %.07292, %96
  br i1 %exitcond114.not, label %._crit_edge94, label %.lr.ph93.split, !llvm.loop !23

.loopexit:                                        ; preds = %._crit_edge94, %88, %79
  %131 = call noundef zeroext i1 @_ZNKSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  br i1 %131, label %.preheader83, label %76, !llvm.loop !25

._crit_edge103:                                   ; preds = %._crit_edge101.us, %.preheader.lr.ph, %.preheader83
  call void @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  ret void

.split105.us:                                     ; preds = %63
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 180, ptr noundef nonnull @__PRETTY_FUNCTION__._Z7MakeSDFPKjjjPf) #8
  unreachable

132:                                              ; preds = %.loopexit86, %.loopexit.split-lp, %47, %49, %128
  %.pn.pn = phi { ptr, i32 } [ %.us-phi, %128 ], [ %50, %49 ], [ %48, %47 ], [ %lpad.loopexit, %.loopexit86 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  resume { ptr, i32 } %.pn.pn
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_110EdgeDetectEPKjjjii(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare hidden void @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZSt9make_heapIN9__gnu_cxx17__normal_iteratorIPN12_GLOBAL__N_17Coord2DESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr, ptr) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZNKSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZSt8pop_heapIN9__gnu_cxx17__normal_iteratorIPN12_GLOBAL__N_17Coord2DESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr, ptr) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZSt9push_heapIN9__gnu_cxx17__normal_iteratorIPN12_GLOBAL__N_17Coord2DESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr, ptr) local_unnamed_addr #4

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZNSt6vectorIN12_GLOBAL__N_17Coord2DESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { noreturn 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.unswitch.partial.disable"}
!12 = !{!13, !6, i64 0}
!13 = !{!"_ZTSN12_GLOBAL__N_17Coord2DE", !6, i64 0, !6, i64 4, !14, i64 8, !6, i64 12, !6, i64 16}
!14 = !{!"float", !7, i64 0}
!15 = !{!13, !6, i64 4}
!16 = !{!13, !14, i64 8}
!17 = !{!13, !6, i64 12}
!18 = !{!13, !6, i64 16}
!19 = !{!14, !14, i64 0}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}


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