; LLVM IR from mianzhi/fosolvers :: src/libfosolvers/otGrid (otree)

; 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.node = type { ptr, [8 x ptr], i32 }

; 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

; Function Attrs: nounwind uwtable
declare dso_local void @getNode(ptr noundef, i64 noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @nBinDigits(i64 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @neibId(i64 noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @getNxtLf(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @markLf(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @genConn(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #1 {
  %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 i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, 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) #2
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %14, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #2
  store i64 4, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #2
  store i32 0, ptr %11, align 4, !tbaa !11
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  call void @markLf(ptr noundef %15)
  br label %16

16:                                               ; preds = %84, %4
  %17 = load ptr, ptr %9, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %86

19:                                               ; preds = %16
  %20 = load ptr, ptr %9, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.node, ptr %20, i32 0, i32 1
  %22 = getelementptr inbounds [8 x ptr], ptr %21, i64 0, i64 0
  %23 = load ptr, ptr %22, align 8, !tbaa !5
  %24 = icmp eq ptr %23, null
  br i1 %24, label %25, label %84

25:                                               ; preds = %19
  %26 = load i64, ptr %10, align 8, !tbaa !9
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = load i32, ptr %11, align 4, !tbaa !11
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds i64, ptr %27, i64 %29
  store i64 %26, ptr %30, align 8, !tbaa !9
  %31 = load i64, ptr %10, align 8, !tbaa !9
  %32 = call i32 @nBinDigits(i64 noundef %31)
  %33 = sdiv i32 %32, 3
  %34 = sub nsw i32 %33, 1
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = load i32, ptr %11, align 4, !tbaa !11
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds i32, ptr %35, i64 %37
  store i32 %34, ptr %38, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #2
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %39

39:                                               ; preds = %78, %25
  %40 = load i32, ptr %12, align 4, !tbaa !11
  %41 = icmp slt i32 %40, 6
  br i1 %41, label %43, label %42

42:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #2
  br label %81

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #2
  store ptr null, ptr %13, align 8, !tbaa !5
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = load i64, ptr %10, align 8, !tbaa !9
  %46 = load i32, ptr %12, align 4, !tbaa !11
  %47 = call i32 @neibId(i64 noundef %45, i32 noundef %46)
  %48 = sext i32 %47 to i64
  call void @getNode(ptr noundef %44, i64 noundef %48, ptr noundef %13)
  br label %49

49:                                               ; preds = %62, %43
  %50 = load ptr, ptr %13, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.node, ptr %50, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8, !tbaa !13
  %53 = icmp ne ptr %52, null
  br i1 %53, label %54, label %60

54:                                               ; preds = %49
  %55 = load ptr, ptr %13, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.node, ptr %55, i32 0, i32 1
  %57 = getelementptr inbounds [8 x ptr], ptr %56, i64 0, i64 0
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  %59 = icmp ne ptr %58, null
  br label %60

60:                                               ; preds = %54, %49
  %61 = phi i1 [ false, %49 ], [ %59, %54 ]
  br i1 %61, label %62, label %67

62:                                               ; preds = %60
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.node, ptr %63, i32 0, i32 1
  %65 = getelementptr inbounds [8 x ptr], ptr %64, i64 0, i64 0
  %66 = load ptr, ptr %65, align 8, !tbaa !5
  store ptr %66, ptr %13, align 8, !tbaa !5
  br label %49, !llvm.loop !15

67:                                               ; preds = %60
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.node, ptr %68, i32 0, i32 2
  %70 = load i32, ptr %69, align 8, !tbaa !17
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = load i32, ptr %11, align 4, !tbaa !11
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [6 x i32], ptr %71, i64 %73
  %75 = load i32, ptr %12, align 4, !tbaa !11
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [6 x i32], ptr %74, i64 0, i64 %76
  store i32 %70, ptr %77, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #2
  br label %78

78:                                               ; preds = %67
  %79 = load i32, ptr %12, align 4, !tbaa !11
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %12, align 4, !tbaa !11
  br label %39, !llvm.loop !18

81:                                               ; preds = %42
  %82 = load i32, ptr %11, align 4, !tbaa !11
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %11, align 4, !tbaa !11
  br label %84

84:                                               ; preds = %81, %19
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  call void @getNxtLf(ptr noundef %85, ptr noundef %10, ptr noundef %9)
  br label %16, !llvm.loop !19

86:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #2
  ret void
}

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


; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: nounwind uwtable
declare dso_local void @getNode(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @nBinDigits(i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @neibId(i64 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @getNxtLf(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @markLf(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @genConn(ptr noundef %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #1 {
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #2
  store ptr %0, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #2
  store i64 4, ptr %6, align 8, !tbaa !9
  tail call void @markLf(ptr noundef %0)
  %.not23 = icmp eq ptr %0, null
  br i1 %.not23, label %._crit_edge, label %.lr.ph25

.lr.ph25:                                         ; preds = %4, %93
  %8 = phi ptr [ %94, %93 ], [ %0, %4 ]
  %.01424 = phi i32 [ %.1, %93 ], [ 0, %4 ]
  %9 = getelementptr inbounds i8, ptr %8, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = icmp eq ptr %10, null
  br i1 %11, label %12, label %93

12:                                               ; preds = %.lr.ph25
  %13 = load i64, ptr %6, align 8, !tbaa !9
  %14 = sext i32 %.01424 to i64
  %15 = getelementptr inbounds i64, ptr %1, i64 %14
  store i64 %13, ptr %15, align 8, !tbaa !9
  %16 = call i32 @nBinDigits(i64 noundef %13)
  %17 = sdiv i32 %16, 3
  %18 = add nsw i32 %17, -1
  %19 = getelementptr inbounds i32, ptr %2, i64 %14
  store i32 %18, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #2
  store ptr null, ptr %7, align 8, !tbaa !5
  %20 = load i64, ptr %6, align 8, !tbaa !9
  %21 = call i32 @neibId(i64 noundef %20, i32 noundef 0)
  %22 = sext i32 %21 to i64
  call void @getNode(ptr noundef nonnull %0, i64 noundef %22, ptr noundef nonnull %7)
  %.promoted = load ptr, ptr %7, align 8, !tbaa !5
  %23 = load ptr, ptr %.promoted, align 8, !tbaa !13
  %.not1719 = icmp eq ptr %23, null
  br i1 %.not1719, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %12, %27
  %24 = phi ptr [ %26, %27 ], [ %.promoted, %12 ]
  %25 = getelementptr inbounds i8, ptr %24, i64 8
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %.not18 = icmp eq ptr %26, null
  br i1 %.not18, label %.critedge, label %27

27:                                               ; preds = %.lr.ph
  store ptr %26, ptr %7, align 8, !tbaa !5
  %28 = load ptr, ptr %26, align 8, !tbaa !13
  %.not17 = icmp eq ptr %28, null
  br i1 %.not17, label %.critedge, label %.lr.ph, !llvm.loop !15

.critedge:                                        ; preds = %.lr.ph, %27, %12
  %.lcssa = phi ptr [ %.promoted, %12 ], [ %26, %27 ], [ %24, %.lr.ph ]
  %29 = getelementptr inbounds i8, ptr %.lcssa, i64 72
  %30 = load i32, ptr %29, align 8, !tbaa !17
  %31 = getelementptr inbounds [6 x i32], ptr %3, i64 %14, i64 0
  store i32 %30, ptr %31, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #2
  store ptr null, ptr %7, align 8, !tbaa !5
  %32 = load i64, ptr %6, align 8, !tbaa !9
  %33 = call i32 @neibId(i64 noundef %32, i32 noundef 1)
  %34 = sext i32 %33 to i64
  call void @getNode(ptr noundef nonnull %0, i64 noundef %34, ptr noundef nonnull %7)
  %.promoted.1 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = load ptr, ptr %.promoted.1, align 8, !tbaa !13
  %.not1719.1 = icmp eq ptr %35, null
  br i1 %.not1719.1, label %.critedge.1, label %.lr.ph.1

.lr.ph.1:                                         ; preds = %.critedge, %39
  %36 = phi ptr [ %38, %39 ], [ %.promoted.1, %.critedge ]
  %37 = getelementptr inbounds i8, ptr %36, i64 8
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %.not18.1 = icmp eq ptr %38, null
  br i1 %.not18.1, label %.critedge.1, label %39

39:                                               ; preds = %.lr.ph.1
  store ptr %38, ptr %7, align 8, !tbaa !5
  %40 = load ptr, ptr %38, align 8, !tbaa !13
  %.not17.1 = icmp eq ptr %40, null
  br i1 %.not17.1, label %.critedge.1, label %.lr.ph.1, !llvm.loop !15

.critedge.1:                                      ; preds = %.lr.ph.1, %39, %.critedge
  %.lcssa.1 = phi ptr [ %.promoted.1, %.critedge ], [ %38, %39 ], [ %36, %.lr.ph.1 ]
  %41 = getelementptr inbounds i8, ptr %.lcssa.1, i64 72
  %42 = load i32, ptr %41, align 8, !tbaa !17
  %43 = getelementptr inbounds [6 x i32], ptr %3, i64 %14, i64 1
  store i32 %42, ptr %43, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #2
  store ptr null, ptr %7, align 8, !tbaa !5
  %44 = load i64, ptr %6, align 8, !tbaa !9
  %45 = call i32 @neibId(i64 noundef %44, i32 noundef 2)
  %46 = sext i32 %45 to i64
  call void @getNode(ptr noundef nonnull %0, i64 noundef %46, ptr noundef nonnull %7)
  %.promoted.2 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = load ptr, ptr %.promoted.2, align 8, !tbaa !13
  %.not1719.2 = icmp eq ptr %47, null
  br i1 %.not1719.2, label %.critedge.2, label %.lr.ph.2

.lr.ph.2:                                         ; preds = %.critedge.1, %51
  %48 = phi ptr [ %50, %51 ], [ %.promoted.2, %.critedge.1 ]
  %49 = getelementptr inbounds i8, ptr %48, i64 8
  %50 = load ptr, ptr %49, align 8, !tbaa !5
  %.not18.2 = icmp eq ptr %50, null
  br i1 %.not18.2, label %.critedge.2, label %51

51:                                               ; preds = %.lr.ph.2
  store ptr %50, ptr %7, align 8, !tbaa !5
  %52 = load ptr, ptr %50, align 8, !tbaa !13
  %.not17.2 = icmp eq ptr %52, null
  br i1 %.not17.2, label %.critedge.2, label %.lr.ph.2, !llvm.loop !15

.critedge.2:                                      ; preds = %.lr.ph.2, %51, %.critedge.1
  %.lcssa.2 = phi ptr [ %.promoted.2, %.critedge.1 ], [ %50, %51 ], [ %48, %.lr.ph.2 ]
  %53 = getelementptr inbounds i8, ptr %.lcssa.2, i64 72
  %54 = load i32, ptr %53, align 8, !tbaa !17
  %55 = getelementptr inbounds [6 x i32], ptr %3, i64 %14, i64 2
  store i32 %54, ptr %55, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #2
  store ptr null, ptr %7, align 8, !tbaa !5
  %56 = load i64, ptr %6, align 8, !tbaa !9
  %57 = call i32 @neibId(i64 noundef %56, i32 noundef 3)
  %58 = sext i32 %57 to i64
  call void @getNode(ptr noundef nonnull %0, i64 noundef %58, ptr noundef nonnull %7)
  %.promoted.3 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = load ptr, ptr %.promoted.3, align 8, !tbaa !13
  %.not1719.3 = icmp eq ptr %59, null
  br i1 %.not1719.3, label %.critedge.3, label %.lr.ph.3

.lr.ph.3:                                         ; preds = %.critedge.2, %63
  %60 = phi ptr [ %62, %63 ], [ %.promoted.3, %.critedge.2 ]
  %61 = getelementptr inbounds i8, ptr %60, i64 8
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %.not18.3 = icmp eq ptr %62, null
  br i1 %.not18.3, label %.critedge.3, label %63

63:                                               ; preds = %.lr.ph.3
  store ptr %62, ptr %7, align 8, !tbaa !5
  %64 = load ptr, ptr %62, align 8, !tbaa !13
  %.not17.3 = icmp eq ptr %64, null
  br i1 %.not17.3, label %.critedge.3, label %.lr.ph.3, !llvm.loop !15

.critedge.3:                                      ; preds = %.lr.ph.3, %63, %.critedge.2
  %.lcssa.3 = phi ptr [ %.promoted.3, %.critedge.2 ], [ %62, %63 ], [ %60, %.lr.ph.3 ]
  %65 = getelementptr inbounds i8, ptr %.lcssa.3, i64 72
  %66 = load i32, ptr %65, align 8, !tbaa !17
  %67 = getelementptr inbounds [6 x i32], ptr %3, i64 %14, i64 3
  store i32 %66, ptr %67, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #2
  store ptr null, ptr %7, align 8, !tbaa !5
  %68 = load i64, ptr %6, align 8, !tbaa !9
  %69 = call i32 @neibId(i64 noundef %68, i32 noundef 4)
  %70 = sext i32 %69 to i64
  call void @getNode(ptr noundef nonnull %0, i64 noundef %70, ptr noundef nonnull %7)
  %.promoted.4 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = load ptr, ptr %.promoted.4, align 8, !tbaa !13
  %.not1719.4 = icmp eq ptr %71, null
  br i1 %.not1719.4, label %.critedge.4, label %.lr.ph.4

.lr.ph.4:                                         ; preds = %.critedge.3, %75
  %72 = phi ptr [ %74, %75 ], [ %.promoted.4, %.critedge.3 ]
  %73 = getelementptr inbounds i8, ptr %72, i64 8
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %.not18.4 = icmp eq ptr %74, null
  br i1 %.not18.4, label %.critedge.4, label %75

75:                                               ; preds = %.lr.ph.4
  store ptr %74, ptr %7, align 8, !tbaa !5
  %76 = load ptr, ptr %74, align 8, !tbaa !13
  %.not17.4 = icmp eq ptr %76, null
  br i1 %.not17.4, label %.critedge.4, label %.lr.ph.4, !llvm.loop !15

.critedge.4:                                      ; preds = %.lr.ph.4, %75, %.critedge.3
  %.lcssa.4 = phi ptr [ %.promoted.4, %.critedge.3 ], [ %74, %75 ], [ %72, %.lr.ph.4 ]
  %77 = getelementptr inbounds i8, ptr %.lcssa.4, i64 72
  %78 = load i32, ptr %77, align 8, !tbaa !17
  %79 = getelementptr inbounds [6 x i32], ptr %3, i64 %14, i64 4
  store i32 %78, ptr %79, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #2
  store ptr null, ptr %7, align 8, !tbaa !5
  %80 = load i64, ptr %6, align 8, !tbaa !9
  %81 = call i32 @neibId(i64 noundef %80, i32 noundef 5)
  %82 = sext i32 %81 to i64
  call void @getNode(ptr noundef nonnull %0, i64 noundef %82, ptr noundef nonnull %7)
  %.promoted.5 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = load ptr, ptr %.promoted.5, align 8, !tbaa !13
  %.not1719.5 = icmp eq ptr %83, null
  br i1 %.not1719.5, label %.critedge.5, label %.lr.ph.5

.lr.ph.5:                                         ; preds = %.critedge.4, %87
  %84 = phi ptr [ %86, %87 ], [ %.promoted.5, %.critedge.4 ]
  %85 = getelementptr inbounds i8, ptr %84, i64 8
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %.not18.5 = icmp eq ptr %86, null
  br i1 %.not18.5, label %.critedge.5, label %87

87:                                               ; preds = %.lr.ph.5
  store ptr %86, ptr %7, align 8, !tbaa !5
  %88 = load ptr, ptr %86, align 8, !tbaa !13
  %.not17.5 = icmp eq ptr %88, null
  br i1 %.not17.5, label %.critedge.5, label %.lr.ph.5, !llvm.loop !15

.critedge.5:                                      ; preds = %.lr.ph.5, %87, %.critedge.4
  %.lcssa.5 = phi ptr [ %.promoted.5, %.critedge.4 ], [ %86, %87 ], [ %84, %.lr.ph.5 ]
  %89 = getelementptr inbounds i8, ptr %.lcssa.5, i64 72
  %90 = load i32, ptr %89, align 8, !tbaa !17
  %91 = getelementptr inbounds [6 x i32], ptr %3, i64 %14, i64 5
  store i32 %90, ptr %91, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #2
  %92 = add nsw i32 %.01424, 1
  br label %93

93:                                               ; preds = %.critedge.5, %.lr.ph25
  %.1 = phi i32 [ %92, %.critedge.5 ], [ %.01424, %.lr.ph25 ]
  call void @getNxtLf(ptr noundef nonnull %0, ptr noundef nonnull %6, ptr noundef nonnull %5)
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %.not = icmp eq ptr %94, null
  br i1 %.not, label %._crit_edge, label %.lr.ph25, !llvm.loop !18

._crit_edge:                                      ; preds = %93, %4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #2
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"node", !6, i64 0, !7, i64 8, !12, i64 72}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!14, !12, i64 72}
!18 = distinct !{!18, !16}


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