; 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.behavior = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, float }
%struct.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
@.str.90 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [31 x i8], align 1

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @regionplague(ptr noundef %0, ptr noundef %1, float noundef %2, float noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca %struct.otri, align 8
  %10 = alloca %struct.otri, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %struct.osub, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store float %2, ptr %7, align 4, !tbaa !9
  store float %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.behavior, ptr %19, i32 0, i32 29
  %21 = load i32, ptr %20, align 4, !tbaa !11
  %22 = icmp sgt i32 %21, 1
  br i1 %22, label %23, label %25

23:                                               ; preds = %4
  %24 = call i32 (ptr, ...) @printf(ptr noundef @.str.90)
  br label %25

25:                                               ; preds = %23, %4
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.mesh, ptr %26, i32 0, i32 3
  call void @traversalinit(ptr noundef %27)
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.mesh, ptr %28, i32 0, i32 3
  %30 = call ptr @traverse(ptr noundef %29)
  store ptr %30, ptr %11, align 8, !tbaa !5
  br label %31

31:                                               ; preds = %290, %25
  %32 = load ptr, ptr %11, align 8, !tbaa !5
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %304

34:                                               ; preds = %31
  %35 = load ptr, ptr %11, align 8, !tbaa !5
  %36 = load ptr, ptr %35, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  store ptr %36, ptr %37, align 8, !tbaa !14
  %38 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8, !tbaa !14
  %40 = getelementptr inbounds ptr, ptr %39, i64 6
  %41 = load ptr, ptr %40, align 8, !tbaa !5
  %42 = ptrtoint ptr %41 to i64
  %43 = and i64 %42, -3
  %44 = inttoptr i64 %43 to ptr
  %45 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !14
  %47 = getelementptr inbounds ptr, ptr %46, i64 6
  store ptr %44, ptr %47, align 8, !tbaa !5
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.behavior, ptr %48, i32 0, i32 6
  %50 = load i32, ptr %49, align 4, !tbaa !16
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %52, label %65

52:                                               ; preds = %34
  %53 = load float, ptr %7, align 4, !tbaa !9
  %54 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8, !tbaa !14
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.mesh, ptr %56, i32 0, i32 33
  %58 = load i32, ptr %57, align 8, !tbaa !17
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.mesh, ptr %59, i32 0, i32 27
  %61 = load i32, ptr %60, align 8, !tbaa !21
  %62 = add nsw i32 %58, %61
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds float, ptr %55, i64 %63
  store float %53, ptr %64, align 4, !tbaa !9
  br label %65

65:                                               ; preds = %52, %34
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.behavior, ptr %66, i32 0, i32 3
  %68 = load i32, ptr %67, align 4, !tbaa !22
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %79

70:                                               ; preds = %65
  %71 = load float, ptr %8, align 4, !tbaa !9
  %72 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8, !tbaa !14
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.mesh, ptr %74, i32 0, i32 34
  %76 = load i32, ptr %75, align 4, !tbaa !23
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds float, ptr %73, i64 %77
  store float %71, ptr %78, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %70, %65
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.behavior, ptr %80, i32 0, i32 29
  %82 = load i32, ptr %81, align 4, !tbaa !11
  %83 = icmp sgt i32 %82, 2
  br i1 %83, label %84, label %141

84:                                               ; preds = %79
  %85 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 1
  store i32 0, ptr %85, align 8, !tbaa !24
  %86 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8, !tbaa !14
  %88 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 1
  %89 = load i32, ptr %88, align 8, !tbaa !24
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [3 x i32], ptr @plus1mod3, i64 0, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !25
  %93 = add nsw i32 %92, 3
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds ptr, ptr %87, i64 %94
  %96 = load ptr, ptr %95, align 8, !tbaa !5
  store ptr %96, ptr %14, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8, !tbaa !14
  %99 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 1
  %100 = load i32, ptr %99, align 8, !tbaa !24
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [3 x i32], ptr @minus1mod3, i64 0, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !25
  %104 = add nsw i32 %103, 3
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds ptr, ptr %98, i64 %105
  %107 = load ptr, ptr %106, align 8, !tbaa !5
  store ptr %107, ptr %15, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8, !tbaa !14
  %110 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 1
  %111 = load i32, ptr %110, align 8, !tbaa !24
  %112 = add nsw i32 %111, 3
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds ptr, ptr %109, i64 %113
  %115 = load ptr, ptr %114, align 8, !tbaa !5
  store ptr %115, ptr %16, align 8, !tbaa !5
  %116 = load ptr, ptr %14, align 8, !tbaa !5
  %117 = getelementptr inbounds float, ptr %116, i64 0
  %118 = load float, ptr %117, align 4, !tbaa !9
  %119 = fpext float %118 to double
  %120 = load ptr, ptr %14, align 8, !tbaa !5
  %121 = getelementptr inbounds float, ptr %120, i64 1
  %122 = load float, ptr %121, align 4, !tbaa !9
  %123 = fpext float %122 to double
  %124 = load ptr, ptr %15, align 8, !tbaa !5
  %125 = getelementptr inbounds float, ptr %124, i64 0
  %126 = load float, ptr %125, align 4, !tbaa !9
  %127 = fpext float %126 to double
  %128 = load ptr, ptr %15, align 8, !tbaa !5
  %129 = getelementptr inbounds float, ptr %128, i64 1
  %130 = load float, ptr %129, align 4, !tbaa !9
  %131 = fpext float %130 to double
  %132 = load ptr, ptr %16, align 8, !tbaa !5
  %133 = getelementptr inbounds float, ptr %132, i64 0
  %134 = load float, ptr %133, align 4, !tbaa !9
  %135 = fpext float %134 to double
  %136 = load ptr, ptr %16, align 8, !tbaa !5
  %137 = getelementptr inbounds float, ptr %136, i64 1
  %138 = load float, ptr %137, align 4, !tbaa !9
  %139 = fpext float %138 to double
  %140 = call i32 (ptr, ...) @printf(ptr noundef @.str.91, double noundef %119, double noundef %123, double noundef %127, double noundef %131, double noundef %135, double noundef %139)
  br label %141

141:                                              ; preds = %84, %79
  %142 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 1
  store i32 0, ptr %142, align 8, !tbaa !24
  br label %143

143:                                              ; preds = %286, %141
  %144 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 1
  %145 = load i32, ptr %144, align 8, !tbaa !24
  %146 = icmp slt i32 %145, 3
  br i1 %146, label %147, label %290

147:                                              ; preds = %143
  %148 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  %149 = load ptr, ptr %148, align 8, !tbaa !14
  %150 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 1
  %151 = load i32, ptr %150, align 8, !tbaa !24
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds ptr, ptr %149, i64 %152
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  store ptr %154, ptr %17, align 8, !tbaa !5
  %155 = load ptr, ptr %17, align 8, !tbaa !5
  %156 = ptrtoint ptr %155 to i64
  %157 = and i64 %156, 3
  %158 = trunc i64 %157 to i32
  %159 = getelementptr inbounds %struct.otri, ptr %10, i32 0, i32 1
  store i32 %158, ptr %159, align 8, !tbaa !24
  %160 = load ptr, ptr %17, align 8, !tbaa !5
  %161 = ptrtoint ptr %160 to i64
  %162 = getelementptr inbounds %struct.otri, ptr %10, i32 0, i32 1
  %163 = load i32, ptr %162, align 8, !tbaa !24
  %164 = sext i32 %163 to i64
  %165 = xor i64 %161, %164
  %166 = inttoptr i64 %165 to ptr
  %167 = getelementptr inbounds %struct.otri, ptr %10, i32 0, i32 0
  store ptr %166, ptr %167, align 8, !tbaa !14
  %168 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  %169 = load ptr, ptr %168, align 8, !tbaa !14
  %170 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 1
  %171 = load i32, ptr %170, align 8, !tbaa !24
  %172 = add nsw i32 6, %171
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds ptr, ptr %169, i64 %173
  %175 = load ptr, ptr %174, align 8, !tbaa !5
  store ptr %175, ptr %18, align 8, !tbaa !5
  %176 = load ptr, ptr %18, align 8, !tbaa !5
  %177 = ptrtoint ptr %176 to i64
  %178 = and i64 %177, 1
  %179 = trunc i64 %178 to i32
  %180 = getelementptr inbounds %struct.osub, ptr %13, i32 0, i32 1
  store i32 %179, ptr %180, align 8, !tbaa !26
  %181 = load ptr, ptr %18, align 8, !tbaa !5
  %182 = ptrtoint ptr %181 to i64
  %183 = and i64 %182, -4
  %184 = inttoptr i64 %183 to ptr
  %185 = getelementptr inbounds %struct.osub, ptr %13, i32 0, i32 0
  store ptr %184, ptr %185, align 8, !tbaa !28
  %186 = getelementptr inbounds %struct.otri, ptr %10, i32 0, i32 0
  %187 = load ptr, ptr %186, align 8, !tbaa !14
  %188 = load ptr, ptr %5, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.mesh, ptr %188, i32 0, i32 48
  %190 = load ptr, ptr %189, align 8, !tbaa !29
  %191 = icmp ne ptr %187, %190
  br i1 %191, label %192, label %285

192:                                              ; preds = %147
  %193 = getelementptr inbounds %struct.otri, ptr %10, i32 0, i32 0
  %194 = load ptr, ptr %193, align 8, !tbaa !14
  %195 = getelementptr inbounds ptr, ptr %194, i64 6
  %196 = load ptr, ptr %195, align 8, !tbaa !5
  %197 = ptrtoint ptr %196 to i64
  %198 = and i64 %197, 2
  %199 = icmp ne i64 %198, 0
  br i1 %199, label %285, label %200

200:                                              ; preds = %192
  %201 = getelementptr inbounds %struct.osub, ptr %13, i32 0, i32 0
  %202 = load ptr, ptr %201, align 8, !tbaa !28
  %203 = load ptr, ptr %5, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.mesh, ptr %203, i32 0, i32 50
  %205 = load ptr, ptr %204, align 8, !tbaa !30
  %206 = icmp eq ptr %202, %205
  br i1 %206, label %207, label %285

207:                                              ; preds = %200
  %208 = load ptr, ptr %6, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.behavior, ptr %208, i32 0, i32 29
  %210 = load i32, ptr %209, align 4, !tbaa !11
  %211 = icmp sgt i32 %210, 2
  br i1 %211, label %212, label %268

212:                                              ; preds = %207
  %213 = getelementptr inbounds %struct.otri, ptr %10, i32 0, i32 0
  %214 = load ptr, ptr %213, align 8, !tbaa !14
  %215 = getelementptr inbounds %struct.otri, ptr %10, i32 0, i32 1
  %216 = load i32, ptr %215, align 8, !tbaa !24
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [3 x i32], ptr @plus1mod3, i64 0, i64 %217
  %219 = load i32, ptr %218, align 4, !tbaa !25
  %220 = add nsw i32 %219, 3
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds ptr, ptr %214, i64 %221
  %223 = load ptr, ptr %222, align 8, !tbaa !5
  store ptr %223, ptr %14, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.otri, ptr %10, i32 0, i32 0
  %225 = load ptr, ptr %224, align 8, !tbaa !14
  %226 = getelementptr inbounds %struct.otri, ptr %10, i32 0, i32 1
  %227 = load i32, ptr %226, align 8, !tbaa !24
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [3 x i32], ptr @minus1mod3, i64 0, i64 %228
  %230 = load i32, ptr %229, align 4, !tbaa !25
  %231 = add nsw i32 %230, 3
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds ptr, ptr %225, i64 %232
  %234 = load ptr, ptr %233, align 8, !tbaa !5
  store ptr %234, ptr %15, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.otri, ptr %10, i32 0, i32 0
  %236 = load ptr, ptr %235, align 8, !tbaa !14
  %237 = getelementptr inbounds %struct.otri, ptr %10, i32 0, i32 1
  %238 = load i32, ptr %237, align 8, !tbaa !24
  %239 = add nsw i32 %238, 3
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds ptr, ptr %236, i64 %240
  %242 = load ptr, ptr %241, align 8, !tbaa !5
  store ptr %242, ptr %16, align 8, !tbaa !5
  %243 = load ptr, ptr %14, align 8, !tbaa !5
  %244 = getelementptr inbounds float, ptr %243, i64 0
  %245 = load float, ptr %244, align 4, !tbaa !9
  %246 = fpext float %245 to double
  %247 = load ptr, ptr %14, align 8, !tbaa !5
  %248 = getelementptr inbounds float, ptr %247, i64 1
  %249 = load float, ptr %248, align 4, !tbaa !9
  %250 = fpext float %249 to double
  %251 = load ptr, ptr %15, align 8, !tbaa !5
  %252 = getelementptr inbounds float, ptr %251, i64 0
  %253 = load float, ptr %252, align 4, !tbaa !9
  %254 = fpext float %253 to double
  %255 = load ptr, ptr %15, align 8, !tbaa !5
  %256 = getelementptr inbounds float, ptr %255, i64 1
  %257 = load float, ptr %256, align 4, !tbaa !9
  %258 = fpext float %257 to double
  %259 = load ptr, ptr %16, align 8, !tbaa !5
  %260 = getelementptr inbounds float, ptr %259, i64 0
  %261 = load float, ptr %260, align 4, !tbaa !9
  %262 = fpext float %261 to double
  %263 = load ptr, ptr %16, align 8, !tbaa !5
  %264 = getelementptr inbounds float, ptr %263, i64 1
  %265 = load float, ptr %264, align 4, !tbaa !9
  %266 = fpext float %265 to double
  %267 = call i32 (ptr, ...) @printf(ptr noundef @.str.92, double noundef %246, double noundef %250, double noundef %254, double noundef %258, double noundef %262, double noundef %266)
  br label %268

268:                                              ; preds = %212, %207
  %269 = getelementptr inbounds %struct.otri, ptr %10, i32 0, i32 0
  %270 = load ptr, ptr %269, align 8, !tbaa !14
  %271 = getelementptr inbounds ptr, ptr %270, i64 6
  %272 = load ptr, ptr %271, align 8, !tbaa !5
  %273 = ptrtoint ptr %272 to i64
  %274 = or i64 %273, 2
  %275 = inttoptr i64 %274 to ptr
  %276 = getelementptr inbounds %struct.otri, ptr %10, i32 0, i32 0
  %277 = load ptr, ptr %276, align 8, !tbaa !14
  %278 = getelementptr inbounds ptr, ptr %277, i64 6
  store ptr %275, ptr %278, align 8, !tbaa !5
  %279 = load ptr, ptr %5, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.mesh, ptr %279, i32 0, i32 3
  %281 = call ptr @poolalloc(ptr noundef %280)
  store ptr %281, ptr %12, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.otri, ptr %10, i32 0, i32 0
  %283 = load ptr, ptr %282, align 8, !tbaa !14
  %284 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %283, ptr %284, align 8, !tbaa !5
  br label %285

285:                                              ; preds = %268, %200, %192, %147
  br label %286

286:                                              ; preds = %285
  %287 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 1
  %288 = load i32, ptr %287, align 8, !tbaa !24
  %289 = add nsw i32 %288, 1
  store i32 %289, ptr %287, align 8, !tbaa !24
  br label %143, !llvm.loop !31

290:                                              ; preds = %143
  %291 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  %292 = load ptr, ptr %291, align 8, !tbaa !14
  %293 = getelementptr inbounds ptr, ptr %292, i64 6
  %294 = load ptr, ptr %293, align 8, !tbaa !5
  %295 = ptrtoint ptr %294 to i64
  %296 = or i64 %295, 2
  %297 = inttoptr i64 %296 to ptr
  %298 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  %299 = load ptr, ptr %298, align 8, !tbaa !14
  %300 = getelementptr inbounds ptr, ptr %299, i64 6
  store ptr %297, ptr %300, align 8, !tbaa !5
  %301 = load ptr, ptr %5, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.mesh, ptr %301, i32 0, i32 3
  %303 = call ptr @traverse(ptr noundef %302)
  store ptr %303, ptr %11, align 8, !tbaa !5
  br label %31, !llvm.loop !33

304:                                              ; preds = %31
  %305 = load ptr, ptr %6, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.behavior, ptr %305, i32 0, i32 29
  %307 = load i32, ptr %306, align 4, !tbaa !11
  %308 = icmp sgt i32 %307, 1
  br i1 %308, label %309, label %311

309:                                              ; preds = %304
  %310 = call i32 (ptr, ...) @printf(ptr noundef @.str.95)
  br label %311

311:                                              ; preds = %309, %304
  %312 = load ptr, ptr %5, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.mesh, ptr %312, i32 0, i32 3
  call void @traversalinit(ptr noundef %313)
  %314 = load ptr, ptr %5, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.mesh, ptr %314, i32 0, i32 3
  %316 = call ptr @traverse(ptr noundef %315)
  store ptr %316, ptr %11, align 8, !tbaa !5
  br label %317

317:                                              ; preds = %320, %311
  %318 = load ptr, ptr %11, align 8, !tbaa !5
  %319 = icmp ne ptr %318, null
  br i1 %319, label %320, label %337

320:                                              ; preds = %317
  %321 = load ptr, ptr %11, align 8, !tbaa !5
  %322 = load ptr, ptr %321, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  store ptr %322, ptr %323, align 8, !tbaa !14
  %324 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  %325 = load ptr, ptr %324, align 8, !tbaa !14
  %326 = getelementptr inbounds ptr, ptr %325, i64 6
  %327 = load ptr, ptr %326, align 8, !tbaa !5
  %328 = ptrtoint ptr %327 to i64
  %329 = and i64 %328, -3
  %330 = inttoptr i64 %329 to ptr
  %331 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  %332 = load ptr, ptr %331, align 8, !tbaa !14
  %333 = getelementptr inbounds ptr, ptr %332, i64 6
  store ptr %330, ptr %333, align 8, !tbaa !5
  %334 = load ptr, ptr %5, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.mesh, ptr %334, i32 0, i32 3
  %336 = call ptr @traverse(ptr noundef %335)
  store ptr %336, ptr %11, align 8, !tbaa !5
  br label %317, !llvm.loop !34

337:                                              ; preds = %317
  %338 = load ptr, ptr %5, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.mesh, ptr %338, i32 0, i32 3
  call void @poolrestart(ptr noundef %339)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #3
  ret void
}

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

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

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


; 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.90 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [31 x i8], align 1

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @regionplague(ptr noundef %0, ptr nocapture noundef readonly %1, float noundef %2, float noundef %3) local_unnamed_addr #1 {
  %5 = getelementptr inbounds i8, ptr %1, i64 116
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = icmp sgt i32 %6, 1
  br i1 %7, label %8, label %10

8:                                                ; preds = %4
  %9 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.90)
  br label %10

10:                                               ; preds = %8, %4
  %11 = getelementptr inbounds i8, ptr %0, i64 264
  tail call void @traversalinit(ptr noundef nonnull %11)
  %12 = tail call ptr @traverse(ptr noundef nonnull %11)
  %.not79 = icmp eq ptr %12, null
  br i1 %.not79, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %10
  %13 = getelementptr inbounds i8, ptr %1, i64 24
  %14 = getelementptr inbounds i8, ptr %0, i64 82736
  %15 = getelementptr inbounds i8, ptr %0, i64 82704
  %16 = getelementptr inbounds i8, ptr %1, i64 12
  %17 = getelementptr inbounds i8, ptr %0, i64 82740
  %18 = getelementptr inbounds i8, ptr %0, i64 82840
  %19 = getelementptr inbounds i8, ptr %0, i64 82856
  br label %20

20:                                               ; preds = %.lr.ph, %250
  %.080 = phi ptr [ %12, %.lr.ph ], [ %255, %250 ]
  %21 = load ptr, ptr %.080, align 8, !tbaa !11
  %22 = getelementptr inbounds i8, ptr %21, i64 48
  %23 = load ptr, ptr %22, align 8, !tbaa !11
  %24 = ptrtoint ptr %23 to i64
  %25 = and i64 %24, -3
  %26 = inttoptr i64 %25 to ptr
  store ptr %26, ptr %22, align 8, !tbaa !11
  %27 = load i32, ptr %13, align 4, !tbaa !13
  %.not74 = icmp eq i32 %27, 0
  br i1 %.not74, label %34, label %28

28:                                               ; preds = %20
  %29 = load i32, ptr %14, align 8, !tbaa !14
  %30 = load i32, ptr %15, align 8, !tbaa !19
  %31 = add nsw i32 %30, %29
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds float, ptr %21, i64 %32
  store float %2, ptr %33, align 4, !tbaa !20
  br label %34

34:                                               ; preds = %28, %20
  %35 = load i32, ptr %16, align 4, !tbaa !21
  %.not75 = icmp eq i32 %35, 0
  br i1 %.not75, label %40, label %36

36:                                               ; preds = %34
  %37 = load i32, ptr %17, align 4, !tbaa !22
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds float, ptr %21, i64 %38
  store float %3, ptr %39, align 4, !tbaa !20
  br label %40

40:                                               ; preds = %36, %34
  %41 = load i32, ptr %5, align 4, !tbaa !5
  %42 = icmp sgt i32 %41, 2
  br i1 %42, label %43, label %72

43:                                               ; preds = %40
  %44 = load i32, ptr @plus1mod3, align 4, !tbaa !23
  %45 = sext i32 %44 to i64
  %46 = getelementptr ptr, ptr %21, i64 %45
  %47 = getelementptr i8, ptr %46, i64 24
  %48 = load ptr, ptr %47, align 8, !tbaa !11
  %49 = load i32, ptr @minus1mod3, align 4, !tbaa !23
  %50 = sext i32 %49 to i64
  %51 = getelementptr ptr, ptr %21, i64 %50
  %52 = getelementptr i8, ptr %51, i64 24
  %53 = load ptr, ptr %52, align 8, !tbaa !11
  %54 = getelementptr inbounds i8, ptr %21, i64 24
  %55 = load ptr, ptr %54, align 8, !tbaa !11
  %56 = load float, ptr %48, align 4, !tbaa !20
  %57 = fpext float %56 to double
  %58 = getelementptr inbounds i8, ptr %48, i64 4
  %59 = load float, ptr %58, align 4, !tbaa !20
  %60 = fpext float %59 to double
  %61 = load float, ptr %53, align 4, !tbaa !20
  %62 = fpext float %61 to double
  %63 = getelementptr inbounds i8, ptr %53, i64 4
  %64 = load float, ptr %63, align 4, !tbaa !20
  %65 = fpext float %64 to double
  %66 = load float, ptr %55, align 4, !tbaa !20
  %67 = fpext float %66 to double
  %68 = getelementptr inbounds i8, ptr %55, i64 4
  %69 = load float, ptr %68, align 4, !tbaa !20
  %70 = fpext float %69 to double
  %71 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.91, double noundef %57, double noundef %60, double noundef %62, double noundef %65, double noundef %67, double noundef %70)
  %.pre = load ptr, ptr %22, align 8, !tbaa !11
  br label %72

72:                                               ; preds = %43, %40
  %73 = phi ptr [ %.pre, %43 ], [ %26, %40 ]
  %74 = load ptr, ptr %21, align 8, !tbaa !11
  %75 = ptrtoint ptr %74 to i64
  %76 = and i64 %75, 3
  %77 = and i64 %75, -4
  %78 = inttoptr i64 %77 to ptr
  %79 = ptrtoint ptr %73 to i64
  %80 = and i64 %79, -4
  %81 = inttoptr i64 %80 to ptr
  %82 = load ptr, ptr %18, align 8, !tbaa !24
  %.not76 = icmp eq ptr %82, %78
  br i1 %.not76, label %130, label %83

83:                                               ; preds = %72
  %84 = getelementptr inbounds i8, ptr %78, i64 48
  %85 = load ptr, ptr %84, align 8, !tbaa !11
  %86 = ptrtoint ptr %85 to i64
  %87 = and i64 %86, 2
  %.not77 = icmp eq i64 %87, 0
  br i1 %.not77, label %88, label %130

88:                                               ; preds = %83
  %89 = load ptr, ptr %19, align 8, !tbaa !25
  %90 = icmp eq ptr %89, %81
  br i1 %90, label %91, label %130

91:                                               ; preds = %88
  %92 = load i32, ptr %5, align 4, !tbaa !5
  %93 = icmp sgt i32 %92, 2
  br i1 %93, label %94, label %126

94:                                               ; preds = %91
  %95 = getelementptr inbounds [3 x i32], ptr @plus1mod3, i64 0, i64 %76
  %96 = load i32, ptr %95, align 4, !tbaa !23
  %97 = sext i32 %96 to i64
  %98 = getelementptr ptr, ptr %78, i64 %97
  %99 = getelementptr i8, ptr %98, i64 24
  %100 = load ptr, ptr %99, align 8, !tbaa !11
  %101 = getelementptr inbounds [3 x i32], ptr @minus1mod3, i64 0, i64 %76
  %102 = load i32, ptr %101, align 4, !tbaa !23
  %103 = sext i32 %102 to i64
  %104 = getelementptr ptr, ptr %78, i64 %103
  %105 = getelementptr i8, ptr %104, i64 24
  %106 = load ptr, ptr %105, align 8, !tbaa !11
  %107 = getelementptr inbounds ptr, ptr %78, i64 %76
  %108 = getelementptr inbounds i8, ptr %107, i64 24
  %109 = load ptr, ptr %108, align 8, !tbaa !11
  %110 = load float, ptr %100, align 4, !tbaa !20
  %111 = fpext float %110 to double
  %112 = getelementptr inbounds i8, ptr %100, i64 4
  %113 = load float, ptr %112, align 4, !tbaa !20
  %114 = fpext float %113 to double
  %115 = load float, ptr %106, align 4, !tbaa !20
  %116 = fpext float %115 to double
  %117 = getelementptr inbounds i8, ptr %106, i64 4
  %118 = load float, ptr %117, align 4, !tbaa !20
  %119 = fpext float %118 to double
  %120 = load float, ptr %109, align 4, !tbaa !20
  %121 = fpext float %120 to double
  %122 = getelementptr inbounds i8, ptr %109, i64 4
  %123 = load float, ptr %122, align 4, !tbaa !20
  %124 = fpext float %123 to double
  %125 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.92, double noundef %111, double noundef %114, double noundef %116, double noundef %119, double noundef %121, double noundef %124)
  %.pre87 = load ptr, ptr %84, align 8, !tbaa !11
  %.pre95 = ptrtoint ptr %.pre87 to i64
  br label %126

126:                                              ; preds = %94, %91
  %.pre-phi96 = phi i64 [ %.pre95, %94 ], [ %86, %91 ]
  %127 = or i64 %.pre-phi96, 2
  %128 = inttoptr i64 %127 to ptr
  store ptr %128, ptr %84, align 8, !tbaa !11
  %129 = tail call ptr @poolalloc(ptr noundef nonnull %11)
  store ptr %78, ptr %129, align 8, !tbaa !11
  %.pre88 = load ptr, ptr %18, align 8, !tbaa !24
  br label %130

130:                                              ; preds = %72, %83, %88, %126
  %131 = phi ptr [ %78, %72 ], [ %82, %83 ], [ %82, %88 ], [ %.pre88, %126 ]
  %132 = getelementptr inbounds i8, ptr %21, i64 8
  %133 = load ptr, ptr %132, align 8, !tbaa !11
  %134 = ptrtoint ptr %133 to i64
  %135 = and i64 %134, 3
  %136 = and i64 %134, -4
  %137 = inttoptr i64 %136 to ptr
  %138 = getelementptr inbounds i8, ptr %21, i64 56
  %139 = load ptr, ptr %138, align 8, !tbaa !11
  %140 = ptrtoint ptr %139 to i64
  %141 = and i64 %140, -4
  %142 = inttoptr i64 %141 to ptr
  %.not76.1 = icmp eq ptr %131, %137
  br i1 %.not76.1, label %190, label %143

143:                                              ; preds = %130
  %144 = getelementptr inbounds i8, ptr %137, i64 48
  %145 = load ptr, ptr %144, align 8, !tbaa !11
  %146 = ptrtoint ptr %145 to i64
  %147 = and i64 %146, 2
  %.not77.1 = icmp eq i64 %147, 0
  br i1 %.not77.1, label %148, label %190

148:                                              ; preds = %143
  %149 = load ptr, ptr %19, align 8, !tbaa !25
  %150 = icmp eq ptr %149, %142
  br i1 %150, label %151, label %190

151:                                              ; preds = %148
  %152 = load i32, ptr %5, align 4, !tbaa !5
  %153 = icmp sgt i32 %152, 2
  br i1 %153, label %154, label %186

154:                                              ; preds = %151
  %155 = getelementptr inbounds [3 x i32], ptr @plus1mod3, i64 0, i64 %135
  %156 = load i32, ptr %155, align 4, !tbaa !23
  %157 = sext i32 %156 to i64
  %158 = getelementptr ptr, ptr %137, i64 %157
  %159 = getelementptr i8, ptr %158, i64 24
  %160 = load ptr, ptr %159, align 8, !tbaa !11
  %161 = getelementptr inbounds [3 x i32], ptr @minus1mod3, i64 0, i64 %135
  %162 = load i32, ptr %161, align 4, !tbaa !23
  %163 = sext i32 %162 to i64
  %164 = getelementptr ptr, ptr %137, i64 %163
  %165 = getelementptr i8, ptr %164, i64 24
  %166 = load ptr, ptr %165, align 8, !tbaa !11
  %167 = getelementptr inbounds ptr, ptr %137, i64 %135
  %168 = getelementptr inbounds i8, ptr %167, i64 24
  %169 = load ptr, ptr %168, align 8, !tbaa !11
  %170 = load float, ptr %160, align 4, !tbaa !20
  %171 = fpext float %170 to double
  %172 = getelementptr inbounds i8, ptr %160, i64 4
  %173 = load float, ptr %172, align 4, !tbaa !20
  %174 = fpext float %173 to double
  %175 = load float, ptr %166, align 4, !tbaa !20
  %176 = fpext float %175 to double
  %177 = getelementptr inbounds i8, ptr %166, i64 4
  %178 = load float, ptr %177, align 4, !tbaa !20
  %179 = fpext float %178 to double
  %180 = load float, ptr %169, align 4, !tbaa !20
  %181 = fpext float %180 to double
  %182 = getelementptr inbounds i8, ptr %169, i64 4
  %183 = load float, ptr %182, align 4, !tbaa !20
  %184 = fpext float %183 to double
  %185 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.92, double noundef %171, double noundef %174, double noundef %176, double noundef %179, double noundef %181, double noundef %184)
  %.pre89 = load ptr, ptr %144, align 8, !tbaa !11
  %.pre93 = ptrtoint ptr %.pre89 to i64
  br label %186

186:                                              ; preds = %154, %151
  %.pre-phi94 = phi i64 [ %.pre93, %154 ], [ %146, %151 ]
  %187 = or i64 %.pre-phi94, 2
  %188 = inttoptr i64 %187 to ptr
  store ptr %188, ptr %144, align 8, !tbaa !11
  %189 = tail call ptr @poolalloc(ptr noundef nonnull %11)
  store ptr %137, ptr %189, align 8, !tbaa !11
  %.pre90 = load ptr, ptr %18, align 8, !tbaa !24
  br label %190

190:                                              ; preds = %186, %148, %143, %130
  %191 = phi ptr [ %.pre90, %186 ], [ %131, %148 ], [ %131, %143 ], [ %131, %130 ]
  %192 = getelementptr inbounds i8, ptr %21, i64 16
  %193 = load ptr, ptr %192, align 8, !tbaa !11
  %194 = ptrtoint ptr %193 to i64
  %195 = and i64 %194, 3
  %196 = and i64 %194, -4
  %197 = inttoptr i64 %196 to ptr
  %198 = getelementptr inbounds i8, ptr %21, i64 64
  %199 = load ptr, ptr %198, align 8, !tbaa !11
  %200 = ptrtoint ptr %199 to i64
  %201 = and i64 %200, -4
  %202 = inttoptr i64 %201 to ptr
  %.not76.2 = icmp eq ptr %191, %197
  br i1 %.not76.2, label %250, label %203

203:                                              ; preds = %190
  %204 = getelementptr inbounds i8, ptr %197, i64 48
  %205 = load ptr, ptr %204, align 8, !tbaa !11
  %206 = ptrtoint ptr %205 to i64
  %207 = and i64 %206, 2
  %.not77.2 = icmp eq i64 %207, 0
  br i1 %.not77.2, label %208, label %250

208:                                              ; preds = %203
  %209 = load ptr, ptr %19, align 8, !tbaa !25
  %210 = icmp eq ptr %209, %202
  br i1 %210, label %211, label %250

211:                                              ; preds = %208
  %212 = load i32, ptr %5, align 4, !tbaa !5
  %213 = icmp sgt i32 %212, 2
  br i1 %213, label %214, label %246

214:                                              ; preds = %211
  %215 = getelementptr inbounds [3 x i32], ptr @plus1mod3, i64 0, i64 %195
  %216 = load i32, ptr %215, align 4, !tbaa !23
  %217 = sext i32 %216 to i64
  %218 = getelementptr ptr, ptr %197, i64 %217
  %219 = getelementptr i8, ptr %218, i64 24
  %220 = load ptr, ptr %219, align 8, !tbaa !11
  %221 = getelementptr inbounds [3 x i32], ptr @minus1mod3, i64 0, i64 %195
  %222 = load i32, ptr %221, align 4, !tbaa !23
  %223 = sext i32 %222 to i64
  %224 = getelementptr ptr, ptr %197, i64 %223
  %225 = getelementptr i8, ptr %224, i64 24
  %226 = load ptr, ptr %225, align 8, !tbaa !11
  %227 = getelementptr inbounds ptr, ptr %197, i64 %195
  %228 = getelementptr inbounds i8, ptr %227, i64 24
  %229 = load ptr, ptr %228, align 8, !tbaa !11
  %230 = load float, ptr %220, align 4, !tbaa !20
  %231 = fpext float %230 to double
  %232 = getelementptr inbounds i8, ptr %220, i64 4
  %233 = load float, ptr %232, align 4, !tbaa !20
  %234 = fpext float %233 to double
  %235 = load float, ptr %226, align 4, !tbaa !20
  %236 = fpext float %235 to double
  %237 = getelementptr inbounds i8, ptr %226, i64 4
  %238 = load float, ptr %237, align 4, !tbaa !20
  %239 = fpext float %238 to double
  %240 = load float, ptr %229, align 4, !tbaa !20
  %241 = fpext float %240 to double
  %242 = getelementptr inbounds i8, ptr %229, i64 4
  %243 = load float, ptr %242, align 4, !tbaa !20
  %244 = fpext float %243 to double
  %245 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.92, double noundef %231, double noundef %234, double noundef %236, double noundef %239, double noundef %241, double noundef %244)
  %.pre91 = load ptr, ptr %204, align 8, !tbaa !11
  %.pre92 = ptrtoint ptr %.pre91 to i64
  br label %246

246:                                              ; preds = %214, %211
  %.pre-phi = phi i64 [ %.pre92, %214 ], [ %206, %211 ]
  %247 = or i64 %.pre-phi, 2
  %248 = inttoptr i64 %247 to ptr
  store ptr %248, ptr %204, align 8, !tbaa !11
  %249 = tail call ptr @poolalloc(ptr noundef nonnull %11)
  store ptr %197, ptr %249, align 8, !tbaa !11
  br label %250

250:                                              ; preds = %246, %208, %203, %190
  %251 = load ptr, ptr %22, align 8, !tbaa !11
  %252 = ptrtoint ptr %251 to i64
  %253 = or i64 %252, 2
  %254 = inttoptr i64 %253 to ptr
  store ptr %254, ptr %22, align 8, !tbaa !11
  %255 = tail call ptr @traverse(ptr noundef nonnull %11)
  %.not = icmp eq ptr %255, null
  br i1 %.not, label %._crit_edge, label %20, !llvm.loop !26

._crit_edge:                                      ; preds = %250, %10
  %256 = load i32, ptr %5, align 4, !tbaa !5
  %257 = icmp sgt i32 %256, 1
  br i1 %257, label %258, label %260

258:                                              ; preds = %._crit_edge
  %259 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.95)
  br label %260

260:                                              ; preds = %258, %._crit_edge
  tail call void @traversalinit(ptr noundef nonnull %11)
  %261 = tail call ptr @traverse(ptr noundef nonnull %11)
  %.not7381 = icmp eq ptr %261, null
  br i1 %.not7381, label %._crit_edge85, label %.lr.ph84

.lr.ph84:                                         ; preds = %260, %.lr.ph84
  %.182 = phi ptr [ %268, %.lr.ph84 ], [ %261, %260 ]
  %262 = load ptr, ptr %.182, align 8, !tbaa !11
  %263 = getelementptr inbounds i8, ptr %262, i64 48
  %264 = load ptr, ptr %263, align 8, !tbaa !11
  %265 = ptrtoint ptr %264 to i64
  %266 = and i64 %265, -3
  %267 = inttoptr i64 %266 to ptr
  store ptr %267, ptr %263, align 8, !tbaa !11
  %268 = tail call ptr @traverse(ptr noundef nonnull %11)
  %.not73 = icmp eq ptr %268, null
  br i1 %.not73, label %._crit_edge85, label %.lr.ph84, !llvm.loop !28

._crit_edge85:                                    ; preds = %.lr.ph84, %260
  tail call void @poolrestart(ptr noundef nonnull %11)
  ret void
}

attributes #0 = { 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 #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" }

!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 116}
!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 140, !10, i64 144, !10, i64 148}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!6, !7, i64 24}
!14 = !{!15, !7, i64 82736}
!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, !7, i64 82624, !12, i64 82632, !10, i64 82640, !10, i64 82644, !10, i64 82648, !10, i64 82652, !10, i64 82656, !7, i64 82660, !7, i64 82664, !7, i64 82668, !7, i64 82672, !7, i64 82676, !7, i64 82680, !17, i64 82688, !7, i64 82696, !7, i64 82700, !7, i64 82704, !17, i64 82712, !7, i64 82720, !7, i64 82724, !7, i64 82728, !7, i64 82732, !7, i64 82736, !7, i64 82740, !7, i64 82744, !7, i64 82748, !7, i64 82752, !17, i64 82760, !17, i64 82768, !17, i64 82776, !17, i64 82784, !17, i64 82792, !17, i64 82800, !17, i64 82808, !12, i64 82816, !12, i64 82824, !12, i64 82832, !12, i64 82840, !12, i64 82848, !12, i64 82856, !12, i64 82864, !18, i64 82872}
!16 = !{!"memorypool", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !17, i64 64, !17, i64 72, !7, i64 80, !7, i64 84}
!17 = !{!"long", !8, i64 0}
!18 = !{!"otri", !12, i64 0, !7, i64 8}
!19 = !{!15, !7, i64 82704}
!20 = !{!10, !10, i64 0}
!21 = !{!6, !7, i64 12}
!22 = !{!15, !7, i64 82740}
!23 = !{!7, !7, i64 0}
!24 = !{!15, !12, i64 82840}
!25 = !{!15, !12, i64 82856}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}


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