; 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.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 }
%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, float, float, float, float }

@.str.103 = external hidden unnamed_addr constant [56 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @triexit(i32 noundef) #0

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

; Function Attrs: nounwind uwtable
define dso_local void @transfernodes(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5, i32 noundef %6) #0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store i32 %5, ptr %13, align 4, !tbaa !9
  store i32 %6, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %22 = load i32, ptr %13, align 4, !tbaa !9
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.mesh, ptr %23, i32 0, i32 18
  store i32 %22, ptr %24, align 4, !tbaa !11
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.mesh, ptr %25, i32 0, i32 25
  store i32 2, ptr %26, align 8, !tbaa !17
  %27 = load i32, ptr %14, align 4, !tbaa !9
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.mesh, ptr %28, i32 0, i32 26
  store i32 %27, ptr %29, align 4, !tbaa !18
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.mesh, ptr %30, i32 0, i32 37
  store i32 0, ptr %31, align 8, !tbaa !19
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.mesh, ptr %32, i32 0, i32 18
  %34 = load i32, ptr %33, align 4, !tbaa !11
  %35 = icmp slt i32 %34, 3
  br i1 %35, label %36, label %38

36:                                               ; preds = %7
  %37 = call i32 (ptr, ...) @printf(ptr noundef @.str.103)
  call void @triexit(i32 noundef 1)
  br label %38

38:                                               ; preds = %36, %7
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.mesh, ptr %39, i32 0, i32 26
  %41 = load i32, ptr %40, align 4, !tbaa !18
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %46

43:                                               ; preds = %38
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.behavior, ptr %44, i32 0, i32 8
  store i32 0, ptr %45, align 4, !tbaa !20
  br label %46

46:                                               ; preds = %43, %38
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  call void @initializevertexpool(ptr noundef %47, ptr noundef %48)
  store i32 0, ptr %20, align 4, !tbaa !9
  store i32 0, ptr %21, align 4, !tbaa !9
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %199, %46
  %50 = load i32, ptr %18, align 4, !tbaa !9
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.mesh, ptr %51, i32 0, i32 18
  %53 = load i32, ptr %52, align 4, !tbaa !11
  %54 = icmp slt i32 %50, %53
  br i1 %54, label %55, label %202

55:                                               ; preds = %49
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.mesh, ptr %56, i32 0, i32 2
  %58 = call ptr @poolalloc(ptr noundef %57)
  store ptr %58, ptr %15, align 8, !tbaa !5
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = load i32, ptr %20, align 4, !tbaa !9
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %20, align 4, !tbaa !9
  %62 = sext i32 %60 to i64
  %63 = getelementptr inbounds float, ptr %59, i64 %62
  %64 = load float, ptr %63, align 4, !tbaa !22
  %65 = load ptr, ptr %15, align 8, !tbaa !5
  %66 = getelementptr inbounds float, ptr %65, i64 0
  store float %64, ptr %66, align 4, !tbaa !22
  store float %64, ptr %16, align 4, !tbaa !22
  %67 = load ptr, ptr %10, align 8, !tbaa !5
  %68 = load i32, ptr %20, align 4, !tbaa !9
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %20, align 4, !tbaa !9
  %70 = sext i32 %68 to i64
  %71 = getelementptr inbounds float, ptr %67, i64 %70
  %72 = load float, ptr %71, align 4, !tbaa !22
  %73 = load ptr, ptr %15, align 8, !tbaa !5
  %74 = getelementptr inbounds float, ptr %73, i64 1
  store float %72, ptr %74, align 4, !tbaa !22
  store float %72, ptr %17, align 4, !tbaa !22
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %91, %55
  %76 = load i32, ptr %19, align 4, !tbaa !9
  %77 = load i32, ptr %14, align 4, !tbaa !9
  %78 = icmp slt i32 %76, %77
  br i1 %78, label %79, label %94

79:                                               ; preds = %75
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  %81 = load i32, ptr %21, align 4, !tbaa !9
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %21, align 4, !tbaa !9
  %83 = sext i32 %81 to i64
  %84 = getelementptr inbounds float, ptr %80, i64 %83
  %85 = load float, ptr %84, align 4, !tbaa !22
  %86 = load ptr, ptr %15, align 8, !tbaa !5
  %87 = load i32, ptr %19, align 4, !tbaa !9
  %88 = add nsw i32 2, %87
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds float, ptr %86, i64 %89
  store float %85, ptr %90, align 4, !tbaa !22
  br label %91

91:                                               ; preds = %79
  %92 = load i32, ptr %19, align 4, !tbaa !9
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %19, align 4, !tbaa !9
  br label %75, !llvm.loop !23

94:                                               ; preds = %75
  %95 = load ptr, ptr %12, align 8, !tbaa !5
  %96 = icmp ne ptr %95, null
  br i1 %96, label %97, label %109

97:                                               ; preds = %94
  %98 = load ptr, ptr %12, align 8, !tbaa !5
  %99 = load i32, ptr %18, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds i32, ptr %98, i64 %100
  %102 = load i32, ptr %101, align 4, !tbaa !9
  %103 = load ptr, ptr %15, align 8, !tbaa !5
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.mesh, ptr %104, i32 0, i32 30
  %106 = load i32, ptr %105, align 4, !tbaa !25
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds i32, ptr %103, i64 %107
  store i32 %102, ptr %108, align 4, !tbaa !9
  br label %116

109:                                              ; preds = %94
  %110 = load ptr, ptr %15, align 8, !tbaa !5
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.mesh, ptr %111, i32 0, i32 30
  %113 = load i32, ptr %112, align 4, !tbaa !25
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds i32, ptr %110, i64 %114
  store i32 0, ptr %115, align 4, !tbaa !9
  br label %116

116:                                              ; preds = %109, %97
  %117 = load ptr, ptr %15, align 8, !tbaa !5
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.mesh, ptr %118, i32 0, i32 30
  %120 = load i32, ptr %119, align 4, !tbaa !25
  %121 = add nsw i32 %120, 1
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds i32, ptr %117, i64 %122
  store i32 0, ptr %123, align 4, !tbaa !9
  %124 = load i32, ptr %18, align 4, !tbaa !9
  %125 = icmp eq i32 %124, 0
  br i1 %125, label %126, label %137

126:                                              ; preds = %116
  %127 = load float, ptr %16, align 4, !tbaa !22
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.mesh, ptr %128, i32 0, i32 14
  store float %127, ptr %129, align 4, !tbaa !26
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.mesh, ptr %130, i32 0, i32 13
  store float %127, ptr %131, align 8, !tbaa !27
  %132 = load float, ptr %17, align 4, !tbaa !22
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.mesh, ptr %133, i32 0, i32 16
  store float %132, ptr %134, align 4, !tbaa !28
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.mesh, ptr %135, i32 0, i32 15
  store float %132, ptr %136, align 8, !tbaa !29
  br label %198

137:                                              ; preds = %116
  %138 = load float, ptr %16, align 4, !tbaa !22
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.mesh, ptr %139, i32 0, i32 13
  %141 = load float, ptr %140, align 8, !tbaa !27
  %142 = fcmp olt float %138, %141
  br i1 %142, label %143, label %145

143:                                              ; preds = %137
  %144 = load float, ptr %16, align 4, !tbaa !22
  br label %149

145:                                              ; preds = %137
  %146 = load ptr, ptr %8, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.mesh, ptr %146, i32 0, i32 13
  %148 = load float, ptr %147, align 8, !tbaa !27
  br label %149

149:                                              ; preds = %145, %143
  %150 = phi float [ %144, %143 ], [ %148, %145 ]
  %151 = load ptr, ptr %8, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.mesh, ptr %151, i32 0, i32 13
  store float %150, ptr %152, align 8, !tbaa !27
  %153 = load float, ptr %16, align 4, !tbaa !22
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.mesh, ptr %154, i32 0, i32 14
  %156 = load float, ptr %155, align 4, !tbaa !26
  %157 = fcmp ogt float %153, %156
  br i1 %157, label %158, label %160

158:                                              ; preds = %149
  %159 = load float, ptr %16, align 4, !tbaa !22
  br label %164

160:                                              ; preds = %149
  %161 = load ptr, ptr %8, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.mesh, ptr %161, i32 0, i32 14
  %163 = load float, ptr %162, align 4, !tbaa !26
  br label %164

164:                                              ; preds = %160, %158
  %165 = phi float [ %159, %158 ], [ %163, %160 ]
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.mesh, ptr %166, i32 0, i32 14
  store float %165, ptr %167, align 4, !tbaa !26
  %168 = load float, ptr %17, align 4, !tbaa !22
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.mesh, ptr %169, i32 0, i32 15
  %171 = load float, ptr %170, align 8, !tbaa !29
  %172 = fcmp olt float %168, %171
  br i1 %172, label %173, label %175

173:                                              ; preds = %164
  %174 = load float, ptr %17, align 4, !tbaa !22
  br label %179

175:                                              ; preds = %164
  %176 = load ptr, ptr %8, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.mesh, ptr %176, i32 0, i32 15
  %178 = load float, ptr %177, align 8, !tbaa !29
  br label %179

179:                                              ; preds = %175, %173
  %180 = phi float [ %174, %173 ], [ %178, %175 ]
  %181 = load ptr, ptr %8, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.mesh, ptr %181, i32 0, i32 15
  store float %180, ptr %182, align 8, !tbaa !29
  %183 = load float, ptr %17, align 4, !tbaa !22
  %184 = load ptr, ptr %8, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.mesh, ptr %184, i32 0, i32 16
  %186 = load float, ptr %185, align 4, !tbaa !28
  %187 = fcmp ogt float %183, %186
  br i1 %187, label %188, label %190

188:                                              ; preds = %179
  %189 = load float, ptr %17, align 4, !tbaa !22
  br label %194

190:                                              ; preds = %179
  %191 = load ptr, ptr %8, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.mesh, ptr %191, i32 0, i32 16
  %193 = load float, ptr %192, align 4, !tbaa !28
  br label %194

194:                                              ; preds = %190, %188
  %195 = phi float [ %189, %188 ], [ %193, %190 ]
  %196 = load ptr, ptr %8, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.mesh, ptr %196, i32 0, i32 16
  store float %195, ptr %197, align 4, !tbaa !28
  br label %198

198:                                              ; preds = %194, %126
  br label %199

199:                                              ; preds = %198
  %200 = load i32, ptr %18, align 4, !tbaa !9
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %18, align 4, !tbaa !9
  br label %49, !llvm.loop !30

202:                                              ; preds = %49
  %203 = load ptr, ptr %8, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.mesh, ptr %203, i32 0, i32 13
  %205 = load float, ptr %204, align 8, !tbaa !27
  %206 = load ptr, ptr %8, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.mesh, ptr %206, i32 0, i32 14
  %208 = load float, ptr %207, align 4, !tbaa !26
  %209 = fmul float 9.000000e+00, %208
  %210 = fneg float %209
  %211 = call float @llvm.fmuladd.f32(float 1.000000e+01, float %205, float %210)
  %212 = load ptr, ptr %8, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.mesh, ptr %212, i32 0, i32 17
  store float %211, ptr %213, align 8, !tbaa !31
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  ret void
}

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !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 82660}
!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, !7, i64 704, !7, i64 33472, !7, i64 66240, !10, i64 82624, !6, i64 82632, !15, i64 82640, !15, i64 82644, !15, i64 82648, !15, i64 82652, !15, i64 82656, !10, i64 82660, !10, i64 82664, !10, i64 82668, !10, i64 82672, !10, i64 82676, !10, i64 82680, !14, i64 82688, !10, i64 82696, !10, i64 82700, !10, i64 82704, !14, i64 82712, !10, i64 82720, !10, i64 82724, !10, i64 82728, !10, i64 82732, !10, i64 82736, !10, i64 82740, !10, i64 82744, !10, i64 82748, !10, i64 82752, !14, i64 82760, !14, i64 82768, !14, i64 82776, !14, i64 82784, !14, i64 82792, !14, i64 82800, !14, i64 82808, !6, i64 82816, !6, i64 82824, !6, i64 82832, !6, i64 82840, !6, i64 82848, !6, i64 82856, !6, i64 82864, !16, i64 82872}
!13 = !{!"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, !14, i64 64, !14, i64 72, !10, i64 80, !10, i64 84}
!14 = !{!"long", !7, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!"otri", !6, i64 0, !10, i64 8}
!17 = !{!12, !10, i64 82696}
!18 = !{!12, !10, i64 82700}
!19 = !{!12, !10, i64 82752}
!20 = !{!21, !10, i64 32}
!21 = !{!"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, !15, i64 136, !15, i64 140, !15, i64 144, !15, i64 148}
!22 = !{!15, !15, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!12, !10, i64 82724}
!26 = !{!12, !15, i64 82644}
!27 = !{!12, !15, i64 82640}
!28 = !{!12, !15, i64 82652}
!29 = !{!12, !15, i64 82648}
!30 = distinct !{!30, !24}
!31 = !{!12, !15, i64 82656}


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

@.str.103 = external hidden unnamed_addr constant [56 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @triexit(i32 noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

; Function Attrs: nounwind uwtable
define dso_local void @transfernodes(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr noundef readonly %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #0 {
  %8 = ptrtoint ptr %3 to i64
  %9 = getelementptr inbounds i8, ptr %0, i64 82660
  store i32 %5, ptr %9, align 4, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 82696
  store i32 2, ptr %10, align 8, !tbaa !15
  %11 = getelementptr inbounds i8, ptr %0, i64 82700
  store i32 %6, ptr %11, align 4, !tbaa !16
  %12 = getelementptr inbounds i8, ptr %0, i64 82752
  store i32 0, ptr %12, align 8, !tbaa !17
  %13 = icmp slt i32 %5, 3
  br i1 %13, label %14, label %16

14:                                               ; preds = %7
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.103)
  tail call void @triexit(i32 noundef 1)
  %.pr = load i32, ptr %11, align 4, !tbaa !16
  br label %16

16:                                               ; preds = %14, %7
  %17 = phi i32 [ %.pr, %14 ], [ %6, %7 ]
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %19, label %21

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %1, i64 32
  store i32 0, ptr %20, align 4, !tbaa !18
  br label %21

21:                                               ; preds = %19, %16
  tail call void @initializevertexpool(ptr noundef nonnull %0, ptr noundef %1)
  %22 = load i32, ptr %9, align 4, !tbaa !5
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.lr.ph84, label %.._crit_edge85_crit_edge

.._crit_edge85_crit_edge:                         ; preds = %21
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 82640
  %.pre = load float, ptr %.phi.trans.insert, align 8, !tbaa !20
  %.phi.trans.insert98 = getelementptr inbounds i8, ptr %0, i64 82644
  %.pre99 = load float, ptr %.phi.trans.insert98, align 4, !tbaa !21
  br label %._crit_edge85

.lr.ph84:                                         ; preds = %21
  %24 = getelementptr inbounds i8, ptr %0, i64 176
  %25 = icmp sgt i32 %6, 0
  %.not = icmp eq ptr %4, null
  %26 = getelementptr inbounds i8, ptr %0, i64 82724
  %27 = getelementptr inbounds i8, ptr %0, i64 82640
  %wide.trip.count = zext i32 %6 to i64
  %min.iters.check = icmp ult i32 %6, 8
  %n.vec = and i64 %wide.trip.count, 2147483640
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %invariant.gep113 = getelementptr i8, ptr %3, i64 4
  %invariant.gep117 = getelementptr i8, ptr %3, i64 8
  %invariant.gep121 = getelementptr i8, ptr %3, i64 12
  br label %28

28:                                               ; preds = %.lr.ph84, %86
  %indvars.iv93 = phi i64 [ 0, %.lr.ph84 ], [ %indvars.iv.next94, %86 ]
  %indvars.iv91 = phi i64 [ 0, %.lr.ph84 ], [ %indvars.iv.next92, %86 ]
  %.082 = phi i32 [ 0, %.lr.ph84 ], [ %.1.lcssa, %86 ]
  %29 = tail call ptr @poolalloc(ptr noundef nonnull %24)
  %30 = ptrtoint ptr %29 to i64
  %31 = or disjoint i64 %indvars.iv91, 1
  %32 = getelementptr inbounds float, ptr %2, i64 %indvars.iv91
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 2
  %33 = getelementptr inbounds float, ptr %2, i64 %31
  %34 = load float, ptr %32, align 4, !tbaa !22
  store float %34, ptr %29, align 4, !tbaa !22
  %35 = load float, ptr %33, align 4, !tbaa !22
  %36 = getelementptr inbounds i8, ptr %29, i64 4
  store float %35, ptr %36, align 4, !tbaa !22
  %invariant.gep = getelementptr i8, ptr %29, i64 8
  br i1 %25, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %28
  %37 = sext i32 %.082 to i64
  br i1 %min.iters.check, label %.lr.ph.preheader107, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph.preheader
  %38 = shl nsw i64 %37, 2
  %39 = add i64 %30, 8
  %40 = add i64 %38, %8
  %41 = sub i64 %39, %40
  %diff.check = icmp ult i64 %41, 32
  br i1 %diff.check, label %.lr.ph.preheader107, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %ind.end = add nsw i64 %n.vec, %37
  %invariant.gep111 = getelementptr float, ptr %3, i64 %37
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %gep112 = getelementptr float, ptr %invariant.gep111, i64 %index
  %42 = getelementptr inbounds i8, ptr %gep112, i64 16
  %wide.load = load <4 x float>, ptr %gep112, align 4, !tbaa !22
  %wide.load106 = load <4 x float>, ptr %42, align 4, !tbaa !22
  %43 = getelementptr inbounds float, ptr %invariant.gep, i64 %index
  %44 = getelementptr inbounds i8, ptr %43, i64 16
  store <4 x float> %wide.load, ptr %43, align 4, !tbaa !22
  store <4 x float> %wide.load106, ptr %44, align 4, !tbaa !22
  %index.next = add nuw i64 %index, 8
  %45 = icmp eq i64 %index.next, %n.vec
  br i1 %45, label %middle.block, label %vector.body, !llvm.loop !23

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.loopexit, label %.lr.ph.preheader107

.lr.ph.preheader107:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph.preheader
  %indvars.iv86.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %indvars.iv.ph = phi i64 [ %37, %vector.memcheck ], [ %37, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader107, %.lr.ph.prol
  %indvars.iv86.prol = phi i64 [ %indvars.iv.next87.prol, %.lr.ph.prol ], [ %indvars.iv86.ph, %.lr.ph.preheader107 ]
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.prol ], [ %indvars.iv.ph, %.lr.ph.preheader107 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader107 ]
  %indvars.iv.next.prol = add nsw i64 %indvars.iv.prol, 1
  %46 = getelementptr inbounds float, ptr %3, i64 %indvars.iv.prol
  %47 = load float, ptr %46, align 4, !tbaa !22
  %gep.prol = getelementptr inbounds float, ptr %invariant.gep, i64 %indvars.iv86.prol
  store float %47, ptr %gep.prol, align 4, !tbaa !22
  %indvars.iv.next87.prol = add nuw nsw i64 %indvars.iv86.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !27

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader107
  %indvars.iv.next.lcssa108.unr = phi i64 [ poison, %.lr.ph.preheader107 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %indvars.iv86.unr = phi i64 [ %indvars.iv86.ph, %.lr.ph.preheader107 ], [ %indvars.iv.next87.prol, %.lr.ph.prol ]
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader107 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %48 = sub nsw i64 %indvars.iv86.ph, %wide.trip.count
  %49 = icmp ugt i64 %48, -4
  br i1 %49, label %._crit_edge.loopexit, label %.lr.ph.preheader107.new

.lr.ph.preheader107.new:                          ; preds = %.lr.ph.prol.loopexit
  %invariant.gep115 = getelementptr i8, ptr %invariant.gep, i64 4
  %invariant.gep119 = getelementptr i8, ptr %invariant.gep, i64 8
  %invariant.gep123 = getelementptr i8, ptr %invariant.gep, i64 12
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader107.new
  %indvars.iv86 = phi i64 [ %indvars.iv86.unr, %.lr.ph.preheader107.new ], [ %indvars.iv.next87.3, %.lr.ph ]
  %indvars.iv = phi i64 [ %indvars.iv.unr, %.lr.ph.preheader107.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %50 = getelementptr inbounds float, ptr %3, i64 %indvars.iv
  %51 = load float, ptr %50, align 4, !tbaa !22
  %gep = getelementptr inbounds float, ptr %invariant.gep, i64 %indvars.iv86
  store float %51, ptr %gep, align 4, !tbaa !22
  %gep114 = getelementptr float, ptr %invariant.gep113, i64 %indvars.iv
  %52 = load float, ptr %gep114, align 4, !tbaa !22
  %gep116 = getelementptr float, ptr %invariant.gep115, i64 %indvars.iv86
  store float %52, ptr %gep116, align 4, !tbaa !22
  %gep118 = getelementptr float, ptr %invariant.gep117, i64 %indvars.iv
  %53 = load float, ptr %gep118, align 4, !tbaa !22
  %gep120 = getelementptr float, ptr %invariant.gep119, i64 %indvars.iv86
  store float %53, ptr %gep120, align 4, !tbaa !22
  %indvars.iv.next.3 = add nsw i64 %indvars.iv, 4
  %gep122 = getelementptr float, ptr %invariant.gep121, i64 %indvars.iv
  %54 = load float, ptr %gep122, align 4, !tbaa !22
  %gep124 = getelementptr float, ptr %invariant.gep123, i64 %indvars.iv86
  store float %54, ptr %gep124, align 4, !tbaa !22
  %indvars.iv.next87.3 = add nuw nsw i64 %indvars.iv86, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next87.3, %wide.trip.count
  br i1 %exitcond.not.3, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !29

._crit_edge.loopexit:                             ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block
  %indvars.iv.next.lcssa = phi i64 [ %ind.end, %middle.block ], [ %indvars.iv.next.lcssa108.unr, %.lr.ph.prol.loopexit ], [ %indvars.iv.next.3, %.lr.ph ]
  %55 = trunc nsw i64 %indvars.iv.next.lcssa to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %28
  %.1.lcssa = phi i32 [ %.082, %28 ], [ %55, %._crit_edge.loopexit ]
  br i1 %.not, label %59, label %56

56:                                               ; preds = %._crit_edge
  %57 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv93
  %58 = load i32, ptr %57, align 4, !tbaa !30
  br label %59

59:                                               ; preds = %._crit_edge, %56
  %.sink = phi i32 [ %58, %56 ], [ 0, %._crit_edge ]
  %60 = load i32, ptr %26, align 4, !tbaa !31
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds i32, ptr %29, i64 %61
  store i32 %.sink, ptr %62, align 4, !tbaa !30
  %63 = load i32, ptr %26, align 4, !tbaa !31
  %64 = sext i32 %63 to i64
  %65 = getelementptr i32, ptr %29, i64 %64
  %66 = getelementptr i8, ptr %65, i64 4
  store i32 0, ptr %66, align 4, !tbaa !30
  %67 = icmp eq i64 %indvars.iv93, 0
  br i1 %67, label %68, label %72

68:                                               ; preds = %59
  %69 = insertelement <4 x float> poison, float %34, i64 0
  %70 = insertelement <4 x float> %69, float %35, i64 1
  %71 = shufflevector <4 x float> %70, <4 x float> poison, <4 x i32> <i32 0, i32 0, i32 1, i32 1>
  store <4 x float> %71, ptr %27, align 8, !tbaa !22
  br label %86

72:                                               ; preds = %59
  %73 = load <4 x float>, ptr %27, align 8, !tbaa !22
  %74 = insertelement <4 x float> poison, float %34, i64 0
  %75 = insertelement <4 x float> %74, float %35, i64 1
  %76 = shufflevector <4 x float> %75, <4 x float> %73, <4 x i32> <i32 0, i32 1, i32 5, i32 7>
  %77 = shufflevector <4 x float> %73, <4 x float> poison, <4 x i32> <i32 0, i32 2, i32 poison, i32 poison>
  %78 = insertelement <4 x float> %77, float %34, i64 2
  %79 = insertelement <4 x float> %78, float %35, i64 3
  %80 = fcmp olt <4 x float> %76, %79
  %81 = shufflevector <4 x i1> %80, <4 x i1> poison, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  %82 = shufflevector <4 x float> %75, <4 x float> poison, <4 x i32> <i32 0, i32 0, i32 1, i32 1>
  %83 = select <4 x i1> %81, <4 x float> %82, <4 x float> %73
  store <4 x float> %83, ptr %27, align 8, !tbaa !22
  %84 = extractelement <4 x float> %83, i64 0
  %85 = extractelement <4 x float> %83, i64 1
  br label %86

86:                                               ; preds = %68, %72
  %87 = phi float [ %34, %68 ], [ %85, %72 ]
  %88 = phi float [ %34, %68 ], [ %84, %72 ]
  %indvars.iv.next94 = add nuw nsw i64 %indvars.iv93, 1
  %89 = load i32, ptr %9, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = icmp slt i64 %indvars.iv.next94, %90
  br i1 %91, label %28, label %._crit_edge85, !llvm.loop !32

._crit_edge85:                                    ; preds = %86, %.._crit_edge85_crit_edge
  %92 = phi float [ %.pre99, %.._crit_edge85_crit_edge ], [ %87, %86 ]
  %93 = phi float [ %.pre, %.._crit_edge85_crit_edge ], [ %88, %86 ]
  %94 = fmul float %92, -9.000000e+00
  %95 = tail call float @llvm.fmuladd.f32(float %93, float 1.000000e+01, float %94)
  %96 = getelementptr inbounds i8, ptr %0, i64 82656
  store float %95, ptr %96, align 8, !tbaa !33
  ret void
}

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }

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


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass