; 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.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, double, double, double, double, [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8] }
%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
@.str.225 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1078 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1079 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1080 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.1081 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1083 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1089 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1095 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1097 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1098 = external hidden unnamed_addr constant [30 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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 @triexit(i32 noundef) #2

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

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

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

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #3

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

; Function Attrs: nounwind uwtable
define dso_local void @writevoronoi(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %struct.otri, align 8
  %15 = alloca %struct.otri, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca [2 x double], align 16
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i32 %4, ptr %11, align 4, !tbaa !9
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.behavior, ptr %28, i32 0, i32 28
  %30 = load i32, ptr %29, align 8, !tbaa !11
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %35, label %32

32:                                               ; preds = %6
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1078, ptr noundef %33)
  br label %35

35:                                               ; preds = %32, %6
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  %37 = call noalias ptr @fopen(ptr noundef %36, ptr noundef @.str.1079)
  store ptr %37, ptr %13, align 8, !tbaa !5
  %38 = load ptr, ptr %13, align 8, !tbaa !5
  %39 = icmp eq ptr %38, null
  br i1 %39, label %40, label %43

40:                                               ; preds = %35
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = call i32 (ptr, ...) @printf(ptr noundef @.str.1080, ptr noundef %41)
  call void @triexit(i32 noundef 1)
  br label %43

43:                                               ; preds = %40, %35
  %44 = load ptr, ptr %13, align 8, !tbaa !5
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.mesh, ptr %45, i32 0, i32 0
  %47 = getelementptr inbounds %struct.memorypool, ptr %46, i32 0, i32 10
  %48 = load i64, ptr %47, align 8, !tbaa !14
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.mesh, ptr %49, i32 0, i32 26
  %51 = load i32, ptr %50, align 4, !tbaa !19
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef @.str.1081, i64 noundef %48, i32 noundef 2, i32 noundef %51, i32 noundef 0) #5
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.mesh, ptr %53, i32 0, i32 0
  call void @traversalinit(ptr noundef %54)
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = call ptr @triangletraverse(ptr noundef %55)
  %57 = getelementptr inbounds %struct.otri, ptr %14, i32 0, i32 0
  store ptr %56, ptr %57, align 8, !tbaa !20
  %58 = getelementptr inbounds %struct.otri, ptr %14, i32 0, i32 1
  store i32 0, ptr %58, align 8, !tbaa !21
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.behavior, ptr %59, i32 0, i32 10
  %61 = load i32, ptr %60, align 8, !tbaa !22
  %62 = sext i32 %61 to i64
  store i64 %62, ptr %22, align 8, !tbaa !23
  br label %63

63:                                               ; preds = %155, %43
  %64 = getelementptr inbounds %struct.otri, ptr %14, i32 0, i32 0
  %65 = load ptr, ptr %64, align 8, !tbaa !20
  %66 = icmp ne ptr %65, null
  br i1 %66, label %67, label %168

67:                                               ; preds = %63
  %68 = getelementptr inbounds %struct.otri, ptr %14, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !20
  %70 = getelementptr inbounds %struct.otri, ptr %14, i32 0, i32 1
  %71 = load i32, ptr %70, align 8, !tbaa !21
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [3 x i32], ptr @plus1mod3, i64 0, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !9
  %75 = add nsw i32 %74, 3
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds ptr, ptr %69, i64 %76
  %78 = load ptr, ptr %77, align 8, !tbaa !5
  store ptr %78, ptr %16, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.otri, ptr %14, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !20
  %81 = getelementptr inbounds %struct.otri, ptr %14, i32 0, i32 1
  %82 = load i32, ptr %81, align 8, !tbaa !21
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [3 x i32], ptr @minus1mod3, i64 0, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !9
  %86 = add nsw i32 %85, 3
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds ptr, ptr %80, i64 %87
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  store ptr %89, ptr %17, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.otri, ptr %14, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !20
  %92 = getelementptr inbounds %struct.otri, ptr %14, i32 0, i32 1
  %93 = load i32, ptr %92, align 8, !tbaa !21
  %94 = add nsw i32 %93, 3
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds ptr, ptr %91, i64 %95
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  store ptr %97, ptr %18, align 8, !tbaa !5
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = load ptr, ptr %16, align 8, !tbaa !5
  %101 = load ptr, ptr %17, align 8, !tbaa !5
  %102 = load ptr, ptr %18, align 8, !tbaa !5
  %103 = getelementptr inbounds [2 x double], ptr %19, i64 0, i64 0
  call void @findcircumcenter(ptr noundef %98, ptr noundef %99, ptr noundef %100, ptr noundef %101, ptr noundef %102, ptr noundef %103, ptr noundef %20, ptr noundef %21, i32 noundef 0)
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = load i64, ptr %22, align 8, !tbaa !23
  %106 = getelementptr inbounds [2 x double], ptr %19, i64 0, i64 0
  %107 = load double, ptr %106, align 16, !tbaa !24
  %108 = getelementptr inbounds [2 x double], ptr %19, i64 0, i64 1
  %109 = load double, ptr %108, align 8, !tbaa !24
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef @.str.1097, i64 noundef %105, double noundef %107, double noundef %109) #5
  store i32 2, ptr %26, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %152, %67
  %112 = load i32, ptr %26, align 4, !tbaa !9
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.mesh, ptr %113, i32 0, i32 26
  %115 = load i32, ptr %114, align 4, !tbaa !19
  %116 = add nsw i32 2, %115
  %117 = icmp slt i32 %112, %116
  br i1 %117, label %118, label %155

118:                                              ; preds = %111
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  %120 = load ptr, ptr %16, align 8, !tbaa !5
  %121 = load i32, ptr %26, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds double, ptr %120, i64 %122
  %124 = load double, ptr %123, align 8, !tbaa !24
  %125 = load double, ptr %20, align 8, !tbaa !24
  %126 = load ptr, ptr %17, align 8, !tbaa !5
  %127 = load i32, ptr %26, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds double, ptr %126, i64 %128
  %130 = load double, ptr %129, align 8, !tbaa !24
  %131 = load ptr, ptr %16, align 8, !tbaa !5
  %132 = load i32, ptr %26, align 4, !tbaa !9
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds double, ptr %131, i64 %133
  %135 = load double, ptr %134, align 8, !tbaa !24
  %136 = fsub double %130, %135
  %137 = call double @llvm.fmuladd.f64(double %125, double %136, double %124)
  %138 = load double, ptr %21, align 8, !tbaa !24
  %139 = load ptr, ptr %18, align 8, !tbaa !5
  %140 = load i32, ptr %26, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds double, ptr %139, i64 %141
  %143 = load double, ptr %142, align 8, !tbaa !24
  %144 = load ptr, ptr %16, align 8, !tbaa !5
  %145 = load i32, ptr %26, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds double, ptr %144, i64 %146
  %148 = load double, ptr %147, align 8, !tbaa !24
  %149 = fsub double %143, %148
  %150 = call double @llvm.fmuladd.f64(double %138, double %149, double %137)
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %119, ptr noundef @.str.1083, double noundef %150) #5
  br label %152

152:                                              ; preds = %118
  %153 = load i32, ptr %26, align 4, !tbaa !9
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %26, align 4, !tbaa !9
  br label %111, !llvm.loop !25

155:                                              ; preds = %111
  %156 = load ptr, ptr %13, align 8, !tbaa !5
  %157 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %156, ptr noundef @.str.225) #5
  %158 = load i64, ptr %22, align 8, !tbaa !23
  %159 = trunc i64 %158 to i32
  %160 = getelementptr inbounds %struct.otri, ptr %14, i32 0, i32 0
  %161 = load ptr, ptr %160, align 8, !tbaa !20
  %162 = getelementptr inbounds ptr, ptr %161, i64 6
  store i32 %159, ptr %162, align 4, !tbaa !9
  %163 = load ptr, ptr %7, align 8, !tbaa !5
  %164 = call ptr @triangletraverse(ptr noundef %163)
  %165 = getelementptr inbounds %struct.otri, ptr %14, i32 0, i32 0
  store ptr %164, ptr %165, align 8, !tbaa !20
  %166 = load i64, ptr %22, align 8, !tbaa !23
  %167 = add nsw i64 %166, 1
  store i64 %167, ptr %22, align 8, !tbaa !23
  br label %63, !llvm.loop !27

168:                                              ; preds = %63
  %169 = load ptr, ptr %13, align 8, !tbaa !5
  %170 = load i32, ptr %11, align 4, !tbaa !9
  %171 = load ptr, ptr %12, align 8, !tbaa !5
  call void @finishfile(ptr noundef %169, i32 noundef %170, ptr noundef %171)
  %172 = load ptr, ptr %8, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.behavior, ptr %172, i32 0, i32 28
  %174 = load i32, ptr %173, align 8, !tbaa !11
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %179, label %176

176:                                              ; preds = %168
  %177 = load ptr, ptr %10, align 8, !tbaa !5
  %178 = call i32 (ptr, ...) @printf(ptr noundef @.str.1078, ptr noundef %177)
  br label %179

179:                                              ; preds = %176, %168
  %180 = load ptr, ptr %10, align 8, !tbaa !5
  %181 = call noalias ptr @fopen(ptr noundef %180, ptr noundef @.str.1079)
  store ptr %181, ptr %13, align 8, !tbaa !5
  %182 = load ptr, ptr %13, align 8, !tbaa !5
  %183 = icmp eq ptr %182, null
  br i1 %183, label %184, label %187

184:                                              ; preds = %179
  %185 = load ptr, ptr %10, align 8, !tbaa !5
  %186 = call i32 (ptr, ...) @printf(ptr noundef @.str.1080, ptr noundef %185)
  call void @triexit(i32 noundef 1)
  br label %187

187:                                              ; preds = %184, %179
  %188 = load ptr, ptr %13, align 8, !tbaa !5
  %189 = load ptr, ptr %7, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.mesh, ptr %189, i32 0, i32 24
  %191 = load i64, ptr %190, align 8, !tbaa !28
  %192 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %188, ptr noundef @.str.1089, i64 noundef %191, i32 noundef 0) #5
  %193 = load ptr, ptr %7, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.mesh, ptr %193, i32 0, i32 0
  call void @traversalinit(ptr noundef %194)
  %195 = load ptr, ptr %7, align 8, !tbaa !5
  %196 = call ptr @triangletraverse(ptr noundef %195)
  %197 = getelementptr inbounds %struct.otri, ptr %14, i32 0, i32 0
  store ptr %196, ptr %197, align 8, !tbaa !20
  %198 = load ptr, ptr %8, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.behavior, ptr %198, i32 0, i32 10
  %200 = load i32, ptr %199, align 8, !tbaa !22
  %201 = sext i32 %200 to i64
  store i64 %201, ptr %23, align 8, !tbaa !23
  br label %202

202:                                              ; preds = %315, %187
  %203 = getelementptr inbounds %struct.otri, ptr %14, i32 0, i32 0
  %204 = load ptr, ptr %203, align 8, !tbaa !20
  %205 = icmp ne ptr %204, null
  br i1 %205, label %206, label %319

206:                                              ; preds = %202
  %207 = getelementptr inbounds %struct.otri, ptr %14, i32 0, i32 1
  store i32 0, ptr %207, align 8, !tbaa !21
  br label %208

208:                                              ; preds = %311, %206
  %209 = getelementptr inbounds %struct.otri, ptr %14, i32 0, i32 1
  %210 = load i32, ptr %209, align 8, !tbaa !21
  %211 = icmp slt i32 %210, 3
  br i1 %211, label %212, label %315

212:                                              ; preds = %208
  %213 = getelementptr inbounds %struct.otri, ptr %14, i32 0, i32 0
  %214 = load ptr, ptr %213, align 8, !tbaa !20
  %215 = getelementptr inbounds %struct.otri, ptr %14, i32 0, i32 1
  %216 = load i32, ptr %215, align 8, !tbaa !21
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds ptr, ptr %214, i64 %217
  %219 = load ptr, ptr %218, align 8, !tbaa !5
  store ptr %219, ptr %27, align 8, !tbaa !5
  %220 = load ptr, ptr %27, align 8, !tbaa !5
  %221 = ptrtoint ptr %220 to i64
  %222 = and i64 %221, 3
  %223 = trunc i64 %222 to i32
  %224 = getelementptr inbounds %struct.otri, ptr %15, i32 0, i32 1
  store i32 %223, ptr %224, align 8, !tbaa !21
  %225 = load ptr, ptr %27, align 8, !tbaa !5
  %226 = ptrtoint ptr %225 to i64
  %227 = getelementptr inbounds %struct.otri, ptr %15, i32 0, i32 1
  %228 = load i32, ptr %227, align 8, !tbaa !21
  %229 = sext i32 %228 to i64
  %230 = xor i64 %226, %229
  %231 = inttoptr i64 %230 to ptr
  %232 = getelementptr inbounds %struct.otri, ptr %15, i32 0, i32 0
  store ptr %231, ptr %232, align 8, !tbaa !20
  %233 = getelementptr inbounds %struct.otri, ptr %14, i32 0, i32 0
  %234 = load ptr, ptr %233, align 8, !tbaa !20
  %235 = getelementptr inbounds %struct.otri, ptr %15, i32 0, i32 0
  %236 = load ptr, ptr %235, align 8, !tbaa !20
  %237 = icmp ult ptr %234, %236
  br i1 %237, label %245, label %238

238:                                              ; preds = %212
  %239 = getelementptr inbounds %struct.otri, ptr %15, i32 0, i32 0
  %240 = load ptr, ptr %239, align 8, !tbaa !20
  %241 = load ptr, ptr %7, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.mesh, ptr %241, i32 0, i32 48
  %243 = load ptr, ptr %242, align 8, !tbaa !29
  %244 = icmp eq ptr %240, %243
  br i1 %244, label %245, label %310

245:                                              ; preds = %238, %212
  %246 = getelementptr inbounds %struct.otri, ptr %14, i32 0, i32 0
  %247 = load ptr, ptr %246, align 8, !tbaa !20
  %248 = getelementptr inbounds ptr, ptr %247, i64 6
  %249 = load i32, ptr %248, align 4, !tbaa !9
  store i32 %249, ptr %24, align 4, !tbaa !9
  %250 = getelementptr inbounds %struct.otri, ptr %15, i32 0, i32 0
  %251 = load ptr, ptr %250, align 8, !tbaa !20
  %252 = load ptr, ptr %7, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.mesh, ptr %252, i32 0, i32 48
  %254 = load ptr, ptr %253, align 8, !tbaa !29
  %255 = icmp eq ptr %251, %254
  br i1 %255, label %256, label %297

256:                                              ; preds = %245
  %257 = getelementptr inbounds %struct.otri, ptr %14, i32 0, i32 0
  %258 = load ptr, ptr %257, align 8, !tbaa !20
  %259 = getelementptr inbounds %struct.otri, ptr %14, i32 0, i32 1
  %260 = load i32, ptr %259, align 8, !tbaa !21
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [3 x i32], ptr @plus1mod3, i64 0, i64 %261
  %263 = load i32, ptr %262, align 4, !tbaa !9
  %264 = add nsw i32 %263, 3
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds ptr, ptr %258, i64 %265
  %267 = load ptr, ptr %266, align 8, !tbaa !5
  store ptr %267, ptr %16, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.otri, ptr %14, i32 0, i32 0
  %269 = load ptr, ptr %268, align 8, !tbaa !20
  %270 = getelementptr inbounds %struct.otri, ptr %14, i32 0, i32 1
  %271 = load i32, ptr %270, align 8, !tbaa !21
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [3 x i32], ptr @minus1mod3, i64 0, i64 %272
  %274 = load i32, ptr %273, align 4, !tbaa !9
  %275 = add nsw i32 %274, 3
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds ptr, ptr %269, i64 %276
  %278 = load ptr, ptr %277, align 8, !tbaa !5
  store ptr %278, ptr %17, align 8, !tbaa !5
  %279 = load ptr, ptr %13, align 8, !tbaa !5
  %280 = load i64, ptr %23, align 8, !tbaa !23
  %281 = load i32, ptr %24, align 4, !tbaa !9
  %282 = load ptr, ptr %17, align 8, !tbaa !5
  %283 = getelementptr inbounds double, ptr %282, i64 1
  %284 = load double, ptr %283, align 8, !tbaa !24
  %285 = load ptr, ptr %16, align 8, !tbaa !5
  %286 = getelementptr inbounds double, ptr %285, i64 1
  %287 = load double, ptr %286, align 8, !tbaa !24
  %288 = fsub double %284, %287
  %289 = load ptr, ptr %16, align 8, !tbaa !5
  %290 = getelementptr inbounds double, ptr %289, i64 0
  %291 = load double, ptr %290, align 8, !tbaa !24
  %292 = load ptr, ptr %17, align 8, !tbaa !5
  %293 = getelementptr inbounds double, ptr %292, i64 0
  %294 = load double, ptr %293, align 8, !tbaa !24
  %295 = fsub double %291, %294
  %296 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %279, ptr noundef @.str.1098, i64 noundef %280, i32 noundef %281, i32 noundef -1, double noundef %288, double noundef %295) #5
  br label %307

297:                                              ; preds = %245
  %298 = getelementptr inbounds %struct.otri, ptr %15, i32 0, i32 0
  %299 = load ptr, ptr %298, align 8, !tbaa !20
  %300 = getelementptr inbounds ptr, ptr %299, i64 6
  %301 = load i32, ptr %300, align 4, !tbaa !9
  store i32 %301, ptr %25, align 4, !tbaa !9
  %302 = load ptr, ptr %13, align 8, !tbaa !5
  %303 = load i64, ptr %23, align 8, !tbaa !23
  %304 = load i32, ptr %24, align 4, !tbaa !9
  %305 = load i32, ptr %25, align 4, !tbaa !9
  %306 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %302, ptr noundef @.str.1095, i64 noundef %303, i32 noundef %304, i32 noundef %305) #5
  br label %307

307:                                              ; preds = %297, %256
  %308 = load i64, ptr %23, align 8, !tbaa !23
  %309 = add nsw i64 %308, 1
  store i64 %309, ptr %23, align 8, !tbaa !23
  br label %310

310:                                              ; preds = %307, %238
  br label %311

311:                                              ; preds = %310
  %312 = getelementptr inbounds %struct.otri, ptr %14, i32 0, i32 1
  %313 = load i32, ptr %312, align 8, !tbaa !21
  %314 = add nsw i32 %313, 1
  store i32 %314, ptr %312, align 8, !tbaa !21
  br label %208, !llvm.loop !30

315:                                              ; preds = %208
  %316 = load ptr, ptr %7, align 8, !tbaa !5
  %317 = call ptr @triangletraverse(ptr noundef %316)
  %318 = getelementptr inbounds %struct.otri, ptr %14, i32 0, i32 0
  store ptr %317, ptr %318, align 8, !tbaa !20
  br label %202, !llvm.loop !31

319:                                              ; preds = %202
  %320 = load ptr, ptr %13, align 8, !tbaa !5
  %321 = load i32, ptr %11, align 4, !tbaa !9
  %322 = load ptr, ptr %12, align 8, !tbaa !5
  call void @finishfile(ptr noundef %320, i32 noundef %321, ptr noundef %322)
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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, !10, i64 112}
!12 = !{!"behavior", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !7, i64 168, !7, i64 2216, !7, i64 4264, !7, i64 6312, !7, i64 8360, !7, i64 10408, !7, i64 12456, !7, i64 14504, !7, i64 16552, !7, i64 18600, !7, i64 20648, !7, i64 22696}
!13 = !{!"double", !7, i64 0}
!14 = !{!15, !17, i64 64}
!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, !13, i64 82640, !13, i64 82648, !13, i64 82656, !13, i64 82664, !13, 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, !18, 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 = !{!"otri", !6, i64 0, !10, i64 8}
!19 = !{!15, !10, i64 82716}
!20 = !{!18, !6, i64 0}
!21 = !{!18, !10, i64 8}
!22 = !{!12, !10, i64 40}
!23 = !{!17, !17, i64 0}
!24 = !{!13, !13, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = !{!15, !17, i64 82704}
!29 = !{!15, !6, i64 82856}
!30 = distinct !{!30, !26}
!31 = distinct !{!31, !26}


; 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"

@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
@.str.225 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1078 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1079 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1080 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.1081 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1083 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1089 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1095 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1097 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1098 = external hidden unnamed_addr constant [30 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: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 @triexit(i32 noundef) local_unnamed_addr #2

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

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

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

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #3

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

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

; Function Attrs: nounwind uwtable
define dso_local void @writevoronoi(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5) local_unnamed_addr #2 {
  %7 = alloca [2 x double], align 16
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %10 = getelementptr inbounds i8, ptr %1, i64 112
  %11 = load i32, ptr %10, align 8, !tbaa !5
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %12, label %14

12:                                               ; preds = %6
  %13 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1078, ptr noundef %2)
  br label %14

14:                                               ; preds = %12, %6
  %15 = tail call noalias ptr @fopen(ptr noundef %2, ptr noundef nonnull @.str.1079)
  %16 = icmp eq ptr %15, null
  br i1 %16, label %17, label %19

17:                                               ; preds = %14
  %18 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1080, ptr noundef %2)
  tail call void @triexit(i32 noundef 1)
  br label %19

19:                                               ; preds = %17, %14
  %20 = getelementptr inbounds i8, ptr %0, i64 64
  %21 = load i64, ptr %20, align 8, !tbaa !11
  %22 = getelementptr inbounds i8, ptr %0, i64 82716
  %23 = load i32, ptr %22, align 4, !tbaa !17
  %24 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str.1081, i64 noundef %21, i32 noundef 2, i32 noundef %23, i32 noundef 0) #4
  tail call void @traversalinit(ptr noundef %0)
  %25 = tail call ptr @triangletraverse(ptr noundef %0)
  %26 = getelementptr inbounds i8, ptr %1, i64 40
  %.not9397 = icmp eq ptr %25, null
  br i1 %.not9397, label %._crit_edge102, label %.lr.ph101

.lr.ph101:                                        ; preds = %19
  %27 = load i32, ptr %26, align 8, !tbaa !18
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds i8, ptr %7, i64 8
  br label %30

30:                                               ; preds = %.lr.ph101, %._crit_edge
  %.sroa.032.099 = phi ptr [ %25, %.lr.ph101 ], [ %66, %._crit_edge ]
  %.09098 = phi i64 [ %28, %.lr.ph101 ], [ %67, %._crit_edge ]
  %31 = load i32, ptr @plus1mod3, align 4, !tbaa !19
  %32 = add nsw i32 %31, 3
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds ptr, ptr %.sroa.032.099, i64 %33
  %35 = load ptr, ptr %34, align 8, !tbaa !20
  %36 = load i32, ptr @minus1mod3, align 4, !tbaa !19
  %37 = add nsw i32 %36, 3
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds ptr, ptr %.sroa.032.099, i64 %38
  %40 = load ptr, ptr %39, align 8, !tbaa !20
  %41 = getelementptr inbounds i8, ptr %.sroa.032.099, i64 24
  %42 = load ptr, ptr %41, align 8, !tbaa !20
  call void @findcircumcenter(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %35, ptr noundef %40, ptr noundef %42, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, i32 noundef 0)
  %43 = load double, ptr %7, align 16, !tbaa !21
  %44 = load double, ptr %29, align 8, !tbaa !21
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str.1097, i64 noundef %.09098, double noundef %43, double noundef %44) #4
  %46 = load i32, ptr %22, align 4, !tbaa !17
  %47 = icmp sgt i32 %46, 0
  br i1 %47, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %30, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 2, %30 ]
  %48 = getelementptr inbounds double, ptr %35, i64 %indvars.iv
  %49 = load double, ptr %48, align 8, !tbaa !21
  %50 = load double, ptr %8, align 8, !tbaa !21
  %51 = getelementptr inbounds double, ptr %40, i64 %indvars.iv
  %52 = load double, ptr %51, align 8, !tbaa !21
  %53 = fsub double %52, %49
  %54 = call double @llvm.fmuladd.f64(double %50, double %53, double %49)
  %55 = load double, ptr %9, align 8, !tbaa !21
  %56 = getelementptr inbounds double, ptr %42, i64 %indvars.iv
  %57 = load double, ptr %56, align 8, !tbaa !21
  %58 = fsub double %57, %49
  %59 = call double @llvm.fmuladd.f64(double %55, double %58, double %54)
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str.1083, double noundef %59) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %61 = load i32, ptr %22, align 4, !tbaa !17
  %62 = sext i32 %61 to i64
  %.not109 = icmp sgt i64 %indvars.iv, %62
  br i1 %.not109, label %._crit_edge, label %.lr.ph, !llvm.loop !22

._crit_edge:                                      ; preds = %.lr.ph, %30
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str.225) #4
  %64 = trunc i64 %.09098 to i32
  %65 = getelementptr inbounds i8, ptr %.sroa.032.099, i64 48
  store i32 %64, ptr %65, align 4, !tbaa !19
  %66 = call ptr @triangletraverse(ptr noundef nonnull %0)
  %67 = add nsw i64 %.09098, 1
  %.not93 = icmp eq ptr %66, null
  br i1 %.not93, label %._crit_edge102, label %30, !llvm.loop !24

._crit_edge102:                                   ; preds = %._crit_edge, %19
  call void @finishfile(ptr noundef %15, i32 noundef %4, ptr noundef %5)
  %68 = load i32, ptr %10, align 8, !tbaa !5
  %.not94 = icmp eq i32 %68, 0
  br i1 %.not94, label %69, label %71

69:                                               ; preds = %._crit_edge102
  %70 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1078, ptr noundef %3)
  br label %71

71:                                               ; preds = %69, %._crit_edge102
  %72 = call noalias ptr @fopen(ptr noundef %3, ptr noundef nonnull @.str.1079)
  %73 = icmp eq ptr %72, null
  br i1 %73, label %74, label %76

74:                                               ; preds = %71
  %75 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1080, ptr noundef %3)
  call void @triexit(i32 noundef 1)
  br label %76

76:                                               ; preds = %74, %71
  %77 = getelementptr inbounds i8, ptr %0, i64 82704
  %78 = load i64, ptr %77, align 8, !tbaa !25
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull @.str.1089, i64 noundef %78, i32 noundef 0) #4
  call void @traversalinit(ptr noundef nonnull %0)
  %80 = call ptr @triangletraverse(ptr noundef nonnull %0)
  %.not95105 = icmp eq ptr %80, null
  br i1 %.not95105, label %._crit_edge108, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %76
  %81 = load i32, ptr %26, align 8, !tbaa !18
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds i8, ptr %0, i64 82856
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %194
  %.sroa.032.1107 = phi ptr [ %80, %.preheader.lr.ph ], [ %195, %194 ]
  %.089106 = phi i64 [ %82, %.preheader.lr.ph ], [ %.2.2, %194 ]
  %84 = getelementptr inbounds i8, ptr %.sroa.032.1107, i64 48
  %85 = load ptr, ptr %.sroa.032.1107, align 8, !tbaa !20
  %86 = ptrtoint ptr %85 to i64
  %87 = and i64 %86, -4
  %88 = inttoptr i64 %87 to ptr
  %89 = icmp ult ptr %.sroa.032.1107, %88
  %.pre = load ptr, ptr %83, align 8, !tbaa !26
  %90 = icmp eq ptr %.pre, %88
  %or.cond = select i1 %89, i1 true, i1 %90
  br i1 %or.cond, label %91, label %120

91:                                               ; preds = %.preheader
  %92 = load i32, ptr %84, align 4, !tbaa !19
  %93 = icmp eq ptr %.pre, %88
  br i1 %93, label %94, label %114

94:                                               ; preds = %91
  %95 = load i32, ptr @plus1mod3, align 4, !tbaa !19
  %96 = add nsw i32 %95, 3
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds ptr, ptr %.sroa.032.1107, i64 %97
  %99 = load ptr, ptr %98, align 8, !tbaa !20
  %100 = load i32, ptr @minus1mod3, align 4, !tbaa !19
  %101 = add nsw i32 %100, 3
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds ptr, ptr %.sroa.032.1107, i64 %102
  %104 = load ptr, ptr %103, align 8, !tbaa !20
  %105 = getelementptr inbounds i8, ptr %104, i64 8
  %106 = load double, ptr %105, align 8, !tbaa !21
  %107 = getelementptr inbounds i8, ptr %99, i64 8
  %108 = load double, ptr %107, align 8, !tbaa !21
  %109 = fsub double %106, %108
  %110 = load double, ptr %99, align 8, !tbaa !21
  %111 = load double, ptr %104, align 8, !tbaa !21
  %112 = fsub double %110, %111
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull @.str.1098, i64 noundef %.089106, i32 noundef %92, i32 noundef -1, double noundef %109, double noundef %112) #4
  br label %118

114:                                              ; preds = %91
  %115 = getelementptr inbounds i8, ptr %88, i64 48
  %116 = load i32, ptr %115, align 4, !tbaa !19
  %117 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull @.str.1095, i64 noundef %.089106, i32 noundef %92, i32 noundef %116) #4
  br label %118

118:                                              ; preds = %114, %94
  %119 = add nsw i64 %.089106, 1
  %.pre114.pre = load ptr, ptr %83, align 8, !tbaa !26
  br label %120

120:                                              ; preds = %.preheader, %118
  %.pre114 = phi ptr [ %.pre114.pre, %118 ], [ %.pre, %.preheader ]
  %.2 = phi i64 [ %119, %118 ], [ %.089106, %.preheader ]
  %121 = getelementptr inbounds i8, ptr %.sroa.032.1107, i64 8
  %122 = load ptr, ptr %121, align 8, !tbaa !20
  %123 = ptrtoint ptr %122 to i64
  %124 = and i64 %123, -4
  %125 = inttoptr i64 %124 to ptr
  %126 = icmp ult ptr %.sroa.032.1107, %125
  %127 = icmp eq ptr %.pre114, %125
  %or.cond118 = select i1 %126, i1 true, i1 %127
  br i1 %or.cond118, label %128, label %157

128:                                              ; preds = %120
  %129 = load i32, ptr %84, align 4, !tbaa !19
  %130 = icmp eq ptr %.pre114, %125
  br i1 %130, label %135, label %131

131:                                              ; preds = %128
  %132 = getelementptr inbounds i8, ptr %125, i64 48
  %133 = load i32, ptr %132, align 4, !tbaa !19
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull @.str.1095, i64 noundef %.2, i32 noundef %129, i32 noundef %133) #4
  br label %155

135:                                              ; preds = %128
  %136 = load i32, ptr getelementptr inbounds (i8, ptr @plus1mod3, i64 4), align 4, !tbaa !19
  %137 = add nsw i32 %136, 3
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds ptr, ptr %.sroa.032.1107, i64 %138
  %140 = load ptr, ptr %139, align 8, !tbaa !20
  %141 = load i32, ptr getelementptr inbounds (i8, ptr @minus1mod3, i64 4), align 4, !tbaa !19
  %142 = add nsw i32 %141, 3
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds ptr, ptr %.sroa.032.1107, i64 %143
  %145 = load ptr, ptr %144, align 8, !tbaa !20
  %146 = getelementptr inbounds i8, ptr %145, i64 8
  %147 = load double, ptr %146, align 8, !tbaa !21
  %148 = getelementptr inbounds i8, ptr %140, i64 8
  %149 = load double, ptr %148, align 8, !tbaa !21
  %150 = fsub double %147, %149
  %151 = load double, ptr %140, align 8, !tbaa !21
  %152 = load double, ptr %145, align 8, !tbaa !21
  %153 = fsub double %151, %152
  %154 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull @.str.1098, i64 noundef %.2, i32 noundef %129, i32 noundef -1, double noundef %150, double noundef %153) #4
  br label %155

155:                                              ; preds = %135, %131
  %156 = add nsw i64 %.2, 1
  %.pre115.pre = load ptr, ptr %83, align 8, !tbaa !26
  br label %157

157:                                              ; preds = %120, %155
  %.pre115 = phi ptr [ %.pre115.pre, %155 ], [ %.pre114, %120 ]
  %.2.1 = phi i64 [ %156, %155 ], [ %.2, %120 ]
  %158 = getelementptr inbounds i8, ptr %.sroa.032.1107, i64 16
  %159 = load ptr, ptr %158, align 8, !tbaa !20
  %160 = ptrtoint ptr %159 to i64
  %161 = and i64 %160, -4
  %162 = inttoptr i64 %161 to ptr
  %163 = icmp ult ptr %.sroa.032.1107, %162
  %164 = icmp eq ptr %.pre115, %162
  %or.cond119 = select i1 %163, i1 true, i1 %164
  br i1 %or.cond119, label %165, label %194

165:                                              ; preds = %157
  %166 = load i32, ptr %84, align 4, !tbaa !19
  %167 = icmp eq ptr %.pre115, %162
  br i1 %167, label %172, label %168

168:                                              ; preds = %165
  %169 = getelementptr inbounds i8, ptr %162, i64 48
  %170 = load i32, ptr %169, align 4, !tbaa !19
  %171 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull @.str.1095, i64 noundef %.2.1, i32 noundef %166, i32 noundef %170) #4
  br label %192

172:                                              ; preds = %165
  %173 = load i32, ptr getelementptr inbounds (i8, ptr @plus1mod3, i64 8), align 4, !tbaa !19
  %174 = add nsw i32 %173, 3
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds ptr, ptr %.sroa.032.1107, i64 %175
  %177 = load ptr, ptr %176, align 8, !tbaa !20
  %178 = load i32, ptr getelementptr inbounds (i8, ptr @minus1mod3, i64 8), align 4, !tbaa !19
  %179 = add nsw i32 %178, 3
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds ptr, ptr %.sroa.032.1107, i64 %180
  %182 = load ptr, ptr %181, align 8, !tbaa !20
  %183 = getelementptr inbounds i8, ptr %182, i64 8
  %184 = load double, ptr %183, align 8, !tbaa !21
  %185 = getelementptr inbounds i8, ptr %177, i64 8
  %186 = load double, ptr %185, align 8, !tbaa !21
  %187 = fsub double %184, %186
  %188 = load double, ptr %177, align 8, !tbaa !21
  %189 = load double, ptr %182, align 8, !tbaa !21
  %190 = fsub double %188, %189
  %191 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull @.str.1098, i64 noundef %.2.1, i32 noundef %166, i32 noundef -1, double noundef %187, double noundef %190) #4
  br label %192

192:                                              ; preds = %172, %168
  %193 = add nsw i64 %.2.1, 1
  br label %194

194:                                              ; preds = %157, %192
  %.2.2 = phi i64 [ %193, %192 ], [ %.2.1, %157 ]
  %195 = call ptr @triangletraverse(ptr noundef nonnull %0)
  %.not95 = icmp eq ptr %195, null
  br i1 %.not95, label %._crit_edge108, label %.preheader, !llvm.loop !27

._crit_edge108:                                   ; preds = %194, %76
  call void @finishfile(ptr noundef %72, i32 noundef %4, ptr noundef %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #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, !7, i64 112}
!6 = !{!"behavior", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !8, i64 168, !8, i64 2216, !8, i64 4264, !8, i64 6312, !8, i64 8360, !8, i64 10408, !8, i64 12456, !8, i64 14504, !8, i64 16552, !8, i64 18600, !8, i64 20648, !8, i64 22696}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!12, !15, i64 64}
!12 = !{!"mesh", !13, i64 0, !13, i64 88, !13, i64 176, !13, i64 264, !13, i64 352, !13, i64 440, !13, i64 528, !13, i64 616, !8, i64 704, !8, i64 33472, !8, i64 66240, !7, i64 82624, !14, i64 82632, !10, i64 82640, !10, i64 82648, !10, i64 82656, !10, i64 82664, !10, i64 82672, !7, i64 82680, !7, i64 82684, !7, i64 82688, !7, i64 82692, !7, i64 82696, !7, i64 82700, !15, i64 82704, !7, i64 82712, !7, i64 82716, !7, i64 82720, !15, i64 82728, !7, i64 82736, !7, i64 82740, !7, i64 82744, !7, i64 82748, !7, i64 82752, !7, i64 82756, !7, i64 82760, !7, i64 82764, !7, i64 82768, !15, i64 82776, !15, i64 82784, !15, i64 82792, !15, i64 82800, !15, i64 82808, !15, i64 82816, !15, i64 82824, !14, i64 82832, !14, i64 82840, !14, i64 82848, !14, i64 82856, !14, i64 82864, !14, i64 82872, !14, i64 82880, !16, i64 82888}
!13 = !{!"memorypool", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !15, i64 64, !15, i64 72, !7, i64 80, !7, i64 84}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{!"otri", !14, i64 0, !7, i64 8}
!17 = !{!12, !7, i64 82716}
!18 = !{!6, !7, i64 40}
!19 = !{!7, !7, i64 0}
!20 = !{!14, !14, i64 0}
!21 = !{!10, !10, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = !{!12, !15, i64 82704}
!26 = !{!12, !14, i64 82856}
!27 = distinct !{!27, !23}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass