; LLVM IR from artvns/SimpleFvm :: simplefvm/src/MeshLoader (MeshBuildingDataCollector)

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

%"class.meshloader::MeshBuildingDataCollector" = type { ptr, ptr, ptr, i64, i64, i64, i64 }

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN10meshloader25MeshBuildingDataCollector14getInteriorNumEmm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i64 noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10meshloader25MeshBuildingDataCollector13fillDataStoreEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %8 = load ptr, ptr %2, align 8
  %9 = getelementptr inbounds %"class.meshloader::MeshBuildingDataCollector", ptr %8, i32 0, i32 0
  %10 = load ptr, ptr %9, align 8, !tbaa !9
  %11 = getelementptr inbounds %"class.meshloader::MeshBuildingDataCollector", ptr %8, i32 0, i32 5
  %12 = load i64, ptr %11, align 8, !tbaa !12
  call void @_ZN10meshloader16MeshBuildingMask20setActiveCellsAmountEm(ptr noundef nonnull align 8 dereferenceable(8) %10, i64 noundef %12)
  %13 = getelementptr inbounds %"class.meshloader::MeshBuildingDataCollector", ptr %8, i32 0, i32 0
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = getelementptr inbounds %"class.meshloader::MeshBuildingDataCollector", ptr %8, i32 0, i32 6
  %16 = load i64, ptr %15, align 8, !tbaa !13
  call void @_ZN10meshloader16MeshBuildingMask17setGapCellsAmountEm(ptr noundef nonnull align 8 dereferenceable(8) %14, i64 noundef %16)
  %17 = getelementptr inbounds %"class.meshloader::MeshBuildingDataCollector", ptr %8, i32 0, i32 0
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = getelementptr inbounds %"class.meshloader::MeshBuildingDataCollector", ptr %8, i32 0, i32 3
  %20 = load i64, ptr %19, align 8, !tbaa !14
  call void @_ZN10meshloader16MeshBuildingMask12setMeshSizeXEm(ptr noundef nonnull align 8 dereferenceable(8) %18, i64 noundef %20)
  %21 = getelementptr inbounds %"class.meshloader::MeshBuildingDataCollector", ptr %8, i32 0, i32 0
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = getelementptr inbounds %"class.meshloader::MeshBuildingDataCollector", ptr %8, i32 0, i32 4
  %24 = load i64, ptr %23, align 8, !tbaa !15
  call void @_ZN10meshloader16MeshBuildingMask12setMeshSizeYEm(ptr noundef nonnull align 8 dereferenceable(8) %22, i64 noundef %24)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  store i64 0, ptr %3, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  store i64 0, ptr %4, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  store i64 0, ptr %5, align 8, !tbaa !16
  br label %25

25:                                               ; preds = %88, %1
  %26 = load i64, ptr %5, align 8, !tbaa !16
  %27 = getelementptr inbounds %"class.meshloader::MeshBuildingDataCollector", ptr %8, i32 0, i32 4
  %28 = load i64, ptr %27, align 8, !tbaa !15
  %29 = icmp ult i64 %26, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %25
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  br label %91

31:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  store i64 0, ptr %7, align 8, !tbaa !16
  br label %32

32:                                               ; preds = %84, %31
  %33 = load i64, ptr %7, align 8, !tbaa !16
  %34 = getelementptr inbounds %"class.meshloader::MeshBuildingDataCollector", ptr %8, i32 0, i32 3
  %35 = load i64, ptr %34, align 8, !tbaa !14
  %36 = icmp ult i64 %33, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %32
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  br label %87

38:                                               ; preds = %32
  %39 = load i64, ptr %5, align 8, !tbaa !16
  %40 = load i64, ptr %7, align 8, !tbaa !16
  %41 = call noundef i64 @_ZN10meshloader25MeshBuildingDataCollector14getInteriorNumEmm(ptr noundef nonnull align 8 dereferenceable(56) %8, i64 noundef %39, i64 noundef %40)
  %42 = icmp ne i64 0, %41
  br i1 %42, label %43, label %60

43:                                               ; preds = %38
  %44 = getelementptr inbounds %"class.meshloader::MeshBuildingDataCollector", ptr %8, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8, !tbaa !9
  %46 = load i64, ptr %3, align 8, !tbaa !16
  %47 = load i64, ptr %5, align 8, !tbaa !16
  %48 = load i64, ptr %7, align 8, !tbaa !16
  %49 = call noundef i64 @_ZN10meshloader25MeshBuildingDataCollector12getGlobalNumEmm(ptr noundef nonnull align 8 dereferenceable(56) %8, i64 noundef %47, i64 noundef %48)
  call void @_ZN10meshloader16MeshBuildingMask16setActiveCellNumEmm(ptr noundef nonnull align 8 dereferenceable(8) %45, i64 noundef %46, i64 noundef %49)
  %50 = getelementptr inbounds %"class.meshloader::MeshBuildingDataCollector", ptr %8, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  %52 = load i64, ptr %3, align 8, !tbaa !16
  %53 = load i64, ptr %5, align 8, !tbaa !16
  call void @_ZN10meshloader16MeshBuildingMask18setActiveCell_iPosEmm(ptr noundef nonnull align 8 dereferenceable(8) %51, i64 noundef %52, i64 noundef %53)
  %54 = getelementptr inbounds %"class.meshloader::MeshBuildingDataCollector", ptr %8, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8, !tbaa !9
  %56 = load i64, ptr %3, align 8, !tbaa !16
  %57 = load i64, ptr %7, align 8, !tbaa !16
  call void @_ZN10meshloader16MeshBuildingMask18setActiveCell_jPosEmm(ptr noundef nonnull align 8 dereferenceable(8) %55, i64 noundef %56, i64 noundef %57)
  %58 = load i64, ptr %3, align 8, !tbaa !16
  %59 = add i64 %58, 1
  store i64 %59, ptr %3, align 8, !tbaa !16
  br label %83

60:                                               ; preds = %38
  %61 = load i64, ptr %5, align 8, !tbaa !16
  %62 = load i64, ptr %7, align 8, !tbaa !16
  %63 = call noundef i64 @_ZN10meshloader25MeshBuildingDataCollector14getInteriorNumEmm(ptr noundef nonnull align 8 dereferenceable(56) %8, i64 noundef %61, i64 noundef %62)
  %64 = icmp eq i64 0, %63
  br i1 %64, label %65, label %82

65:                                               ; preds = %60
  %66 = getelementptr inbounds %"class.meshloader::MeshBuildingDataCollector", ptr %8, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8, !tbaa !9
  %68 = load i64, ptr %4, align 8, !tbaa !16
  %69 = load i64, ptr %5, align 8, !tbaa !16
  %70 = load i64, ptr %7, align 8, !tbaa !16
  %71 = call noundef i64 @_ZN10meshloader25MeshBuildingDataCollector12getGlobalNumEmm(ptr noundef nonnull align 8 dereferenceable(56) %8, i64 noundef %69, i64 noundef %70)
  call void @_ZN10meshloader16MeshBuildingMask13setGapCellNumEmm(ptr noundef nonnull align 8 dereferenceable(8) %67, i64 noundef %68, i64 noundef %71)
  %72 = getelementptr inbounds %"class.meshloader::MeshBuildingDataCollector", ptr %8, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8, !tbaa !9
  %74 = load i64, ptr %4, align 8, !tbaa !16
  %75 = load i64, ptr %5, align 8, !tbaa !16
  call void @_ZN10meshloader16MeshBuildingMask15setGapCell_iPosEmm(ptr noundef nonnull align 8 dereferenceable(8) %73, i64 noundef %74, i64 noundef %75)
  %76 = getelementptr inbounds %"class.meshloader::MeshBuildingDataCollector", ptr %8, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8, !tbaa !9
  %78 = load i64, ptr %4, align 8, !tbaa !16
  %79 = load i64, ptr %7, align 8, !tbaa !16
  call void @_ZN10meshloader16MeshBuildingMask15setGapCell_jPosEmm(ptr noundef nonnull align 8 dereferenceable(8) %77, i64 noundef %78, i64 noundef %79)
  %80 = load i64, ptr %4, align 8, !tbaa !16
  %81 = add i64 %80, 1
  store i64 %81, ptr %4, align 8, !tbaa !16
  br label %82

82:                                               ; preds = %65, %60
  br label %83

83:                                               ; preds = %82, %43
  br label %84

84:                                               ; preds = %83
  %85 = load i64, ptr %7, align 8, !tbaa !16
  %86 = add i64 %85, 1
  store i64 %86, ptr %7, align 8, !tbaa !16
  br label %32, !llvm.loop !17

87:                                               ; preds = %37
  br label %88

88:                                               ; preds = %87
  %89 = load i64, ptr %5, align 8, !tbaa !16
  %90 = add i64 %89, 1
  store i64 %90, ptr %5, align 8, !tbaa !16
  br label %25, !llvm.loop !19

91:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret void
}

declare void @_ZN10meshloader16MeshBuildingMask20setActiveCellsAmountEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #2

declare void @_ZN10meshloader16MeshBuildingMask17setGapCellsAmountEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #2

declare void @_ZN10meshloader16MeshBuildingMask12setMeshSizeXEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #2

declare void @_ZN10meshloader16MeshBuildingMask12setMeshSizeYEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #2

declare void @_ZN10meshloader16MeshBuildingMask16setActiveCellNumEmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN10meshloader25MeshBuildingDataCollector12getGlobalNumEmm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i64 noundef) #1 align 2

declare void @_ZN10meshloader16MeshBuildingMask18setActiveCell_iPosEmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) #2

declare void @_ZN10meshloader16MeshBuildingMask18setActiveCell_jPosEmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) #2

declare void @_ZN10meshloader16MeshBuildingMask13setGapCellNumEmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) #2

declare void @_ZN10meshloader16MeshBuildingMask15setGapCell_iPosEmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) #2

declare void @_ZN10meshloader16MeshBuildingMask15setGapCell_jPosEmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #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++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSN10meshloader25MeshBuildingDataCollectorE", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 40}
!13 = !{!10, !11, i64 48}
!14 = !{!10, !11, i64 24}
!15 = !{!10, !11, i64 32}
!16 = !{!11, !11, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN10meshloader25MeshBuildingDataCollector14getInteriorNumEmm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10meshloader25MeshBuildingDataCollector13fillDataStoreEv(ptr noundef nonnull align 8 dereferenceable(56) %0) local_unnamed_addr #0 align 2 {
  %2 = load ptr, ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 40
  %4 = load i64, ptr %3, align 8, !tbaa !11
  tail call void @_ZN10meshloader16MeshBuildingMask20setActiveCellsAmountEm(ptr noundef nonnull align 8 dereferenceable(8) %2, i64 noundef %4)
  %5 = load ptr, ptr %0, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 48
  %7 = load i64, ptr %6, align 8, !tbaa !12
  tail call void @_ZN10meshloader16MeshBuildingMask17setGapCellsAmountEm(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %7)
  %8 = load ptr, ptr %0, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 24
  %10 = load i64, ptr %9, align 8, !tbaa !13
  tail call void @_ZN10meshloader16MeshBuildingMask12setMeshSizeXEm(ptr noundef nonnull align 8 dereferenceable(8) %8, i64 noundef %10)
  %11 = load ptr, ptr %0, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 32
  %13 = load i64, ptr %12, align 8, !tbaa !14
  tail call void @_ZN10meshloader16MeshBuildingMask12setMeshSizeYEm(ptr noundef nonnull align 8 dereferenceable(8) %11, i64 noundef %13)
  %14 = load i64, ptr %12, align 8, !tbaa !14
  %.not37 = icmp eq i64 %14, 0
  %15 = load i64, ptr %9, align 8
  %.not38 = icmp eq i64 %15, 0
  %or.cond = select i1 %.not37, i1 true, i1 %.not38
  br i1 %or.cond, label %._crit_edge36, label %.preheader

.preheader:                                       ; preds = %1, %._crit_edge
  %16 = phi i64 [ %18, %._crit_edge ], [ %14, %1 ]
  %17 = phi i64 [ %19, %._crit_edge ], [ 1, %1 ]
  %.02435 = phi i64 [ %20, %._crit_edge ], [ 0, %1 ]
  %.02534 = phi i64 [ %.1.lcssa, %._crit_edge ], [ 0, %1 ]
  %.02633 = phi i64 [ %.127.lcssa, %._crit_edge ], [ 0, %1 ]
  %.not39 = icmp eq i64 %17, 0
  br i1 %.not39, label %._crit_edge, label %.lr.ph

._crit_edge36:                                    ; preds = %._crit_edge, %1
  ret void

._crit_edge.loopexit:                             ; preds = %38
  %.pre = load i64, ptr %12, align 8, !tbaa !14
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %18 = phi i64 [ %16, %.preheader ], [ %.pre, %._crit_edge.loopexit ]
  %19 = phi i64 [ 0, %.preheader ], [ %40, %._crit_edge.loopexit ]
  %.127.lcssa = phi i64 [ %.02633, %.preheader ], [ %.228, %._crit_edge.loopexit ]
  %.1.lcssa = phi i64 [ %.02534, %.preheader ], [ %.2, %._crit_edge.loopexit ]
  %20 = add nuw i64 %.02435, 1
  %21 = icmp ult i64 %20, %18
  br i1 %21, label %.preheader, label %._crit_edge36, !llvm.loop !15

.lr.ph:                                           ; preds = %.preheader, %38
  %.031 = phi i64 [ %39, %38 ], [ 0, %.preheader ]
  %.130 = phi i64 [ %.2, %38 ], [ %.02534, %.preheader ]
  %.12729 = phi i64 [ %.228, %38 ], [ %.02633, %.preheader ]
  %22 = tail call noundef i64 @_ZN10meshloader25MeshBuildingDataCollector14getInteriorNumEmm(ptr noundef nonnull align 8 dereferenceable(56) %0, i64 noundef %.02435, i64 noundef %.031)
  %.not = icmp eq i64 %22, 0
  br i1 %.not, label %29, label %23

23:                                               ; preds = %.lr.ph
  %24 = load ptr, ptr %0, align 8, !tbaa !5
  %25 = tail call noundef i64 @_ZN10meshloader25MeshBuildingDataCollector12getGlobalNumEmm(ptr noundef nonnull align 8 dereferenceable(56) %0, i64 noundef %.02435, i64 noundef %.031)
  tail call void @_ZN10meshloader16MeshBuildingMask16setActiveCellNumEmm(ptr noundef nonnull align 8 dereferenceable(8) %24, i64 noundef %.12729, i64 noundef %25)
  %26 = load ptr, ptr %0, align 8, !tbaa !5
  tail call void @_ZN10meshloader16MeshBuildingMask18setActiveCell_iPosEmm(ptr noundef nonnull align 8 dereferenceable(8) %26, i64 noundef %.12729, i64 noundef %.02435)
  %27 = load ptr, ptr %0, align 8, !tbaa !5
  tail call void @_ZN10meshloader16MeshBuildingMask18setActiveCell_jPosEmm(ptr noundef nonnull align 8 dereferenceable(8) %27, i64 noundef %.12729, i64 noundef %.031)
  %28 = add i64 %.12729, 1
  br label %38

29:                                               ; preds = %.lr.ph
  %30 = tail call noundef i64 @_ZN10meshloader25MeshBuildingDataCollector14getInteriorNumEmm(ptr noundef nonnull align 8 dereferenceable(56) %0, i64 noundef %.02435, i64 noundef %.031)
  %31 = icmp eq i64 %30, 0
  br i1 %31, label %32, label %38

32:                                               ; preds = %29
  %33 = load ptr, ptr %0, align 8, !tbaa !5
  %34 = tail call noundef i64 @_ZN10meshloader25MeshBuildingDataCollector12getGlobalNumEmm(ptr noundef nonnull align 8 dereferenceable(56) %0, i64 noundef %.02435, i64 noundef %.031)
  tail call void @_ZN10meshloader16MeshBuildingMask13setGapCellNumEmm(ptr noundef nonnull align 8 dereferenceable(8) %33, i64 noundef %.130, i64 noundef %34)
  %35 = load ptr, ptr %0, align 8, !tbaa !5
  tail call void @_ZN10meshloader16MeshBuildingMask15setGapCell_iPosEmm(ptr noundef nonnull align 8 dereferenceable(8) %35, i64 noundef %.130, i64 noundef %.02435)
  %36 = load ptr, ptr %0, align 8, !tbaa !5
  tail call void @_ZN10meshloader16MeshBuildingMask15setGapCell_jPosEmm(ptr noundef nonnull align 8 dereferenceable(8) %36, i64 noundef %.130, i64 noundef %.031)
  %37 = add i64 %.130, 1
  br label %38

38:                                               ; preds = %23, %32, %29
  %.228 = phi i64 [ %28, %23 ], [ %.12729, %32 ], [ %.12729, %29 ]
  %.2 = phi i64 [ %.130, %23 ], [ %37, %32 ], [ %.130, %29 ]
  %39 = add nuw i64 %.031, 1
  %40 = load i64, ptr %9, align 8, !tbaa !13
  %41 = icmp ult i64 %39, %40
  br i1 %41, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !18
}

declare void @_ZN10meshloader16MeshBuildingMask20setActiveCellsAmountEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #1

declare void @_ZN10meshloader16MeshBuildingMask17setGapCellsAmountEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #1

declare void @_ZN10meshloader16MeshBuildingMask12setMeshSizeXEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #1

declare void @_ZN10meshloader16MeshBuildingMask12setMeshSizeYEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #1

declare void @_ZN10meshloader16MeshBuildingMask16setActiveCellNumEmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN10meshloader25MeshBuildingDataCollector12getGlobalNumEmm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i64 noundef) local_unnamed_addr #0 align 2

declare void @_ZN10meshloader16MeshBuildingMask18setActiveCell_iPosEmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) local_unnamed_addr #1

declare void @_ZN10meshloader16MeshBuildingMask18setActiveCell_jPosEmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) local_unnamed_addr #1

declare void @_ZN10meshloader16MeshBuildingMask13setGapCellNumEmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) local_unnamed_addr #1

declare void @_ZN10meshloader16MeshBuildingMask15setGapCell_iPosEmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) local_unnamed_addr #1

declare void @_ZN10meshloader16MeshBuildingMask15setGapCell_jPosEmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) local_unnamed_addr #1

attributes #0 = { mustprogress 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 = { "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 0}
!6 = !{!"_ZTSN10meshloader25MeshBuildingDataCollectorE", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !10, i64 40}
!12 = !{!6, !10, i64 48}
!13 = !{!6, !10, i64 24}
!14 = !{!6, !10, i64 32}
!15 = distinct !{!15, !16, !17}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!"llvm.loop.unswitch.partial.disable"}
!18 = distinct !{!18, !16}


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