; LLVM IR from ETH3D/dataset-pipeline :: thirdparty/cork/cork/isct (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, double, double, double, double, double, 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 double @counterclockwise(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local double @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 %181

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 %181

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 %134

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 double @counterclockwise(ptr noundef %125, ptr noundef %126, ptr noundef %127, ptr noundef %128, ptr noundef %129)
  %131 = fcmp ole double %130, 0.000000e+00
  br i1 %131, label %132, label %133

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

133:                                              ; preds = %124
  br label %144

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

142:                                              ; preds = %134
  store i32 1, ptr %18, align 4
  br label %181

143:                                              ; preds = %134
  br label %144

144:                                              ; preds = %143, %133
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  %147 = load ptr, ptr %14, align 8, !tbaa !5
  %148 = load ptr, ptr %13, align 8, !tbaa !5
  %149 = load ptr, ptr %15, align 8, !tbaa !5
  %150 = call double @counterclockwise(ptr noundef %145, ptr noundef %146, ptr noundef %147, ptr noundef %148, ptr noundef %149)
  %151 = fcmp ogt double %150, 0.000000e+00
  br i1 %151, label %152, label %163

152:                                              ; preds = %144
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  %154 = load ptr, ptr %6, align 8, !tbaa !5
  %155 = load ptr, ptr %13, align 8, !tbaa !5
  %156 = load ptr, ptr %15, align 8, !tbaa !5
  %157 = load ptr, ptr %14, align 8, !tbaa !5
  %158 = load ptr, ptr %12, align 8, !tbaa !5
  %159 = call double @incircle(ptr noundef %153, ptr noundef %154, ptr noundef %155, ptr noundef %156, ptr noundef %157, ptr noundef %158)
  %160 = fcmp ole double %159, 0.000000e+00
  br i1 %160, label %161, label %162

161:                                              ; preds = %152
  store i32 1, ptr %18, align 4
  br label %181

162:                                              ; preds = %152
  br label %163

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

181:                                              ; preds = %163, %161, %142, %132, %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
  %182 = load i32, ptr %18, align 4
  switch i32 %182, label %184 [
    i32 0, label %183
    i32 1, label %183
  ]

183:                                              ; preds = %181, %181
  ret void

184:                                              ; preds = %181
  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 82856}
!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 82648, !18, i64 82656, !18, i64 82664, !18, i64 82672, !10, i64 82680, !10, i64 82684, !10, i64 82688, !10, i64 82692, !10, i64 82696, !10, i64 82700, !17, i64 82704, !10, i64 82712, !10, i64 82716, !10, i64 82720, !17, i64 82728, !10, i64 82736, !10, i64 82740, !10, i64 82744, !10, i64 82748, !10, i64 82752, !10, i64 82756, !10, i64 82760, !10, i64 82764, !10, i64 82768, !17, i64 82776, !17, i64 82784, !17, i64 82792, !17, i64 82800, !17, i64 82808, !17, i64 82816, !17, i64 82824, !6, i64 82832, !6, i64 82840, !6, i64 82848, !6, i64 82856, !6, i64 82864, !6, i64 82872, !6, i64 82880, !12, i64 82888}
!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 = !{!"double", !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 82872}


; 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 double @counterclockwise(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local double @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 82856
  %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 82872
  %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 double @counterclockwise(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %36, ptr noundef %42, ptr noundef %52)
  %55 = fcmp ugt double %54, 0.000000e+00
  br i1 %55, label %59, label %70

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

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

62:                                               ; preds = %59
  %63 = tail call double @incircle(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %42, ptr noundef %52, ptr noundef %48, ptr noundef %36)
  %64 = fcmp ugt double %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 82856}
!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 82648, !18, i64 82656, !18, i64 82664, !18, i64 82672, !10, i64 82680, !10, i64 82684, !10, i64 82688, !10, i64 82692, !10, i64 82696, !10, i64 82700, !17, i64 82704, !10, i64 82712, !10, i64 82716, !10, i64 82720, !17, i64 82728, !10, i64 82736, !10, i64 82740, !10, i64 82744, !10, i64 82748, !10, i64 82752, !10, i64 82756, !10, i64 82760, !10, i64 82764, !10, i64 82768, !17, i64 82776, !17, i64 82784, !17, i64 82792, !17, i64 82800, !17, i64 82808, !17, i64 82816, !17, i64 82824, !7, i64 82832, !7, i64 82840, !7, i64 82848, !7, i64 82856, !7, i64 82864, !7, i64 82872, !7, i64 82880, !6, i64 82888}
!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 = !{!"double", !8, i64 0}
!19 = !{!15, !7, i64 82872}


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