; LLVM IR from MIT-SPARK/Kimera-VIO :: third_party/triangle/src (triangle)

; 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.mesh = type { %struct.memorypool, %struct.memorypool, %struct.memorypool, %struct.memorypool, %struct.memorypool, %struct.memorypool, %struct.memorypool, %struct.memorypool, [4096 x ptr], [4096 x ptr], [4096 x i32], i32, ptr, float, float, float, float, float, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.otri }
%struct.memorypool = type { ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i64, i64, i32, i32 }
%struct.otri = type { ptr, i32 }
%struct.behavior = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, float }
%struct.triangulateio = type { ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, i32 }

@.str.123 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [23 x i8], align 1

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

declare i32 @printf(ptr noundef, ...) #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @triangledeinit(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @triangleinit(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i64 @delaunay(ptr noundef, ptr noundef) #2

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @highorder(ptr noundef, ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @writenodes(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @numbernodes(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @writeelements(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @writepoly(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @writeedges(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @writevoronoi(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @writeneighbors(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @statistics(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @triangulate(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %struct.mesh, align 8
  %10 = alloca %struct.behavior, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 82888, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 152, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @triangleinit(ptr noundef %9)
  call void @parsecommandline(i32 noundef 1, ptr noundef %5, ptr noundef %10)
  %13 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 33
  %14 = load i32, ptr %13, align 4, !tbaa !9
  %15 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 29
  store i32 %14, ptr %15, align 8, !tbaa !13
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.triangulateio, ptr %16, i32 0, i32 0
  %18 = load ptr, ptr %17, align 8, !tbaa !18
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.triangulateio, ptr %19, i32 0, i32 1
  %21 = load ptr, ptr %20, align 8, !tbaa !20
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.triangulateio, ptr %22, i32 0, i32 2
  %24 = load ptr, ptr %23, align 8, !tbaa !21
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.triangulateio, ptr %25, i32 0, i32 3
  %27 = load i32, ptr %26, align 8, !tbaa !22
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.triangulateio, ptr %28, i32 0, i32 4
  %30 = load i32, ptr %29, align 4, !tbaa !23
  call void @transfernodes(ptr noundef %9, ptr noundef %10, ptr noundef %18, ptr noundef %21, ptr noundef %24, i32 noundef %27, i32 noundef %30)
  %31 = call i64 @delaunay(ptr noundef %9, ptr noundef %10)
  %32 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 28
  store i64 %31, ptr %32, align 8, !tbaa !24
  %33 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 45
  store ptr null, ptr %33, align 8, !tbaa !25
  %34 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 46
  store ptr null, ptr %34, align 8, !tbaa !26
  %35 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 47
  store ptr null, ptr %35, align 8, !tbaa !27
  %36 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 30
  %37 = load i32, ptr %36, align 4, !tbaa !28
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %55

39:                                               ; preds = %4
  %40 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 35
  store i32 1, ptr %40, align 8, !tbaa !29
  %41 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 1
  %42 = load i32, ptr %41, align 4, !tbaa !30
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %54, label %44

44:                                               ; preds = %39
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.triangulateio, ptr %45, i32 0, i32 12
  %47 = load ptr, ptr %46, align 8, !tbaa !31
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.triangulateio, ptr %48, i32 0, i32 13
  %50 = load ptr, ptr %49, align 8, !tbaa !32
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.triangulateio, ptr %51, i32 0, i32 14
  %53 = load i32, ptr %52, align 8, !tbaa !33
  call void @formskeleton(ptr noundef %9, ptr noundef %10, ptr noundef %47, ptr noundef %50, i32 noundef %53)
  br label %54

54:                                               ; preds = %44, %39
  br label %55

55:                                               ; preds = %54, %4
  %56 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 0
  %57 = load i32, ptr %56, align 4, !tbaa !34
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %90

59:                                               ; preds = %55
  %60 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 0
  %61 = getelementptr inbounds %struct.memorypool, ptr %60, i32 0, i32 10
  %62 = load i64, ptr %61, align 8, !tbaa !35
  %63 = icmp sgt i64 %62, 0
  br i1 %63, label %64, label %90

64:                                               ; preds = %59
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.triangulateio, ptr %65, i32 0, i32 15
  %67 = load ptr, ptr %66, align 8, !tbaa !36
  store ptr %67, ptr %11, align 8, !tbaa !5
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.triangulateio, ptr %68, i32 0, i32 16
  %70 = load i32, ptr %69, align 8, !tbaa !37
  %71 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 21
  store i32 %70, ptr %71, align 8, !tbaa !38
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.triangulateio, ptr %72, i32 0, i32 17
  %74 = load ptr, ptr %73, align 8, !tbaa !39
  store ptr %74, ptr %12, align 8, !tbaa !5
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.triangulateio, ptr %75, i32 0, i32 18
  %77 = load i32, ptr %76, align 8, !tbaa !40
  %78 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 22
  store i32 %77, ptr %78, align 4, !tbaa !41
  %79 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 1
  %80 = load i32, ptr %79, align 4, !tbaa !30
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %89, label %82

82:                                               ; preds = %64
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 21
  %85 = load i32, ptr %84, align 8, !tbaa !38
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 22
  %88 = load i32, ptr %87, align 4, !tbaa !41
  call void @carveholes(ptr noundef %9, ptr noundef %10, ptr noundef %83, i32 noundef %85, ptr noundef %86, i32 noundef %88)
  br label %89

89:                                               ; preds = %82, %64
  br label %93

90:                                               ; preds = %59, %55
  %91 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 21
  store i32 0, ptr %91, align 8, !tbaa !38
  %92 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 22
  store i32 0, ptr %92, align 4, !tbaa !41
  br label %93

93:                                               ; preds = %90, %89
  %94 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 0
  %95 = getelementptr inbounds %struct.memorypool, ptr %94, i32 0, i32 10
  %96 = load i64, ptr %95, align 8, !tbaa !35
  %97 = mul nsw i64 3, %96
  %98 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 28
  %99 = load i64, ptr %98, align 8, !tbaa !24
  %100 = add nsw i64 %97, %99
  %101 = sdiv i64 %100, 2
  %102 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 24
  store i64 %101, ptr %102, align 8, !tbaa !42
  %103 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 31
  %104 = load i32, ptr %103, align 4, !tbaa !43
  %105 = icmp sgt i32 %104, 1
  br i1 %105, label %106, label %107

106:                                              ; preds = %93
  call void @highorder(ptr noundef %9, ptr noundef %10)
  br label %107

107:                                              ; preds = %106, %93
  %108 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 28
  %109 = load i32, ptr %108, align 4, !tbaa !44
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %113, label %111

111:                                              ; preds = %107
  %112 = call i32 (ptr, ...) @printf(ptr noundef @.str.123)
  br label %113

113:                                              ; preds = %111, %107
  %114 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 9
  %115 = load i32, ptr %114, align 4, !tbaa !45
  %116 = icmp ne i32 %115, 0
  br i1 %116, label %117, label %128

117:                                              ; preds = %113
  %118 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 2
  %119 = getelementptr inbounds %struct.memorypool, ptr %118, i32 0, i32 10
  %120 = load i64, ptr %119, align 8, !tbaa !46
  %121 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 23
  %122 = load i32, ptr %121, align 8, !tbaa !47
  %123 = sext i32 %122 to i64
  %124 = sub nsw i64 %120, %123
  %125 = trunc i64 %124 to i32
  %126 = load ptr, ptr %7, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.triangulateio, ptr %126, i32 0, i32 3
  store i32 %125, ptr %127, align 8, !tbaa !22
  br label %135

128:                                              ; preds = %113
  %129 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 2
  %130 = getelementptr inbounds %struct.memorypool, ptr %129, i32 0, i32 10
  %131 = load i64, ptr %130, align 8, !tbaa !46
  %132 = trunc i64 %131 to i32
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.triangulateio, ptr %133, i32 0, i32 3
  store i32 %132, ptr %134, align 8, !tbaa !22
  br label %135

135:                                              ; preds = %128, %117
  %136 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 26
  %137 = load i32, ptr %136, align 4, !tbaa !48
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.triangulateio, ptr %138, i32 0, i32 4
  store i32 %137, ptr %139, align 4, !tbaa !23
  %140 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 0
  %141 = getelementptr inbounds %struct.memorypool, ptr %140, i32 0, i32 10
  %142 = load i64, ptr %141, align 8, !tbaa !35
  %143 = trunc i64 %142 to i32
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.triangulateio, ptr %144, i32 0, i32 9
  store i32 %143, ptr %145, align 8, !tbaa !49
  %146 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 31
  %147 = load i32, ptr %146, align 4, !tbaa !43
  %148 = add nsw i32 %147, 1
  %149 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 31
  %150 = load i32, ptr %149, align 4, !tbaa !43
  %151 = add nsw i32 %150, 2
  %152 = mul nsw i32 %148, %151
  %153 = sdiv i32 %152, 2
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.triangulateio, ptr %154, i32 0, i32 10
  store i32 %153, ptr %155, align 4, !tbaa !50
  %156 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 27
  %157 = load i32, ptr %156, align 8, !tbaa !51
  %158 = load ptr, ptr %7, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.triangulateio, ptr %158, i32 0, i32 11
  store i32 %157, ptr %159, align 8, !tbaa !52
  %160 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 24
  %161 = load i64, ptr %160, align 8, !tbaa !42
  %162 = trunc i64 %161 to i32
  %163 = load ptr, ptr %7, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.triangulateio, ptr %163, i32 0, i32 22
  store i32 %162, ptr %164, align 8, !tbaa !53
  %165 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 30
  %166 = load i32, ptr %165, align 4, !tbaa !28
  %167 = icmp ne i32 %166, 0
  br i1 %167, label %168, label %175

168:                                              ; preds = %135
  %169 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 1
  %170 = getelementptr inbounds %struct.memorypool, ptr %169, i32 0, i32 10
  %171 = load i64, ptr %170, align 8, !tbaa !54
  %172 = trunc i64 %171 to i32
  %173 = load ptr, ptr %7, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.triangulateio, ptr %173, i32 0, i32 14
  store i32 %172, ptr %174, align 8, !tbaa !33
  br label %181

175:                                              ; preds = %135
  %176 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 28
  %177 = load i64, ptr %176, align 8, !tbaa !24
  %178 = trunc i64 %177 to i32
  %179 = load ptr, ptr %7, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.triangulateio, ptr %179, i32 0, i32 14
  store i32 %178, ptr %180, align 8, !tbaa !33
  br label %181

181:                                              ; preds = %175, %168
  %182 = load ptr, ptr %8, align 8, !tbaa !5
  %183 = icmp ne ptr %182, null
  br i1 %183, label %184, label %200

184:                                              ; preds = %181
  %185 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 0
  %186 = getelementptr inbounds %struct.memorypool, ptr %185, i32 0, i32 10
  %187 = load i64, ptr %186, align 8, !tbaa !35
  %188 = trunc i64 %187 to i32
  %189 = load ptr, ptr %8, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.triangulateio, ptr %189, i32 0, i32 3
  store i32 %188, ptr %190, align 8, !tbaa !22
  %191 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 26
  %192 = load i32, ptr %191, align 4, !tbaa !48
  %193 = load ptr, ptr %8, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.triangulateio, ptr %193, i32 0, i32 4
  store i32 %192, ptr %194, align 4, !tbaa !23
  %195 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 24
  %196 = load i64, ptr %195, align 8, !tbaa !42
  %197 = trunc i64 %196 to i32
  %198 = load ptr, ptr %8, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.triangulateio, ptr %198, i32 0, i32 22
  store i32 %197, ptr %199, align 8, !tbaa !53
  br label %200

200:                                              ; preds = %184, %181
  %201 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 17
  %202 = load i32, ptr %201, align 4, !tbaa !55
  %203 = icmp ne i32 %202, 0
  br i1 %203, label %212, label %204

204:                                              ; preds = %200
  %205 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 19
  %206 = load i32, ptr %205, align 4, !tbaa !56
  %207 = icmp ne i32 %206, 0
  br i1 %207, label %208, label %219

208:                                              ; preds = %204
  %209 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 37
  %210 = load i32, ptr %209, align 8, !tbaa !57
  %211 = icmp ne i32 %210, 0
  br i1 %211, label %212, label %219

212:                                              ; preds = %208, %200
  %213 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 28
  %214 = load i32, ptr %213, align 4, !tbaa !44
  %215 = icmp ne i32 %214, 0
  br i1 %215, label %218, label %216

216:                                              ; preds = %212
  %217 = call i32 (ptr, ...) @printf(ptr noundef @.str.152)
  br label %218

218:                                              ; preds = %216, %212
  call void @numbernodes(ptr noundef %9, ptr noundef %10)
  br label %226

219:                                              ; preds = %208, %204
  %220 = load ptr, ptr %7, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.triangulateio, ptr %220, i32 0, i32 0
  %222 = load ptr, ptr %7, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.triangulateio, ptr %222, i32 0, i32 1
  %224 = load ptr, ptr %7, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.triangulateio, ptr %224, i32 0, i32 2
  call void @writenodes(ptr noundef %9, ptr noundef %10, ptr noundef %221, ptr noundef %223, ptr noundef %225)
  br label %226

226:                                              ; preds = %219, %218
  %227 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 18
  %228 = load i32, ptr %227, align 4, !tbaa !58
  %229 = icmp ne i32 %228, 0
  br i1 %229, label %230, label %237

230:                                              ; preds = %226
  %231 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 28
  %232 = load i32, ptr %231, align 4, !tbaa !44
  %233 = icmp ne i32 %232, 0
  br i1 %233, label %236, label %234

234:                                              ; preds = %230
  %235 = call i32 (ptr, ...) @printf(ptr noundef @.str.153)
  br label %236

236:                                              ; preds = %234, %230
  br label %242

237:                                              ; preds = %226
  %238 = load ptr, ptr %7, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.triangulateio, ptr %238, i32 0, i32 5
  %240 = load ptr, ptr %7, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.triangulateio, ptr %240, i32 0, i32 6
  call void @writeelements(ptr noundef %9, ptr noundef %10, ptr noundef %239, ptr noundef %241)
  br label %242

242:                                              ; preds = %237, %236
  %243 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 0
  %244 = load i32, ptr %243, align 4, !tbaa !34
  %245 = icmp ne i32 %244, 0
  br i1 %245, label %250, label %246

246:                                              ; preds = %242
  %247 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 7
  %248 = load i32, ptr %247, align 4, !tbaa !59
  %249 = icmp ne i32 %248, 0
  br i1 %249, label %250, label %299

250:                                              ; preds = %246, %242
  %251 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 16
  %252 = load i32, ptr %251, align 4, !tbaa !60
  %253 = icmp ne i32 %252, 0
  br i1 %253, label %258, label %254

254:                                              ; preds = %250
  %255 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 19
  %256 = load i32, ptr %255, align 4, !tbaa !56
  %257 = icmp ne i32 %256, 0
  br i1 %257, label %258, label %265

258:                                              ; preds = %254, %250
  %259 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 28
  %260 = load i32, ptr %259, align 4, !tbaa !44
  %261 = icmp ne i32 %260, 0
  br i1 %261, label %264, label %262

262:                                              ; preds = %258
  %263 = call i32 (ptr, ...) @printf(ptr noundef @.str.154)
  br label %264

264:                                              ; preds = %262, %258
  br label %298

265:                                              ; preds = %254
  %266 = load ptr, ptr %7, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.triangulateio, ptr %266, i32 0, i32 12
  %268 = load ptr, ptr %7, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.triangulateio, ptr %268, i32 0, i32 13
  call void @writepoly(ptr noundef %9, ptr noundef %10, ptr noundef %267, ptr noundef %269)
  %270 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 21
  %271 = load i32, ptr %270, align 8, !tbaa !38
  %272 = load ptr, ptr %7, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.triangulateio, ptr %272, i32 0, i32 16
  store i32 %271, ptr %273, align 8, !tbaa !37
  %274 = getelementptr inbounds %struct.mesh, ptr %9, i32 0, i32 22
  %275 = load i32, ptr %274, align 4, !tbaa !41
  %276 = load ptr, ptr %7, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.triangulateio, ptr %276, i32 0, i32 18
  store i32 %275, ptr %277, align 8, !tbaa !40
  %278 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 0
  %279 = load i32, ptr %278, align 4, !tbaa !34
  %280 = icmp ne i32 %279, 0
  br i1 %280, label %281, label %292

281:                                              ; preds = %265
  %282 = load ptr, ptr %6, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.triangulateio, ptr %282, i32 0, i32 15
  %284 = load ptr, ptr %283, align 8, !tbaa !36
  %285 = load ptr, ptr %7, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.triangulateio, ptr %285, i32 0, i32 15
  store ptr %284, ptr %286, align 8, !tbaa !36
  %287 = load ptr, ptr %6, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.triangulateio, ptr %287, i32 0, i32 17
  %289 = load ptr, ptr %288, align 8, !tbaa !39
  %290 = load ptr, ptr %7, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.triangulateio, ptr %290, i32 0, i32 17
  store ptr %289, ptr %291, align 8, !tbaa !39
  br label %297

292:                                              ; preds = %265
  %293 = load ptr, ptr %7, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.triangulateio, ptr %293, i32 0, i32 15
  store ptr null, ptr %294, align 8, !tbaa !36
  %295 = load ptr, ptr %7, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.triangulateio, ptr %295, i32 0, i32 17
  store ptr null, ptr %296, align 8, !tbaa !39
  br label %297

297:                                              ; preds = %292, %281
  br label %298

298:                                              ; preds = %297, %264
  br label %299

299:                                              ; preds = %298, %246
  %300 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 11
  %301 = load i32, ptr %300, align 4, !tbaa !61
  %302 = icmp ne i32 %301, 0
  br i1 %302, label %303, label %308

303:                                              ; preds = %299
  %304 = load ptr, ptr %7, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.triangulateio, ptr %304, i32 0, i32 19
  %306 = load ptr, ptr %7, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.triangulateio, ptr %306, i32 0, i32 20
  call void @writeedges(ptr noundef %9, ptr noundef %10, ptr noundef %305, ptr noundef %307)
  br label %308

308:                                              ; preds = %303, %299
  %309 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 12
  %310 = load i32, ptr %309, align 4, !tbaa !62
  %311 = icmp ne i32 %310, 0
  br i1 %311, label %312, label %325

312:                                              ; preds = %308
  %313 = load ptr, ptr %8, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct.triangulateio, ptr %313, i32 0, i32 0
  %315 = load ptr, ptr %8, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.triangulateio, ptr %315, i32 0, i32 1
  %317 = load ptr, ptr %8, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.triangulateio, ptr %317, i32 0, i32 2
  %319 = load ptr, ptr %8, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.triangulateio, ptr %319, i32 0, i32 19
  %321 = load ptr, ptr %8, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.triangulateio, ptr %321, i32 0, i32 20
  %323 = load ptr, ptr %8, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct.triangulateio, ptr %323, i32 0, i32 21
  call void @writevoronoi(ptr noundef %9, ptr noundef %10, ptr noundef %314, ptr noundef %316, ptr noundef %318, ptr noundef %320, ptr noundef %322, ptr noundef %324)
  br label %325

325:                                              ; preds = %312, %308
  %326 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 13
  %327 = load i32, ptr %326, align 4, !tbaa !63
  %328 = icmp ne i32 %327, 0
  br i1 %328, label %329, label %332

329:                                              ; preds = %325
  %330 = load ptr, ptr %7, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.triangulateio, ptr %330, i32 0, i32 8
  call void @writeneighbors(ptr noundef %9, ptr noundef %10, ptr noundef %331)
  br label %332

332:                                              ; preds = %329, %325
  %333 = getelementptr inbounds %struct.behavior, ptr %10, i32 0, i32 28
  %334 = load i32, ptr %333, align 4, !tbaa !44
  %335 = icmp ne i32 %334, 0
  br i1 %335, label %337, label %336

336:                                              ; preds = %332
  call void @statistics(ptr noundef %9, ptr noundef %10)
  br label %337

337:                                              ; preds = %336, %332
  call void @triangledeinit(ptr noundef %9, ptr noundef %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 152, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 82888, ptr %9) #3
  ret void
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 132}
!10 = !{!"behavior", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !12, i64 136, !12, i64 140, !12, i64 144, !12, i64 148}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !11, i64 82720}
!14 = !{!"mesh", !15, i64 0, !15, i64 88, !15, i64 176, !15, i64 264, !15, i64 352, !15, i64 440, !15, i64 528, !15, i64 616, !7, i64 704, !7, i64 33472, !7, i64 66240, !11, i64 82624, !6, i64 82632, !12, i64 82640, !12, i64 82644, !12, i64 82648, !12, i64 82652, !12, i64 82656, !11, i64 82660, !11, i64 82664, !11, i64 82668, !11, i64 82672, !11, i64 82676, !11, i64 82680, !16, i64 82688, !11, i64 82696, !11, i64 82700, !11, i64 82704, !16, i64 82712, !11, i64 82720, !11, i64 82724, !11, i64 82728, !11, i64 82732, !11, i64 82736, !11, i64 82740, !11, i64 82744, !11, i64 82748, !11, i64 82752, !16, i64 82760, !16, i64 82768, !16, i64 82776, !16, i64 82784, !16, i64 82792, !16, i64 82800, !16, i64 82808, !6, i64 82816, !6, i64 82824, !6, i64 82832, !6, i64 82840, !6, i64 82848, !6, i64 82856, !6, i64 82864, !17, i64 82872}
!15 = !{!"memorypool", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !16, i64 64, !16, i64 72, !11, i64 80, !11, i64 84}
!16 = !{!"long", !7, i64 0}
!17 = !{!"otri", !6, i64 0, !11, i64 8}
!18 = !{!19, !6, i64 0}
!19 = !{!"triangulateio", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !11, i64 64, !11, i64 68, !11, i64 72, !6, i64 80, !6, i64 88, !11, i64 96, !6, i64 104, !11, i64 112, !6, i64 120, !11, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !11, i64 160}
!20 = !{!19, !6, i64 8}
!21 = !{!19, !6, i64 16}
!22 = !{!19, !11, i64 24}
!23 = !{!19, !11, i64 28}
!24 = !{!14, !16, i64 82712}
!25 = !{!14, !6, i64 82816}
!26 = !{!14, !6, i64 82824}
!27 = !{!14, !6, i64 82832}
!28 = !{!10, !11, i64 120}
!29 = !{!14, !11, i64 82744}
!30 = !{!10, !11, i64 4}
!31 = !{!19, !6, i64 80}
!32 = !{!19, !6, i64 88}
!33 = !{!19, !11, i64 96}
!34 = !{!10, !11, i64 0}
!35 = !{!14, !16, i64 64}
!36 = !{!19, !6, i64 104}
!37 = !{!19, !11, i64 112}
!38 = !{!14, !11, i64 82672}
!39 = !{!19, !6, i64 120}
!40 = !{!19, !11, i64 128}
!41 = !{!14, !11, i64 82676}
!42 = !{!14, !16, i64 82688}
!43 = !{!10, !11, i64 124}
!44 = !{!10, !11, i64 112}
!45 = !{!10, !11, i64 36}
!46 = !{!14, !16, i64 240}
!47 = !{!14, !11, i64 82680}
!48 = !{!14, !11, i64 82700}
!49 = !{!19, !11, i64 64}
!50 = !{!19, !11, i64 68}
!51 = !{!14, !11, i64 82704}
!52 = !{!19, !11, i64 72}
!53 = !{!19, !11, i64 160}
!54 = !{!14, !16, i64 152}
!55 = !{!10, !11, i64 68}
!56 = !{!10, !11, i64 76}
!57 = !{!14, !11, i64 82752}
!58 = !{!10, !11, i64 72}
!59 = !{!10, !11, i64 28}
!60 = !{!10, !11, i64 64}
!61 = !{!10, !11, i64 44}
!62 = !{!10, !11, i64 48}
!63 = !{!10, !11, i64 52}


; 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.mesh = type { %struct.memorypool, %struct.memorypool, %struct.memorypool, %struct.memorypool, %struct.memorypool, %struct.memorypool, %struct.memorypool, %struct.memorypool, [4096 x ptr], [4096 x ptr], [4096 x i32], i32, ptr, float, float, float, float, float, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.otri }
%struct.memorypool = type { ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i64, i64, i32, i32 }
%struct.otri = type { ptr, i32 }
%struct.behavior = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, float }

@.str.123 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [23 x i8], align 1

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @triangledeinit(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @triangleinit(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i64 @delaunay(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @highorder(ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @writenodes(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @numbernodes(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @writeelements(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @writepoly(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @writeedges(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @writevoronoi(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @writeneighbors(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @statistics(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @triangulate(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #2 {
  %5 = alloca ptr, align 8
  %6 = alloca %struct.mesh, align 8
  %7 = alloca %struct.behavior, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 82888, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 152, ptr nonnull %7) #4
  call void @triangleinit(ptr noundef nonnull %6)
  call void @parsecommandline(i32 noundef 1, ptr noundef nonnull %5, ptr noundef nonnull %7)
  %8 = getelementptr inbounds i8, ptr %7, i64 132
  %9 = load i32, ptr %8, align 4, !tbaa !9
  %10 = getelementptr inbounds i8, ptr %6, i64 82720
  store i32 %9, ptr %10, align 8, !tbaa !13
  %11 = load ptr, ptr %1, align 8, !tbaa !18
  %12 = getelementptr inbounds i8, ptr %1, i64 8
  %13 = load ptr, ptr %12, align 8, !tbaa !20
  %14 = getelementptr inbounds i8, ptr %1, i64 16
  %15 = load ptr, ptr %14, align 8, !tbaa !21
  %16 = getelementptr inbounds i8, ptr %1, i64 24
  %17 = load i32, ptr %16, align 8, !tbaa !22
  %18 = getelementptr inbounds i8, ptr %1, i64 28
  %19 = load i32, ptr %18, align 4, !tbaa !23
  call void @transfernodes(ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef %11, ptr noundef %13, ptr noundef %15, i32 noundef %17, i32 noundef %19)
  %20 = call i64 @delaunay(ptr noundef nonnull %6, ptr noundef nonnull %7)
  %21 = getelementptr inbounds i8, ptr %6, i64 82712
  store i64 %20, ptr %21, align 8, !tbaa !24
  %22 = getelementptr inbounds i8, ptr %6, i64 82816
  %23 = getelementptr inbounds i8, ptr %7, i64 120
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %22, i8 0, i64 24, i1 false)
  %24 = load i32, ptr %23, align 4, !tbaa !25
  %.not = icmp eq i32 %24, 0
  br i1 %.not, label %36, label %25

25:                                               ; preds = %4
  %26 = getelementptr inbounds i8, ptr %6, i64 82744
  store i32 1, ptr %26, align 8, !tbaa !26
  %27 = getelementptr inbounds i8, ptr %7, i64 4
  %28 = load i32, ptr %27, align 4, !tbaa !27
  %.not63 = icmp eq i32 %28, 0
  br i1 %.not63, label %29, label %36

29:                                               ; preds = %25
  %30 = getelementptr inbounds i8, ptr %1, i64 80
  %31 = load ptr, ptr %30, align 8, !tbaa !28
  %32 = getelementptr inbounds i8, ptr %1, i64 88
  %33 = load ptr, ptr %32, align 8, !tbaa !29
  %34 = getelementptr inbounds i8, ptr %1, i64 96
  %35 = load i32, ptr %34, align 8, !tbaa !30
  call void @formskeleton(ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef %31, ptr noundef %33, i32 noundef %35)
  br label %36

36:                                               ; preds = %25, %29, %4
  %37 = load i32, ptr %7, align 4, !tbaa !31
  %38 = icmp ne i32 %37, 0
  %39 = getelementptr inbounds i8, ptr %6, i64 64
  %40 = load i64, ptr %39, align 8
  %41 = icmp sgt i64 %40, 0
  %or.cond = select i1 %38, i1 %41, i1 false
  br i1 %or.cond, label %42, label %56

42:                                               ; preds = %36
  %43 = getelementptr inbounds i8, ptr %1, i64 104
  %44 = load ptr, ptr %43, align 8, !tbaa !32
  %45 = getelementptr inbounds i8, ptr %1, i64 112
  %46 = load i32, ptr %45, align 8, !tbaa !33
  %47 = getelementptr inbounds i8, ptr %6, i64 82672
  store i32 %46, ptr %47, align 8, !tbaa !34
  %48 = getelementptr inbounds i8, ptr %1, i64 120
  %49 = load ptr, ptr %48, align 8, !tbaa !35
  %50 = getelementptr inbounds i8, ptr %1, i64 128
  %51 = load i32, ptr %50, align 8, !tbaa !36
  %52 = getelementptr inbounds i8, ptr %6, i64 82676
  store i32 %51, ptr %52, align 4, !tbaa !37
  %53 = getelementptr inbounds i8, ptr %7, i64 4
  %54 = load i32, ptr %53, align 4, !tbaa !27
  %.not64 = icmp eq i32 %54, 0
  br i1 %.not64, label %55, label %59

55:                                               ; preds = %42
  call void @carveholes(ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef %44, i32 noundef %46, ptr noundef %49, i32 noundef %51)
  %.pre = load i64, ptr %39, align 8, !tbaa !38
  br label %59

56:                                               ; preds = %36
  %57 = getelementptr inbounds i8, ptr %6, i64 82672
  store i32 0, ptr %57, align 8, !tbaa !34
  %58 = getelementptr inbounds i8, ptr %6, i64 82676
  store i32 0, ptr %58, align 4, !tbaa !37
  br label %59

59:                                               ; preds = %42, %55, %56
  %60 = phi i64 [ %40, %42 ], [ %.pre, %55 ], [ %40, %56 ]
  %61 = mul nsw i64 %60, 3
  %62 = load i64, ptr %21, align 8, !tbaa !24
  %63 = add nsw i64 %61, %62
  %64 = sdiv i64 %63, 2
  %65 = getelementptr inbounds i8, ptr %6, i64 82688
  store i64 %64, ptr %65, align 8, !tbaa !39
  %66 = getelementptr inbounds i8, ptr %7, i64 124
  %67 = load i32, ptr %66, align 4, !tbaa !40
  %68 = icmp sgt i32 %67, 1
  br i1 %68, label %69, label %70

69:                                               ; preds = %59
  call void @highorder(ptr noundef nonnull %6, ptr noundef nonnull %7)
  br label %70

70:                                               ; preds = %69, %59
  %71 = getelementptr inbounds i8, ptr %7, i64 112
  %72 = load i32, ptr %71, align 4, !tbaa !41
  %.not65 = icmp eq i32 %72, 0
  br i1 %.not65, label %73, label %75

73:                                               ; preds = %70
  %74 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.123)
  br label %75

75:                                               ; preds = %73, %70
  %76 = getelementptr inbounds i8, ptr %7, i64 36
  %77 = load i32, ptr %76, align 4, !tbaa !42
  %.not66 = icmp eq i32 %77, 0
  %78 = getelementptr inbounds i8, ptr %6, i64 240
  %79 = load i64, ptr %78, align 8, !tbaa !43
  %80 = trunc i64 %79 to i32
  %81 = getelementptr inbounds i8, ptr %6, i64 82680
  %82 = load i32, ptr %81, align 8
  %83 = trunc i64 %79 to i32
  %84 = sub i32 %83, %82
  %.sink = select i1 %.not66, i32 %80, i32 %84
  %85 = getelementptr inbounds i8, ptr %2, i64 24
  store i32 %.sink, ptr %85, align 8
  %86 = getelementptr inbounds i8, ptr %6, i64 82700
  %87 = load i32, ptr %86, align 4, !tbaa !44
  %88 = getelementptr inbounds i8, ptr %2, i64 28
  store i32 %87, ptr %88, align 4, !tbaa !23
  %89 = load i64, ptr %39, align 8, !tbaa !38
  %90 = trunc i64 %89 to i32
  %91 = getelementptr inbounds i8, ptr %2, i64 64
  store i32 %90, ptr %91, align 8, !tbaa !45
  %92 = load i32, ptr %66, align 4, !tbaa !40
  %93 = add nsw i32 %92, 1
  %94 = add nsw i32 %92, 2
  %95 = mul nsw i32 %93, %94
  %96 = sdiv i32 %95, 2
  %97 = getelementptr inbounds i8, ptr %2, i64 68
  store i32 %96, ptr %97, align 4, !tbaa !46
  %98 = getelementptr inbounds i8, ptr %6, i64 82704
  %99 = load i32, ptr %98, align 8, !tbaa !47
  %100 = getelementptr inbounds i8, ptr %2, i64 72
  store i32 %99, ptr %100, align 8, !tbaa !48
  %101 = load i64, ptr %65, align 8, !tbaa !39
  %102 = trunc i64 %101 to i32
  %103 = getelementptr inbounds i8, ptr %2, i64 160
  store i32 %102, ptr %103, align 8, !tbaa !49
  %104 = load i32, ptr %23, align 4, !tbaa !25
  %.not67 = icmp eq i32 %104, 0
  %105 = getelementptr inbounds i8, ptr %6, i64 152
  %.val = load i64, ptr %21, align 8
  %.val81 = load i64, ptr %105, align 8
  %106 = select i1 %.not67, i64 %.val, i64 %.val81
  %.sink79 = trunc i64 %106 to i32
  %107 = getelementptr inbounds i8, ptr %2, i64 96
  store i32 %.sink79, ptr %107, align 8
  %.not68 = icmp eq ptr %3, null
  br i1 %.not68, label %112, label %108

108:                                              ; preds = %75
  %109 = getelementptr inbounds i8, ptr %3, i64 24
  store i32 %90, ptr %109, align 8, !tbaa !22
  %110 = getelementptr inbounds i8, ptr %3, i64 28
  store i32 %87, ptr %110, align 4, !tbaa !23
  %111 = getelementptr inbounds i8, ptr %3, i64 160
  store i32 %102, ptr %111, align 8, !tbaa !49
  br label %112

112:                                              ; preds = %108, %75
  %113 = getelementptr inbounds i8, ptr %7, i64 68
  %114 = load i32, ptr %113, align 4, !tbaa !50
  %.not69 = icmp eq i32 %114, 0
  br i1 %.not69, label %115, label %122

115:                                              ; preds = %112
  %116 = getelementptr inbounds i8, ptr %7, i64 76
  %117 = load i32, ptr %116, align 4, !tbaa !51
  %118 = icmp ne i32 %117, 0
  %119 = getelementptr inbounds i8, ptr %6, i64 82752
  %120 = load i32, ptr %119, align 8
  %121 = icmp ne i32 %120, 0
  %or.cond6 = select i1 %118, i1 %121, i1 false
  br i1 %or.cond6, label %122, label %127

122:                                              ; preds = %115, %112
  %123 = load i32, ptr %71, align 4, !tbaa !41
  %.not70 = icmp eq i32 %123, 0
  br i1 %.not70, label %124, label %126

124:                                              ; preds = %122
  %125 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.152)
  br label %126

126:                                              ; preds = %124, %122
  call void @numbernodes(ptr noundef nonnull %6, ptr noundef nonnull %7)
  br label %130

127:                                              ; preds = %115
  %128 = getelementptr inbounds i8, ptr %2, i64 8
  %129 = getelementptr inbounds i8, ptr %2, i64 16
  call void @writenodes(ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %2, ptr noundef nonnull %128, ptr noundef nonnull %129)
  br label %130

130:                                              ; preds = %127, %126
  %131 = getelementptr inbounds i8, ptr %7, i64 72
  %132 = load i32, ptr %131, align 4, !tbaa !52
  %.not71 = icmp eq i32 %132, 0
  br i1 %.not71, label %137, label %133

133:                                              ; preds = %130
  %134 = load i32, ptr %71, align 4, !tbaa !41
  %.not72 = icmp eq i32 %134, 0
  br i1 %.not72, label %135, label %140

135:                                              ; preds = %133
  %136 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.153)
  br label %140

137:                                              ; preds = %130
  %138 = getelementptr inbounds i8, ptr %2, i64 32
  %139 = getelementptr inbounds i8, ptr %2, i64 40
  call void @writeelements(ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %138, ptr noundef nonnull %139)
  br label %140

140:                                              ; preds = %133, %135, %137
  %141 = load i32, ptr %7, align 4, !tbaa !31
  %142 = icmp ne i32 %141, 0
  %143 = getelementptr inbounds i8, ptr %7, i64 28
  %144 = load i32, ptr %143, align 4
  %145 = icmp ne i32 %144, 0
  %or.cond9 = select i1 %142, i1 true, i1 %145
  br i1 %or.cond9, label %146, label %177

146:                                              ; preds = %140
  %147 = getelementptr inbounds i8, ptr %7, i64 64
  %148 = load i32, ptr %147, align 4, !tbaa !53
  %149 = icmp ne i32 %148, 0
  %150 = getelementptr inbounds i8, ptr %7, i64 76
  %151 = load i32, ptr %150, align 4
  %152 = icmp ne i32 %151, 0
  %or.cond12 = select i1 %149, i1 true, i1 %152
  br i1 %or.cond12, label %153, label %157

153:                                              ; preds = %146
  %154 = load i32, ptr %71, align 4, !tbaa !41
  %.not74 = icmp eq i32 %154, 0
  br i1 %.not74, label %155, label %177

155:                                              ; preds = %153
  %156 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.154)
  br label %177

157:                                              ; preds = %146
  %158 = getelementptr inbounds i8, ptr %2, i64 80
  %159 = getelementptr inbounds i8, ptr %2, i64 88
  call void @writepoly(ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %158, ptr noundef nonnull %159)
  %160 = getelementptr inbounds i8, ptr %6, i64 82672
  %161 = load i32, ptr %160, align 8, !tbaa !34
  %162 = getelementptr inbounds i8, ptr %2, i64 112
  store i32 %161, ptr %162, align 8, !tbaa !33
  %163 = getelementptr inbounds i8, ptr %6, i64 82676
  %164 = load i32, ptr %163, align 4, !tbaa !37
  %165 = getelementptr inbounds i8, ptr %2, i64 128
  store i32 %164, ptr %165, align 8, !tbaa !36
  %166 = load i32, ptr %7, align 4, !tbaa !31
  %.not73 = icmp eq i32 %166, 0
  br i1 %.not73, label %174, label %167

167:                                              ; preds = %157
  %168 = getelementptr inbounds i8, ptr %1, i64 104
  %169 = load ptr, ptr %168, align 8, !tbaa !32
  %170 = getelementptr inbounds i8, ptr %2, i64 104
  store ptr %169, ptr %170, align 8, !tbaa !32
  %171 = getelementptr inbounds i8, ptr %1, i64 120
  %172 = load ptr, ptr %171, align 8, !tbaa !35
  %173 = getelementptr inbounds i8, ptr %2, i64 120
  store ptr %172, ptr %173, align 8, !tbaa !35
  br label %177

174:                                              ; preds = %157
  %175 = getelementptr inbounds i8, ptr %2, i64 104
  store ptr null, ptr %175, align 8, !tbaa !32
  %176 = getelementptr inbounds i8, ptr %2, i64 120
  store ptr null, ptr %176, align 8, !tbaa !35
  br label %177

177:                                              ; preds = %155, %153, %174, %167, %140
  %178 = getelementptr inbounds i8, ptr %7, i64 44
  %179 = load i32, ptr %178, align 4, !tbaa !54
  %.not75 = icmp eq i32 %179, 0
  br i1 %.not75, label %183, label %180

180:                                              ; preds = %177
  %181 = getelementptr inbounds i8, ptr %2, i64 136
  %182 = getelementptr inbounds i8, ptr %2, i64 144
  call void @writeedges(ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %181, ptr noundef nonnull %182)
  br label %183

183:                                              ; preds = %180, %177
  %184 = getelementptr inbounds i8, ptr %7, i64 48
  %185 = load i32, ptr %184, align 4, !tbaa !55
  %.not76 = icmp eq i32 %185, 0
  br i1 %.not76, label %192, label %186

186:                                              ; preds = %183
  %187 = getelementptr inbounds i8, ptr %3, i64 8
  %188 = getelementptr inbounds i8, ptr %3, i64 16
  %189 = getelementptr inbounds i8, ptr %3, i64 136
  %190 = getelementptr inbounds i8, ptr %3, i64 144
  %191 = getelementptr inbounds i8, ptr %3, i64 152
  call void @writevoronoi(ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef %3, ptr noundef nonnull %187, ptr noundef nonnull %188, ptr noundef nonnull %189, ptr noundef nonnull %190, ptr noundef nonnull %191)
  br label %192

192:                                              ; preds = %186, %183
  %193 = getelementptr inbounds i8, ptr %7, i64 52
  %194 = load i32, ptr %193, align 4, !tbaa !56
  %.not77 = icmp eq i32 %194, 0
  br i1 %.not77, label %197, label %195

195:                                              ; preds = %192
  %196 = getelementptr inbounds i8, ptr %2, i64 56
  call void @writeneighbors(ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %196)
  br label %197

197:                                              ; preds = %195, %192
  %198 = load i32, ptr %71, align 4, !tbaa !41
  %.not78 = icmp eq i32 %198, 0
  br i1 %.not78, label %199, label %200

199:                                              ; preds = %197
  call void @statistics(ptr noundef nonnull %6, ptr noundef nonnull %7)
  br label %200

200:                                              ; preds = %199, %197
  call void @triangledeinit(ptr noundef nonnull %6, ptr noundef nonnull %7)
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 82888, ptr nonnull %6) #4
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 132}
!10 = !{!"behavior", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !12, i64 136, !12, i64 140, !12, i64 144, !12, i64 148}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !11, i64 82720}
!14 = !{!"mesh", !15, i64 0, !15, i64 88, !15, i64 176, !15, i64 264, !15, i64 352, !15, i64 440, !15, i64 528, !15, i64 616, !7, i64 704, !7, i64 33472, !7, i64 66240, !11, i64 82624, !6, i64 82632, !12, i64 82640, !12, i64 82644, !12, i64 82648, !12, i64 82652, !12, i64 82656, !11, i64 82660, !11, i64 82664, !11, i64 82668, !11, i64 82672, !11, i64 82676, !11, i64 82680, !16, i64 82688, !11, i64 82696, !11, i64 82700, !11, i64 82704, !16, i64 82712, !11, i64 82720, !11, i64 82724, !11, i64 82728, !11, i64 82732, !11, i64 82736, !11, i64 82740, !11, i64 82744, !11, i64 82748, !11, i64 82752, !16, i64 82760, !16, i64 82768, !16, i64 82776, !16, i64 82784, !16, i64 82792, !16, i64 82800, !16, i64 82808, !6, i64 82816, !6, i64 82824, !6, i64 82832, !6, i64 82840, !6, i64 82848, !6, i64 82856, !6, i64 82864, !17, i64 82872}
!15 = !{!"memorypool", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !16, i64 64, !16, i64 72, !11, i64 80, !11, i64 84}
!16 = !{!"long", !7, i64 0}
!17 = !{!"otri", !6, i64 0, !11, i64 8}
!18 = !{!19, !6, i64 0}
!19 = !{!"triangulateio", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !11, i64 64, !11, i64 68, !11, i64 72, !6, i64 80, !6, i64 88, !11, i64 96, !6, i64 104, !11, i64 112, !6, i64 120, !11, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !11, i64 160}
!20 = !{!19, !6, i64 8}
!21 = !{!19, !6, i64 16}
!22 = !{!19, !11, i64 24}
!23 = !{!19, !11, i64 28}
!24 = !{!14, !16, i64 82712}
!25 = !{!10, !11, i64 120}
!26 = !{!14, !11, i64 82744}
!27 = !{!10, !11, i64 4}
!28 = !{!19, !6, i64 80}
!29 = !{!19, !6, i64 88}
!30 = !{!19, !11, i64 96}
!31 = !{!10, !11, i64 0}
!32 = !{!19, !6, i64 104}
!33 = !{!19, !11, i64 112}
!34 = !{!14, !11, i64 82672}
!35 = !{!19, !6, i64 120}
!36 = !{!19, !11, i64 128}
!37 = !{!14, !11, i64 82676}
!38 = !{!14, !16, i64 64}
!39 = !{!14, !16, i64 82688}
!40 = !{!10, !11, i64 124}
!41 = !{!10, !11, i64 112}
!42 = !{!10, !11, i64 36}
!43 = !{!14, !16, i64 240}
!44 = !{!14, !11, i64 82700}
!45 = !{!19, !11, i64 64}
!46 = !{!19, !11, i64 68}
!47 = !{!14, !11, i64 82704}
!48 = !{!19, !11, i64 72}
!49 = !{!19, !11, i64 160}
!50 = !{!10, !11, i64 68}
!51 = !{!10, !11, i64 76}
!52 = !{!10, !11, i64 72}
!53 = !{!10, !11, i64 64}
!54 = !{!10, !11, i64 44}
!55 = !{!10, !11, i64 48}
!56 = !{!10, !11, i64 52}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass