; 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.otri = type { ptr, i32 }
%struct.osub = type { ptr, i32 }
%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 }

@plus1mod3 = external dso_local global [3 x i32], align 4
@minus1mod3 = external dso_local global [3 x i32], align 4

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

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

; Function Attrs: nounwind uwtable
declare dso_local float @counterclockwise(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local float @incircle(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @delaunayfixup(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #1 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.otri, align 8
  %10 = alloca %struct.otri, align 8
  %11 = alloca %struct.osub, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  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 i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #2
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #2
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #2
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.otri, ptr %19, i32 0, i32 0
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %22 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  store ptr %21, ptr %22, align 8, !tbaa !11
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.otri, ptr %23, i32 0, i32 1
  %25 = load i32, ptr %24, align 8, !tbaa !13
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [3 x i32], ptr @plus1mod3, i64 0, i64 %26
  %28 = load i32, ptr %27, align 4, !tbaa !9
  %29 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 1
  store i32 %28, ptr %29, align 8, !tbaa !13
  %30 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !11
  %32 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 1
  %33 = load i32, ptr %32, align 8, !tbaa !13
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds ptr, ptr %31, i64 %34
  %36 = load ptr, ptr %35, align 8, !tbaa !5
  store ptr %36, ptr %16, align 8, !tbaa !5
  %37 = load ptr, ptr %16, align 8, !tbaa !5
  %38 = ptrtoint ptr %37 to i64
  %39 = and i64 %38, 3
  %40 = trunc i64 %39 to i32
  %41 = getelementptr inbounds %struct.otri, ptr %10, i32 0, i32 1
  store i32 %40, ptr %41, align 8, !tbaa !13
  %42 = load ptr, ptr %16, align 8, !tbaa !5
  %43 = ptrtoint ptr %42 to i64
  %44 = getelementptr inbounds %struct.otri, ptr %10, i32 0, i32 1
  %45 = load i32, ptr %44, align 8, !tbaa !13
  %46 = sext i32 %45 to i64
  %47 = xor i64 %43, %46
  %48 = inttoptr i64 %47 to ptr
  %49 = getelementptr inbounds %struct.otri, ptr %10, i32 0, i32 0
  store ptr %48, ptr %49, align 8, !tbaa !11
  %50 = getelementptr inbounds %struct.otri, ptr %10, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8, !tbaa !11
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.mesh, ptr %52, i32 0, i32 48
  %54 = load ptr, ptr %53, align 8, !tbaa !14
  %55 = icmp eq ptr %51, %54
  br i1 %55, label %56, label %57

56:                                               ; preds = %4
  store i32 1, ptr %18, align 4
  br label %185

57:                                               ; preds = %4
  %58 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8, !tbaa !11
  %60 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 1
  %61 = load i32, ptr %60, align 8, !tbaa !13
  %62 = add nsw i32 6, %61
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds ptr, ptr %59, i64 %63
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  store ptr %65, ptr %17, align 8, !tbaa !5
  %66 = load ptr, ptr %17, align 8, !tbaa !5
  %67 = ptrtoint ptr %66 to i64
  %68 = and i64 %67, 1
  %69 = trunc i64 %68 to i32
  %70 = getelementptr inbounds %struct.osub, ptr %11, i32 0, i32 1
  store i32 %69, ptr %70, align 8, !tbaa !19
  %71 = load ptr, ptr %17, align 8, !tbaa !5
  %72 = ptrtoint ptr %71 to i64
  %73 = and i64 %72, -4
  %74 = inttoptr i64 %73 to ptr
  %75 = getelementptr inbounds %struct.osub, ptr %11, i32 0, i32 0
  store ptr %74, ptr %75, align 8, !tbaa !21
  %76 = getelementptr inbounds %struct.osub, ptr %11, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8, !tbaa !21
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.mesh, ptr %78, i32 0, i32 50
  %80 = load ptr, ptr %79, align 8, !tbaa !22
  %81 = icmp ne ptr %77, %80
  br i1 %81, label %82, label %83

82:                                               ; preds = %57
  store i32 1, ptr %18, align 4
  br label %185

83:                                               ; preds = %57
  %84 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8, !tbaa !11
  %86 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 1
  %87 = load i32, ptr %86, align 8, !tbaa !13
  %88 = add nsw i32 %87, 3
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds ptr, ptr %85, i64 %89
  %91 = load ptr, ptr %90, align 8, !tbaa !5
  store ptr %91, ptr %12, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8, !tbaa !11
  %94 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 1
  %95 = load i32, ptr %94, align 8, !tbaa !13
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [3 x i32], ptr @plus1mod3, i64 0, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !9
  %99 = add nsw i32 %98, 3
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds ptr, ptr %93, i64 %100
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  store ptr %102, ptr %13, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8, !tbaa !11
  %105 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 1
  %106 = load i32, ptr %105, align 8, !tbaa !13
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [3 x i32], ptr @minus1mod3, i64 0, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !9
  %110 = add nsw i32 %109, 3
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds ptr, ptr %104, i64 %111
  %113 = load ptr, ptr %112, align 8, !tbaa !5
  store ptr %113, ptr %14, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.otri, ptr %10, i32 0, i32 0
  %115 = load ptr, ptr %114, align 8, !tbaa !11
  %116 = getelementptr inbounds %struct.otri, ptr %10, i32 0, i32 1
  %117 = load i32, ptr %116, align 8, !tbaa !13
  %118 = add nsw i32 %117, 3
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds ptr, ptr %115, i64 %119
  %121 = load ptr, ptr %120, align 8, !tbaa !5
  store ptr %121, ptr %15, align 8, !tbaa !5
  %122 = load i32, ptr %8, align 4, !tbaa !9
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %124, label %135

124:                                              ; preds = %83
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = load ptr, ptr %12, align 8, !tbaa !5
  %128 = load ptr, ptr %13, align 8, !tbaa !5
  %129 = load ptr, ptr %15, align 8, !tbaa !5
  %130 = call float @counterclockwise(ptr noundef %125, ptr noundef %126, ptr noundef %127, ptr noundef %128, ptr noundef %129)
  %131 = fpext float %130 to double
  %132 = fcmp ole double %131, 0.000000e+00
  br i1 %132, label %133, label %134

133:                                              ; preds = %124
  store i32 1, ptr %18, align 4
  br label %185

134:                                              ; preds = %124
  br label %146

135:                                              ; preds = %83
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  %138 = load ptr, ptr %15, align 8, !tbaa !5
  %139 = load ptr, ptr %14, align 8, !tbaa !5
  %140 = load ptr, ptr %12, align 8, !tbaa !5
  %141 = call float @counterclockwise(ptr noundef %136, ptr noundef %137, ptr noundef %138, ptr noundef %139, ptr noundef %140)
  %142 = fpext float %141 to double
  %143 = fcmp ole double %142, 0.000000e+00
  br i1 %143, label %144, label %145

144:                                              ; preds = %135
  store i32 1, ptr %18, align 4
  br label %185

145:                                              ; preds = %135
  br label %146

146:                                              ; preds = %145, %134
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = load ptr, ptr %14, align 8, !tbaa !5
  %150 = load ptr, ptr %13, align 8, !tbaa !5
  %151 = load ptr, ptr %15, align 8, !tbaa !5
  %152 = call float @counterclockwise(ptr noundef %147, ptr noundef %148, ptr noundef %149, ptr noundef %150, ptr noundef %151)
  %153 = fpext float %152 to double
  %154 = fcmp ogt double %153, 0.000000e+00
  br i1 %154, label %155, label %167

155:                                              ; preds = %146
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  %158 = load ptr, ptr %13, align 8, !tbaa !5
  %159 = load ptr, ptr %15, align 8, !tbaa !5
  %160 = load ptr, ptr %14, align 8, !tbaa !5
  %161 = load ptr, ptr %12, align 8, !tbaa !5
  %162 = call float @incircle(ptr noundef %156, ptr noundef %157, ptr noundef %158, ptr noundef %159, ptr noundef %160, ptr noundef %161)
  %163 = fpext float %162 to double
  %164 = fcmp ole double %163, 0.000000e+00
  br i1 %164, label %165, label %166

165:                                              ; preds = %155
  store i32 1, ptr %18, align 4
  br label %185

166:                                              ; preds = %155
  br label %167

167:                                              ; preds = %166, %146
  %168 = load ptr, ptr %5, align 8, !tbaa !5
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  call void @flip(ptr noundef %168, ptr noundef %169, ptr noundef %9)
  %170 = load ptr, ptr %7, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.otri, ptr %170, i32 0, i32 1
  %172 = load i32, ptr %171, align 8, !tbaa !13
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [3 x i32], ptr @minus1mod3, i64 0, i64 %173
  %175 = load i32, ptr %174, align 4, !tbaa !9
  %176 = load ptr, ptr %7, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.otri, ptr %176, i32 0, i32 1
  store i32 %175, ptr %177, align 8, !tbaa !13
  %178 = load ptr, ptr %5, align 8, !tbaa !5
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = load i32, ptr %8, align 4, !tbaa !9
  call void @delaunayfixup(ptr noundef %178, ptr noundef %179, ptr noundef %180, i32 noundef %181)
  %182 = load ptr, ptr %5, align 8, !tbaa !5
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  %184 = load i32, ptr %8, align 4, !tbaa !9
  call void @delaunayfixup(ptr noundef %182, ptr noundef %183, ptr noundef %10, i32 noundef %184)
  store i32 0, ptr %18, align 4
  br label %185

185:                                              ; preds = %167, %165, %144, %133, %82, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #2
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #2
  %186 = load i32, ptr %18, align 4
  switch i32 %186, label %188 [
    i32 0, label %187
    i32 1, label %187
  ]

187:                                              ; preds = %185, %185
  ret void

188:                                              ; preds = %185
  unreachable
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"otri", !6, i64 0, !10, i64 8}
!13 = !{!12, !10, i64 8}
!14 = !{!15, !6, i64 82840}
!15 = !{!"mesh", !16, i64 0, !16, i64 88, !16, i64 176, !16, i64 264, !16, i64 352, !16, i64 440, !16, i64 528, !16, i64 616, !7, i64 704, !7, i64 33472, !7, i64 66240, !10, i64 82624, !6, i64 82632, !18, i64 82640, !18, i64 82644, !18, i64 82648, !18, i64 82652, !18, i64 82656, !10, i64 82660, !10, i64 82664, !10, i64 82668, !10, i64 82672, !10, i64 82676, !10, i64 82680, !17, i64 82688, !10, i64 82696, !10, i64 82700, !10, i64 82704, !17, i64 82712, !10, i64 82720, !10, i64 82724, !10, i64 82728, !10, i64 82732, !10, i64 82736, !10, i64 82740, !10, i64 82744, !10, i64 82748, !10, i64 82752, !17, i64 82760, !17, i64 82768, !17, i64 82776, !17, i64 82784, !17, i64 82792, !17, i64 82800, !17, i64 82808, !6, i64 82816, !6, i64 82824, !6, i64 82832, !6, i64 82840, !6, i64 82848, !6, i64 82856, !6, i64 82864, !12, i64 82872}
!16 = !{!"memorypool", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !17, i64 64, !17, i64 72, !10, i64 80, !10, i64 84}
!17 = !{!"long", !7, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = !{!20, !10, i64 8}
!20 = !{!"osub", !6, i64 0, !10, i64 8}
!21 = !{!20, !6, i64 0}
!22 = !{!15, !6, i64 82856}


; 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.otri = type { ptr, i32 }

@plus1mod3 = external dso_local local_unnamed_addr global [3 x i32], align 4
@minus1mod3 = external dso_local local_unnamed_addr global [3 x i32], align 4

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

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

; Function Attrs: nounwind uwtable
declare dso_local float @counterclockwise(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local float @incircle(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local void @delaunayfixup(ptr noundef %0, ptr noundef %1, ptr nocapture noundef %2, i32 noundef %3) local_unnamed_addr #1 {
  %5 = alloca %struct.otri, align 8
  %6 = alloca %struct.otri, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #2
  %7 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %7, ptr %5, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %2, i64 8
  %9 = load i32, ptr %8, align 8, !tbaa !11
  %10 = sext i32 %9 to i64
  %11 = getelementptr inbounds [3 x i32], ptr @plus1mod3, i64 0, i64 %10
  %12 = load i32, ptr %11, align 4, !tbaa !12
  %13 = getelementptr inbounds i8, ptr %5, i64 8
  store i32 %12, ptr %13, align 8, !tbaa !11
  %14 = sext i32 %12 to i64
  %15 = getelementptr inbounds ptr, ptr %7, i64 %14
  %16 = load ptr, ptr %15, align 8, !tbaa !13
  %17 = ptrtoint ptr %16 to i64
  %18 = trunc i64 %17 to i32
  %19 = and i32 %18, 3
  %20 = getelementptr inbounds i8, ptr %6, i64 8
  store i32 %19, ptr %20, align 8, !tbaa !11
  %21 = and i64 %17, -4
  %22 = inttoptr i64 %21 to ptr
  store ptr %22, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %0, i64 82840
  %24 = load ptr, ptr %23, align 8, !tbaa !14
  %25 = icmp eq ptr %24, %22
  br i1 %25, label %70, label %26

26:                                               ; preds = %4
  %27 = getelementptr i8, ptr %15, i64 48
  %28 = load ptr, ptr %27, align 8, !tbaa !13
  %29 = ptrtoint ptr %28 to i64
  %30 = and i64 %29, -4
  %31 = inttoptr i64 %30 to ptr
  %32 = getelementptr inbounds i8, ptr %0, i64 82856
  %33 = load ptr, ptr %32, align 8, !tbaa !19
  %.not = icmp eq ptr %33, %31
  br i1 %.not, label %34, label %70

34:                                               ; preds = %26
  %35 = getelementptr i8, ptr %15, i64 24
  %36 = load ptr, ptr %35, align 8, !tbaa !13
  %37 = getelementptr inbounds [3 x i32], ptr @plus1mod3, i64 0, i64 %14
  %38 = load i32, ptr %37, align 4, !tbaa !12
  %39 = sext i32 %38 to i64
  %40 = getelementptr ptr, ptr %7, i64 %39
  %41 = getelementptr i8, ptr %40, i64 24
  %42 = load ptr, ptr %41, align 8, !tbaa !13
  %43 = getelementptr inbounds [3 x i32], ptr @minus1mod3, i64 0, i64 %14
  %44 = load i32, ptr %43, align 4, !tbaa !12
  %45 = sext i32 %44 to i64
  %46 = getelementptr ptr, ptr %7, i64 %45
  %47 = getelementptr i8, ptr %46, i64 24
  %48 = load ptr, ptr %47, align 8, !tbaa !13
  %49 = and i64 %17, 3
  %50 = getelementptr ptr, ptr %22, i64 %49
  %51 = getelementptr i8, ptr %50, i64 24
  %52 = load ptr, ptr %51, align 8, !tbaa !13
  %.not40 = icmp eq i32 %3, 0
  br i1 %.not40, label %56, label %53

53:                                               ; preds = %34
  %54 = tail call float @counterclockwise(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %36, ptr noundef %42, ptr noundef %52)
  %55 = fcmp ugt float %54, 0.000000e+00
  br i1 %55, label %59, label %70

56:                                               ; preds = %34
  %57 = tail call float @counterclockwise(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %52, ptr noundef %48, ptr noundef %36)
  %58 = fcmp ugt float %57, 0.000000e+00
  br i1 %58, label %59, label %70

59:                                               ; preds = %56, %53
  %60 = tail call float @counterclockwise(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %48, ptr noundef %42, ptr noundef %52)
  %61 = fcmp ogt float %60, 0.000000e+00
  br i1 %61, label %62, label %65

62:                                               ; preds = %59
  %63 = tail call float @incircle(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %42, ptr noundef %52, ptr noundef %48, ptr noundef %36)
  %64 = fcmp ugt float %63, 0.000000e+00
  br i1 %64, label %65, label %70

65:                                               ; preds = %62, %59
  call void @flip(ptr noundef nonnull %0, ptr noundef %1, ptr noundef nonnull %5)
  %66 = load i32, ptr %8, align 8, !tbaa !11
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [3 x i32], ptr @minus1mod3, i64 0, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !12
  store i32 %69, ptr %8, align 8, !tbaa !11
  call void @delaunayfixup(ptr noundef nonnull %0, ptr noundef %1, ptr noundef nonnull %2, i32 noundef %3)
  call void @delaunayfixup(ptr noundef nonnull %0, ptr noundef %1, ptr noundef nonnull %6, i32 noundef %3)
  br label %70

70:                                               ; preds = %62, %56, %53, %26, %4, %65
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #2
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #2
  ret void
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"otri", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!10, !10, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !7, i64 82840}
!15 = !{!"mesh", !16, i64 0, !16, i64 88, !16, i64 176, !16, i64 264, !16, i64 352, !16, i64 440, !16, i64 528, !16, i64 616, !8, i64 704, !8, i64 33472, !8, i64 66240, !10, i64 82624, !7, i64 82632, !18, i64 82640, !18, i64 82644, !18, i64 82648, !18, i64 82652, !18, i64 82656, !10, i64 82660, !10, i64 82664, !10, i64 82668, !10, i64 82672, !10, i64 82676, !10, i64 82680, !17, i64 82688, !10, i64 82696, !10, i64 82700, !10, i64 82704, !17, i64 82712, !10, i64 82720, !10, i64 82724, !10, i64 82728, !10, i64 82732, !10, i64 82736, !10, i64 82740, !10, i64 82744, !10, i64 82748, !10, i64 82752, !17, i64 82760, !17, i64 82768, !17, i64 82776, !17, i64 82784, !17, i64 82792, !17, i64 82800, !17, i64 82808, !7, i64 82816, !7, i64 82824, !7, i64 82832, !7, i64 82840, !7, i64 82848, !7, i64 82856, !7, i64 82864, !6, i64 82872}
!16 = !{!"memorypool", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !17, i64 64, !17, i64 72, !10, i64 80, !10, i64 84}
!17 = !{!"long", !8, i64 0}
!18 = !{!"float", !8, i64 0}
!19 = !{!15, !7, i64 82856}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass