; LLVM IR from mackorone/mms :: old/v1/src/algo/FloodFill/FloodFill.ll (ZN9FloodFill13isOneCellAwayEP4Cell)

; 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.FloodFill = type <{ %class.IAlgorithm, ptr, [16 x [16 x %class.Cell]], i32, i32, i32, i32, i8, i8, [6 x i8], %class.History, i8, [7 x i8] }>
%class.IAlgorithm = type { ptr }
%class.Cell = type { i32, i32, i32, i8, i8, [4 x i8], [4 x i8], ptr }
%class.History = type { i32, i32, ptr, %"class.std::stack", %"class.std::queue", %"class.std::__cxx11::list", %"class.std::__cxx11::list.9" }
%"class.std::stack" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<Cell *, std::allocator<Cell *>>::_Deque_impl" }
%"struct.std::_Deque_base<Cell *, std::allocator<Cell *>>::_Deque_impl" = type { %"struct.std::_Deque_base<Cell *, std::allocator<Cell *>>::_Deque_impl_data" }
%"struct.std::_Deque_base<Cell *, std::allocator<Cell *>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::queue" = type { %"class.std::deque.0" }
%"class.std::deque.0" = type { %"class.std::_Deque_base.1" }
%"class.std::_Deque_base.1" = type { %"struct.std::_Deque_base<std::stack<Cell *>, std::allocator<std::stack<Cell *>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::stack<Cell *>, std::allocator<std::stack<Cell *>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::stack<Cell *>, std::allocator<std::stack<Cell *>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::stack<Cell *>, std::allocator<std::stack<Cell *>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator.5", %"struct.std::_Deque_iterator.5" }
%"struct.std::_Deque_iterator.5" = type { ptr, ptr, ptr, ptr }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<int, std::allocator<int>>::_List_impl" }
%"struct.std::__cxx11::_List_base<int, std::allocator<int>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.std::__cxx11::list.9" = type { %"class.std::__cxx11::_List_base.10" }
%"class.std::__cxx11::_List_base.10" = type { %"struct.std::__cxx11::_List_base<std::__cxx11::list<Cellmod>, std::allocator<std::__cxx11::list<Cellmod>>>::_List_impl" }
%"struct.std::__cxx11::_List_base<std::__cxx11::list<Cellmod>, std::allocator<std::__cxx11::list<Cellmod>>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }

; 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 noundef zeroext i1 @_ZN4Cell6isWallEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #1

declare noundef i32 @_ZN4Cell4getXEv(ptr noundef nonnull align 8 dereferenceable(32)) #1

declare noundef i32 @_ZN4Cell4getYEv(ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN9FloodFill13isOneCellAwayEP4Cell(ptr noundef nonnull align 8 dereferenceable(8457) %0, ptr noundef %1) #2 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %9 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %10 = load ptr, ptr %5, align 8, !tbaa !5
  %11 = call noundef i32 @_ZN4Cell4getXEv(ptr noundef nonnull align 8 dereferenceable(32) %10)
  store i32 %11, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = call noundef i32 @_ZN4Cell4getYEv(ptr noundef nonnull align 8 dereferenceable(32) %12)
  store i32 %13, ptr %7, align 4, !tbaa !9
  %14 = getelementptr inbounds %class.FloodFill, ptr %9, i32 0, i32 3
  %15 = load i32, ptr %14, align 8, !tbaa !11
  %16 = load i32, ptr %6, align 4, !tbaa !9
  %17 = icmp eq i32 %15, %16
  br i1 %17, label %18, label %36

18:                                               ; preds = %2
  %19 = getelementptr inbounds %class.FloodFill, ptr %9, i32 0, i32 4
  %20 = load i32, ptr %19, align 4, !tbaa !37
  %21 = add nsw i32 %20, 1
  %22 = load i32, ptr %7, align 4, !tbaa !9
  %23 = icmp eq i32 %21, %22
  br i1 %23, label %24, label %36

24:                                               ; preds = %18
  %25 = getelementptr inbounds %class.FloodFill, ptr %9, i32 0, i32 2
  %26 = getelementptr inbounds %class.FloodFill, ptr %9, i32 0, i32 3
  %27 = load i32, ptr %26, align 8, !tbaa !11
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [16 x [16 x %class.Cell]], ptr %25, i64 0, i64 %28
  %30 = getelementptr inbounds %class.FloodFill, ptr %9, i32 0, i32 4
  %31 = load i32, ptr %30, align 4, !tbaa !37
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [16 x %class.Cell], ptr %29, i64 0, i64 %32
  %34 = call noundef zeroext i1 @_ZN4Cell6isWallEi(ptr noundef nonnull align 8 dereferenceable(32) %33, i32 noundef 0)
  br i1 %34, label %36, label %35

35:                                               ; preds = %24
  store i1 true, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %109

36:                                               ; preds = %24, %18, %2
  %37 = getelementptr inbounds %class.FloodFill, ptr %9, i32 0, i32 3
  %38 = load i32, ptr %37, align 8, !tbaa !11
  %39 = load i32, ptr %6, align 4, !tbaa !9
  %40 = icmp eq i32 %38, %39
  br i1 %40, label %41, label %59

41:                                               ; preds = %36
  %42 = getelementptr inbounds %class.FloodFill, ptr %9, i32 0, i32 4
  %43 = load i32, ptr %42, align 4, !tbaa !37
  %44 = sub nsw i32 %43, 1
  %45 = load i32, ptr %7, align 4, !tbaa !9
  %46 = icmp eq i32 %44, %45
  br i1 %46, label %47, label %59

47:                                               ; preds = %41
  %48 = getelementptr inbounds %class.FloodFill, ptr %9, i32 0, i32 2
  %49 = getelementptr inbounds %class.FloodFill, ptr %9, i32 0, i32 3
  %50 = load i32, ptr %49, align 8, !tbaa !11
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [16 x [16 x %class.Cell]], ptr %48, i64 0, i64 %51
  %53 = getelementptr inbounds %class.FloodFill, ptr %9, i32 0, i32 4
  %54 = load i32, ptr %53, align 4, !tbaa !37
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [16 x %class.Cell], ptr %52, i64 0, i64 %55
  %57 = call noundef zeroext i1 @_ZN4Cell6isWallEi(ptr noundef nonnull align 8 dereferenceable(32) %56, i32 noundef 2)
  br i1 %57, label %59, label %58

58:                                               ; preds = %47
  store i1 true, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %109

59:                                               ; preds = %47, %41, %36
  %60 = getelementptr inbounds %class.FloodFill, ptr %9, i32 0, i32 3
  %61 = load i32, ptr %60, align 8, !tbaa !11
  %62 = add nsw i32 %61, 1
  %63 = load i32, ptr %6, align 4, !tbaa !9
  %64 = icmp eq i32 %62, %63
  br i1 %64, label %65, label %82

65:                                               ; preds = %59
  %66 = getelementptr inbounds %class.FloodFill, ptr %9, i32 0, i32 4
  %67 = load i32, ptr %66, align 4, !tbaa !37
  %68 = load i32, ptr %7, align 4, !tbaa !9
  %69 = icmp eq i32 %67, %68
  br i1 %69, label %70, label %82

70:                                               ; preds = %65
  %71 = getelementptr inbounds %class.FloodFill, ptr %9, i32 0, i32 2
  %72 = getelementptr inbounds %class.FloodFill, ptr %9, i32 0, i32 3
  %73 = load i32, ptr %72, align 8, !tbaa !11
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [16 x [16 x %class.Cell]], ptr %71, i64 0, i64 %74
  %76 = getelementptr inbounds %class.FloodFill, ptr %9, i32 0, i32 4
  %77 = load i32, ptr %76, align 4, !tbaa !37
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [16 x %class.Cell], ptr %75, i64 0, i64 %78
  %80 = call noundef zeroext i1 @_ZN4Cell6isWallEi(ptr noundef nonnull align 8 dereferenceable(32) %79, i32 noundef 1)
  br i1 %80, label %82, label %81

81:                                               ; preds = %70
  store i1 true, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %109

82:                                               ; preds = %70, %65, %59
  %83 = getelementptr inbounds %class.FloodFill, ptr %9, i32 0, i32 3
  %84 = load i32, ptr %83, align 8, !tbaa !11
  %85 = sub nsw i32 %84, 1
  %86 = load i32, ptr %6, align 4, !tbaa !9
  %87 = icmp eq i32 %85, %86
  br i1 %87, label %88, label %105

88:                                               ; preds = %82
  %89 = getelementptr inbounds %class.FloodFill, ptr %9, i32 0, i32 4
  %90 = load i32, ptr %89, align 4, !tbaa !37
  %91 = load i32, ptr %7, align 4, !tbaa !9
  %92 = icmp eq i32 %90, %91
  br i1 %92, label %93, label %105

93:                                               ; preds = %88
  %94 = getelementptr inbounds %class.FloodFill, ptr %9, i32 0, i32 2
  %95 = getelementptr inbounds %class.FloodFill, ptr %9, i32 0, i32 3
  %96 = load i32, ptr %95, align 8, !tbaa !11
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [16 x [16 x %class.Cell]], ptr %94, i64 0, i64 %97
  %99 = getelementptr inbounds %class.FloodFill, ptr %9, i32 0, i32 4
  %100 = load i32, ptr %99, align 4, !tbaa !37
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [16 x %class.Cell], ptr %98, i64 0, i64 %101
  %103 = call noundef zeroext i1 @_ZN4Cell6isWallEi(ptr noundef nonnull align 8 dereferenceable(32) %102, i32 noundef 3)
  br i1 %103, label %105, label %104

104:                                              ; preds = %93
  store i1 true, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %109

105:                                              ; preds = %93, %88, %82
  br label %106

106:                                              ; preds = %105
  br label %107

107:                                              ; preds = %106
  br label %108

108:                                              ; preds = %107
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %109

109:                                              ; preds = %108, %104, %81, %58, %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  %110 = load i1, ptr %3, align 1
  ret i1 %110
}

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 = { 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 #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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 8208}
!12 = !{!"_ZTS9FloodFill", !13, i64 0, !6, i64 8, !7, i64 16, !10, i64 8208, !10, i64 8212, !10, i64 8216, !10, i64 8220, !14, i64 8224, !14, i64 8225, !15, i64 8232, !14, i64 8456}
!13 = !{!"_ZTS10IAlgorithm"}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTS7History", !10, i64 0, !10, i64 4, !6, i64 8, !16, i64 16, !23, i64 96, !29, i64 176, !34, i64 200}
!16 = !{!"_ZTSSt5stackIP4CellSt5dequeIS1_SaIS1_EEE", !17, i64 0}
!17 = !{!"_ZTSSt5dequeIP4CellSaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt11_Deque_baseIP4CellSaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt11_Deque_baseIP4CellSaIS1_EE11_Deque_implE", !20, i64 0}
!20 = !{!"_ZTSNSt11_Deque_baseIP4CellSaIS1_EE16_Deque_impl_dataE", !6, i64 0, !21, i64 8, !22, i64 16, !22, i64 48}
!21 = !{!"long", !7, i64 0}
!22 = !{!"_ZTSSt15_Deque_iteratorIP4CellRS1_PS1_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!23 = !{!"_ZTSSt5queueISt5stackIP4CellSt5dequeIS2_SaIS2_EEES3_IS6_SaIS6_EEE", !24, i64 0}
!24 = !{!"_ZTSSt5dequeISt5stackIP4CellS_IS2_SaIS2_EEESaIS5_EE", !25, i64 0}
!25 = !{!"_ZTSSt11_Deque_baseISt5stackIP4CellSt5dequeIS2_SaIS2_EEESaIS6_EE", !26, i64 0}
!26 = !{!"_ZTSNSt11_Deque_baseISt5stackIP4CellSt5dequeIS2_SaIS2_EEESaIS6_EE11_Deque_implE", !27, i64 0}
!27 = !{!"_ZTSNSt11_Deque_baseISt5stackIP4CellSt5dequeIS2_SaIS2_EEESaIS6_EE16_Deque_impl_dataE", !6, i64 0, !21, i64 8, !28, i64 16, !28, i64 48}
!28 = !{!"_ZTSSt15_Deque_iteratorISt5stackIP4CellSt5dequeIS2_SaIS2_EEERS6_PS6_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!29 = !{!"_ZTSNSt7__cxx114listIiSaIiEEE", !30, i64 0}
!30 = !{!"_ZTSNSt7__cxx1110_List_baseIiSaIiEEE", !31, i64 0}
!31 = !{!"_ZTSNSt7__cxx1110_List_baseIiSaIiEE10_List_implE", !32, i64 0}
!32 = !{!"_ZTSNSt8__detail17_List_node_headerE", !33, i64 0, !21, i64 16}
!33 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!34 = !{!"_ZTSNSt7__cxx114listINS0_I7CellmodSaIS1_EEESaIS3_EEE", !35, i64 0}
!35 = !{!"_ZTSNSt7__cxx1110_List_baseINS_4listI7CellmodSaIS2_EEESaIS4_EEE", !36, i64 0}
!36 = !{!"_ZTSNSt7__cxx1110_List_baseINS_4listI7CellmodSaIS2_EEESaIS4_EE10_List_implE", !32, i64 0}
!37 = !{!12, !10, i64 8212}


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

%class.Cell = type { i32, i32, i32, i8, i8, [4 x i8], [4 x i8], ptr }

declare noundef zeroext i1 @_ZN4Cell6isWallEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #0

declare noundef i32 @_ZN4Cell4getXEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0

declare noundef i32 @_ZN4Cell4getYEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN9FloodFill13isOneCellAwayEP4Cell(ptr noundef nonnull align 8 dereferenceable(8457) %0, ptr noundef nonnull %1) local_unnamed_addr #1 align 2 {
  %3 = tail call noundef i32 @_ZN4Cell4getXEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %4 = tail call noundef i32 @_ZN4Cell4getYEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %5 = getelementptr inbounds i8, ptr %0, i64 8208
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = icmp eq i32 %6, %3
  br i1 %7, label %8, label %19

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %0, i64 8212
  %10 = load i32, ptr %9, align 4, !tbaa !35
  %11 = add nsw i32 %10, 1
  %12 = icmp eq i32 %11, %4
  br i1 %12, label %13, label %.thread

13:                                               ; preds = %8
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = sext i32 %3 to i64
  %16 = sext i32 %10 to i64
  %17 = getelementptr inbounds [16 x [16 x %class.Cell]], ptr %14, i64 0, i64 %15, i64 %16
  %18 = tail call noundef zeroext i1 @_ZN4Cell6isWallEi(ptr noundef nonnull align 8 dereferenceable(32) %17, i32 noundef 0)
  br i1 %18, label %._crit_edge, label %59

._crit_edge:                                      ; preds = %13
  %.pre = load i32, ptr %5, align 8, !tbaa !5
  br label %19

19:                                               ; preds = %._crit_edge, %2
  %20 = phi i32 [ %.pre, %._crit_edge ], [ %6, %2 ]
  %21 = icmp eq i32 %20, %3
  br i1 %21, label %.thread, label %32

.thread:                                          ; preds = %8, %19
  %22 = getelementptr inbounds i8, ptr %0, i64 8212
  %23 = load i32, ptr %22, align 4, !tbaa !35
  %24 = add nsw i32 %23, -1
  %25 = icmp eq i32 %24, %4
  br i1 %25, label %26, label %32

26:                                               ; preds = %.thread
  %27 = getelementptr inbounds i8, ptr %0, i64 16
  %28 = sext i32 %3 to i64
  %29 = sext i32 %23 to i64
  %30 = getelementptr inbounds [16 x [16 x %class.Cell]], ptr %27, i64 0, i64 %28, i64 %29
  %31 = tail call noundef zeroext i1 @_ZN4Cell6isWallEi(ptr noundef nonnull align 8 dereferenceable(32) %30, i32 noundef 2)
  br i1 %31, label %._crit_edge15, label %59

._crit_edge15:                                    ; preds = %26
  %.pre16 = load i32, ptr %5, align 8, !tbaa !5
  br label %32

32:                                               ; preds = %._crit_edge15, %.thread, %19
  %33 = phi i32 [ %.pre16, %._crit_edge15 ], [ %3, %.thread ], [ %20, %19 ]
  %34 = add nsw i32 %33, 1
  %35 = icmp eq i32 %34, %3
  %36 = getelementptr inbounds i8, ptr %0, i64 8212
  %37 = load i32, ptr %36, align 4
  %38 = icmp eq i32 %37, %4
  %or.cond = select i1 %35, i1 %38, i1 false
  br i1 %or.cond, label %39, label %45

39:                                               ; preds = %32
  %40 = getelementptr inbounds i8, ptr %0, i64 16
  %41 = sext i32 %33 to i64
  %42 = sext i32 %4 to i64
  %43 = getelementptr inbounds [16 x [16 x %class.Cell]], ptr %40, i64 0, i64 %41, i64 %42
  %44 = tail call noundef zeroext i1 @_ZN4Cell6isWallEi(ptr noundef nonnull align 8 dereferenceable(32) %43, i32 noundef 1)
  br i1 %44, label %._crit_edge17, label %59

._crit_edge17:                                    ; preds = %39
  %.pre18 = load i32, ptr %5, align 8, !tbaa !5
  br label %45

45:                                               ; preds = %._crit_edge17, %32
  %46 = phi i32 [ %.pre18, %._crit_edge17 ], [ %33, %32 ]
  %47 = add nsw i32 %46, -1
  %48 = icmp eq i32 %47, %3
  %49 = getelementptr inbounds i8, ptr %0, i64 8212
  %50 = load i32, ptr %49, align 4
  %51 = icmp eq i32 %50, %4
  %or.cond23 = select i1 %48, i1 %51, i1 false
  br i1 %or.cond23, label %52, label %58

52:                                               ; preds = %45
  %53 = getelementptr inbounds i8, ptr %0, i64 16
  %54 = sext i32 %46 to i64
  %55 = sext i32 %4 to i64
  %56 = getelementptr inbounds [16 x [16 x %class.Cell]], ptr %53, i64 0, i64 %54, i64 %55
  %57 = tail call noundef zeroext i1 @_ZN4Cell6isWallEi(ptr noundef nonnull align 8 dereferenceable(32) %56, i32 noundef 3)
  br i1 %57, label %58, label %59

58:                                               ; preds = %45, %52
  br label %59

59:                                               ; preds = %52, %39, %26, %13, %58
  %.0 = phi i1 [ false, %58 ], [ true, %13 ], [ true, %26 ], [ true, %39 ], [ true, %52 ]
  ret i1 %.0
}

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

!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 8208}
!6 = !{!"_ZTS9FloodFill", !7, i64 0, !8, i64 8, !9, i64 16, !11, i64 8208, !11, i64 8212, !11, i64 8216, !11, i64 8220, !12, i64 8224, !12, i64 8225, !13, i64 8232, !12, i64 8456}
!7 = !{!"_ZTS10IAlgorithm"}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"bool", !9, i64 0}
!13 = !{!"_ZTS7History", !11, i64 0, !11, i64 4, !8, i64 8, !14, i64 16, !21, i64 96, !27, i64 176, !32, i64 200}
!14 = !{!"_ZTSSt5stackIP4CellSt5dequeIS1_SaIS1_EEE", !15, i64 0}
!15 = !{!"_ZTSSt5dequeIP4CellSaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt11_Deque_baseIP4CellSaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSNSt11_Deque_baseIP4CellSaIS1_EE11_Deque_implE", !18, i64 0}
!18 = !{!"_ZTSNSt11_Deque_baseIP4CellSaIS1_EE16_Deque_impl_dataE", !8, i64 0, !19, i64 8, !20, i64 16, !20, i64 48}
!19 = !{!"long", !9, i64 0}
!20 = !{!"_ZTSSt15_Deque_iteratorIP4CellRS1_PS1_E", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24}
!21 = !{!"_ZTSSt5queueISt5stackIP4CellSt5dequeIS2_SaIS2_EEES3_IS6_SaIS6_EEE", !22, i64 0}
!22 = !{!"_ZTSSt5dequeISt5stackIP4CellS_IS2_SaIS2_EEESaIS5_EE", !23, i64 0}
!23 = !{!"_ZTSSt11_Deque_baseISt5stackIP4CellSt5dequeIS2_SaIS2_EEESaIS6_EE", !24, i64 0}
!24 = !{!"_ZTSNSt11_Deque_baseISt5stackIP4CellSt5dequeIS2_SaIS2_EEESaIS6_EE11_Deque_implE", !25, i64 0}
!25 = !{!"_ZTSNSt11_Deque_baseISt5stackIP4CellSt5dequeIS2_SaIS2_EEESaIS6_EE16_Deque_impl_dataE", !8, i64 0, !19, i64 8, !26, i64 16, !26, i64 48}
!26 = !{!"_ZTSSt15_Deque_iteratorISt5stackIP4CellSt5dequeIS2_SaIS2_EEERS6_PS6_E", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24}
!27 = !{!"_ZTSNSt7__cxx114listIiSaIiEEE", !28, i64 0}
!28 = !{!"_ZTSNSt7__cxx1110_List_baseIiSaIiEEE", !29, i64 0}
!29 = !{!"_ZTSNSt7__cxx1110_List_baseIiSaIiEE10_List_implE", !30, i64 0}
!30 = !{!"_ZTSNSt8__detail17_List_node_headerE", !31, i64 0, !19, i64 16}
!31 = !{!"_ZTSNSt8__detail15_List_node_baseE", !8, i64 0, !8, i64 8}
!32 = !{!"_ZTSNSt7__cxx114listINS0_I7CellmodSaIS1_EEESaIS3_EEE", !33, i64 0}
!33 = !{!"_ZTSNSt7__cxx1110_List_baseINS_4listI7CellmodSaIS2_EEESaIS4_EEE", !34, i64 0}
!34 = !{!"_ZTSNSt7__cxx1110_List_baseINS_4listI7CellmodSaIS2_EEESaIS4_EE10_List_implE", !30, i64 0}
!35 = !{!6, !11, i64 8212}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass