; LLVM IR from mtsamis/box2d-optimized :: src/particle/b2_voronoi_diagram.ll (ZN16b2VoronoiDiagram8GenerateEff)

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

%struct.b2Vec2 = type { float, float }
%class.b2StackQueue = type <{ ptr, ptr, i32, i32, i32, [4 x i8] }>
%"struct.b2VoronoiDiagram::b2VoronoiDiagramTask" = type { i32, i32, i32, ptr }
%class.b2VoronoiDiagram = type { ptr, ptr, i32, i32, i32, i32, ptr }
%"struct.b2VoronoiDiagram::Generator" = type <{ %struct.b2Vec2, i32, i8, [3 x i8] }>

@.str.1 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@__PRETTY_FUNCTION__._ZN16b2VoronoiDiagram8GenerateEff = external hidden unnamed_addr constant [50 x i8], align 1

declare noundef ptr @_ZN16b2StackAllocator8AllocateEi(ptr noundef nonnull align 8 dereferenceable(102932), i32 noundef) #0

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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) #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16b2VoronoiDiagram8GenerateEff(ptr noundef nonnull align 8 dereferenceable(40) %0, float noundef %1, float noundef %2) #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca %struct.b2Vec2, align 4
  %9 = alloca %struct.b2Vec2, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %struct.b2Vec2, align 4
  %13 = alloca %struct.b2Vec2, align 4
  %14 = alloca i32, align 4
  %15 = alloca %class.b2StackQueue, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca %struct.b2Vec2, align 4
  %19 = alloca %struct.b2Vec2, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  %30 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  %31 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  %32 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  %40 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca ptr, align 8
  %45 = alloca ptr, align 8
  %46 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  %47 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  %48 = alloca ptr, align 8
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca ptr, align 8
  %53 = alloca ptr, align 8
  %54 = alloca ptr, align 8
  %55 = alloca float, align 4
  %56 = alloca float, align 4
  %57 = alloca float, align 4
  %58 = alloca float, align 4
  %59 = alloca float, align 4
  %60 = alloca float, align 4
  %61 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  %62 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  %63 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  %64 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store float %1, ptr %5, align 4, !tbaa !9
  store float %2, ptr %6, align 4, !tbaa !9
  %65 = load ptr, ptr %4, align 8
  %66 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 6
  %67 = load ptr, ptr %66, align 8, !tbaa !11
  %68 = icmp eq ptr %67, null
  br i1 %68, label %69, label %70

69:                                               ; preds = %3
  br label %72

70:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 57, ptr noundef @__PRETTY_FUNCTION__._ZN16b2VoronoiDiagram8GenerateEff) #9
  unreachable

71:                                               ; No predecessors!
  br label %72

72:                                               ; preds = %71, %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #10
  %73 = load float, ptr %5, align 4, !tbaa !9
  %74 = fdiv float 1.000000e+00, %73
  store float %74, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #10
  call void @_ZN6b2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef 0x47EFFFFFE0000000, float noundef 0x47EFFFFFE0000000)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #10
  call void @_ZN6b2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef 0xC7EFFFFFE0000000, float noundef 0xC7EFFFFFE0000000)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #10
  store i32 0, ptr %10, align 4, !tbaa !14
  br label %75

75:                                               ; preds = %99, %72
  %76 = load i32, ptr %10, align 4, !tbaa !14
  %77 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 3
  %78 = load i32, ptr %77, align 4, !tbaa !15
  %79 = icmp slt i32 %76, %78
  br i1 %79, label %81, label %80

80:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #10
  br label %102

81:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #10
  %82 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 1
  %83 = load ptr, ptr %82, align 8, !tbaa !16
  %84 = load i32, ptr %10, align 4, !tbaa !14
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds %"struct.b2VoronoiDiagram::Generator", ptr %83, i64 %85
  store ptr %86, ptr %11, align 8, !tbaa !5
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.b2VoronoiDiagram::Generator", ptr %87, i32 0, i32 2
  %89 = load i8, ptr %88, align 4, !tbaa !17, !range !21, !noundef !22
  %90 = trunc i8 %89 to i1
  br i1 %90, label %91, label %98

91:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #10
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.b2VoronoiDiagram::Generator", ptr %92, i32 0, i32 0
  %94 = call <2 x float> @_Z5b2MinRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %93)
  store <2 x float> %94, ptr %12, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %12, i64 8, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #10
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.b2VoronoiDiagram::Generator", ptr %95, i32 0, i32 0
  %97 = call <2 x float> @_Z5b2MaxRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %96)
  store <2 x float> %97, ptr %13, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %13, i64 8, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  br label %98

98:                                               ; preds = %91, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %10, align 4, !tbaa !14
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %10, align 4, !tbaa !14
  br label %75, !llvm.loop !24

102:                                              ; preds = %80
  %103 = load float, ptr %6, align 4, !tbaa !9
  %104 = getelementptr inbounds %struct.b2Vec2, ptr %8, i32 0, i32 0
  %105 = load float, ptr %104, align 4, !tbaa !26
  %106 = fsub float %105, %103
  store float %106, ptr %104, align 4, !tbaa !26
  %107 = load float, ptr %6, align 4, !tbaa !9
  %108 = getelementptr inbounds %struct.b2Vec2, ptr %8, i32 0, i32 1
  %109 = load float, ptr %108, align 4, !tbaa !27
  %110 = fsub float %109, %107
  store float %110, ptr %108, align 4, !tbaa !27
  %111 = load float, ptr %6, align 4, !tbaa !9
  %112 = getelementptr inbounds %struct.b2Vec2, ptr %9, i32 0, i32 0
  %113 = load float, ptr %112, align 4, !tbaa !26
  %114 = fadd float %113, %111
  store float %114, ptr %112, align 4, !tbaa !26
  %115 = load float, ptr %6, align 4, !tbaa !9
  %116 = getelementptr inbounds %struct.b2Vec2, ptr %9, i32 0, i32 1
  %117 = load float, ptr %116, align 4, !tbaa !27
  %118 = fadd float %117, %115
  store float %118, ptr %116, align 4, !tbaa !27
  %119 = load float, ptr %7, align 4, !tbaa !9
  %120 = getelementptr inbounds %struct.b2Vec2, ptr %9, i32 0, i32 0
  %121 = load float, ptr %120, align 4, !tbaa !26
  %122 = getelementptr inbounds %struct.b2Vec2, ptr %8, i32 0, i32 0
  %123 = load float, ptr %122, align 4, !tbaa !26
  %124 = fsub float %121, %123
  %125 = fmul float %119, %124
  %126 = fptosi float %125 to i32
  %127 = add nsw i32 1, %126
  %128 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 4
  store i32 %127, ptr %128, align 8, !tbaa !28
  %129 = load float, ptr %7, align 4, !tbaa !9
  %130 = getelementptr inbounds %struct.b2Vec2, ptr %9, i32 0, i32 1
  %131 = load float, ptr %130, align 4, !tbaa !27
  %132 = getelementptr inbounds %struct.b2Vec2, ptr %8, i32 0, i32 1
  %133 = load float, ptr %132, align 4, !tbaa !27
  %134 = fsub float %131, %133
  %135 = fmul float %129, %134
  %136 = fptosi float %135 to i32
  %137 = add nsw i32 1, %136
  %138 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 5
  store i32 %137, ptr %138, align 4, !tbaa !29
  %139 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8, !tbaa !30
  %141 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 4
  %142 = load i32, ptr %141, align 8, !tbaa !28
  %143 = sext i32 %142 to i64
  %144 = mul i64 8, %143
  %145 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 5
  %146 = load i32, ptr %145, align 4, !tbaa !29
  %147 = sext i32 %146 to i64
  %148 = mul i64 %144, %147
  %149 = trunc i64 %148 to i32
  %150 = call noundef ptr @_ZN16b2StackAllocator8AllocateEi(ptr noundef nonnull align 8 dereferenceable(102932) %140, i32 noundef %149)
  %151 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 6
  store ptr %150, ptr %151, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #10
  store i32 0, ptr %14, align 4, !tbaa !14
  br label %152

152:                                              ; preds = %167, %102
  %153 = load i32, ptr %14, align 4, !tbaa !14
  %154 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 4
  %155 = load i32, ptr %154, align 8, !tbaa !28
  %156 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 5
  %157 = load i32, ptr %156, align 4, !tbaa !29
  %158 = mul nsw i32 %155, %157
  %159 = icmp slt i32 %153, %158
  br i1 %159, label %161, label %160

160:                                              ; preds = %152
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  br label %170

161:                                              ; preds = %152
  %162 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 6
  %163 = load ptr, ptr %162, align 8, !tbaa !11
  %164 = load i32, ptr %14, align 4, !tbaa !14
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds ptr, ptr %163, i64 %165
  store ptr null, ptr %166, align 8, !tbaa !5
  br label %167

167:                                              ; preds = %161
  %168 = load i32, ptr %14, align 4, !tbaa !14
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %14, align 4, !tbaa !14
  br label %152, !llvm.loop !31

170:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #10
  %171 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 0
  %172 = load ptr, ptr %171, align 8, !tbaa !30
  %173 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 4
  %174 = load i32, ptr %173, align 8, !tbaa !28
  %175 = mul nsw i32 4, %174
  %176 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 5
  %177 = load i32, ptr %176, align 4, !tbaa !29
  %178 = mul nsw i32 %175, %177
  call void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEEC2EP16b2StackAllocatori(ptr noundef nonnull align 8 dereferenceable(28) %15, ptr noundef %172, i32 noundef %178)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #10
  store i32 0, ptr %16, align 4, !tbaa !14
  br label %179

179:                                              ; preds = %246, %170
  %180 = load i32, ptr %16, align 4, !tbaa !14
  %181 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 3
  %182 = load i32, ptr %181, align 4, !tbaa !15
  %183 = icmp slt i32 %180, %182
  br i1 %183, label %185, label %184

184:                                              ; preds = %179
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #10
  br label %250

185:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  %186 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 1
  %187 = load ptr, ptr %186, align 8, !tbaa !16
  %188 = load i32, ptr %16, align 4, !tbaa !14
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds %"struct.b2VoronoiDiagram::Generator", ptr %187, i64 %189
  store ptr %190, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #10
  %191 = load float, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #10
  %192 = load ptr, ptr %17, align 8, !tbaa !5
  %193 = getelementptr inbounds %"struct.b2VoronoiDiagram::Generator", ptr %192, i32 0, i32 0
  %194 = invoke <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %193, ptr noundef nonnull align 4 dereferenceable(8) %8)
          to label %195 unwind label %237

195:                                              ; preds = %185
  store <2 x float> %194, ptr %19, align 4
  %196 = invoke <2 x float> @_ZmlfRK6b2Vec2(float noundef %191, ptr noundef nonnull align 4 dereferenceable(8) %19)
          to label %197 unwind label %237

197:                                              ; preds = %195
  store <2 x float> %196, ptr %18, align 4
  %198 = load ptr, ptr %17, align 8, !tbaa !5
  %199 = getelementptr inbounds %"struct.b2VoronoiDiagram::Generator", ptr %198, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %199, ptr align 4 %18, i64 8, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #10
  %200 = load ptr, ptr %17, align 8, !tbaa !5
  %201 = getelementptr inbounds %"struct.b2VoronoiDiagram::Generator", ptr %200, i32 0, i32 0
  %202 = getelementptr inbounds %struct.b2Vec2, ptr %201, i32 0, i32 0
  %203 = load float, ptr %202, align 4, !tbaa !32
  %204 = fptosi float %203 to i32
  store i32 %204, ptr %22, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #10
  %205 = load ptr, ptr %17, align 8, !tbaa !5
  %206 = getelementptr inbounds %"struct.b2VoronoiDiagram::Generator", ptr %205, i32 0, i32 0
  %207 = getelementptr inbounds %struct.b2Vec2, ptr %206, i32 0, i32 1
  %208 = load float, ptr %207, align 4, !tbaa !33
  %209 = fptosi float %208 to i32
  store i32 %209, ptr %23, align 4, !tbaa !14
  %210 = load i32, ptr %22, align 4, !tbaa !14
  %211 = icmp sge i32 %210, 0
  br i1 %211, label %212, label %245

212:                                              ; preds = %197
  %213 = load i32, ptr %23, align 4, !tbaa !14
  %214 = icmp sge i32 %213, 0
  br i1 %214, label %215, label %245

215:                                              ; preds = %212
  %216 = load i32, ptr %22, align 4, !tbaa !14
  %217 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 4
  %218 = load i32, ptr %217, align 8, !tbaa !28
  %219 = icmp slt i32 %216, %218
  br i1 %219, label %220, label %245

220:                                              ; preds = %215
  %221 = load i32, ptr %23, align 4, !tbaa !14
  %222 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 5
  %223 = load i32, ptr %222, align 4, !tbaa !29
  %224 = icmp slt i32 %221, %223
  br i1 %224, label %225, label %245

225:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #10
  %226 = load i32, ptr %22, align 4, !tbaa !14
  %227 = load i32, ptr %23, align 4, !tbaa !14
  %228 = load i32, ptr %22, align 4, !tbaa !14
  %229 = load i32, ptr %23, align 4, !tbaa !14
  %230 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 4
  %231 = load i32, ptr %230, align 8, !tbaa !28
  %232 = mul nsw i32 %229, %231
  %233 = add nsw i32 %228, %232
  %234 = load ptr, ptr %17, align 8, !tbaa !5
  invoke void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %24, i32 noundef %226, i32 noundef %227, i32 noundef %233, ptr noundef %234)
          to label %235 unwind label %241

235:                                              ; preds = %225
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %15, ptr noundef nonnull align 8 dereferenceable(24) %24)
          to label %236 unwind label %241

236:                                              ; preds = %235
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #10
  br label %245

237:                                              ; preds = %195, %185
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %20, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  br label %249

241:                                              ; preds = %235, %225
  %242 = landingpad { ptr, i32 }
          cleanup
  %243 = extractvalue { ptr, i32 } %242, 0
  store ptr %243, ptr %20, align 8
  %244 = extractvalue { ptr, i32 } %242, 1
  store i32 %244, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #10
  br label %249

245:                                              ; preds = %236, %220, %215, %212, %197
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  br label %246

246:                                              ; preds = %245
  %247 = load i32, ptr %16, align 4, !tbaa !14
  %248 = add nsw i32 %247, 1
  store i32 %248, ptr %16, align 4, !tbaa !14
  br label %179, !llvm.loop !34

249:                                              ; preds = %241, %237
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #10
  br label %700

250:                                              ; preds = %184
  br label %251

251:                                              ; preds = %381, %250
  %252 = invoke noundef zeroext i1 @_ZNK12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE5EmptyEv(ptr noundef nonnull align 8 dereferenceable(28) %15)
          to label %253 unwind label %298

253:                                              ; preds = %251
  %254 = xor i1 %252, true
  br i1 %254, label %255, label %386

255:                                              ; preds = %253
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #10
  %256 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE5FrontEv(ptr noundef nonnull align 8 dereferenceable(28) %15)
          to label %257 unwind label %302

257:                                              ; preds = %255
  %258 = getelementptr inbounds %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", ptr %256, i32 0, i32 0
  %259 = load i32, ptr %258, align 8, !tbaa !35
  store i32 %259, ptr %25, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #10
  %260 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE5FrontEv(ptr noundef nonnull align 8 dereferenceable(28) %15)
          to label %261 unwind label %306

261:                                              ; preds = %257
  %262 = getelementptr inbounds %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", ptr %260, i32 0, i32 1
  %263 = load i32, ptr %262, align 4, !tbaa !37
  store i32 %263, ptr %26, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #10
  %264 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE5FrontEv(ptr noundef nonnull align 8 dereferenceable(28) %15)
          to label %265 unwind label %310

265:                                              ; preds = %261
  %266 = getelementptr inbounds %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", ptr %264, i32 0, i32 2
  %267 = load i32, ptr %266, align 8, !tbaa !38
  store i32 %267, ptr %27, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #10
  %268 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE5FrontEv(ptr noundef nonnull align 8 dereferenceable(28) %15)
          to label %269 unwind label %314

269:                                              ; preds = %265
  %270 = getelementptr inbounds %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", ptr %268, i32 0, i32 3
  %271 = load ptr, ptr %270, align 8, !tbaa !39
  store ptr %271, ptr %28, align 8, !tbaa !5
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE3PopEv(ptr noundef nonnull align 8 dereferenceable(28) %15)
          to label %272 unwind label %314

272:                                              ; preds = %269
  %273 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 6
  %274 = load ptr, ptr %273, align 8, !tbaa !11
  %275 = load i32, ptr %27, align 4, !tbaa !14
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds ptr, ptr %274, i64 %276
  %278 = load ptr, ptr %277, align 8, !tbaa !5
  %279 = icmp ne ptr %278, null
  br i1 %279, label %381, label %280

280:                                              ; preds = %272
  %281 = load ptr, ptr %28, align 8, !tbaa !5
  %282 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 6
  %283 = load ptr, ptr %282, align 8, !tbaa !11
  %284 = load i32, ptr %27, align 4, !tbaa !14
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds ptr, ptr %283, i64 %285
  store ptr %281, ptr %286, align 8, !tbaa !5
  %287 = load i32, ptr %25, align 4, !tbaa !14
  %288 = icmp sgt i32 %287, 0
  br i1 %288, label %289, label %322

289:                                              ; preds = %280
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #10
  %290 = load i32, ptr %25, align 4, !tbaa !14
  %291 = sub nsw i32 %290, 1
  %292 = load i32, ptr %26, align 4, !tbaa !14
  %293 = load i32, ptr %27, align 4, !tbaa !14
  %294 = sub nsw i32 %293, 1
  %295 = load ptr, ptr %28, align 8, !tbaa !5
  invoke void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %29, i32 noundef %291, i32 noundef %292, i32 noundef %294, ptr noundef %295)
          to label %296 unwind label %318

296:                                              ; preds = %289
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %15, ptr noundef nonnull align 8 dereferenceable(24) %29)
          to label %297 unwind label %318

297:                                              ; preds = %296
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #10
  br label %322

298:                                              ; preds = %531, %251
  %299 = landingpad { ptr, i32 }
          cleanup
  %300 = extractvalue { ptr, i32 } %299, 0
  store ptr %300, ptr %20, align 8
  %301 = extractvalue { ptr, i32 } %299, 1
  store i32 %301, ptr %21, align 4
  br label %700

302:                                              ; preds = %255
  %303 = landingpad { ptr, i32 }
          cleanup
  %304 = extractvalue { ptr, i32 } %303, 0
  store ptr %304, ptr %20, align 8
  %305 = extractvalue { ptr, i32 } %303, 1
  store i32 %305, ptr %21, align 4
  br label %385

306:                                              ; preds = %257
  %307 = landingpad { ptr, i32 }
          cleanup
  %308 = extractvalue { ptr, i32 } %307, 0
  store ptr %308, ptr %20, align 8
  %309 = extractvalue { ptr, i32 } %307, 1
  store i32 %309, ptr %21, align 4
  br label %384

310:                                              ; preds = %261
  %311 = landingpad { ptr, i32 }
          cleanup
  %312 = extractvalue { ptr, i32 } %311, 0
  store ptr %312, ptr %20, align 8
  %313 = extractvalue { ptr, i32 } %311, 1
  store i32 %313, ptr %21, align 4
  br label %383

314:                                              ; preds = %269, %265
  %315 = landingpad { ptr, i32 }
          cleanup
  %316 = extractvalue { ptr, i32 } %315, 0
  store ptr %316, ptr %20, align 8
  %317 = extractvalue { ptr, i32 } %315, 1
  store i32 %317, ptr %21, align 4
  br label %382

318:                                              ; preds = %296, %289
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %20, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #10
  br label %382

322:                                              ; preds = %297, %280
  %323 = load i32, ptr %26, align 4, !tbaa !14
  %324 = icmp sgt i32 %323, 0
  br i1 %324, label %325, label %340

325:                                              ; preds = %322
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #10
  %326 = load i32, ptr %25, align 4, !tbaa !14
  %327 = load i32, ptr %26, align 4, !tbaa !14
  %328 = sub nsw i32 %327, 1
  %329 = load i32, ptr %27, align 4, !tbaa !14
  %330 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 4
  %331 = load i32, ptr %330, align 8, !tbaa !28
  %332 = sub nsw i32 %329, %331
  %333 = load ptr, ptr %28, align 8, !tbaa !5
  invoke void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %30, i32 noundef %326, i32 noundef %328, i32 noundef %332, ptr noundef %333)
          to label %334 unwind label %336

334:                                              ; preds = %325
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %15, ptr noundef nonnull align 8 dereferenceable(24) %30)
          to label %335 unwind label %336

335:                                              ; preds = %334
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #10
  br label %340

336:                                              ; preds = %334, %325
  %337 = landingpad { ptr, i32 }
          cleanup
  %338 = extractvalue { ptr, i32 } %337, 0
  store ptr %338, ptr %20, align 8
  %339 = extractvalue { ptr, i32 } %337, 1
  store i32 %339, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #10
  br label %382

340:                                              ; preds = %335, %322
  %341 = load i32, ptr %25, align 4, !tbaa !14
  %342 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 4
  %343 = load i32, ptr %342, align 8, !tbaa !28
  %344 = sub nsw i32 %343, 1
  %345 = icmp slt i32 %341, %344
  br i1 %345, label %346, label %359

346:                                              ; preds = %340
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #10
  %347 = load i32, ptr %25, align 4, !tbaa !14
  %348 = add nsw i32 %347, 1
  %349 = load i32, ptr %26, align 4, !tbaa !14
  %350 = load i32, ptr %27, align 4, !tbaa !14
  %351 = add nsw i32 %350, 1
  %352 = load ptr, ptr %28, align 8, !tbaa !5
  invoke void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %31, i32 noundef %348, i32 noundef %349, i32 noundef %351, ptr noundef %352)
          to label %353 unwind label %355

353:                                              ; preds = %346
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %15, ptr noundef nonnull align 8 dereferenceable(24) %31)
          to label %354 unwind label %355

354:                                              ; preds = %353
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #10
  br label %359

355:                                              ; preds = %353, %346
  %356 = landingpad { ptr, i32 }
          cleanup
  %357 = extractvalue { ptr, i32 } %356, 0
  store ptr %357, ptr %20, align 8
  %358 = extractvalue { ptr, i32 } %356, 1
  store i32 %358, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #10
  br label %382

359:                                              ; preds = %354, %340
  %360 = load i32, ptr %26, align 4, !tbaa !14
  %361 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 5
  %362 = load i32, ptr %361, align 4, !tbaa !29
  %363 = sub nsw i32 %362, 1
  %364 = icmp slt i32 %360, %363
  br i1 %364, label %365, label %380

365:                                              ; preds = %359
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #10
  %366 = load i32, ptr %25, align 4, !tbaa !14
  %367 = load i32, ptr %26, align 4, !tbaa !14
  %368 = add nsw i32 %367, 1
  %369 = load i32, ptr %27, align 4, !tbaa !14
  %370 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 4
  %371 = load i32, ptr %370, align 8, !tbaa !28
  %372 = add nsw i32 %369, %371
  %373 = load ptr, ptr %28, align 8, !tbaa !5
  invoke void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %32, i32 noundef %366, i32 noundef %368, i32 noundef %372, ptr noundef %373)
          to label %374 unwind label %376

374:                                              ; preds = %365
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %15, ptr noundef nonnull align 8 dereferenceable(24) %32)
          to label %375 unwind label %376

375:                                              ; preds = %374
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #10
  br label %380

376:                                              ; preds = %374, %365
  %377 = landingpad { ptr, i32 }
          cleanup
  %378 = extractvalue { ptr, i32 } %377, 0
  store ptr %378, ptr %20, align 8
  %379 = extractvalue { ptr, i32 } %377, 1
  store i32 %379, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #10
  br label %382

380:                                              ; preds = %375, %359
  br label %381

381:                                              ; preds = %380, %272
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #10
  br label %251, !llvm.loop !40

382:                                              ; preds = %376, %355, %336, %318, %314
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  br label %383

383:                                              ; preds = %382, %310
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #10
  br label %384

384:                                              ; preds = %383, %306
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #10
  br label %385

385:                                              ; preds = %384, %302
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #10
  br label %700

386:                                              ; preds = %253
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #10
  store i32 0, ptr %33, align 4, !tbaa !14
  br label %387

387:                                              ; preds = %453, %386
  %388 = load i32, ptr %33, align 4, !tbaa !14
  %389 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 5
  %390 = load i32, ptr %389, align 4, !tbaa !29
  %391 = icmp slt i32 %388, %390
  br i1 %391, label %393, label %392

392:                                              ; preds = %387
  store i32 13, ptr %34, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #10
  br label %456

393:                                              ; preds = %387
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #10
  store i32 0, ptr %35, align 4, !tbaa !14
  br label %394

394:                                              ; preds = %448, %393
  %395 = load i32, ptr %35, align 4, !tbaa !14
  %396 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 4
  %397 = load i32, ptr %396, align 8, !tbaa !28
  %398 = sub nsw i32 %397, 1
  %399 = icmp slt i32 %395, %398
  br i1 %399, label %401, label %400

400:                                              ; preds = %394
  store i32 16, ptr %34, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #10
  br label %452

401:                                              ; preds = %394
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #10
  %402 = load i32, ptr %35, align 4, !tbaa !14
  %403 = load i32, ptr %33, align 4, !tbaa !14
  %404 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 4
  %405 = load i32, ptr %404, align 8, !tbaa !28
  %406 = mul nsw i32 %403, %405
  %407 = add nsw i32 %402, %406
  store i32 %407, ptr %36, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #10
  %408 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 6
  %409 = load ptr, ptr %408, align 8, !tbaa !11
  %410 = load i32, ptr %36, align 4, !tbaa !14
  %411 = sext i32 %410 to i64
  %412 = getelementptr inbounds ptr, ptr %409, i64 %411
  %413 = load ptr, ptr %412, align 8, !tbaa !5
  store ptr %413, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #10
  %414 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 6
  %415 = load ptr, ptr %414, align 8, !tbaa !11
  %416 = load i32, ptr %36, align 4, !tbaa !14
  %417 = add nsw i32 %416, 1
  %418 = sext i32 %417 to i64
  %419 = getelementptr inbounds ptr, ptr %415, i64 %418
  %420 = load ptr, ptr %419, align 8, !tbaa !5
  store ptr %420, ptr %38, align 8, !tbaa !5
  %421 = load ptr, ptr %37, align 8, !tbaa !5
  %422 = load ptr, ptr %38, align 8, !tbaa !5
  %423 = icmp ne ptr %421, %422
  br i1 %423, label %424, label %447

424:                                              ; preds = %401
  call void @llvm.lifetime.start.p0(i64 24, ptr %39) #10
  %425 = load i32, ptr %35, align 4, !tbaa !14
  %426 = load i32, ptr %33, align 4, !tbaa !14
  %427 = load i32, ptr %36, align 4, !tbaa !14
  %428 = load ptr, ptr %38, align 8, !tbaa !5
  invoke void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %39, i32 noundef %425, i32 noundef %426, i32 noundef %427, ptr noundef %428)
          to label %429 unwind label %439

429:                                              ; preds = %424
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %15, ptr noundef nonnull align 8 dereferenceable(24) %39)
          to label %430 unwind label %439

430:                                              ; preds = %429
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %40) #10
  %431 = load i32, ptr %35, align 4, !tbaa !14
  %432 = add nsw i32 %431, 1
  %433 = load i32, ptr %33, align 4, !tbaa !14
  %434 = load i32, ptr %36, align 4, !tbaa !14
  %435 = add nsw i32 %434, 1
  %436 = load ptr, ptr %37, align 8, !tbaa !5
  invoke void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %40, i32 noundef %432, i32 noundef %433, i32 noundef %435, ptr noundef %436)
          to label %437 unwind label %443

437:                                              ; preds = %430
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %15, ptr noundef nonnull align 8 dereferenceable(24) %40)
          to label %438 unwind label %443

438:                                              ; preds = %437
  call void @llvm.lifetime.end.p0(i64 24, ptr %40) #10
  br label %447

439:                                              ; preds = %429, %424
  %440 = landingpad { ptr, i32 }
          cleanup
  %441 = extractvalue { ptr, i32 } %440, 0
  store ptr %441, ptr %20, align 8
  %442 = extractvalue { ptr, i32 } %440, 1
  store i32 %442, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #10
  br label %451

443:                                              ; preds = %437, %430
  %444 = landingpad { ptr, i32 }
          cleanup
  %445 = extractvalue { ptr, i32 } %444, 0
  store ptr %445, ptr %20, align 8
  %446 = extractvalue { ptr, i32 } %444, 1
  store i32 %446, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %40) #10
  br label %451

447:                                              ; preds = %438, %401
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #10
  br label %448

448:                                              ; preds = %447
  %449 = load i32, ptr %35, align 4, !tbaa !14
  %450 = add nsw i32 %449, 1
  store i32 %450, ptr %35, align 4, !tbaa !14
  br label %394, !llvm.loop !41

451:                                              ; preds = %443, %439
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #10
  br label %700

452:                                              ; preds = %400
  br label %453

453:                                              ; preds = %452
  %454 = load i32, ptr %33, align 4, !tbaa !14
  %455 = add nsw i32 %454, 1
  store i32 %455, ptr %33, align 4, !tbaa !14
  br label %387, !llvm.loop !42

456:                                              ; preds = %392
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #10
  store i32 0, ptr %41, align 4, !tbaa !14
  br label %457

457:                                              ; preds = %527, %456
  %458 = load i32, ptr %41, align 4, !tbaa !14
  %459 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 5
  %460 = load i32, ptr %459, align 4, !tbaa !29
  %461 = sub nsw i32 %460, 1
  %462 = icmp slt i32 %458, %461
  br i1 %462, label %464, label %463

463:                                              ; preds = %457
  store i32 19, ptr %34, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #10
  br label %530

464:                                              ; preds = %457
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #10
  store i32 0, ptr %42, align 4, !tbaa !14
  br label %465

465:                                              ; preds = %522, %464
  %466 = load i32, ptr %42, align 4, !tbaa !14
  %467 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 4
  %468 = load i32, ptr %467, align 8, !tbaa !28
  %469 = icmp slt i32 %466, %468
  br i1 %469, label %471, label %470

470:                                              ; preds = %465
  store i32 22, ptr %34, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #10
  br label %526

471:                                              ; preds = %465
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #10
  %472 = load i32, ptr %42, align 4, !tbaa !14
  %473 = load i32, ptr %41, align 4, !tbaa !14
  %474 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 4
  %475 = load i32, ptr %474, align 8, !tbaa !28
  %476 = mul nsw i32 %473, %475
  %477 = add nsw i32 %472, %476
  store i32 %477, ptr %43, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #10
  %478 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 6
  %479 = load ptr, ptr %478, align 8, !tbaa !11
  %480 = load i32, ptr %43, align 4, !tbaa !14
  %481 = sext i32 %480 to i64
  %482 = getelementptr inbounds ptr, ptr %479, i64 %481
  %483 = load ptr, ptr %482, align 8, !tbaa !5
  store ptr %483, ptr %44, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #10
  %484 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 6
  %485 = load ptr, ptr %484, align 8, !tbaa !11
  %486 = load i32, ptr %43, align 4, !tbaa !14
  %487 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 4
  %488 = load i32, ptr %487, align 8, !tbaa !28
  %489 = add nsw i32 %486, %488
  %490 = sext i32 %489 to i64
  %491 = getelementptr inbounds ptr, ptr %485, i64 %490
  %492 = load ptr, ptr %491, align 8, !tbaa !5
  store ptr %492, ptr %45, align 8, !tbaa !5
  %493 = load ptr, ptr %44, align 8, !tbaa !5
  %494 = load ptr, ptr %45, align 8, !tbaa !5
  %495 = icmp ne ptr %493, %494
  br i1 %495, label %496, label %521

496:                                              ; preds = %471
  call void @llvm.lifetime.start.p0(i64 24, ptr %46) #10
  %497 = load i32, ptr %42, align 4, !tbaa !14
  %498 = load i32, ptr %41, align 4, !tbaa !14
  %499 = load i32, ptr %43, align 4, !tbaa !14
  %500 = load ptr, ptr %45, align 8, !tbaa !5
  invoke void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %46, i32 noundef %497, i32 noundef %498, i32 noundef %499, ptr noundef %500)
          to label %501 unwind label %513

501:                                              ; preds = %496
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %15, ptr noundef nonnull align 8 dereferenceable(24) %46)
          to label %502 unwind label %513

502:                                              ; preds = %501
  call void @llvm.lifetime.end.p0(i64 24, ptr %46) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %47) #10
  %503 = load i32, ptr %42, align 4, !tbaa !14
  %504 = load i32, ptr %41, align 4, !tbaa !14
  %505 = add nsw i32 %504, 1
  %506 = load i32, ptr %43, align 4, !tbaa !14
  %507 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 4
  %508 = load i32, ptr %507, align 8, !tbaa !28
  %509 = add nsw i32 %506, %508
  %510 = load ptr, ptr %44, align 8, !tbaa !5
  invoke void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %47, i32 noundef %503, i32 noundef %505, i32 noundef %509, ptr noundef %510)
          to label %511 unwind label %517

511:                                              ; preds = %502
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %15, ptr noundef nonnull align 8 dereferenceable(24) %47)
          to label %512 unwind label %517

512:                                              ; preds = %511
  call void @llvm.lifetime.end.p0(i64 24, ptr %47) #10
  br label %521

513:                                              ; preds = %501, %496
  %514 = landingpad { ptr, i32 }
          cleanup
  %515 = extractvalue { ptr, i32 } %514, 0
  store ptr %515, ptr %20, align 8
  %516 = extractvalue { ptr, i32 } %514, 1
  store i32 %516, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %46) #10
  br label %525

517:                                              ; preds = %511, %502
  %518 = landingpad { ptr, i32 }
          cleanup
  %519 = extractvalue { ptr, i32 } %518, 0
  store ptr %519, ptr %20, align 8
  %520 = extractvalue { ptr, i32 } %518, 1
  store i32 %520, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %47) #10
  br label %525

521:                                              ; preds = %512, %471
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #10
  br label %522

522:                                              ; preds = %521
  %523 = load i32, ptr %42, align 4, !tbaa !14
  %524 = add nsw i32 %523, 1
  store i32 %524, ptr %42, align 4, !tbaa !14
  br label %465, !llvm.loop !43

525:                                              ; preds = %517, %513
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #10
  br label %700

526:                                              ; preds = %470
  br label %527

527:                                              ; preds = %526
  %528 = load i32, ptr %41, align 4, !tbaa !14
  %529 = add nsw i32 %528, 1
  store i32 %529, ptr %41, align 4, !tbaa !14
  br label %457, !llvm.loop !44

530:                                              ; preds = %463
  br label %531

531:                                              ; preds = %696, %530
  %532 = invoke noundef zeroext i1 @_ZNK12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE5EmptyEv(ptr noundef nonnull align 8 dereferenceable(28) %15)
          to label %533 unwind label %298

533:                                              ; preds = %531
  %534 = xor i1 %532, true
  br i1 %534, label %535, label %699

535:                                              ; preds = %533
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #10
  %536 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE5FrontEv(ptr noundef nonnull align 8 dereferenceable(28) %15)
          to label %537 unwind label %623

537:                                              ; preds = %535
  store ptr %536, ptr %48, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #10
  %538 = load ptr, ptr %48, align 8, !tbaa !5
  %539 = getelementptr inbounds %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", ptr %538, i32 0, i32 0
  %540 = load i32, ptr %539, align 8, !tbaa !35
  store i32 %540, ptr %49, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #10
  %541 = load ptr, ptr %48, align 8, !tbaa !5
  %542 = getelementptr inbounds %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", ptr %541, i32 0, i32 1
  %543 = load i32, ptr %542, align 4, !tbaa !37
  store i32 %543, ptr %50, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #10
  %544 = load ptr, ptr %48, align 8, !tbaa !5
  %545 = getelementptr inbounds %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", ptr %544, i32 0, i32 2
  %546 = load i32, ptr %545, align 8, !tbaa !38
  store i32 %546, ptr %51, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #10
  %547 = load ptr, ptr %48, align 8, !tbaa !5
  %548 = getelementptr inbounds %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", ptr %547, i32 0, i32 3
  %549 = load ptr, ptr %548, align 8, !tbaa !39
  store ptr %549, ptr %52, align 8, !tbaa !5
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE3PopEv(ptr noundef nonnull align 8 dereferenceable(28) %15)
          to label %550 unwind label %627

550:                                              ; preds = %537
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #10
  %551 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 6
  %552 = load ptr, ptr %551, align 8, !tbaa !11
  %553 = load i32, ptr %51, align 4, !tbaa !14
  %554 = sext i32 %553 to i64
  %555 = getelementptr inbounds ptr, ptr %552, i64 %554
  %556 = load ptr, ptr %555, align 8, !tbaa !5
  store ptr %556, ptr %53, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #10
  %557 = load ptr, ptr %52, align 8, !tbaa !5
  store ptr %557, ptr %54, align 8, !tbaa !5
  %558 = load ptr, ptr %53, align 8, !tbaa !5
  %559 = load ptr, ptr %54, align 8, !tbaa !5
  %560 = icmp ne ptr %558, %559
  br i1 %560, label %561, label %696

561:                                              ; preds = %550
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #10
  %562 = load ptr, ptr %53, align 8, !tbaa !5
  %563 = getelementptr inbounds %"struct.b2VoronoiDiagram::Generator", ptr %562, i32 0, i32 0
  %564 = getelementptr inbounds %struct.b2Vec2, ptr %563, i32 0, i32 0
  %565 = load float, ptr %564, align 4, !tbaa !32
  %566 = load i32, ptr %49, align 4, !tbaa !14
  %567 = sitofp i32 %566 to float
  %568 = fsub float %565, %567
  store float %568, ptr %55, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #10
  %569 = load ptr, ptr %53, align 8, !tbaa !5
  %570 = getelementptr inbounds %"struct.b2VoronoiDiagram::Generator", ptr %569, i32 0, i32 0
  %571 = getelementptr inbounds %struct.b2Vec2, ptr %570, i32 0, i32 1
  %572 = load float, ptr %571, align 4, !tbaa !33
  %573 = load i32, ptr %50, align 4, !tbaa !14
  %574 = sitofp i32 %573 to float
  %575 = fsub float %572, %574
  store float %575, ptr %56, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #10
  %576 = load ptr, ptr %54, align 8, !tbaa !5
  %577 = getelementptr inbounds %"struct.b2VoronoiDiagram::Generator", ptr %576, i32 0, i32 0
  %578 = getelementptr inbounds %struct.b2Vec2, ptr %577, i32 0, i32 0
  %579 = load float, ptr %578, align 4, !tbaa !32
  %580 = load i32, ptr %49, align 4, !tbaa !14
  %581 = sitofp i32 %580 to float
  %582 = fsub float %579, %581
  store float %582, ptr %57, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #10
  %583 = load ptr, ptr %54, align 8, !tbaa !5
  %584 = getelementptr inbounds %"struct.b2VoronoiDiagram::Generator", ptr %583, i32 0, i32 0
  %585 = getelementptr inbounds %struct.b2Vec2, ptr %584, i32 0, i32 1
  %586 = load float, ptr %585, align 4, !tbaa !33
  %587 = load i32, ptr %50, align 4, !tbaa !14
  %588 = sitofp i32 %587 to float
  %589 = fsub float %586, %588
  store float %589, ptr %58, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #10
  %590 = load float, ptr %55, align 4, !tbaa !9
  %591 = load float, ptr %55, align 4, !tbaa !9
  %592 = load float, ptr %56, align 4, !tbaa !9
  %593 = load float, ptr %56, align 4, !tbaa !9
  %594 = fmul float %592, %593
  %595 = call float @llvm.fmuladd.f32(float %590, float %591, float %594)
  store float %595, ptr %59, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #10
  %596 = load float, ptr %57, align 4, !tbaa !9
  %597 = load float, ptr %57, align 4, !tbaa !9
  %598 = load float, ptr %58, align 4, !tbaa !9
  %599 = load float, ptr %58, align 4, !tbaa !9
  %600 = fmul float %598, %599
  %601 = call float @llvm.fmuladd.f32(float %596, float %597, float %600)
  store float %601, ptr %60, align 4, !tbaa !9
  %602 = load float, ptr %59, align 4, !tbaa !9
  %603 = load float, ptr %60, align 4, !tbaa !9
  %604 = fcmp ogt float %602, %603
  br i1 %604, label %605, label %694

605:                                              ; preds = %561
  %606 = load ptr, ptr %54, align 8, !tbaa !5
  %607 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 6
  %608 = load ptr, ptr %607, align 8, !tbaa !11
  %609 = load i32, ptr %51, align 4, !tbaa !14
  %610 = sext i32 %609 to i64
  %611 = getelementptr inbounds ptr, ptr %608, i64 %610
  store ptr %606, ptr %611, align 8, !tbaa !5
  %612 = load i32, ptr %49, align 4, !tbaa !14
  %613 = icmp sgt i32 %612, 0
  br i1 %613, label %614, label %635

614:                                              ; preds = %605
  call void @llvm.lifetime.start.p0(i64 24, ptr %61) #10
  %615 = load i32, ptr %49, align 4, !tbaa !14
  %616 = sub nsw i32 %615, 1
  %617 = load i32, ptr %50, align 4, !tbaa !14
  %618 = load i32, ptr %51, align 4, !tbaa !14
  %619 = sub nsw i32 %618, 1
  %620 = load ptr, ptr %54, align 8, !tbaa !5
  invoke void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %61, i32 noundef %616, i32 noundef %617, i32 noundef %619, ptr noundef %620)
          to label %621 unwind label %631

621:                                              ; preds = %614
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %15, ptr noundef nonnull align 8 dereferenceable(24) %61)
          to label %622 unwind label %631

622:                                              ; preds = %621
  call void @llvm.lifetime.end.p0(i64 24, ptr %61) #10
  br label %635

623:                                              ; preds = %535
  %624 = landingpad { ptr, i32 }
          cleanup
  %625 = extractvalue { ptr, i32 } %624, 0
  store ptr %625, ptr %20, align 8
  %626 = extractvalue { ptr, i32 } %624, 1
  store i32 %626, ptr %21, align 4
  br label %698

627:                                              ; preds = %537
  %628 = landingpad { ptr, i32 }
          cleanup
  %629 = extractvalue { ptr, i32 } %628, 0
  store ptr %629, ptr %20, align 8
  %630 = extractvalue { ptr, i32 } %628, 1
  store i32 %630, ptr %21, align 4
  br label %697

631:                                              ; preds = %621, %614
  %632 = landingpad { ptr, i32 }
          cleanup
  %633 = extractvalue { ptr, i32 } %632, 0
  store ptr %633, ptr %20, align 8
  %634 = extractvalue { ptr, i32 } %632, 1
  store i32 %634, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %61) #10
  br label %695

635:                                              ; preds = %622, %605
  %636 = load i32, ptr %50, align 4, !tbaa !14
  %637 = icmp sgt i32 %636, 0
  br i1 %637, label %638, label %653

638:                                              ; preds = %635
  call void @llvm.lifetime.start.p0(i64 24, ptr %62) #10
  %639 = load i32, ptr %49, align 4, !tbaa !14
  %640 = load i32, ptr %50, align 4, !tbaa !14
  %641 = sub nsw i32 %640, 1
  %642 = load i32, ptr %51, align 4, !tbaa !14
  %643 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 4
  %644 = load i32, ptr %643, align 8, !tbaa !28
  %645 = sub nsw i32 %642, %644
  %646 = load ptr, ptr %54, align 8, !tbaa !5
  invoke void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %62, i32 noundef %639, i32 noundef %641, i32 noundef %645, ptr noundef %646)
          to label %647 unwind label %649

647:                                              ; preds = %638
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %15, ptr noundef nonnull align 8 dereferenceable(24) %62)
          to label %648 unwind label %649

648:                                              ; preds = %647
  call void @llvm.lifetime.end.p0(i64 24, ptr %62) #10
  br label %653

649:                                              ; preds = %647, %638
  %650 = landingpad { ptr, i32 }
          cleanup
  %651 = extractvalue { ptr, i32 } %650, 0
  store ptr %651, ptr %20, align 8
  %652 = extractvalue { ptr, i32 } %650, 1
  store i32 %652, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %62) #10
  br label %695

653:                                              ; preds = %648, %635
  %654 = load i32, ptr %49, align 4, !tbaa !14
  %655 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 4
  %656 = load i32, ptr %655, align 8, !tbaa !28
  %657 = sub nsw i32 %656, 1
  %658 = icmp slt i32 %654, %657
  br i1 %658, label %659, label %672

659:                                              ; preds = %653
  call void @llvm.lifetime.start.p0(i64 24, ptr %63) #10
  %660 = load i32, ptr %49, align 4, !tbaa !14
  %661 = add nsw i32 %660, 1
  %662 = load i32, ptr %50, align 4, !tbaa !14
  %663 = load i32, ptr %51, align 4, !tbaa !14
  %664 = add nsw i32 %663, 1
  %665 = load ptr, ptr %54, align 8, !tbaa !5
  invoke void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %63, i32 noundef %661, i32 noundef %662, i32 noundef %664, ptr noundef %665)
          to label %666 unwind label %668

666:                                              ; preds = %659
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %15, ptr noundef nonnull align 8 dereferenceable(24) %63)
          to label %667 unwind label %668

667:                                              ; preds = %666
  call void @llvm.lifetime.end.p0(i64 24, ptr %63) #10
  br label %672

668:                                              ; preds = %666, %659
  %669 = landingpad { ptr, i32 }
          cleanup
  %670 = extractvalue { ptr, i32 } %669, 0
  store ptr %670, ptr %20, align 8
  %671 = extractvalue { ptr, i32 } %669, 1
  store i32 %671, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %63) #10
  br label %695

672:                                              ; preds = %667, %653
  %673 = load i32, ptr %50, align 4, !tbaa !14
  %674 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 5
  %675 = load i32, ptr %674, align 4, !tbaa !29
  %676 = sub nsw i32 %675, 1
  %677 = icmp slt i32 %673, %676
  br i1 %677, label %678, label %693

678:                                              ; preds = %672
  call void @llvm.lifetime.start.p0(i64 24, ptr %64) #10
  %679 = load i32, ptr %49, align 4, !tbaa !14
  %680 = load i32, ptr %50, align 4, !tbaa !14
  %681 = add nsw i32 %680, 1
  %682 = load i32, ptr %51, align 4, !tbaa !14
  %683 = getelementptr inbounds %class.b2VoronoiDiagram, ptr %65, i32 0, i32 4
  %684 = load i32, ptr %683, align 8, !tbaa !28
  %685 = add nsw i32 %682, %684
  %686 = load ptr, ptr %54, align 8, !tbaa !5
  invoke void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %64, i32 noundef %679, i32 noundef %681, i32 noundef %685, ptr noundef %686)
          to label %687 unwind label %689

687:                                              ; preds = %678
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %15, ptr noundef nonnull align 8 dereferenceable(24) %64)
          to label %688 unwind label %689

688:                                              ; preds = %687
  call void @llvm.lifetime.end.p0(i64 24, ptr %64) #10
  br label %693

689:                                              ; preds = %687, %678
  %690 = landingpad { ptr, i32 }
          cleanup
  %691 = extractvalue { ptr, i32 } %690, 0
  store ptr %691, ptr %20, align 8
  %692 = extractvalue { ptr, i32 } %690, 1
  store i32 %692, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %64) #10
  br label %695

693:                                              ; preds = %688, %672
  br label %694

694:                                              ; preds = %693, %561
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #10
  br label %696

695:                                              ; preds = %689, %668, %649, %631
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #10
  br label %697

696:                                              ; preds = %694, %550
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #10
  br label %531, !llvm.loop !45

697:                                              ; preds = %695, %627
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #10
  br label %698

698:                                              ; preds = %697, %623
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #10
  br label %700

699:                                              ; preds = %533
  call void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %15) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  ret void

700:                                              ; preds = %698, %525, %451, %385, %298, %249
  call void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %15) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  br label %701

701:                                              ; preds = %700
  %702 = load ptr, ptr %20, align 8
  %703 = load i32, ptr %21, align 4
  %704 = insertvalue { ptr, i32 } poison, ptr %702, 0
  %705 = insertvalue { ptr, i32 } %704, i32 %703, 1
  resume { ptr, i32 } %705
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6b2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Z5b2MinRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Z5b2MaxRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEEC2EP16b2StackAllocatori(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef, i32 noundef) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZmlfRK6b2Vec2(float noundef, ptr noundef nonnull align 4 dereferenceable(8)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(24)) #7 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE5EmptyEv(ptr noundef nonnull align 8 dereferenceable(28)) #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE3PopEv(ptr noundef nonnull align 8 dereferenceable(28)) #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEED2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #5 align 2

attributes #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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 = { 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 #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { noreturn nounwind }
attributes #10 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !6, i64 32}
!12 = !{!"_ZTS16b2VoronoiDiagram", !6, i64 0, !6, i64 8, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !6, i64 32}
!13 = !{!"int", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!12, !13, i64 20}
!16 = !{!12, !6, i64 8}
!17 = !{!18, !20, i64 12}
!18 = !{!"_ZTSN16b2VoronoiDiagram9GeneratorE", !19, i64 0, !13, i64 8, !20, i64 12}
!19 = !{!"_ZTS6b2Vec2", !10, i64 0, !10, i64 4}
!20 = !{!"bool", !7, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!19, !10, i64 0}
!27 = !{!19, !10, i64 4}
!28 = !{!12, !13, i64 24}
!29 = !{!12, !13, i64 28}
!30 = !{!12, !6, i64 0}
!31 = distinct !{!31, !25}
!32 = !{!18, !10, i64 0}
!33 = !{!18, !10, i64 4}
!34 = distinct !{!34, !25}
!35 = !{!36, !13, i64 0}
!36 = !{!"_ZTSN16b2VoronoiDiagram20b2VoronoiDiagramTaskE", !13, i64 0, !13, i64 4, !13, i64 8, !6, i64 16}
!37 = !{!36, !13, i64 4}
!38 = !{!36, !13, i64 8}
!39 = !{!36, !6, i64 16}
!40 = distinct !{!40, !25}
!41 = distinct !{!41, !25}
!42 = distinct !{!42, !25}
!43 = distinct !{!43, !25}
!44 = distinct !{!44, !25}
!45 = distinct !{!45, !25}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.b2Vec2 = type { float, float }
%class.b2StackQueue = type <{ ptr, ptr, i32, i32, i32, [4 x i8] }>
%"struct.b2VoronoiDiagram::b2VoronoiDiagramTask" = type { i32, i32, i32, ptr }
%"struct.b2VoronoiDiagram::Generator" = type <{ %struct.b2Vec2, i32, i8, [3 x i8] }>

@.str.1 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@__PRETTY_FUNCTION__._ZN16b2VoronoiDiagram8GenerateEff = external hidden unnamed_addr constant [50 x i8], align 1

declare noundef ptr @_ZN16b2StackAllocator8AllocateEi(ptr noundef nonnull align 8 dereferenceable(102932), i32 noundef) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16b2VoronoiDiagram8GenerateEff(ptr nocapture noundef nonnull align 8 dereferenceable(40) %0, float noundef %1, float noundef %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %struct.b2Vec2, align 8
  %5 = alloca %struct.b2Vec2, align 8
  %6 = alloca %class.b2StackQueue, align 8
  %7 = alloca %struct.b2Vec2, align 8
  %8 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  %9 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  %10 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  %11 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  %12 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  %13 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  %14 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  %15 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  %16 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  %17 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  %18 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  %19 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  %20 = alloca %"struct.b2VoronoiDiagram::b2VoronoiDiagramTask", align 8
  %21 = getelementptr inbounds i8, ptr %0, i64 32
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  %23 = icmp eq ptr %22, null
  br i1 %23, label %25, label %24

24:                                               ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 57, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN16b2VoronoiDiagram8GenerateEff) #8
  unreachable

25:                                               ; preds = %3
  %26 = fdiv float 1.000000e+00, %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  call void @_ZN6b2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %4, float noundef 0x47EFFFFFE0000000, float noundef 0x47EFFFFFE0000000)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  call void @_ZN6b2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %5, float noundef 0xC7EFFFFFE0000000, float noundef 0xC7EFFFFFE0000000)
  %27 = getelementptr inbounds i8, ptr %0, i64 20
  %28 = load i32, ptr %27, align 4, !tbaa !11
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %25
  %30 = getelementptr inbounds i8, ptr %0, i64 8
  br label %56

._crit_edge:                                      ; preds = %66, %25
  %31 = load <2 x float>, ptr %4, align 8, !tbaa !12
  %32 = insertelement <2 x float> poison, float %2, i64 0
  %33 = shufflevector <2 x float> %32, <2 x float> poison, <2 x i32> zeroinitializer
  %34 = fsub <2 x float> %31, %33
  store <2 x float> %34, ptr %4, align 8, !tbaa !12
  %35 = load <2 x float>, ptr %5, align 8, !tbaa !12
  %36 = fadd <2 x float> %35, %33
  store <2 x float> %36, ptr %5, align 8, !tbaa !12
  %37 = getelementptr inbounds i8, ptr %0, i64 24
  %38 = getelementptr inbounds i8, ptr %0, i64 28
  %39 = fsub <2 x float> %36, %34
  %40 = insertelement <2 x float> poison, float %26, i64 0
  %41 = shufflevector <2 x float> %40, <2 x float> poison, <2 x i32> zeroinitializer
  %42 = fmul <2 x float> %41, %39
  %43 = fptosi <2 x float> %42 to <2 x i32>
  %44 = add nsw <2 x i32> %43, <i32 1, i32 1>
  store <2 x i32> %44, ptr %37, align 8, !tbaa !14
  %45 = load ptr, ptr %0, align 8, !tbaa !15
  %46 = extractelement <2 x i32> %44, i64 0
  %47 = shl i32 %46, 3
  %48 = extractelement <2 x i32> %44, i64 1
  %49 = mul i32 %47, %48
  %50 = call noundef ptr @_ZN16b2StackAllocator8AllocateEi(ptr noundef nonnull align 8 dereferenceable(102932) %45, i32 noundef %49)
  store ptr %50, ptr %21, align 8, !tbaa !5
  %51 = load i32, ptr %37, align 8, !tbaa !16
  %52 = load i32, ptr %38, align 4, !tbaa !17
  %53 = mul nsw i32 %52, %51
  %54 = icmp sgt i32 %53, 0
  br i1 %54, label %.lr.ph202.preheader, label %._crit_edge203

.lr.ph202.preheader:                              ; preds = %._crit_edge
  %wide.trip.count = zext nneg i32 %53 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %55 = icmp ult i32 %53, 4
  br i1 %55, label %._crit_edge203.loopexit.unr-lcssa, label %.lr.ph202.preheader.new

.lr.ph202.preheader.new:                          ; preds = %.lr.ph202.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %.lr.ph202

56:                                               ; preds = %.lr.ph, %66
  %57 = phi i32 [ %28, %.lr.ph ], [ %67, %66 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %66 ]
  %58 = load ptr, ptr %30, align 8, !tbaa !18
  %59 = getelementptr inbounds %"struct.b2VoronoiDiagram::Generator", ptr %58, i64 %indvars.iv
  %60 = getelementptr inbounds i8, ptr %59, i64 12
  %61 = load i8, ptr %60, align 4, !tbaa !19, !range !23, !noundef !24
  %62 = trunc nuw i8 %61 to i1
  br i1 %62, label %63, label %66

63:                                               ; preds = %56
  %64 = call <2 x float> @_Z5b2MinRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %59)
  store <2 x float> %64, ptr %4, align 8
  %65 = call <2 x float> @_Z5b2MaxRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %59)
  store <2 x float> %65, ptr %5, align 8
  %.pre = load i32, ptr %27, align 4, !tbaa !11
  br label %66

66:                                               ; preds = %63, %56
  %67 = phi i32 [ %.pre, %63 ], [ %57, %56 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %68 = sext i32 %67 to i64
  %69 = icmp slt i64 %indvars.iv.next, %68
  br i1 %69, label %56, label %._crit_edge, !llvm.loop !25

._crit_edge203.loopexit.unr-lcssa:                ; preds = %.lr.ph202, %.lr.ph202.preheader
  %indvars.iv222.unr = phi i64 [ 0, %.lr.ph202.preheader ], [ %indvars.iv.next223.3, %.lr.ph202 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge203, label %.lr.ph202.epil

.lr.ph202.epil:                                   ; preds = %._crit_edge203.loopexit.unr-lcssa, %.lr.ph202.epil
  %indvars.iv222.epil = phi i64 [ %indvars.iv.next223.epil, %.lr.ph202.epil ], [ %indvars.iv222.unr, %._crit_edge203.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph202.epil ], [ 0, %._crit_edge203.loopexit.unr-lcssa ]
  %70 = load ptr, ptr %21, align 8, !tbaa !5
  %71 = getelementptr inbounds ptr, ptr %70, i64 %indvars.iv222.epil
  store ptr null, ptr %71, align 8, !tbaa !27
  %indvars.iv.next223.epil = add nuw nsw i64 %indvars.iv222.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge203, label %.lr.ph202.epil, !llvm.loop !28

._crit_edge203:                                   ; preds = %._crit_edge203.loopexit.unr-lcssa, %.lr.ph202.epil, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #9
  %72 = load ptr, ptr %0, align 8, !tbaa !15
  %73 = shl nsw i32 %51, 2
  %74 = mul nsw i32 %73, %52
  call void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEEC2EP16b2StackAllocatori(ptr noundef nonnull align 8 dereferenceable(28) %6, ptr noundef %72, i32 noundef %74)
  %75 = load i32, ptr %27, align 4, !tbaa !11
  %76 = icmp sgt i32 %75, 0
  br i1 %76, label %.lr.ph207, label %.preheader196

.lr.ph207:                                        ; preds = %._crit_edge203
  %77 = getelementptr inbounds i8, ptr %0, i64 8
  br label %87

.lr.ph202:                                        ; preds = %.lr.ph202, %.lr.ph202.preheader.new
  %indvars.iv222 = phi i64 [ 0, %.lr.ph202.preheader.new ], [ %indvars.iv.next223.3, %.lr.ph202 ]
  %niter = phi i64 [ 0, %.lr.ph202.preheader.new ], [ %niter.next.3, %.lr.ph202 ]
  %78 = load ptr, ptr %21, align 8, !tbaa !5
  %79 = getelementptr inbounds ptr, ptr %78, i64 %indvars.iv222
  store ptr null, ptr %79, align 8, !tbaa !27
  %indvars.iv.next223 = or disjoint i64 %indvars.iv222, 1
  %80 = load ptr, ptr %21, align 8, !tbaa !5
  %81 = getelementptr inbounds ptr, ptr %80, i64 %indvars.iv.next223
  store ptr null, ptr %81, align 8, !tbaa !27
  %indvars.iv.next223.1 = or disjoint i64 %indvars.iv222, 2
  %82 = load ptr, ptr %21, align 8, !tbaa !5
  %83 = getelementptr inbounds ptr, ptr %82, i64 %indvars.iv.next223.1
  store ptr null, ptr %83, align 8, !tbaa !27
  %indvars.iv.next223.2 = or disjoint i64 %indvars.iv222, 3
  %84 = load ptr, ptr %21, align 8, !tbaa !5
  %85 = getelementptr inbounds ptr, ptr %84, i64 %indvars.iv.next223.2
  store ptr null, ptr %85, align 8, !tbaa !27
  %indvars.iv.next223.3 = add nuw nsw i64 %indvars.iv222, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge203.loopexit.unr-lcssa, label %.lr.ph202, !llvm.loop !30

.preheader196:                                    ; preds = %113, %._crit_edge203
  %86 = call noundef zeroext i1 @_ZNK12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE5EmptyEv(ptr noundef nonnull align 8 dereferenceable(28) %6)
  br i1 %86, label %.preheader195, label %.lr.ph208

87:                                               ; preds = %.lr.ph207, %113
  %indvars.iv225 = phi i64 [ 0, %.lr.ph207 ], [ %indvars.iv.next226, %113 ]
  %88 = load ptr, ptr %77, align 8, !tbaa !18
  %89 = getelementptr inbounds %"struct.b2VoronoiDiagram::Generator", ptr %88, i64 %indvars.iv225
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %90 = invoke <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %89, ptr noundef nonnull align 4 dereferenceable(8) %4)
          to label %91 unwind label %109

91:                                               ; preds = %87
  store <2 x float> %90, ptr %7, align 8
  %92 = invoke <2 x float> @_ZmlfRK6b2Vec2(float noundef %26, ptr noundef nonnull align 4 dereferenceable(8) %7)
          to label %93 unwind label %109

93:                                               ; preds = %91
  store <2 x float> %92, ptr %89, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  %94 = load <2 x float>, ptr %89, align 4, !tbaa !12
  %95 = fptosi <2 x float> %94 to <2 x i32>
  %96 = icmp sgt <2 x i32> %95, <i32 -1, i32 -1>
  %97 = extractelement <2 x i1> %96, i64 0
  %98 = extractelement <2 x i1> %96, i64 1
  %or.cond = select i1 %97, i1 %98, i1 false
  %99 = load i32, ptr %37, align 8
  %100 = extractelement <2 x i32> %95, i64 0
  %101 = icmp sgt i32 %99, %100
  %or.cond189 = select i1 %or.cond, i1 %101, i1 false
  %102 = load i32, ptr %38, align 4
  %103 = extractelement <2 x i32> %95, i64 1
  %104 = icmp sgt i32 %102, %103
  %or.cond191 = select i1 %or.cond189, i1 %104, i1 false
  br i1 %or.cond191, label %105, label %113

105:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #9
  %106 = mul nsw i32 %99, %103
  %107 = add nsw i32 %106, %100
  call void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef %100, i32 noundef %103, i32 noundef %107, ptr noundef nonnull %89)
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %6, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %108 unwind label %111

108:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #9
  br label %113

109:                                              ; preds = %91, %87
  %110 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  br label %325

111:                                              ; preds = %105
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #9
  br label %325

113:                                              ; preds = %108, %93
  %indvars.iv.next226 = add nuw nsw i64 %indvars.iv225, 1
  %114 = load i32, ptr %27, align 4, !tbaa !11
  %115 = sext i32 %114 to i64
  %116 = icmp slt i64 %indvars.iv.next226, %115
  br i1 %116, label %87, label %.preheader196, !llvm.loop !31

.preheader195:                                    ; preds = %174, %.preheader196
  %117 = load i32, ptr %38, align 4, !tbaa !17
  %118 = icmp sgt i32 %117, 0
  br i1 %118, label %.preheader194.lr.ph, label %.preheader

.preheader194.lr.ph:                              ; preds = %.preheader195
  %119 = load i32, ptr %37, align 8, !tbaa !16
  %120 = icmp sgt i32 %119, 1
  br i1 %120, label %.preheader194, label %.preheader193

.lr.ph208:                                        ; preds = %.preheader196, %174
  %121 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE5FrontEv(ptr noundef nonnull align 8 dereferenceable(28) %6)
  %122 = load i32, ptr %121, align 8, !tbaa !32
  %123 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE5FrontEv(ptr noundef nonnull align 8 dereferenceable(28) %6)
  %124 = getelementptr inbounds i8, ptr %123, i64 4
  %125 = load i32, ptr %124, align 4, !tbaa !34
  %126 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE5FrontEv(ptr noundef nonnull align 8 dereferenceable(28) %6)
  %127 = getelementptr inbounds i8, ptr %126, i64 8
  %128 = load i32, ptr %127, align 8, !tbaa !35
  %129 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE5FrontEv(ptr noundef nonnull align 8 dereferenceable(28) %6)
  %130 = getelementptr inbounds i8, ptr %129, i64 16
  %131 = load ptr, ptr %130, align 8, !tbaa !36
  call void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE3PopEv(ptr noundef nonnull align 8 dereferenceable(28) %6)
  %132 = load ptr, ptr %21, align 8, !tbaa !5
  %133 = sext i32 %128 to i64
  %134 = getelementptr inbounds ptr, ptr %132, i64 %133
  %135 = load ptr, ptr %134, align 8, !tbaa !27
  %.not182 = icmp eq ptr %135, null
  br i1 %.not182, label %136, label %174

136:                                              ; preds = %.lr.ph208
  store ptr %131, ptr %134, align 8, !tbaa !27
  %137 = icmp sgt i32 %122, 0
  br i1 %137, label %138, label %144

138:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #9
  %139 = add nsw i32 %122, -1
  %140 = add nsw i32 %128, -1
  call void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef %139, i32 noundef %125, i32 noundef %140, ptr noundef %131)
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %6, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %141 unwind label %142

141:                                              ; preds = %138
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #9
  br label %144

142:                                              ; preds = %138
  %143 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #9
  br label %325

144:                                              ; preds = %141, %136
  %145 = icmp sgt i32 %125, 0
  br i1 %145, label %146, label %153

146:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #9
  %147 = add nsw i32 %125, -1
  %148 = load i32, ptr %37, align 8, !tbaa !16
  %149 = sub nsw i32 %128, %148
  call void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef %122, i32 noundef %147, i32 noundef %149, ptr noundef %131)
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %6, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %150 unwind label %151

150:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #9
  br label %153

151:                                              ; preds = %146
  %152 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #9
  br label %325

153:                                              ; preds = %150, %144
  %154 = load i32, ptr %37, align 8, !tbaa !16
  %155 = add nsw i32 %154, -1
  %156 = icmp slt i32 %122, %155
  br i1 %156, label %157, label %163

157:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #9
  %158 = add nsw i32 %122, 1
  %159 = add nsw i32 %128, 1
  call void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %11, i32 noundef %158, i32 noundef %125, i32 noundef %159, ptr noundef %131)
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %6, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %160 unwind label %161

160:                                              ; preds = %157
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #9
  br label %163

161:                                              ; preds = %157
  %162 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #9
  br label %325

163:                                              ; preds = %160, %153
  %164 = load i32, ptr %38, align 4, !tbaa !17
  %165 = add nsw i32 %164, -1
  %166 = icmp slt i32 %125, %165
  br i1 %166, label %167, label %174

167:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #9
  %168 = add nsw i32 %125, 1
  %169 = load i32, ptr %37, align 8, !tbaa !16
  %170 = add nsw i32 %169, %128
  call void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef %122, i32 noundef %168, i32 noundef %170, ptr noundef %131)
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %6, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %171 unwind label %172

171:                                              ; preds = %167
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #9
  br label %174

172:                                              ; preds = %167
  %173 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #9
  br label %325

174:                                              ; preds = %163, %171, %.lr.ph208
  %175 = call noundef zeroext i1 @_ZNK12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE5EmptyEv(ptr noundef nonnull align 8 dereferenceable(28) %6)
  br i1 %175, label %.preheader195, label %.lr.ph208, !llvm.loop !37

.preheader194:                                    ; preds = %.preheader194.lr.ph, %._crit_edge211
  %176 = phi i32 [ %184, %._crit_edge211 ], [ %117, %.preheader194.lr.ph ]
  %177 = phi i32 [ %185, %._crit_edge211 ], [ %119, %.preheader194.lr.ph ]
  %178 = phi i32 [ %186, %._crit_edge211 ], [ %119, %.preheader194.lr.ph ]
  %.0154212 = phi i32 [ %187, %._crit_edge211 ], [ 0, %.preheader194.lr.ph ]
  %179 = icmp sgt i32 %178, 1
  br i1 %179, label %.lr.ph210, label %._crit_edge211

.preheader193:                                    ; preds = %._crit_edge211, %.preheader194.lr.ph
  %180 = phi i32 [ %117, %.preheader194.lr.ph ], [ %184, %._crit_edge211 ]
  %181 = icmp sgt i32 %180, 1
  %182 = load i32, ptr %37, align 8
  %183 = icmp sgt i32 %182, 0
  %or.cond238 = select i1 %181, i1 %183, i1 false
  br i1 %or.cond238, label %.preheader192, label %.preheader

._crit_edge211.loopexit:                          ; preds = %209
  %.pre229 = load i32, ptr %38, align 4, !tbaa !17
  br label %._crit_edge211

._crit_edge211:                                   ; preds = %._crit_edge211.loopexit, %.preheader194
  %184 = phi i32 [ %.pre229, %._crit_edge211.loopexit ], [ %176, %.preheader194 ]
  %185 = phi i32 [ %210, %._crit_edge211.loopexit ], [ %177, %.preheader194 ]
  %186 = phi i32 [ %210, %._crit_edge211.loopexit ], [ %178, %.preheader194 ]
  %187 = add nuw nsw i32 %.0154212, 1
  %188 = icmp slt i32 %187, %184
  br i1 %188, label %.preheader194, label %.preheader193, !llvm.loop !38

.lr.ph210:                                        ; preds = %.preheader194, %209
  %189 = phi i32 [ %210, %209 ], [ %177, %.preheader194 ]
  %190 = phi i32 [ %210, %209 ], [ %178, %.preheader194 ]
  %.0155209 = phi i32 [ %.pre-phi, %209 ], [ 0, %.preheader194 ]
  %191 = mul nsw i32 %190, %.0154212
  %192 = add nsw i32 %191, %.0155209
  %193 = load ptr, ptr %21, align 8, !tbaa !5
  %194 = sext i32 %192 to i64
  %195 = getelementptr inbounds ptr, ptr %193, i64 %194
  %196 = load ptr, ptr %195, align 8, !tbaa !27
  %197 = add nsw i32 %192, 1
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds ptr, ptr %193, i64 %198
  %200 = load ptr, ptr %199, align 8, !tbaa !27
  %.not179 = icmp eq ptr %196, %200
  br i1 %.not179, label %.lr.ph210._crit_edge, label %201

.lr.ph210._crit_edge:                             ; preds = %.lr.ph210
  %.pre232 = add nuw nsw i32 %.0155209, 1
  br label %209

201:                                              ; preds = %.lr.ph210
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #9
  call void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef %.0155209, i32 noundef %.0154212, i32 noundef %192, ptr noundef %200)
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %6, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %202 unwind label %205

202:                                              ; preds = %201
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #9
  %203 = add nuw nsw i32 %.0155209, 1
  call void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef %203, i32 noundef %.0154212, i32 noundef %197, ptr noundef %196)
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %6, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %204 unwind label %207

204:                                              ; preds = %202
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #9
  %.pre228 = load i32, ptr %37, align 8, !tbaa !16
  br label %209

205:                                              ; preds = %201
  %206 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #9
  br label %325

207:                                              ; preds = %202
  %208 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #9
  br label %325

209:                                              ; preds = %.lr.ph210._crit_edge, %204
  %.pre-phi = phi i32 [ %.pre232, %.lr.ph210._crit_edge ], [ %203, %204 ]
  %210 = phi i32 [ %189, %.lr.ph210._crit_edge ], [ %.pre228, %204 ]
  %211 = add nsw i32 %210, -1
  %212 = icmp slt i32 %.pre-phi, %211
  br i1 %212, label %.lr.ph210, label %._crit_edge211.loopexit, !llvm.loop !40

.preheader192:                                    ; preds = %.preheader193, %._crit_edge215
  %213 = phi i32 [ %219, %._crit_edge215 ], [ %180, %.preheader193 ]
  %214 = phi i32 [ %220, %._crit_edge215 ], [ %182, %.preheader193 ]
  %215 = phi i32 [ %221, %._crit_edge215 ], [ %182, %.preheader193 ]
  %.0156216 = phi i32 [ %217, %._crit_edge215 ], [ 0, %.preheader193 ]
  %216 = icmp sgt i32 %215, 0
  %217 = add nuw nsw i32 %.0156216, 1
  br i1 %216, label %.lr.ph214, label %._crit_edge215

.preheader:                                       ; preds = %._crit_edge215, %.preheader195, %.preheader193
  %218 = call noundef zeroext i1 @_ZNK12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE5EmptyEv(ptr noundef nonnull align 8 dereferenceable(28) %6)
  br i1 %218, label %._crit_edge218, label %.lr.ph217

._crit_edge215.loopexit:                          ; preds = %245
  %.pre231 = load i32, ptr %38, align 4, !tbaa !17
  br label %._crit_edge215

._crit_edge215:                                   ; preds = %.preheader192, %._crit_edge215.loopexit
  %219 = phi i32 [ %.pre231, %._crit_edge215.loopexit ], [ %213, %.preheader192 ]
  %220 = phi i32 [ %246, %._crit_edge215.loopexit ], [ %214, %.preheader192 ]
  %221 = phi i32 [ %246, %._crit_edge215.loopexit ], [ %215, %.preheader192 ]
  %222 = add nsw i32 %219, -1
  %223 = icmp slt i32 %217, %222
  br i1 %223, label %.preheader192, label %.preheader, !llvm.loop !41

.lr.ph214:                                        ; preds = %.preheader192, %245
  %224 = phi i32 [ %246, %245 ], [ %214, %.preheader192 ]
  %225 = phi i32 [ %246, %245 ], [ %215, %.preheader192 ]
  %.0157213 = phi i32 [ %247, %245 ], [ 0, %.preheader192 ]
  %226 = mul nsw i32 %225, %.0156216
  %227 = add nsw i32 %226, %.0157213
  %228 = load ptr, ptr %21, align 8, !tbaa !5
  %229 = sext i32 %227 to i64
  %230 = getelementptr inbounds ptr, ptr %228, i64 %229
  %231 = load ptr, ptr %230, align 8, !tbaa !27
  %232 = add nsw i32 %227, %225
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds ptr, ptr %228, i64 %233
  %235 = load ptr, ptr %234, align 8, !tbaa !27
  %.not176 = icmp eq ptr %231, %235
  br i1 %.not176, label %245, label %236

236:                                              ; preds = %.lr.ph214
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #9
  call void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef %.0157213, i32 noundef %.0156216, i32 noundef %227, ptr noundef %235)
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %6, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %237 unwind label %241

237:                                              ; preds = %236
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #9
  %238 = load i32, ptr %37, align 8, !tbaa !16
  %239 = add nsw i32 %238, %227
  call void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %16, i32 noundef %.0157213, i32 noundef %217, i32 noundef %239, ptr noundef %231)
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %6, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %240 unwind label %243

240:                                              ; preds = %237
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #9
  %.pre230 = load i32, ptr %37, align 8, !tbaa !16
  br label %245

241:                                              ; preds = %236
  %242 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #9
  br label %325

243:                                              ; preds = %237
  %244 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #9
  br label %325

245:                                              ; preds = %240, %.lr.ph214
  %246 = phi i32 [ %.pre230, %240 ], [ %224, %.lr.ph214 ]
  %247 = add nuw nsw i32 %.0157213, 1
  %248 = icmp slt i32 %247, %246
  br i1 %248, label %.lr.ph214, label %._crit_edge215.loopexit, !llvm.loop !42

.lr.ph217:                                        ; preds = %.preheader, %323
  %249 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE5FrontEv(ptr noundef nonnull align 8 dereferenceable(28) %6)
  %250 = load i32, ptr %249, align 8, !tbaa !32
  %251 = getelementptr inbounds i8, ptr %249, i64 4
  %252 = load i32, ptr %251, align 4, !tbaa !34
  %253 = getelementptr inbounds i8, ptr %249, i64 8
  %254 = load i32, ptr %253, align 8, !tbaa !35
  %255 = getelementptr inbounds i8, ptr %249, i64 16
  %256 = load ptr, ptr %255, align 8, !tbaa !36
  call void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE3PopEv(ptr noundef nonnull align 8 dereferenceable(28) %6)
  %257 = load ptr, ptr %21, align 8, !tbaa !5
  %258 = sext i32 %254 to i64
  %259 = getelementptr inbounds ptr, ptr %257, i64 %258
  %260 = load ptr, ptr %259, align 8, !tbaa !27
  %.not = icmp eq ptr %260, %256
  br i1 %.not, label %323, label %261

261:                                              ; preds = %.lr.ph217
  %262 = load float, ptr %260, align 4, !tbaa !43
  %263 = sitofp i32 %250 to float
  %264 = getelementptr inbounds i8, ptr %260, i64 4
  %265 = load float, ptr %264, align 4, !tbaa !44
  %266 = sitofp i32 %252 to float
  %267 = load float, ptr %256, align 4, !tbaa !43
  %268 = getelementptr inbounds i8, ptr %256, i64 4
  %269 = load float, ptr %268, align 4, !tbaa !44
  %270 = insertelement <2 x float> poison, float %262, i64 0
  %271 = insertelement <2 x float> %270, float %267, i64 1
  %272 = insertelement <2 x float> poison, float %263, i64 0
  %273 = shufflevector <2 x float> %272, <2 x float> poison, <2 x i32> zeroinitializer
  %274 = fsub <2 x float> %271, %273
  %275 = insertelement <2 x float> poison, float %265, i64 0
  %276 = insertelement <2 x float> %275, float %269, i64 1
  %277 = insertelement <2 x float> poison, float %266, i64 0
  %278 = shufflevector <2 x float> %277, <2 x float> poison, <2 x i32> zeroinitializer
  %279 = fsub <2 x float> %276, %278
  %280 = fmul <2 x float> %279, %279
  %281 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %274, <2 x float> %274, <2 x float> %280)
  %282 = extractelement <2 x float> %281, i64 0
  %283 = extractelement <2 x float> %281, i64 1
  %284 = fcmp ogt float %282, %283
  br i1 %284, label %285, label %323

285:                                              ; preds = %261
  store ptr %256, ptr %259, align 8, !tbaa !27
  %286 = icmp sgt i32 %250, 0
  br i1 %286, label %287, label %293

287:                                              ; preds = %285
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #9
  %288 = add nsw i32 %250, -1
  %289 = add nsw i32 %254, -1
  call void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef %288, i32 noundef %252, i32 noundef %289, ptr noundef nonnull %256)
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %6, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %290 unwind label %291

290:                                              ; preds = %287
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #9
  br label %293

291:                                              ; preds = %287
  %292 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #9
  br label %325

293:                                              ; preds = %290, %285
  %294 = icmp sgt i32 %252, 0
  br i1 %294, label %295, label %302

295:                                              ; preds = %293
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #9
  %296 = add nsw i32 %252, -1
  %297 = load i32, ptr %37, align 8, !tbaa !16
  %298 = sub nsw i32 %254, %297
  call void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef %250, i32 noundef %296, i32 noundef %298, ptr noundef nonnull %256)
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %6, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %299 unwind label %300

299:                                              ; preds = %295
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #9
  br label %302

300:                                              ; preds = %295
  %301 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #9
  br label %325

302:                                              ; preds = %299, %293
  %303 = load i32, ptr %37, align 8, !tbaa !16
  %304 = add nsw i32 %303, -1
  %305 = icmp slt i32 %250, %304
  br i1 %305, label %306, label %312

306:                                              ; preds = %302
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #9
  %307 = add nsw i32 %250, 1
  %308 = add nsw i32 %254, 1
  call void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %19, i32 noundef %307, i32 noundef %252, i32 noundef %308, ptr noundef nonnull %256)
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %6, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %309 unwind label %310

309:                                              ; preds = %306
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #9
  br label %312

310:                                              ; preds = %306
  %311 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #9
  br label %325

312:                                              ; preds = %309, %302
  %313 = load i32, ptr %38, align 4, !tbaa !17
  %314 = add nsw i32 %313, -1
  %315 = icmp slt i32 %252, %314
  br i1 %315, label %316, label %323

316:                                              ; preds = %312
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #9
  %317 = add nsw i32 %252, 1
  %318 = load i32, ptr %37, align 8, !tbaa !16
  %319 = add nsw i32 %318, %254
  call void @_ZN16b2VoronoiDiagram20b2VoronoiDiagramTaskC2EiiiPNS_9GeneratorE(ptr noundef nonnull align 8 dereferenceable(24) %20, i32 noundef %250, i32 noundef %317, i32 noundef %319, ptr noundef nonnull %256)
  invoke void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28) %6, ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %320 unwind label %321

320:                                              ; preds = %316
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #9
  br label %323

321:                                              ; preds = %316
  %322 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #9
  br label %325

323:                                              ; preds = %261, %320, %312, %.lr.ph217
  %324 = call noundef zeroext i1 @_ZNK12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE5EmptyEv(ptr noundef nonnull align 8 dereferenceable(28) %6)
  br i1 %324, label %._crit_edge218, label %.lr.ph217, !llvm.loop !45

._crit_edge218:                                   ; preds = %323, %.preheader
  call void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %6) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  ret void

325:                                              ; preds = %291, %300, %310, %321, %241, %243, %205, %207, %142, %151, %161, %172, %109, %111
  %.pn185.pn = phi { ptr, i32 } [ %112, %111 ], [ %110, %109 ], [ %173, %172 ], [ %162, %161 ], [ %152, %151 ], [ %143, %142 ], [ %208, %207 ], [ %206, %205 ], [ %244, %243 ], [ %242, %241 ], [ %322, %321 ], [ %311, %310 ], [ %301, %300 ], [ %292, %291 ]
  call void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEED2Ev(ptr noundef nonnull align 8 dereferenceable(28) %6) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  resume { ptr, i32 } %.pn185.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6b2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Z5b2MinRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Z5b2MaxRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZmlfRK6b2Vec2(float noundef, ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE4PushERKS1_(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE5EmptyEv(ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE5FrontEv(ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEE3PopEv(ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12b2StackQueueIN16b2VoronoiDiagram20b2VoronoiDiagramTaskEED2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #4 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #7

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 32}
!6 = !{!"_ZTS16b2VoronoiDiagram", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !7, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 20}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !8, i64 0}
!14 = !{!10, !10, i64 0}
!15 = !{!6, !7, i64 0}
!16 = !{!6, !10, i64 24}
!17 = !{!6, !10, i64 28}
!18 = !{!6, !7, i64 8}
!19 = !{!20, !22, i64 12}
!20 = !{!"_ZTSN16b2VoronoiDiagram9GeneratorE", !21, i64 0, !10, i64 8, !22, i64 12}
!21 = !{!"_ZTS6b2Vec2", !13, i64 0, !13, i64 4}
!22 = !{!"bool", !8, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!7, !7, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.unroll.disable"}
!30 = distinct !{!30, !26}
!31 = distinct !{!31, !26}
!32 = !{!33, !10, i64 0}
!33 = !{!"_ZTSN16b2VoronoiDiagram20b2VoronoiDiagramTaskE", !10, i64 0, !10, i64 4, !10, i64 8, !7, i64 16}
!34 = !{!33, !10, i64 4}
!35 = !{!33, !10, i64 8}
!36 = !{!33, !7, i64 16}
!37 = distinct !{!37, !26}
!38 = distinct !{!38, !26, !39}
!39 = !{!"llvm.loop.unswitch.partial.disable"}
!40 = distinct !{!40, !26}
!41 = distinct !{!41, !26, !39}
!42 = distinct !{!42, !26}
!43 = !{!20, !13, i64 0}
!44 = !{!20, !13, i64 4}
!45 = distinct !{!45, !26}


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