; LLVM IR from PaddlePaddle/Paddle :: paddle/pir/src/core (visitors)

; 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.pir::PointerListIterator.8" = type { %"struct.std::_List_iterator.9" }
%"struct.std::_List_iterator.9" = type { ptr }
%"class.pir::PointerListIterator" = type { %"struct.std::_List_iterator" }
%"struct.std::_List_iterator" = type { ptr }
%"class.pir::Region" = type { ptr, %"class.std::__cxx11::list" }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<pir::Block *, std::allocator<pir::Block *>>::_List_impl" }
%"struct.std::__cxx11::_List_base<pir::Block *, std::allocator<pir::Block *>>::_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 }

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3pir9Operation5beginEv(ptr noundef nonnull align 8 dereferenceable(144)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3pir9Operation3endEv(ptr noundef nonnull align 8 dereferenceable(144)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZN3pir6Region5beginEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZN3pir6Region3endEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3pir19PointerListIteratorINS_5BlockEEneERKS2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(120) ptr @_ZNK3pir19PointerListIteratorINS_5BlockEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZN3pir5Block5beginEv(ptr noundef nonnull align 8 dereferenceable(120)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZN3pir5Block3endEv(ptr noundef nonnull align 8 dereferenceable(120)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3pir19PointerListIteratorINS_9OperationEEneERKS2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(144) ptr @_ZNK3pir19PointerListIteratorINS_9OperationEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3pir19PointerListIteratorINS_9OperationEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3pir19PointerListIteratorINS_5BlockEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3pir4WalkEPNS_9OperationERKSt8functionIFvPNS_5BlockEEENS_9WalkOrderE(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.pir::PointerListIterator.8", align 8
  %14 = alloca %"class.pir::PointerListIterator.8", align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.pir::PointerListIterator", align 8
  %18 = alloca %"class.pir::PointerListIterator", align 8
  %19 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %20, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = call noundef ptr @_ZN3pir9Operation5beginEv(ptr noundef nonnull align 8 dereferenceable(144) %21)
  store ptr %22, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = call noundef ptr @_ZN3pir9Operation3endEv(ptr noundef nonnull align 8 dereferenceable(144) %23)
  store ptr %24, ptr %9, align 8, !tbaa !5
  br label %25

25:                                               ; preds = %81, %3
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = icmp ne ptr %26, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  br label %84

30:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %31, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %32 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %32, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %33 = load ptr, ptr %12, align 8, !tbaa !5
  %34 = call ptr @_ZN3pir6Region5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %33)
  %35 = getelementptr inbounds %"class.pir::PointerListIterator.8", ptr %13, i32 0, i32 0
  %36 = getelementptr inbounds %"struct.std::_List_iterator.9", ptr %35, i32 0, i32 0
  store ptr %34, ptr %36, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %37 = load ptr, ptr %12, align 8, !tbaa !5
  %38 = call ptr @_ZN3pir6Region3endEv(ptr noundef nonnull align 8 dereferenceable(32) %37)
  %39 = getelementptr inbounds %"class.pir::PointerListIterator.8", ptr %14, i32 0, i32 0
  %40 = getelementptr inbounds %"struct.std::_List_iterator.9", ptr %39, i32 0, i32 0
  store ptr %38, ptr %40, align 8
  br label %41

41:                                               ; preds = %78, %30
  %42 = call noundef zeroext i1 @_ZNK3pir19PointerListIteratorINS_5BlockEEneERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #3
  br i1 %42, label %44, label %43

43:                                               ; preds = %41
  store i32 4, ptr %10, align 4
  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 8, ptr %12) #3
  br label %80

44:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %45 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNK3pir19PointerListIteratorINS_5BlockEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #3
  store ptr %45, ptr %15, align 8, !tbaa !5
  %46 = load i32, ptr %6, align 4, !tbaa !9
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %48, label %51

48:                                               ; preds = %44
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZNKSt8functionIFvPN3pir5BlockEEEclES2_(ptr noundef nonnull align 8 dereferenceable(32) %49, ptr noundef %50)
  br label %51

51:                                               ; preds = %48, %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %52 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %52, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %53 = load ptr, ptr %16, align 8, !tbaa !5
  %54 = call ptr @_ZN3pir5Block5beginEv(ptr noundef nonnull align 8 dereferenceable(120) %53)
  %55 = getelementptr inbounds %"class.pir::PointerListIterator", ptr %17, i32 0, i32 0
  %56 = getelementptr inbounds %"struct.std::_List_iterator", ptr %55, i32 0, i32 0
  store ptr %54, ptr %56, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %57 = load ptr, ptr %16, align 8, !tbaa !5
  %58 = call ptr @_ZN3pir5Block3endEv(ptr noundef nonnull align 8 dereferenceable(120) %57)
  %59 = getelementptr inbounds %"class.pir::PointerListIterator", ptr %18, i32 0, i32 0
  %60 = getelementptr inbounds %"struct.std::_List_iterator", ptr %59, i32 0, i32 0
  store ptr %58, ptr %60, align 8
  br label %61

61:                                               ; preds = %69, %51
  %62 = call noundef zeroext i1 @_ZNK3pir19PointerListIteratorINS_9OperationEEneERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #3
  br i1 %62, label %64, label %63

63:                                               ; preds = %61
  store i32 6, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  br label %71

64:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %65 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZNK3pir19PointerListIteratorINS_9OperationEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #3
  store ptr %65, ptr %19, align 8, !tbaa !5
  %66 = load ptr, ptr %19, align 8, !tbaa !5
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = load i32, ptr %6, align 4, !tbaa !9
  call void @_ZN3pir4WalkEPNS_9OperationERKSt8functionIFvPNS_5BlockEEENS_9WalkOrderE(ptr noundef %66, ptr noundef nonnull align 8 dereferenceable(32) %67, i32 noundef %68)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  br label %69

69:                                               ; preds = %64
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3pir19PointerListIteratorINS_9OperationEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #3
  br label %61

71:                                               ; preds = %63
  %72 = load i32, ptr %6, align 4, !tbaa !9
  %73 = icmp eq i32 %72, 1
  br i1 %73, label %74, label %77

74:                                               ; preds = %71
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZNKSt8functionIFvPN3pir5BlockEEEclES2_(ptr noundef nonnull align 8 dereferenceable(32) %75, ptr noundef %76)
  br label %77

77:                                               ; preds = %74, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  br label %78

78:                                               ; preds = %77
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3pir19PointerListIteratorINS_5BlockEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #3
  br label %41

80:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  br label %81

81:                                               ; preds = %80
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = getelementptr inbounds %"class.pir::Region", ptr %82, i32 1
  store ptr %83, ptr %8, align 8, !tbaa !5
  br label %25

84:                                               ; preds = %29
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFvPN3pir5BlockEEEclES2_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #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 = !{!"_ZTSN3pir9WalkOrderE", !7, i64 0}


; 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.pir::PointerListIterator.8" = type { %"struct.std::_List_iterator.9" }
%"struct.std::_List_iterator.9" = type { ptr }
%"class.pir::PointerListIterator" = type { %"struct.std::_List_iterator" }
%"struct.std::_List_iterator" = type { ptr }

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3pir9Operation5beginEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3pir9Operation3endEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZN3pir6Region5beginEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZN3pir6Region3endEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3pir19PointerListIteratorINS_5BlockEEneERKS2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(120) ptr @_ZNK3pir19PointerListIteratorINS_5BlockEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZN3pir5Block5beginEv(ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZN3pir5Block3endEv(ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3pir19PointerListIteratorINS_9OperationEEneERKS2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(144) ptr @_ZNK3pir19PointerListIteratorINS_9OperationEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3pir19PointerListIteratorINS_9OperationEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3pir19PointerListIteratorINS_5BlockEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3pir4WalkEPNS_9OperationERKSt8functionIFvPNS_5BlockEEENS_9WalkOrderE(ptr noundef nonnull %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = alloca %"class.pir::PointerListIterator.8", align 8
  %5 = alloca %"class.pir::PointerListIterator.8", align 8
  %6 = alloca %"class.pir::PointerListIterator", align 8
  %7 = alloca %"class.pir::PointerListIterator", align 8
  %8 = tail call noundef ptr @_ZN3pir9Operation5beginEv(ptr noundef nonnull align 8 dereferenceable(144) %0)
  %9 = tail call noundef ptr @_ZN3pir9Operation3endEv(ptr noundef nonnull align 8 dereferenceable(144) %0)
  %.not24 = icmp eq ptr %8, %9
  br i1 %.not24, label %._crit_edge28, label %.lr.ph27

.lr.ph27:                                         ; preds = %3
  %10 = icmp eq i32 %2, 0
  %11 = icmp eq i32 %2, 1
  br i1 %10, label %.lr.ph27.split.us.split, label %.lr.ph27.split

.lr.ph27.split.us.split:                          ; preds = %.lr.ph27, %._crit_edge23.split.us.us.split
  %.025.us = phi ptr [ %15, %._crit_edge23.split.us.us.split ], [ %8, %.lr.ph27 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %12 = call ptr @_ZN3pir6Region5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %.025.us)
  store ptr %12, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %13 = call ptr @_ZN3pir6Region3endEv(ptr noundef nonnull align 8 dereferenceable(32) %.025.us)
  store ptr %13, ptr %5, align 8
  %14 = call noundef zeroext i1 @_ZNK3pir19PointerListIteratorINS_5BlockEEneERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  br i1 %14, label %.lr.ph22.us, label %._crit_edge23.split.us.us.split

._crit_edge23.split.us.us.split:                  ; preds = %._crit_edge.us.us, %.lr.ph27.split.us.split
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  %15 = getelementptr inbounds i8, ptr %.025.us, i64 32
  %.not.us = icmp eq ptr %15, %9
  br i1 %.not.us, label %._crit_edge28, label %.lr.ph27.split.us.split

.lr.ph22.us:                                      ; preds = %.lr.ph27.split.us.split, %._crit_edge.us.us
  %16 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNK3pir19PointerListIteratorINS_5BlockEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  call void @_ZNKSt8functionIFvPN3pir5BlockEEEclES2_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull %16)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  %17 = call ptr @_ZN3pir5Block5beginEv(ptr noundef nonnull align 8 dereferenceable(120) %16)
  store ptr %17, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  %18 = call ptr @_ZN3pir5Block3endEv(ptr noundef nonnull align 8 dereferenceable(120) %16)
  store ptr %18, ptr %7, align 8
  %19 = call noundef zeroext i1 @_ZNK3pir19PointerListIteratorINS_9OperationEEneERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #3
  br i1 %19, label %.lr.ph.us.us, label %._crit_edge.us.us

._crit_edge.us.us:                                ; preds = %.lr.ph.us.us, %.lr.ph22.us
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3pir19PointerListIteratorINS_5BlockEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  %21 = call noundef zeroext i1 @_ZNK3pir19PointerListIteratorINS_5BlockEEneERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  br i1 %21, label %.lr.ph22.us, label %._crit_edge23.split.us.us.split

.lr.ph.us.us:                                     ; preds = %.lr.ph22.us, %.lr.ph.us.us
  %22 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZNK3pir19PointerListIteratorINS_9OperationEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #3
  call void @_ZN3pir4WalkEPNS_9OperationERKSt8functionIFvPNS_5BlockEEENS_9WalkOrderE(ptr noundef nonnull %22, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef 0)
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3pir19PointerListIteratorINS_9OperationEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #3
  %24 = call noundef zeroext i1 @_ZNK3pir19PointerListIteratorINS_9OperationEEneERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #3
  br i1 %24, label %.lr.ph.us.us, label %._crit_edge.us.us

._crit_edge28:                                    ; preds = %._crit_edge23.split, %._crit_edge23.split.us.us.split, %3
  ret void

.lr.ph27.split:                                   ; preds = %.lr.ph27, %._crit_edge23.split
  %.025 = phi ptr [ %28, %._crit_edge23.split ], [ %8, %.lr.ph27 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %25 = call ptr @_ZN3pir6Region5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %.025)
  store ptr %25, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %26 = call ptr @_ZN3pir6Region3endEv(ptr noundef nonnull align 8 dereferenceable(32) %.025)
  store ptr %26, ptr %5, align 8
  %27 = call noundef zeroext i1 @_ZNK3pir19PointerListIteratorINS_5BlockEEneERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  br i1 %27, label %.lr.ph22, label %._crit_edge23.split

._crit_edge23.split:                              ; preds = %37, %.lr.ph27.split
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  %28 = getelementptr inbounds i8, ptr %.025, i64 32
  %.not = icmp eq ptr %28, %9
  br i1 %.not, label %._crit_edge28, label %.lr.ph27.split

.lr.ph22:                                         ; preds = %.lr.ph27.split, %37
  %29 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNK3pir19PointerListIteratorINS_5BlockEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  %30 = call ptr @_ZN3pir5Block5beginEv(ptr noundef nonnull align 8 dereferenceable(120) %29)
  store ptr %30, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  %31 = call ptr @_ZN3pir5Block3endEv(ptr noundef nonnull align 8 dereferenceable(120) %29)
  store ptr %31, ptr %7, align 8
  %32 = call noundef zeroext i1 @_ZNK3pir19PointerListIteratorINS_9OperationEEneERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #3
  br i1 %32, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph22
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  br i1 %11, label %36, label %37

.lr.ph:                                           ; preds = %.lr.ph22, %.lr.ph
  %33 = call noundef nonnull align 8 dereferenceable(144) ptr @_ZNK3pir19PointerListIteratorINS_9OperationEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #3
  call void @_ZN3pir4WalkEPNS_9OperationERKSt8functionIFvPNS_5BlockEEENS_9WalkOrderE(ptr noundef nonnull %33, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %2)
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3pir19PointerListIteratorINS_9OperationEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #3
  %35 = call noundef zeroext i1 @_ZNK3pir19PointerListIteratorINS_9OperationEEneERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #3
  br i1 %35, label %.lr.ph, label %._crit_edge

36:                                               ; preds = %._crit_edge
  call void @_ZNKSt8functionIFvPN3pir5BlockEEEclES2_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull %29)
  br label %37

37:                                               ; preds = %36, %._crit_edge
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3pir19PointerListIteratorINS_5BlockEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  %39 = call noundef zeroext i1 @_ZNK3pir19PointerListIteratorINS_5BlockEEneERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  br i1 %39, label %.lr.ph22, label %._crit_edge23.split
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFvPN3pir5BlockEEEclES2_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #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)"}


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