; LLVM IR from HarshCasper/NeoAlgo :: C-Plus-Plus/cp/Intersection_Point_of_Y_shaped_LinkedList.ll (Z17Find_Intersectionv)

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

@head1 = external dso_local global ptr, align 8
@head2 = external dso_local global ptr, align 8
@temp1 = external dso_local global ptr, align 8
@temp2 = external dso_local global ptr, align 8

; 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
define dso_local noundef i32 @_Z17Find_Intersectionv() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  store i32 0, ptr %3, align 4, !tbaa !5
  %8 = load ptr, ptr @head1, align 8, !tbaa !9
  store ptr %8, ptr @temp1, align 8, !tbaa !9
  %9 = load ptr, ptr @head2, align 8, !tbaa !9
  store ptr %9, ptr @temp2, align 8, !tbaa !9
  br label %10

10:                                               ; preds = %13, %0
  %11 = load ptr, ptr @temp1, align 8, !tbaa !9
  %12 = icmp ne ptr %11, null
  br i1 %12, label %13, label %19

13:                                               ; preds = %10
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = add nsw i32 %14, 1
  store i32 %15, ptr %2, align 4, !tbaa !5
  %16 = load ptr, ptr @temp1, align 8, !tbaa !9
  %17 = getelementptr inbounds %class.Node, ptr %16, i32 0, i32 1
  %18 = load ptr, ptr %17, align 8, !tbaa !11
  store ptr %18, ptr @temp1, align 8, !tbaa !9
  br label %10, !llvm.loop !13

19:                                               ; preds = %10
  br label %20

20:                                               ; preds = %23, %19
  %21 = load ptr, ptr @temp2, align 8, !tbaa !9
  %22 = icmp ne ptr %21, null
  br i1 %22, label %23, label %29

23:                                               ; preds = %20
  %24 = load i32, ptr %3, align 4, !tbaa !5
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr %3, align 4, !tbaa !5
  %26 = load ptr, ptr @temp2, align 8, !tbaa !9
  %27 = getelementptr inbounds %class.Node, ptr %26, i32 0, i32 2
  %28 = load ptr, ptr %27, align 8, !tbaa !15
  store ptr %28, ptr @temp2, align 8, !tbaa !9
  br label %20, !llvm.loop !16

29:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = sub nsw i32 %30, %31
  %33 = call i32 @llvm.abs.i32(i32 %32, i1 true)
  store i32 %33, ptr %4, align 4, !tbaa !5
  %34 = load ptr, ptr @head1, align 8, !tbaa !9
  store ptr %34, ptr @temp1, align 8, !tbaa !9
  %35 = load ptr, ptr @head2, align 8, !tbaa !9
  store ptr %35, ptr @temp2, align 8, !tbaa !9
  %36 = load i32, ptr %2, align 4, !tbaa !5
  %37 = load i32, ptr %3, align 4, !tbaa !5
  %38 = icmp sgt i32 %36, %37
  br i1 %38, label %39, label %53

39:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %49, %39
  %41 = load i32, ptr %5, align 4, !tbaa !5
  %42 = load i32, ptr %4, align 4, !tbaa !5
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %52

45:                                               ; preds = %40
  %46 = load ptr, ptr @temp1, align 8, !tbaa !9
  %47 = getelementptr inbounds %class.Node, ptr %46, i32 0, i32 1
  %48 = load ptr, ptr %47, align 8, !tbaa !11
  store ptr %48, ptr @temp1, align 8, !tbaa !9
  br label %49

49:                                               ; preds = %45
  %50 = load i32, ptr %5, align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %5, align 4, !tbaa !5
  br label %40, !llvm.loop !17

52:                                               ; preds = %44
  br label %67

53:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %63, %53
  %55 = load i32, ptr %6, align 4, !tbaa !5
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = icmp slt i32 %55, %56
  br i1 %57, label %59, label %58

58:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %66

59:                                               ; preds = %54
  %60 = load ptr, ptr @temp2, align 8, !tbaa !9
  %61 = getelementptr inbounds %class.Node, ptr %60, i32 0, i32 2
  %62 = load ptr, ptr %61, align 8, !tbaa !15
  store ptr %62, ptr @temp2, align 8, !tbaa !9
  br label %63

63:                                               ; preds = %59
  %64 = load i32, ptr %6, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %6, align 4, !tbaa !5
  br label %54, !llvm.loop !18

66:                                               ; preds = %58
  br label %67

67:                                               ; preds = %66, %52
  br label %68

68:                                               ; preds = %84, %67
  %69 = load ptr, ptr @temp1, align 8, !tbaa !9
  %70 = icmp ne ptr %69, null
  br i1 %70, label %71, label %74

71:                                               ; preds = %68
  %72 = load ptr, ptr @temp2, align 8, !tbaa !9
  %73 = icmp ne ptr %72, null
  br label %74

74:                                               ; preds = %71, %68
  %75 = phi i1 [ false, %68 ], [ %73, %71 ]
  br i1 %75, label %76, label %91

76:                                               ; preds = %74
  %77 = load ptr, ptr @temp1, align 8, !tbaa !9
  %78 = load ptr, ptr @temp2, align 8, !tbaa !9
  %79 = icmp eq ptr %77, %78
  br i1 %79, label %80, label %84

80:                                               ; preds = %76
  %81 = load ptr, ptr @temp1, align 8, !tbaa !9
  %82 = getelementptr inbounds %class.Node, ptr %81, i32 0, i32 0
  %83 = load i32, ptr %82, align 8, !tbaa !19
  store i32 %83, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %92

84:                                               ; preds = %76
  %85 = load ptr, ptr @temp1, align 8, !tbaa !9
  %86 = getelementptr inbounds %class.Node, ptr %85, i32 0, i32 1
  %87 = load ptr, ptr %86, align 8, !tbaa !11
  store ptr %87, ptr @temp1, align 8, !tbaa !9
  %88 = load ptr, ptr @temp2, align 8, !tbaa !9
  %89 = getelementptr inbounds %class.Node, ptr %88, i32 0, i32 2
  %90 = load ptr, ptr %89, align 8, !tbaa !15
  store ptr %90, ptr @temp2, align 8, !tbaa !9
  br label %68, !llvm.loop !20

91:                                               ; preds = %74
  store i32 -1, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %92

92:                                               ; preds = %91, %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  %93 = load i32, ptr %1, align 4
  ret i32 %93
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_ZTS4Node", !6, i64 0, !10, i64 8, !10, i64 16}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!12, !10, i64 16}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = !{!12, !6, i64 0}
!20 = distinct !{!20, !14}


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

@head1 = external dso_local local_unnamed_addr global ptr, align 8
@head2 = external dso_local local_unnamed_addr global ptr, align 8
@temp1 = external dso_local local_unnamed_addr global ptr, align 8
@temp2 = external dso_local local_unnamed_addr global ptr, align 8

; Function Attrs: mustprogress nofree norecurse nosync nounwind memory(readwrite, argmem: read, inaccessiblemem: none) uwtable
define dso_local noundef i32 @_Z17Find_Intersectionv() local_unnamed_addr #0 {
  %1 = load ptr, ptr @head1, align 8, !tbaa !5
  %2 = load ptr, ptr @head2, align 8, !tbaa !5
  %.not26 = icmp eq ptr %1, null
  br i1 %.not26, label %thread-pre-split, label %.lr.ph

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.01627 = phi i32 [ %4, %.lr.ph ], [ 0, %0 ]
  %3 = phi ptr [ %6, %.lr.ph ], [ %1, %0 ]
  %4 = add nuw nsw i32 %.01627, 1
  %5 = getelementptr inbounds i8, ptr %3, i64 8
  %6 = load ptr, ptr %5, align 8, !tbaa !9
  %.not = icmp eq ptr %6, null
  br i1 %.not, label %thread-pre-split, label %.lr.ph, !llvm.loop !12

thread-pre-split:                                 ; preds = %.lr.ph, %0
  %.016.lcssa = phi i32 [ 0, %0 ], [ %4, %.lr.ph ]
  %.not2128 = icmp eq ptr %2, null
  br i1 %.not2128, label %._crit_edge, label %.lr.ph30

.lr.ph30:                                         ; preds = %thread-pre-split, %.lr.ph30
  %.01529 = phi i32 [ %8, %.lr.ph30 ], [ 0, %thread-pre-split ]
  %7 = phi ptr [ %10, %.lr.ph30 ], [ %2, %thread-pre-split ]
  %8 = add nuw nsw i32 %.01529, 1
  %9 = getelementptr inbounds i8, ptr %7, i64 16
  %10 = load ptr, ptr %9, align 8, !tbaa !14
  %.not21 = icmp eq ptr %10, null
  br i1 %.not21, label %._crit_edge, label %.lr.ph30, !llvm.loop !15

._crit_edge:                                      ; preds = %.lr.ph30, %thread-pre-split
  %.015.lcssa = phi i32 [ 0, %thread-pre-split ], [ %8, %.lr.ph30 ]
  %11 = sub i32 %.016.lcssa, %.015.lcssa
  store ptr %1, ptr @temp1, align 8, !tbaa !5
  store ptr %2, ptr @temp2, align 8, !tbaa !5
  %12 = icmp ugt i32 %.016.lcssa, %.015.lcssa
  br i1 %12, label %.lr.ph37.preheader, label %.preheader23

.preheader23:                                     ; preds = %._crit_edge
  %.not43 = icmp eq i32 %.016.lcssa, %.015.lcssa
  br i1 %.not43, label %.loopexit22, label %.lr.ph34.preheader

.lr.ph34.preheader:                               ; preds = %.preheader23
  %smax = tail call i32 @llvm.abs.i32(i32 %11, i1 false)
  %umax = tail call i32 @llvm.umax.i32(i32 %smax, i32 1)
  %xtraiter = and i32 %umax, 7
  %13 = icmp ult i32 %smax, 8
  br i1 %13, label %..loopexit24_crit_edge.unr-lcssa, label %.lr.ph34.preheader.new

.lr.ph34.preheader.new:                           ; preds = %.lr.ph34.preheader
  %unroll_iter = and i32 %umax, -8
  br label %.lr.ph34

.lr.ph37.preheader:                               ; preds = %._crit_edge
  %smax52 = tail call i32 @llvm.abs.i32(i32 %11, i1 false)
  %umax53 = tail call i32 @llvm.umax.i32(i32 %smax52, i32 1)
  %xtraiter73 = and i32 %umax53, 7
  %14 = icmp ult i32 %smax52, 8
  br i1 %14, label %..loopexit22_crit_edge.unr-lcssa, label %.lr.ph37.preheader.new

.lr.ph37.preheader.new:                           ; preds = %.lr.ph37.preheader
  %unroll_iter78 = and i32 %umax53, -8
  br label %.lr.ph37

.lr.ph37:                                         ; preds = %.lr.ph37, %.lr.ph37.preheader.new
  %15 = phi ptr [ %1, %.lr.ph37.preheader.new ], [ %31, %.lr.ph37 ]
  %niter79 = phi i32 [ 0, %.lr.ph37.preheader.new ], [ %niter79.next.7, %.lr.ph37 ]
  %16 = getelementptr inbounds i8, ptr %15, i64 8
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  %18 = getelementptr inbounds i8, ptr %17, i64 8
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  %20 = getelementptr inbounds i8, ptr %19, i64 8
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %22 = getelementptr inbounds i8, ptr %21, i64 8
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = getelementptr inbounds i8, ptr %23, i64 8
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = getelementptr inbounds i8, ptr %25, i64 8
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  %30 = getelementptr inbounds i8, ptr %29, i64 8
  %31 = load ptr, ptr %30, align 8, !tbaa !9
  %niter79.next.7 = add i32 %niter79, 8
  %niter79.ncmp.7 = icmp eq i32 %niter79.next.7, %unroll_iter78
  br i1 %niter79.ncmp.7, label %..loopexit22_crit_edge.unr-lcssa, label %.lr.ph37, !llvm.loop !16

.lr.ph34:                                         ; preds = %.lr.ph34, %.lr.ph34.preheader.new
  %32 = phi ptr [ %2, %.lr.ph34.preheader.new ], [ %48, %.lr.ph34 ]
  %niter = phi i32 [ 0, %.lr.ph34.preheader.new ], [ %niter.next.7, %.lr.ph34 ]
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  %34 = load ptr, ptr %33, align 8, !tbaa !14
  %35 = getelementptr inbounds i8, ptr %34, i64 16
  %36 = load ptr, ptr %35, align 8, !tbaa !14
  %37 = getelementptr inbounds i8, ptr %36, i64 16
  %38 = load ptr, ptr %37, align 8, !tbaa !14
  %39 = getelementptr inbounds i8, ptr %38, i64 16
  %40 = load ptr, ptr %39, align 8, !tbaa !14
  %41 = getelementptr inbounds i8, ptr %40, i64 16
  %42 = load ptr, ptr %41, align 8, !tbaa !14
  %43 = getelementptr inbounds i8, ptr %42, i64 16
  %44 = load ptr, ptr %43, align 8, !tbaa !14
  %45 = getelementptr inbounds i8, ptr %44, i64 16
  %46 = load ptr, ptr %45, align 8, !tbaa !14
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  %48 = load ptr, ptr %47, align 8, !tbaa !14
  %niter.next.7 = add i32 %niter, 8
  %niter.ncmp.7 = icmp eq i32 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %..loopexit24_crit_edge.unr-lcssa, label %.lr.ph34, !llvm.loop !17

..loopexit22_crit_edge.unr-lcssa:                 ; preds = %.lr.ph37, %.lr.ph37.preheader
  %.lcssa68.ph = phi ptr [ poison, %.lr.ph37.preheader ], [ %31, %.lr.ph37 ]
  %.unr75 = phi ptr [ %1, %.lr.ph37.preheader ], [ %31, %.lr.ph37 ]
  %lcmp.mod76.not = icmp eq i32 %xtraiter73, 0
  br i1 %lcmp.mod76.not, label %..loopexit22_crit_edge, label %.lr.ph37.epil

.lr.ph37.epil:                                    ; preds = %..loopexit22_crit_edge.unr-lcssa, %.lr.ph37.epil
  %49 = phi ptr [ %51, %.lr.ph37.epil ], [ %.unr75, %..loopexit22_crit_edge.unr-lcssa ]
  %epil.iter74 = phi i32 [ %epil.iter74.next, %.lr.ph37.epil ], [ 0, %..loopexit22_crit_edge.unr-lcssa ]
  %50 = getelementptr inbounds i8, ptr %49, i64 8
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  %epil.iter74.next = add i32 %epil.iter74, 1
  %epil.iter74.cmp.not = icmp eq i32 %epil.iter74.next, %xtraiter73
  br i1 %epil.iter74.cmp.not, label %..loopexit22_crit_edge, label %.lr.ph37.epil, !llvm.loop !18

..loopexit22_crit_edge:                           ; preds = %.lr.ph37.epil, %..loopexit22_crit_edge.unr-lcssa
  %.lcssa68 = phi ptr [ %.lcssa68.ph, %..loopexit22_crit_edge.unr-lcssa ], [ %51, %.lr.ph37.epil ]
  store ptr %.lcssa68, ptr @temp1, align 8, !tbaa !5
  br label %.loopexit22

..loopexit24_crit_edge.unr-lcssa:                 ; preds = %.lr.ph34, %.lr.ph34.preheader
  %.lcssa69.ph = phi ptr [ poison, %.lr.ph34.preheader ], [ %48, %.lr.ph34 ]
  %.unr = phi ptr [ %2, %.lr.ph34.preheader ], [ %48, %.lr.ph34 ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %..loopexit24_crit_edge, label %.lr.ph34.epil

.lr.ph34.epil:                                    ; preds = %..loopexit24_crit_edge.unr-lcssa, %.lr.ph34.epil
  %52 = phi ptr [ %54, %.lr.ph34.epil ], [ %.unr, %..loopexit24_crit_edge.unr-lcssa ]
  %epil.iter = phi i32 [ %epil.iter.next, %.lr.ph34.epil ], [ 0, %..loopexit24_crit_edge.unr-lcssa ]
  %53 = getelementptr inbounds i8, ptr %52, i64 16
  %54 = load ptr, ptr %53, align 8, !tbaa !14
  %epil.iter.next = add i32 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i32 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %..loopexit24_crit_edge, label %.lr.ph34.epil, !llvm.loop !20

..loopexit24_crit_edge:                           ; preds = %.lr.ph34.epil, %..loopexit24_crit_edge.unr-lcssa
  %.lcssa69 = phi ptr [ %.lcssa69.ph, %..loopexit24_crit_edge.unr-lcssa ], [ %54, %.lr.ph34.epil ]
  store ptr %.lcssa69, ptr @temp2, align 8, !tbaa !5
  br label %.loopexit22

.loopexit22:                                      ; preds = %.preheader23, %..loopexit24_crit_edge, %..loopexit22_crit_edge
  %temp2.promoted40 = phi ptr [ %2, %.preheader23 ], [ %.lcssa69, %..loopexit24_crit_edge ], [ %2, %..loopexit22_crit_edge ]
  %temp1.promoted39 = phi ptr [ %1, %.preheader23 ], [ %1, %..loopexit24_crit_edge ], [ %.lcssa68, %..loopexit22_crit_edge ]
  %55 = icmp ne ptr %temp1.promoted39, null
  %56 = icmp ne ptr %temp2.promoted40, null
  %57 = select i1 %55, i1 %56, i1 false
  br i1 %57, label %.lr.ph42, label %.loopexit

.lr.ph42:                                         ; preds = %.loopexit22, %63
  %58 = phi ptr [ %65, %63 ], [ %temp1.promoted39, %.loopexit22 ]
  %59 = phi ptr [ %67, %63 ], [ %temp2.promoted40, %.loopexit22 ]
  %60 = icmp eq ptr %58, %59
  br i1 %60, label %61, label %63

61:                                               ; preds = %.lr.ph42
  %62 = load i32, ptr %58, align 8, !tbaa !21
  br label %.loopexit

63:                                               ; preds = %.lr.ph42
  %64 = getelementptr inbounds i8, ptr %58, i64 8
  %65 = load ptr, ptr %64, align 8, !tbaa !9
  store ptr %65, ptr @temp1, align 8, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %59, i64 16
  %67 = load ptr, ptr %66, align 8, !tbaa !14
  store ptr %67, ptr @temp2, align 8, !tbaa !5
  %68 = icmp ne ptr %65, null
  %69 = icmp ne ptr %67, null
  %70 = select i1 %68, i1 %69, i1 false
  br i1 %70, label %.lr.ph42, label %.loopexit, !llvm.loop !22

.loopexit:                                        ; preds = %63, %.loopexit22, %61
  %.014 = phi i32 [ %62, %61 ], [ -1, %.loopexit22 ], [ -1, %63 ]
  ret i32 %.014
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #2

attributes #0 = { mustprogress nofree norecurse nosync nounwind memory(readwrite, argmem: read, inaccessiblemem: none) 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_ZTS4Node", !11, i64 0, !6, i64 8, !6, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!10, !6, i64 16}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.unroll.disable"}
!20 = distinct !{!20, !19}
!21 = !{!10, !11, i64 0}
!22 = distinct !{!22, !13}


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