; LLVM IR from ETH3D/dataset-pipeline :: thirdparty/cork/cork/isct (triangle)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.otri = type { ptr, i32 }
%struct.osub = type { ptr, i32 }
%struct.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.1027 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.1028 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.1029 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.1032 = 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

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

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

; 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, double noundef %2, double noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %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 double %2, ptr %7, align 8, !tbaa !9
  store double %3, ptr %8, align 8, !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.1027)
  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 = %278, %25
  %32 = load ptr, ptr %11, align 8, !tbaa !5
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %292

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 8, !tbaa !16
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %52, label %65

52:                                               ; preds = %34
  %53 = load double, ptr %7, align 8, !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 double, ptr %55, i64 %63
  store double %53, ptr %64, align 8, !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 double, ptr %8, align 8, !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 double, ptr %73, i64 %77
  store double %71, ptr %78, align 8, !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 %135

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 double, ptr %116, i64 0
  %118 = load double, ptr %117, align 8, !tbaa !9
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  %120 = getelementptr inbounds double, ptr %119, i64 1
  %121 = load double, ptr %120, align 8, !tbaa !9
  %122 = load ptr, ptr %15, align 8, !tbaa !5
  %123 = getelementptr inbounds double, ptr %122, i64 0
  %124 = load double, ptr %123, align 8, !tbaa !9
  %125 = load ptr, ptr %15, align 8, !tbaa !5
  %126 = getelementptr inbounds double, ptr %125, i64 1
  %127 = load double, ptr %126, align 8, !tbaa !9
  %128 = load ptr, ptr %16, align 8, !tbaa !5
  %129 = getelementptr inbounds double, ptr %128, i64 0
  %130 = load double, ptr %129, align 8, !tbaa !9
  %131 = load ptr, ptr %16, align 8, !tbaa !5
  %132 = getelementptr inbounds double, ptr %131, i64 1
  %133 = load double, ptr %132, align 8, !tbaa !9
  %134 = call i32 (ptr, ...) @printf(ptr noundef @.str.1028, double noundef %118, double noundef %121, double noundef %124, double noundef %127, double noundef %130, double noundef %133)
  br label %135

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

137:                                              ; preds = %274, %135
  %138 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 1
  %139 = load i32, ptr %138, align 8, !tbaa !24
  %140 = icmp slt i32 %139, 3
  br i1 %140, label %141, label %278

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

186:                                              ; preds = %141
  %187 = getelementptr inbounds %struct.otri, ptr %10, i32 0, i32 0
  %188 = load ptr, ptr %187, align 8, !tbaa !14
  %189 = getelementptr inbounds ptr, ptr %188, i64 6
  %190 = load ptr, ptr %189, align 8, !tbaa !5
  %191 = ptrtoint ptr %190 to i64
  %192 = and i64 %191, 2
  %193 = icmp ne i64 %192, 0
  br i1 %193, label %273, label %194

194:                                              ; preds = %186
  %195 = getelementptr inbounds %struct.osub, ptr %13, i32 0, i32 0
  %196 = load ptr, ptr %195, align 8, !tbaa !28
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.mesh, ptr %197, i32 0, i32 50
  %199 = load ptr, ptr %198, align 8, !tbaa !30
  %200 = icmp eq ptr %196, %199
  br i1 %200, label %201, label %273

201:                                              ; preds = %194
  %202 = load ptr, ptr %6, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.behavior, ptr %202, i32 0, i32 29
  %204 = load i32, ptr %203, align 4, !tbaa !11
  %205 = icmp sgt i32 %204, 2
  br i1 %205, label %206, label %256

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

256:                                              ; preds = %206, %201
  %257 = getelementptr inbounds %struct.otri, ptr %10, i32 0, i32 0
  %258 = load ptr, ptr %257, align 8, !tbaa !14
  %259 = getelementptr inbounds ptr, ptr %258, i64 6
  %260 = load ptr, ptr %259, align 8, !tbaa !5
  %261 = ptrtoint ptr %260 to i64
  %262 = or i64 %261, 2
  %263 = inttoptr i64 %262 to ptr
  %264 = getelementptr inbounds %struct.otri, ptr %10, i32 0, i32 0
  %265 = load ptr, ptr %264, align 8, !tbaa !14
  %266 = getelementptr inbounds ptr, ptr %265, i64 6
  store ptr %263, ptr %266, align 8, !tbaa !5
  %267 = load ptr, ptr %5, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.mesh, ptr %267, i32 0, i32 3
  %269 = call ptr @poolalloc(ptr noundef %268)
  store ptr %269, ptr %12, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.otri, ptr %10, i32 0, i32 0
  %271 = load ptr, ptr %270, align 8, !tbaa !14
  %272 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %271, ptr %272, align 8, !tbaa !5
  br label %273

273:                                              ; preds = %256, %194, %186, %141
  br label %274

274:                                              ; preds = %273
  %275 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 1
  %276 = load i32, ptr %275, align 8, !tbaa !24
  %277 = add nsw i32 %276, 1
  store i32 %277, ptr %275, align 8, !tbaa !24
  br label %137, !llvm.loop !31

278:                                              ; preds = %137
  %279 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  %280 = load ptr, ptr %279, align 8, !tbaa !14
  %281 = getelementptr inbounds ptr, ptr %280, i64 6
  %282 = load ptr, ptr %281, align 8, !tbaa !5
  %283 = ptrtoint ptr %282 to i64
  %284 = or i64 %283, 2
  %285 = inttoptr i64 %284 to ptr
  %286 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  %287 = load ptr, ptr %286, align 8, !tbaa !14
  %288 = getelementptr inbounds ptr, ptr %287, i64 6
  store ptr %285, ptr %288, align 8, !tbaa !5
  %289 = load ptr, ptr %5, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.mesh, ptr %289, i32 0, i32 3
  %291 = call ptr @traverse(ptr noundef %290)
  store ptr %291, ptr %11, align 8, !tbaa !5
  br label %31, !llvm.loop !33

292:                                              ; preds = %31
  %293 = load ptr, ptr %6, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.behavior, ptr %293, i32 0, i32 29
  %295 = load i32, ptr %294, align 4, !tbaa !11
  %296 = icmp sgt i32 %295, 1
  br i1 %296, label %297, label %299

297:                                              ; preds = %292
  %298 = call i32 (ptr, ...) @printf(ptr noundef @.str.1032)
  br label %299

299:                                              ; preds = %297, %292
  %300 = load ptr, ptr %5, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.mesh, ptr %300, i32 0, i32 3
  call void @traversalinit(ptr noundef %301)
  %302 = load ptr, ptr %5, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.mesh, ptr %302, i32 0, i32 3
  %304 = call ptr @traverse(ptr noundef %303)
  store ptr %304, ptr %11, align 8, !tbaa !5
  br label %305

305:                                              ; preds = %308, %299
  %306 = load ptr, ptr %11, align 8, !tbaa !5
  %307 = icmp ne ptr %306, null
  br i1 %307, label %308, label %325

308:                                              ; preds = %305
  %309 = load ptr, ptr %11, align 8, !tbaa !5
  %310 = load ptr, ptr %309, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  store ptr %310, ptr %311, align 8, !tbaa !14
  %312 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  %313 = load ptr, ptr %312, align 8, !tbaa !14
  %314 = getelementptr inbounds ptr, ptr %313, i64 6
  %315 = load ptr, ptr %314, align 8, !tbaa !5
  %316 = ptrtoint ptr %315 to i64
  %317 = and i64 %316, -3
  %318 = inttoptr i64 %317 to ptr
  %319 = getelementptr inbounds %struct.otri, ptr %9, i32 0, i32 0
  %320 = load ptr, ptr %319, align 8, !tbaa !14
  %321 = getelementptr inbounds ptr, ptr %320, i64 6
  store ptr %318, ptr %321, align 8, !tbaa !5
  %322 = load ptr, ptr %5, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.mesh, ptr %322, i32 0, i32 3
  %324 = call ptr @traverse(ptr noundef %323)
  store ptr %324, ptr %11, align 8, !tbaa !5
  br label %305, !llvm.loop !34

325:                                              ; preds = %305
  %326 = load ptr, ptr %5, align 8, !tbaa !5
  %327 = getelementptr inbounds %struct.mesh, ptr %326, i32 0, i32 3
  call void @poolrestart(ptr noundef %327)
  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 = !{!"double", !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 144, !10, i64 152, !10, 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 = !{!"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 82752}
!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 82648, !10, i64 82656, !10, i64 82664, !10, i64 82672, !13, i64 82680, !13, i64 82684, !13, i64 82688, !13, i64 82692, !13, i64 82696, !13, i64 82700, !20, i64 82704, !13, i64 82712, !13, i64 82716, !13, i64 82720, !20, i64 82728, !13, i64 82736, !13, i64 82740, !13, i64 82744, !13, i64 82748, !13, i64 82752, !13, i64 82756, !13, i64 82760, !13, i64 82764, !13, i64 82768, !20, i64 82776, !20, i64 82784, !20, i64 82792, !20, i64 82800, !20, i64 82808, !20, i64 82816, !20, i64 82824, !6, i64 82832, !6, i64 82840, !6, i64 82848, !6, i64 82856, !6, i64 82864, !6, i64 82872, !6, i64 82880, !15, i64 82888}
!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 82720}
!22 = !{!12, !13, i64 12}
!23 = !{!18, !13, i64 82756}
!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 82856}
!30 = !{!18, !6, i64 82872}
!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.1027 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.1028 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.1029 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.1032 = 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, double noundef %2, double 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.1027)
  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 82752
  %15 = getelementptr inbounds i8, ptr %0, i64 82720
  %16 = getelementptr inbounds i8, ptr %1, i64 12
  %17 = getelementptr inbounds i8, ptr %0, i64 82756
  %18 = getelementptr inbounds i8, ptr %0, i64 82856
  %19 = getelementptr inbounds i8, ptr %0, i64 82872
  br label %20

20:                                               ; preds = %.lr.ph, %226
  %.080 = phi ptr [ %12, %.lr.ph ], [ %231, %226 ]
  %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 8, !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 double, ptr %21, i64 %32
  store double %2, ptr %33, align 8, !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 double, ptr %21, i64 %38
  store double %3, ptr %39, align 8, !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 %66

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 double, ptr %48, align 8, !tbaa !20
  %57 = getelementptr inbounds i8, ptr %48, i64 8
  %58 = load double, ptr %57, align 8, !tbaa !20
  %59 = load double, ptr %53, align 8, !tbaa !20
  %60 = getelementptr inbounds i8, ptr %53, i64 8
  %61 = load double, ptr %60, align 8, !tbaa !20
  %62 = load double, ptr %55, align 8, !tbaa !20
  %63 = getelementptr inbounds i8, ptr %55, i64 8
  %64 = load double, ptr %63, align 8, !tbaa !20
  %65 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1028, double noundef %56, double noundef %58, double noundef %59, double noundef %61, double noundef %62, double noundef %64)
  %.pre = load ptr, ptr %22, align 8, !tbaa !11
  br label %66

66:                                               ; preds = %43, %40
  %67 = phi ptr [ %.pre, %43 ], [ %26, %40 ]
  %68 = load ptr, ptr %21, align 8, !tbaa !11
  %69 = ptrtoint ptr %68 to i64
  %70 = and i64 %69, 3
  %71 = and i64 %69, -4
  %72 = inttoptr i64 %71 to ptr
  %73 = ptrtoint ptr %67 to i64
  %74 = and i64 %73, -4
  %75 = inttoptr i64 %74 to ptr
  %76 = load ptr, ptr %18, align 8, !tbaa !24
  %.not76 = icmp eq ptr %76, %72
  br i1 %.not76, label %118, label %77

77:                                               ; preds = %66
  %78 = getelementptr inbounds i8, ptr %72, i64 48
  %79 = load ptr, ptr %78, align 8, !tbaa !11
  %80 = ptrtoint ptr %79 to i64
  %81 = and i64 %80, 2
  %.not77 = icmp eq i64 %81, 0
  br i1 %.not77, label %82, label %118

82:                                               ; preds = %77
  %83 = load ptr, ptr %19, align 8, !tbaa !25
  %84 = icmp eq ptr %83, %75
  br i1 %84, label %85, label %118

85:                                               ; preds = %82
  %86 = load i32, ptr %5, align 4, !tbaa !5
  %87 = icmp sgt i32 %86, 2
  br i1 %87, label %88, label %114

88:                                               ; preds = %85
  %89 = getelementptr inbounds [3 x i32], ptr @plus1mod3, i64 0, i64 %70
  %90 = load i32, ptr %89, align 4, !tbaa !23
  %91 = sext i32 %90 to i64
  %92 = getelementptr ptr, ptr %72, i64 %91
  %93 = getelementptr i8, ptr %92, i64 24
  %94 = load ptr, ptr %93, align 8, !tbaa !11
  %95 = getelementptr inbounds [3 x i32], ptr @minus1mod3, i64 0, i64 %70
  %96 = load i32, ptr %95, align 4, !tbaa !23
  %97 = sext i32 %96 to i64
  %98 = getelementptr ptr, ptr %72, i64 %97
  %99 = getelementptr i8, ptr %98, i64 24
  %100 = load ptr, ptr %99, align 8, !tbaa !11
  %101 = getelementptr inbounds ptr, ptr %72, i64 %70
  %102 = getelementptr inbounds i8, ptr %101, i64 24
  %103 = load ptr, ptr %102, align 8, !tbaa !11
  %104 = load double, ptr %94, align 8, !tbaa !20
  %105 = getelementptr inbounds i8, ptr %94, i64 8
  %106 = load double, ptr %105, align 8, !tbaa !20
  %107 = load double, ptr %100, align 8, !tbaa !20
  %108 = getelementptr inbounds i8, ptr %100, i64 8
  %109 = load double, ptr %108, align 8, !tbaa !20
  %110 = load double, ptr %103, align 8, !tbaa !20
  %111 = getelementptr inbounds i8, ptr %103, i64 8
  %112 = load double, ptr %111, align 8, !tbaa !20
  %113 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1029, double noundef %104, double noundef %106, double noundef %107, double noundef %109, double noundef %110, double noundef %112)
  %.pre87 = load ptr, ptr %78, align 8, !tbaa !11
  %.pre95 = ptrtoint ptr %.pre87 to i64
  br label %114

114:                                              ; preds = %88, %85
  %.pre-phi96 = phi i64 [ %.pre95, %88 ], [ %80, %85 ]
  %115 = or i64 %.pre-phi96, 2
  %116 = inttoptr i64 %115 to ptr
  store ptr %116, ptr %78, align 8, !tbaa !11
  %117 = tail call ptr @poolalloc(ptr noundef nonnull %11)
  store ptr %72, ptr %117, align 8, !tbaa !11
  %.pre88 = load ptr, ptr %18, align 8, !tbaa !24
  br label %118

118:                                              ; preds = %66, %77, %82, %114
  %119 = phi ptr [ %72, %66 ], [ %76, %77 ], [ %76, %82 ], [ %.pre88, %114 ]
  %120 = getelementptr inbounds i8, ptr %21, i64 8
  %121 = load ptr, ptr %120, align 8, !tbaa !11
  %122 = ptrtoint ptr %121 to i64
  %123 = and i64 %122, 3
  %124 = and i64 %122, -4
  %125 = inttoptr i64 %124 to ptr
  %126 = getelementptr inbounds i8, ptr %21, i64 56
  %127 = load ptr, ptr %126, align 8, !tbaa !11
  %128 = ptrtoint ptr %127 to i64
  %129 = and i64 %128, -4
  %130 = inttoptr i64 %129 to ptr
  %.not76.1 = icmp eq ptr %119, %125
  br i1 %.not76.1, label %172, label %131

131:                                              ; preds = %118
  %132 = getelementptr inbounds i8, ptr %125, i64 48
  %133 = load ptr, ptr %132, align 8, !tbaa !11
  %134 = ptrtoint ptr %133 to i64
  %135 = and i64 %134, 2
  %.not77.1 = icmp eq i64 %135, 0
  br i1 %.not77.1, label %136, label %172

136:                                              ; preds = %131
  %137 = load ptr, ptr %19, align 8, !tbaa !25
  %138 = icmp eq ptr %137, %130
  br i1 %138, label %139, label %172

139:                                              ; preds = %136
  %140 = load i32, ptr %5, align 4, !tbaa !5
  %141 = icmp sgt i32 %140, 2
  br i1 %141, label %142, label %168

142:                                              ; preds = %139
  %143 = getelementptr inbounds [3 x i32], ptr @plus1mod3, i64 0, i64 %123
  %144 = load i32, ptr %143, align 4, !tbaa !23
  %145 = sext i32 %144 to i64
  %146 = getelementptr ptr, ptr %125, i64 %145
  %147 = getelementptr i8, ptr %146, i64 24
  %148 = load ptr, ptr %147, align 8, !tbaa !11
  %149 = getelementptr inbounds [3 x i32], ptr @minus1mod3, i64 0, i64 %123
  %150 = load i32, ptr %149, align 4, !tbaa !23
  %151 = sext i32 %150 to i64
  %152 = getelementptr ptr, ptr %125, i64 %151
  %153 = getelementptr i8, ptr %152, i64 24
  %154 = load ptr, ptr %153, align 8, !tbaa !11
  %155 = getelementptr inbounds ptr, ptr %125, i64 %123
  %156 = getelementptr inbounds i8, ptr %155, i64 24
  %157 = load ptr, ptr %156, align 8, !tbaa !11
  %158 = load double, ptr %148, align 8, !tbaa !20
  %159 = getelementptr inbounds i8, ptr %148, i64 8
  %160 = load double, ptr %159, align 8, !tbaa !20
  %161 = load double, ptr %154, align 8, !tbaa !20
  %162 = getelementptr inbounds i8, ptr %154, i64 8
  %163 = load double, ptr %162, align 8, !tbaa !20
  %164 = load double, ptr %157, align 8, !tbaa !20
  %165 = getelementptr inbounds i8, ptr %157, i64 8
  %166 = load double, ptr %165, align 8, !tbaa !20
  %167 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1029, double noundef %158, double noundef %160, double noundef %161, double noundef %163, double noundef %164, double noundef %166)
  %.pre89 = load ptr, ptr %132, align 8, !tbaa !11
  %.pre93 = ptrtoint ptr %.pre89 to i64
  br label %168

168:                                              ; preds = %142, %139
  %.pre-phi94 = phi i64 [ %.pre93, %142 ], [ %134, %139 ]
  %169 = or i64 %.pre-phi94, 2
  %170 = inttoptr i64 %169 to ptr
  store ptr %170, ptr %132, align 8, !tbaa !11
  %171 = tail call ptr @poolalloc(ptr noundef nonnull %11)
  store ptr %125, ptr %171, align 8, !tbaa !11
  %.pre90 = load ptr, ptr %18, align 8, !tbaa !24
  br label %172

172:                                              ; preds = %168, %136, %131, %118
  %173 = phi ptr [ %.pre90, %168 ], [ %119, %136 ], [ %119, %131 ], [ %119, %118 ]
  %174 = getelementptr inbounds i8, ptr %21, i64 16
  %175 = load ptr, ptr %174, align 8, !tbaa !11
  %176 = ptrtoint ptr %175 to i64
  %177 = and i64 %176, 3
  %178 = and i64 %176, -4
  %179 = inttoptr i64 %178 to ptr
  %180 = getelementptr inbounds i8, ptr %21, i64 64
  %181 = load ptr, ptr %180, align 8, !tbaa !11
  %182 = ptrtoint ptr %181 to i64
  %183 = and i64 %182, -4
  %184 = inttoptr i64 %183 to ptr
  %.not76.2 = icmp eq ptr %173, %179
  br i1 %.not76.2, label %226, label %185

185:                                              ; preds = %172
  %186 = getelementptr inbounds i8, ptr %179, i64 48
  %187 = load ptr, ptr %186, align 8, !tbaa !11
  %188 = ptrtoint ptr %187 to i64
  %189 = and i64 %188, 2
  %.not77.2 = icmp eq i64 %189, 0
  br i1 %.not77.2, label %190, label %226

190:                                              ; preds = %185
  %191 = load ptr, ptr %19, align 8, !tbaa !25
  %192 = icmp eq ptr %191, %184
  br i1 %192, label %193, label %226

193:                                              ; preds = %190
  %194 = load i32, ptr %5, align 4, !tbaa !5
  %195 = icmp sgt i32 %194, 2
  br i1 %195, label %196, label %222

196:                                              ; preds = %193
  %197 = getelementptr inbounds [3 x i32], ptr @plus1mod3, i64 0, i64 %177
  %198 = load i32, ptr %197, align 4, !tbaa !23
  %199 = sext i32 %198 to i64
  %200 = getelementptr ptr, ptr %179, i64 %199
  %201 = getelementptr i8, ptr %200, i64 24
  %202 = load ptr, ptr %201, align 8, !tbaa !11
  %203 = getelementptr inbounds [3 x i32], ptr @minus1mod3, i64 0, i64 %177
  %204 = load i32, ptr %203, align 4, !tbaa !23
  %205 = sext i32 %204 to i64
  %206 = getelementptr ptr, ptr %179, i64 %205
  %207 = getelementptr i8, ptr %206, i64 24
  %208 = load ptr, ptr %207, align 8, !tbaa !11
  %209 = getelementptr inbounds ptr, ptr %179, i64 %177
  %210 = getelementptr inbounds i8, ptr %209, i64 24
  %211 = load ptr, ptr %210, align 8, !tbaa !11
  %212 = load double, ptr %202, align 8, !tbaa !20
  %213 = getelementptr inbounds i8, ptr %202, i64 8
  %214 = load double, ptr %213, align 8, !tbaa !20
  %215 = load double, ptr %208, align 8, !tbaa !20
  %216 = getelementptr inbounds i8, ptr %208, i64 8
  %217 = load double, ptr %216, align 8, !tbaa !20
  %218 = load double, ptr %211, align 8, !tbaa !20
  %219 = getelementptr inbounds i8, ptr %211, i64 8
  %220 = load double, ptr %219, align 8, !tbaa !20
  %221 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1029, double noundef %212, double noundef %214, double noundef %215, double noundef %217, double noundef %218, double noundef %220)
  %.pre91 = load ptr, ptr %186, align 8, !tbaa !11
  %.pre92 = ptrtoint ptr %.pre91 to i64
  br label %222

222:                                              ; preds = %196, %193
  %.pre-phi = phi i64 [ %.pre92, %196 ], [ %188, %193 ]
  %223 = or i64 %.pre-phi, 2
  %224 = inttoptr i64 %223 to ptr
  store ptr %224, ptr %186, align 8, !tbaa !11
  %225 = tail call ptr @poolalloc(ptr noundef nonnull %11)
  store ptr %179, ptr %225, align 8, !tbaa !11
  br label %226

226:                                              ; preds = %222, %190, %185, %172
  %227 = load ptr, ptr %22, align 8, !tbaa !11
  %228 = ptrtoint ptr %227 to i64
  %229 = or i64 %228, 2
  %230 = inttoptr i64 %229 to ptr
  store ptr %230, ptr %22, align 8, !tbaa !11
  %231 = tail call ptr @traverse(ptr noundef nonnull %11)
  %.not = icmp eq ptr %231, null
  br i1 %.not, label %._crit_edge, label %20, !llvm.loop !26

._crit_edge:                                      ; preds = %226, %10
  %232 = load i32, ptr %5, align 4, !tbaa !5
  %233 = icmp sgt i32 %232, 1
  br i1 %233, label %234, label %236

234:                                              ; preds = %._crit_edge
  %235 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1032)
  br label %236

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

.lr.ph84:                                         ; preds = %236, %.lr.ph84
  %.182 = phi ptr [ %244, %.lr.ph84 ], [ %237, %236 ]
  %238 = load ptr, ptr %.182, align 8, !tbaa !11
  %239 = getelementptr inbounds i8, ptr %238, i64 48
  %240 = load ptr, ptr %239, align 8, !tbaa !11
  %241 = ptrtoint ptr %240 to i64
  %242 = and i64 %241, -3
  %243 = inttoptr i64 %242 to ptr
  store ptr %243, ptr %239, align 8, !tbaa !11
  %244 = tail call ptr @traverse(ptr noundef nonnull %11)
  %.not73 = icmp eq ptr %244, null
  br i1 %.not73, label %._crit_edge85, label %.lr.ph84, !llvm.loop !28

._crit_edge85:                                    ; preds = %.lr.ph84, %236
  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 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, !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!6, !7, i64 24}
!14 = !{!15, !7, i64 82752}
!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 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, !17, i64 82704, !7, i64 82712, !7, i64 82716, !7, i64 82720, !17, 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, !17, i64 82776, !17, i64 82784, !17, i64 82792, !17, i64 82800, !17, i64 82808, !17, i64 82816, !17, i64 82824, !12, i64 82832, !12, i64 82840, !12, i64 82848, !12, i64 82856, !12, i64 82864, !12, i64 82872, !12, i64 82880, !18, i64 82888}
!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 82720}
!20 = !{!10, !10, i64 0}
!21 = !{!6, !7, i64 12}
!22 = !{!15, !7, i64 82756}
!23 = !{!7, !7, i64 0}
!24 = !{!15, !12, i64 82856}
!25 = !{!15, !12, i64 82872}
!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