; 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.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 }
%struct.otri = type { ptr, i32 }

@.str.106 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @trimalloc(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 void @traversalinit(ptr noundef) #0

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

; Function Attrs: nounwind uwtable
define dso_local void @writepoly(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %struct.osub, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, 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
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.behavior, ptr %16, i32 0, i32 28
  %18 = load i32, ptr %17, align 4, !tbaa !9
  %19 = icmp ne i32 %18, 0
  br i1 %19, label %22, label %20

20:                                               ; preds = %4
  %21 = call i32 (ptr, ...) @printf(ptr noundef @.str.106)
  br label %22

22:                                               ; preds = %20, %4
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %25 = icmp eq ptr %24, null
  br i1 %25, label %26, label %36

26:                                               ; preds = %22
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.mesh, ptr %27, i32 0, i32 1
  %29 = getelementptr inbounds %struct.memorypool, ptr %28, i32 0, i32 10
  %30 = load i64, ptr %29, align 8, !tbaa !13
  %31 = mul nsw i64 %30, 2
  %32 = mul i64 %31, 4
  %33 = trunc i64 %32 to i32
  %34 = call ptr @trimalloc(i32 noundef %33)
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %34, ptr %35, align 8, !tbaa !5
  br label %36

36:                                               ; preds = %26, %22
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.behavior, ptr %37, i32 0, i32 15
  %39 = load i32, ptr %38, align 4, !tbaa !18
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %54, label %41

41:                                               ; preds = %36
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %44 = icmp eq ptr %43, null
  br i1 %44, label %45, label %54

45:                                               ; preds = %41
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.mesh, ptr %46, i32 0, i32 1
  %48 = getelementptr inbounds %struct.memorypool, ptr %47, i32 0, i32 10
  %49 = load i64, ptr %48, align 8, !tbaa !13
  %50 = mul i64 %49, 4
  %51 = trunc i64 %50 to i32
  %52 = call ptr @trimalloc(i32 noundef %51)
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %52, ptr %53, align 8, !tbaa !5
  br label %54

54:                                               ; preds = %45, %41, %36
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  store ptr %56, ptr %9, align 8, !tbaa !5
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  store ptr %58, ptr %10, align 8, !tbaa !5
  store i32 0, ptr %11, align 4, !tbaa !19
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.mesh, ptr %59, i32 0, i32 1
  call void @traversalinit(ptr noundef %60)
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = call ptr @subsegtraverse(ptr noundef %61)
  %63 = getelementptr inbounds %struct.osub, ptr %12, i32 0, i32 0
  store ptr %62, ptr %63, align 8, !tbaa !20
  %64 = getelementptr inbounds %struct.osub, ptr %12, i32 0, i32 1
  store i32 0, ptr %64, align 8, !tbaa !22
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.behavior, ptr %65, i32 0, i32 10
  %67 = load i32, ptr %66, align 4, !tbaa !23
  %68 = sext i32 %67 to i64
  store i64 %68, ptr %15, align 8, !tbaa !24
  br label %69

69:                                               ; preds = %131, %54
  %70 = getelementptr inbounds %struct.osub, ptr %12, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8, !tbaa !20
  %72 = icmp ne ptr %71, null
  br i1 %72, label %73, label %137

73:                                               ; preds = %69
  %74 = getelementptr inbounds %struct.osub, ptr %12, i32 0, i32 0
  %75 = load ptr, ptr %74, align 8, !tbaa !20
  %76 = getelementptr inbounds %struct.osub, ptr %12, i32 0, i32 1
  %77 = load i32, ptr %76, align 8, !tbaa !22
  %78 = add nsw i32 2, %77
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds ptr, ptr %75, i64 %79
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  store ptr %81, ptr %13, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.osub, ptr %12, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8, !tbaa !20
  %84 = getelementptr inbounds %struct.osub, ptr %12, i32 0, i32 1
  %85 = load i32, ptr %84, align 8, !tbaa !22
  %86 = sub nsw i32 3, %85
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds ptr, ptr %83, i64 %87
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  store ptr %89, ptr %14, align 8, !tbaa !5
  %90 = load ptr, ptr %13, align 8, !tbaa !5
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.mesh, ptr %91, i32 0, i32 30
  %93 = load i32, ptr %92, align 4, !tbaa !25
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds i32, ptr %90, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !19
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = load i32, ptr %11, align 4, !tbaa !19
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %11, align 4, !tbaa !19
  %100 = sext i32 %98 to i64
  %101 = getelementptr inbounds i32, ptr %97, i64 %100
  store i32 %96, ptr %101, align 4, !tbaa !19
  %102 = load ptr, ptr %14, align 8, !tbaa !5
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.mesh, ptr %103, i32 0, i32 30
  %105 = load i32, ptr %104, align 4, !tbaa !25
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds i32, ptr %102, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !19
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = load i32, ptr %11, align 4, !tbaa !19
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %11, align 4, !tbaa !19
  %112 = sext i32 %110 to i64
  %113 = getelementptr inbounds i32, ptr %109, i64 %112
  store i32 %108, ptr %113, align 4, !tbaa !19
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.behavior, ptr %114, i32 0, i32 15
  %116 = load i32, ptr %115, align 4, !tbaa !18
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %131, label %118

118:                                              ; preds = %73
  %119 = getelementptr inbounds %struct.osub, ptr %12, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8, !tbaa !20
  %121 = getelementptr inbounds ptr, ptr %120, i64 8
  %122 = load i32, ptr %121, align 4, !tbaa !19
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  %124 = load i64, ptr %15, align 8, !tbaa !24
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.behavior, ptr %125, i32 0, i32 10
  %127 = load i32, ptr %126, align 4, !tbaa !23
  %128 = sext i32 %127 to i64
  %129 = sub nsw i64 %124, %128
  %130 = getelementptr inbounds i32, ptr %123, i64 %129
  store i32 %122, ptr %130, align 4, !tbaa !19
  br label %131

131:                                              ; preds = %118, %73
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = call ptr @subsegtraverse(ptr noundef %132)
  %134 = getelementptr inbounds %struct.osub, ptr %12, i32 0, i32 0
  store ptr %133, ptr %134, align 8, !tbaa !20
  %135 = load i64, ptr %15, align 8, !tbaa !24
  %136 = add nsw i64 %135, 1
  store i64 %136, ptr %15, align 8, !tbaa !24
  br label %69, !llvm.loop !26

137:                                              ; preds = %69
  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 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  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 = { 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, !11, i64 112}
!10 = !{!"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, !12, i64 136, !12, i64 140, !12, i64 144, !12, i64 148}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !16, i64 152}
!14 = !{!"mesh", !15, i64 0, !15, i64 88, !15, i64 176, !15, i64 264, !15, i64 352, !15, i64 440, !15, i64 528, !15, i64 616, !7, i64 704, !7, i64 33472, !7, i64 66240, !11, i64 82624, !6, i64 82632, !12, i64 82640, !12, i64 82644, !12, i64 82648, !12, i64 82652, !12, i64 82656, !11, i64 82660, !11, i64 82664, !11, i64 82668, !11, i64 82672, !11, i64 82676, !11, i64 82680, !16, i64 82688, !11, i64 82696, !11, i64 82700, !11, i64 82704, !16, 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, !16, i64 82760, !16, i64 82768, !16, i64 82776, !16, i64 82784, !16, i64 82792, !16, i64 82800, !16, i64 82808, !6, i64 82816, !6, i64 82824, !6, i64 82832, !6, i64 82840, !6, i64 82848, !6, i64 82856, !6, i64 82864, !17, i64 82872}
!15 = !{!"memorypool", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !16, i64 64, !16, i64 72, !11, i64 80, !11, i64 84}
!16 = !{!"long", !7, i64 0}
!17 = !{!"otri", !6, i64 0, !11, i64 8}
!18 = !{!10, !11, i64 60}
!19 = !{!11, !11, i64 0}
!20 = !{!21, !6, i64 0}
!21 = !{!"osub", !6, i64 0, !11, i64 8}
!22 = !{!21, !11, i64 8}
!23 = !{!10, !11, i64 40}
!24 = !{!16, !16, i64 0}
!25 = !{!14, !11, i64 82724}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


; 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.106 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @trimalloc(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 void @traversalinit(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local void @writepoly(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef %2, ptr nocapture noundef %3) local_unnamed_addr #0 {
  %5 = getelementptr inbounds i8, ptr %1, i64 112
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %7, label %9

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

9:                                                ; preds = %7, %4
  %10 = load ptr, ptr %2, align 8, !tbaa !11
  %11 = icmp eq ptr %10, null
  br i1 %11, label %12, label %17

12:                                               ; preds = %9
  %13 = getelementptr inbounds i8, ptr %0, i64 152
  %14 = load i64, ptr %13, align 8, !tbaa !13
  %.tr = trunc i64 %14 to i32
  %15 = shl i32 %.tr, 3
  %16 = tail call ptr @trimalloc(i32 noundef %15)
  store ptr %16, ptr %2, align 8, !tbaa !11
  br label %17

17:                                               ; preds = %12, %9
  %18 = phi ptr [ %16, %12 ], [ %10, %9 ]
  %19 = getelementptr inbounds i8, ptr %1, i64 60
  %20 = load i32, ptr %19, align 4, !tbaa !18
  %.not31 = icmp eq i32 %20, 0
  %.pre40 = load ptr, ptr %3, align 8, !tbaa !11
  %21 = icmp eq ptr %.pre40, null
  %or.cond = select i1 %.not31, i1 %21, i1 false
  br i1 %or.cond, label %22, label %27

22:                                               ; preds = %17
  %23 = getelementptr inbounds i8, ptr %0, i64 152
  %24 = load i64, ptr %23, align 8, !tbaa !13
  %.tr32 = trunc i64 %24 to i32
  %25 = shl i32 %.tr32, 2
  %26 = tail call ptr @trimalloc(i32 noundef %25)
  store ptr %26, ptr %3, align 8, !tbaa !11
  %.pre = load ptr, ptr %2, align 8, !tbaa !11
  br label %27

27:                                               ; preds = %22, %17
  %28 = phi ptr [ %26, %22 ], [ %.pre40, %17 ]
  %29 = phi ptr [ %.pre, %22 ], [ %18, %17 ]
  %30 = getelementptr inbounds i8, ptr %0, i64 88
  tail call void @traversalinit(ptr noundef nonnull %30)
  %31 = tail call ptr @subsegtraverse(ptr noundef %0)
  %32 = getelementptr inbounds i8, ptr %1, i64 40
  %.not3335 = icmp eq ptr %31, null
  br i1 %.not3335, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %27
  %33 = load i32, ptr %32, align 4, !tbaa !19
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds i8, ptr %0, i64 82724
  br label %36

36:                                               ; preds = %.lr.ph, %60
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %60 ]
  %.038 = phi i64 [ %34, %.lr.ph ], [ %62, %60 ]
  %.sroa.0.036 = phi ptr [ %31, %.lr.ph ], [ %61, %60 ]
  %37 = getelementptr inbounds i8, ptr %.sroa.0.036, i64 16
  %38 = load ptr, ptr %37, align 8, !tbaa !11
  %39 = getelementptr inbounds i8, ptr %.sroa.0.036, i64 24
  %40 = load ptr, ptr %39, align 8, !tbaa !11
  %41 = load i32, ptr %35, align 4, !tbaa !20
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds i32, ptr %38, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !21
  %45 = or disjoint i64 %indvars.iv, 1
  %46 = getelementptr inbounds i32, ptr %29, i64 %indvars.iv
  store i32 %44, ptr %46, align 4, !tbaa !21
  %47 = load i32, ptr %35, align 4, !tbaa !20
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds i32, ptr %40, i64 %48
  %50 = load i32, ptr %49, align 4, !tbaa !21
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 2
  %51 = getelementptr inbounds i32, ptr %29, i64 %45
  store i32 %50, ptr %51, align 4, !tbaa !21
  %52 = load i32, ptr %19, align 4, !tbaa !18
  %.not34 = icmp eq i32 %52, 0
  br i1 %.not34, label %53, label %60

53:                                               ; preds = %36
  %54 = getelementptr inbounds i8, ptr %.sroa.0.036, i64 64
  %55 = load i32, ptr %54, align 4, !tbaa !21
  %56 = load i32, ptr %32, align 4, !tbaa !19
  %57 = sext i32 %56 to i64
  %58 = sub nsw i64 %.038, %57
  %59 = getelementptr inbounds i32, ptr %28, i64 %58
  store i32 %55, ptr %59, align 4, !tbaa !21
  br label %60

60:                                               ; preds = %53, %36
  %61 = tail call ptr @subsegtraverse(ptr noundef nonnull %0)
  %62 = add nsw i64 %.038, 1
  %.not33 = icmp eq ptr %61, null
  br i1 %.not33, label %._crit_edge, label %36, !llvm.loop !22

._crit_edge:                                      ; preds = %60, %27
  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" }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 112}
!6 = !{!"behavior", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !10, i64 136, !10, i64 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 = !{!14, !16, i64 152}
!14 = !{!"mesh", !15, i64 0, !15, i64 88, !15, i64 176, !15, i64 264, !15, i64 352, !15, i64 440, !15, i64 528, !15, 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, !16, i64 82688, !7, i64 82696, !7, i64 82700, !7, i64 82704, !16, 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, !16, i64 82760, !16, i64 82768, !16, i64 82776, !16, i64 82784, !16, i64 82792, !16, i64 82800, !16, i64 82808, !12, i64 82816, !12, i64 82824, !12, i64 82832, !12, i64 82840, !12, i64 82848, !12, i64 82856, !12, i64 82864, !17, i64 82872}
!15 = !{!"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, !16, i64 64, !16, i64 72, !7, i64 80, !7, i64 84}
!16 = !{!"long", !8, i64 0}
!17 = !{!"otri", !12, i64 0, !7, i64 8}
!18 = !{!6, !7, i64 60}
!19 = !{!6, !7, i64 40}
!20 = !{!14, !7, i64 82724}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


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