; LLVM IR from stivalaa/EstimNetDirected :: Test/TestChangeStatsAttrBipartite (attrbipartiteStats)

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

@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [114 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [36 x i8], align 1
@__PRETTY_FUNCTION__.BipartiteTwoPathExactlyOneNeighbourB = external hidden unnamed_addr constant [69 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [36 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

declare i32 @bipartite_node_mode(ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @count_neighbours_with_binattr_a(ptr noundef, i32 noundef, i32 noundef) #3

; 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
define dso_local double @BipartiteTwoPathExactlyOneNeighbourB(ptr noundef %0, i32 noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.graph_s, ptr %11, i32 0, i32 2
  %13 = load i32, ptr %12, align 8, !tbaa !11
  %14 = icmp ne i32 %13, 0
  br i1 %14, label %15, label %16

15:                                               ; preds = %2
  br label %17

16:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 158, ptr noundef @__PRETTY_FUNCTION__.BipartiteTwoPathExactlyOneNeighbourB) #5
  unreachable

17:                                               ; preds = %15
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.graph_s, ptr %18, i32 0, i32 1
  %20 = load i32, ptr %19, align 4, !tbaa !13
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %23, label %22

22:                                               ; preds = %17
  br label %24

23:                                               ; preds = %17
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 159, ptr noundef @__PRETTY_FUNCTION__.BipartiteTwoPathExactlyOneNeighbourB) #5
  unreachable

24:                                               ; preds = %22
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.graph_s, ptr %25, i32 0, i32 13
  %27 = load i32, ptr %26, align 8, !tbaa !14
  store i32 %27, ptr %5, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %141, %24
  %29 = load i32, ptr %5, align 4, !tbaa !9
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.graph_s, ptr %30, i32 0, i32 0
  %32 = load i32, ptr %31, align 8, !tbaa !15
  %33 = icmp ult i32 %29, %32
  br i1 %33, label %34, label %144

34:                                               ; preds = %28
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = load i32, ptr %5, align 4, !tbaa !9
  %37 = call i32 @bipartite_node_mode(ptr noundef %35, i32 noundef %36)
  %38 = icmp eq i32 %37, 1
  br i1 %38, label %39, label %40

39:                                               ; preds = %34
  br label %41

40:                                               ; preds = %34
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 161, ptr noundef @__PRETTY_FUNCTION__.BipartiteTwoPathExactlyOneNeighbourB) #5
  unreachable

41:                                               ; preds = %39
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = load i32, ptr %5, align 4, !tbaa !9
  %44 = load i32, ptr %4, align 4, !tbaa !9
  %45 = call i32 @count_neighbours_with_binattr_a(ptr noundef %42, i32 noundef %43, i32 noundef %44)
  %46 = icmp ne i32 %45, 1
  br i1 %46, label %47, label %48

47:                                               ; preds = %41
  br label %141

48:                                               ; preds = %41
  %49 = load i32, ptr %5, align 4, !tbaa !9
  %50 = add i32 %49, 1
  store i32 %50, ptr %6, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %137, %48
  %52 = load i32, ptr %6, align 4, !tbaa !9
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.graph_s, ptr %53, i32 0, i32 0
  %55 = load i32, ptr %54, align 8, !tbaa !15
  %56 = icmp ult i32 %52, %55
  br i1 %56, label %57, label %140

57:                                               ; preds = %51
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = load i32, ptr %6, align 4, !tbaa !9
  %60 = call i32 @bipartite_node_mode(ptr noundef %58, i32 noundef %59)
  %61 = icmp eq i32 %60, 1
  br i1 %61, label %62, label %63

62:                                               ; preds = %57
  br label %64

63:                                               ; preds = %57
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 165, ptr noundef @__PRETTY_FUNCTION__.BipartiteTwoPathExactlyOneNeighbourB) #5
  unreachable

64:                                               ; preds = %62
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = load i32, ptr %6, align 4, !tbaa !9
  %67 = load i32, ptr %4, align 4, !tbaa !9
  %68 = call i32 @count_neighbours_with_binattr_a(ptr noundef %65, i32 noundef %66, i32 noundef %67)
  %69 = icmp ne i32 %68, 1
  br i1 %69, label %70, label %71

70:                                               ; preds = %64
  br label %137

71:                                               ; preds = %64
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %72

72:                                               ; preds = %133, %71
  %73 = load i32, ptr %7, align 4, !tbaa !9
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.graph_s, ptr %74, i32 0, i32 10
  %76 = load ptr, ptr %75, align 8, !tbaa !16
  %77 = load i32, ptr %5, align 4, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds i32, ptr %76, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !9
  %81 = icmp ult i32 %73, %80
  br i1 %81, label %82, label %136

82:                                               ; preds = %72
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.graph_s, ptr %83, i32 0, i32 11
  %85 = load ptr, ptr %84, align 8, !tbaa !17
  %86 = load i32, ptr %5, align 4, !tbaa !9
  %87 = zext i32 %86 to i64
  %88 = getelementptr inbounds ptr, ptr %85, i64 %87
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = load i32, ptr %7, align 4, !tbaa !9
  %91 = zext i32 %90 to i64
  %92 = getelementptr inbounds i32, ptr %89, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !9
  store i32 %93, ptr %9, align 4, !tbaa !9
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = load i32, ptr %9, align 4, !tbaa !9
  %96 = call i32 @bipartite_node_mode(ptr noundef %94, i32 noundef %95)
  %97 = icmp eq i32 %96, 0
  br i1 %97, label %98, label %99

98:                                               ; preds = %82
  br label %100

99:                                               ; preds = %82
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 170, ptr noundef @__PRETTY_FUNCTION__.BipartiteTwoPathExactlyOneNeighbourB) #5
  unreachable

100:                                              ; preds = %98
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %101

101:                                              ; preds = %129, %100
  %102 = load i32, ptr %8, align 4, !tbaa !9
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.graph_s, ptr %103, i32 0, i32 10
  %105 = load ptr, ptr %104, align 8, !tbaa !16
  %106 = load i32, ptr %6, align 4, !tbaa !9
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds i32, ptr %105, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !9
  %110 = icmp ult i32 %102, %109
  br i1 %110, label %111, label %132

111:                                              ; preds = %101
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.graph_s, ptr %112, i32 0, i32 11
  %114 = load ptr, ptr %113, align 8, !tbaa !17
  %115 = load i32, ptr %6, align 4, !tbaa !9
  %116 = zext i32 %115 to i64
  %117 = getelementptr inbounds ptr, ptr %114, i64 %116
  %118 = load ptr, ptr %117, align 8, !tbaa !5
  %119 = load i32, ptr %8, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = getelementptr inbounds i32, ptr %118, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !9
  %123 = load i32, ptr %9, align 4, !tbaa !9
  %124 = icmp eq i32 %122, %123
  br i1 %124, label %125, label %128

125:                                              ; preds = %111
  %126 = load i32, ptr %10, align 4, !tbaa !9
  %127 = add i32 %126, 1
  store i32 %127, ptr %10, align 4, !tbaa !9
  br label %128

128:                                              ; preds = %125, %111
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %8, align 4, !tbaa !9
  %131 = add i32 %130, 1
  store i32 %131, ptr %8, align 4, !tbaa !9
  br label %101, !llvm.loop !18

132:                                              ; preds = %101
  br label %133

133:                                              ; preds = %132
  %134 = load i32, ptr %7, align 4, !tbaa !9
  %135 = add i32 %134, 1
  store i32 %135, ptr %7, align 4, !tbaa !9
  br label %72, !llvm.loop !20

136:                                              ; preds = %72
  br label %137

137:                                              ; preds = %136, %70
  %138 = load i32, ptr %6, align 4, !tbaa !9
  %139 = add i32 %138, 1
  store i32 %139, ptr %6, align 4, !tbaa !9
  br label %51, !llvm.loop !21

140:                                              ; preds = %51
  br label %141

141:                                              ; preds = %140, %47
  %142 = load i32, ptr %5, align 4, !tbaa !9
  %143 = add i32 %142, 1
  store i32 %143, ptr %5, align 4, !tbaa !9
  br label %28, !llvm.loop !22

144:                                              ; preds = %28
  %145 = load i32, ptr %10, align 4, !tbaa !9
  %146 = uitofp i32 %145 to double
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret double %146
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "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 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 #4 = { nounwind }
attributes #5 = { noreturn 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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"graph_s", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !10, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !6, i64 104, !6, i64 112, !10, i64 120, !6, i64 128, !6, i64 136, !10, i64 144, !6, i64 152, !6, i64 160, !10, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !10, i64 200, !10, i64 204, !10, i64 208, !10, i64 212, !10, i64 216, !6, i64 224, !10, i64 232, !10, i64 236, !6, i64 240, !6, i64 248, !10, i64 256, !6, i64 264, !10, i64 272, !6, i64 280, !6, i64 288, !10, i64 296, !10, i64 300, !6, i64 304, !10, i64 312, !6, i64 320}
!13 = !{!12, !10, i64 4}
!14 = !{!12, !10, i64 88}
!15 = !{!12, !10, i64 0}
!16 = !{!12, !6, i64 64}
!17 = !{!12, !6, i64 72}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}


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

@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [114 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [36 x i8], align 1
@__PRETTY_FUNCTION__.BipartiteTwoPathExactlyOneNeighbourB = external hidden unnamed_addr constant [69 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [36 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

declare i32 @bipartite_node_mode(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @count_neighbours_with_binattr_a(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local double @BipartiteTwoPathExactlyOneNeighbourB(ptr noundef %0, i32 noundef %1) local_unnamed_addr #2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %5, label %6

5:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 158, ptr noundef nonnull @__PRETTY_FUNCTION__.BipartiteTwoPathExactlyOneNeighbourB) #4
  unreachable

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 4
  %8 = load i32, ptr %7, align 4, !tbaa !11
  %.not42 = icmp eq i32 %8, 0
  br i1 %.not42, label %10, label %9

9:                                                ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 159, ptr noundef nonnull @__PRETTY_FUNCTION__.BipartiteTwoPathExactlyOneNeighbourB) #4
  unreachable

10:                                               ; preds = %6
  %11 = getelementptr inbounds i8, ptr %0, i64 88
  %12 = load i32, ptr %11, align 8, !tbaa !12
  %13 = load i32, ptr %0, align 8, !tbaa !13
  %14 = icmp ult i32 %12, %13
  br i1 %14, label %.lr.ph68, label %._crit_edge69

.lr.ph68:                                         ; preds = %10
  %15 = getelementptr inbounds i8, ptr %0, i64 64
  %16 = getelementptr inbounds i8, ptr %0, i64 72
  %17 = zext i32 %12 to i64
  br label %18

18:                                               ; preds = %.lr.ph68, %.loopexit47
  %indvars.iv82 = phi i64 [ %17, %.lr.ph68 ], [ %25, %.loopexit47 ]
  %indvars.iv77.in = phi i64 [ %17, %.lr.ph68 ], [ %indvars.iv77, %.loopexit47 ]
  %.066 = phi i32 [ 0, %.lr.ph68 ], [ %.6, %.loopexit47 ]
  %indvars.iv77 = add nuw nsw i64 %indvars.iv77.in, 1
  %19 = trunc nuw i64 %indvars.iv82 to i32
  %20 = tail call i32 @bipartite_node_mode(ptr noundef nonnull %0, i32 noundef %19) #5
  %21 = icmp eq i32 %20, 1
  br i1 %21, label %23, label %22

22:                                               ; preds = %18
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 161, ptr noundef nonnull @__PRETTY_FUNCTION__.BipartiteTwoPathExactlyOneNeighbourB) #4
  unreachable

23:                                               ; preds = %18
  %24 = tail call i32 @count_neighbours_with_binattr_a(ptr noundef nonnull %0, i32 noundef %19, i32 noundef %1)
  %.not43 = icmp eq i32 %24, 1
  %.pre = load i32, ptr %0, align 8, !tbaa !13
  %25 = add nuw nsw i64 %indvars.iv82, 1
  %26 = zext i32 %.pre to i64
  %27 = icmp ult i64 %25, %26
  %or.cond = select i1 %.not43, i1 %27, i1 false
  br i1 %or.cond, label %.lr.ph63, label %.loopexit47

.lr.ph63:                                         ; preds = %23, %.loopexit
  %indvars.iv79 = phi i64 [ %indvars.iv.next80, %.loopexit ], [ %indvars.iv77, %23 ]
  %.161 = phi i32 [ %.5, %.loopexit ], [ %.066, %23 ]
  %28 = trunc nuw i64 %indvars.iv79 to i32
  %29 = tail call i32 @bipartite_node_mode(ptr noundef nonnull %0, i32 noundef %28) #5
  %30 = icmp eq i32 %29, 1
  br i1 %30, label %32, label %31

31:                                               ; preds = %.lr.ph63
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 165, ptr noundef nonnull @__PRETTY_FUNCTION__.BipartiteTwoPathExactlyOneNeighbourB) #4
  unreachable

32:                                               ; preds = %.lr.ph63
  %33 = tail call i32 @count_neighbours_with_binattr_a(ptr noundef nonnull %0, i32 noundef %28, i32 noundef %1)
  %.not44 = icmp eq i32 %33, 1
  br i1 %.not44, label %.preheader45, label %.loopexit

.preheader45:                                     ; preds = %32
  %34 = load ptr, ptr %15, align 8, !tbaa !14
  %35 = getelementptr inbounds i32, ptr %34, i64 %indvars.iv82
  %36 = load i32, ptr %35, align 4, !tbaa !15
  %.not71 = icmp eq i32 %36, 0
  br i1 %.not71, label %.loopexit, label %.lr.ph58

.lr.ph58:                                         ; preds = %.preheader45, %._crit_edge
  %indvars.iv74 = phi i64 [ %indvars.iv.next75, %._crit_edge ], [ 0, %.preheader45 ]
  %.257 = phi i32 [ %.3.lcssa, %._crit_edge ], [ %.161, %.preheader45 ]
  %37 = load ptr, ptr %16, align 8, !tbaa !16
  %38 = getelementptr inbounds ptr, ptr %37, i64 %indvars.iv82
  %39 = load ptr, ptr %38, align 8, !tbaa !17
  %40 = getelementptr inbounds i32, ptr %39, i64 %indvars.iv74
  %41 = load i32, ptr %40, align 4, !tbaa !15
  %42 = tail call i32 @bipartite_node_mode(ptr noundef nonnull %0, i32 noundef %41) #5
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %.preheader, label %61

.preheader:                                       ; preds = %.lr.ph58
  %44 = load ptr, ptr %15, align 8, !tbaa !14
  %45 = getelementptr inbounds i32, ptr %44, i64 %indvars.iv79
  %46 = load i32, ptr %45, align 4, !tbaa !15
  %.not72 = icmp eq i32 %46, 0
  br i1 %.not72, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %47 = load ptr, ptr %16, align 8, !tbaa !16
  %48 = getelementptr inbounds ptr, ptr %47, i64 %indvars.iv79
  %49 = load ptr, ptr %48, align 8, !tbaa !17
  %wide.trip.count = zext i32 %46 to i64
  %min.iters.check = icmp ult i32 %46, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %.355.ph = phi i32 [ %.257, %.lr.ph ], [ %60, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %wide.trip.count, 4294967288
  %50 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %.257, i64 0
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %41, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ %50, %vector.ph ], [ %57, %vector.body ]
  %vec.phi88 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %58, %vector.body ]
  %51 = getelementptr inbounds i32, ptr %49, i64 %index
  %52 = getelementptr inbounds i8, ptr %51, i64 16
  %wide.load = load <4 x i32>, ptr %51, align 4, !tbaa !15
  %wide.load89 = load <4 x i32>, ptr %52, align 4, !tbaa !15
  %53 = icmp eq <4 x i32> %wide.load, %broadcast.splat
  %54 = icmp eq <4 x i32> %wide.load89, %broadcast.splat
  %55 = zext <4 x i1> %53 to <4 x i32>
  %56 = zext <4 x i1> %54 to <4 x i32>
  %57 = add <4 x i32> %vec.phi, %55
  %58 = add <4 x i32> %vec.phi88, %56
  %index.next = add nuw i64 %index, 8
  %59 = icmp eq i64 %index.next, %n.vec
  br i1 %59, label %middle.block, label %vector.body, !llvm.loop !18

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %58, %57
  %60 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

61:                                               ; preds = %.lr.ph58
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 170, ptr noundef nonnull @__PRETTY_FUNCTION__.BipartiteTwoPathExactlyOneNeighbourB) #4
  unreachable

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %.355 = phi i32 [ %spec.select, %scalar.ph ], [ %.355.ph, %scalar.ph.preheader ]
  %62 = getelementptr inbounds i32, ptr %49, i64 %indvars.iv
  %63 = load i32, ptr %62, align 4, !tbaa !15
  %64 = icmp eq i32 %63, %41
  %65 = zext i1 %64 to i32
  %spec.select = add i32 %.355, %65
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %scalar.ph, !llvm.loop !22

._crit_edge:                                      ; preds = %scalar.ph, %middle.block, %.preheader
  %.3.lcssa = phi i32 [ %.257, %.preheader ], [ %60, %middle.block ], [ %spec.select, %scalar.ph ]
  %indvars.iv.next75 = add nuw nsw i64 %indvars.iv74, 1
  %66 = getelementptr inbounds i32, ptr %44, i64 %indvars.iv82
  %67 = load i32, ptr %66, align 4, !tbaa !15
  %68 = zext i32 %67 to i64
  %69 = icmp ult i64 %indvars.iv.next75, %68
  br i1 %69, label %.lr.ph58, label %.loopexit, !llvm.loop !23

.loopexit:                                        ; preds = %._crit_edge, %.preheader45, %32
  %.5 = phi i32 [ %.161, %32 ], [ %.161, %.preheader45 ], [ %.3.lcssa, %._crit_edge ]
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %70 = load i32, ptr %0, align 8, !tbaa !13
  %71 = zext i32 %70 to i64
  %72 = icmp ult i64 %indvars.iv.next80, %71
  br i1 %72, label %.lr.ph63, label %.loopexit47, !llvm.loop !24

.loopexit47:                                      ; preds = %.loopexit, %23
  %.pre-phi = phi i64 [ %26, %23 ], [ %71, %.loopexit ]
  %.6 = phi i32 [ %.066, %23 ], [ %.5, %.loopexit ]
  %73 = icmp ult i64 %25, %.pre-phi
  br i1 %73, label %18, label %._crit_edge69.loopexit, !llvm.loop !25

._crit_edge69.loopexit:                           ; preds = %.loopexit47
  %74 = uitofp i32 %.6 to double
  br label %._crit_edge69

._crit_edge69:                                    ; preds = %._crit_edge69.loopexit, %10
  %.0.lcssa = phi double [ 0.000000e+00, %10 ], [ %74, %._crit_edge69.loopexit ]
  ret double %.0.lcssa
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #3

attributes #0 = { noreturn nounwind "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" }
attributes #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { noreturn nounwind }
attributes #5 = { 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, !7, i64 8}
!6 = !{!"graph_s", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !7, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !7, i64 88, !7, i64 92, !7, i64 96, !10, i64 104, !10, i64 112, !7, i64 120, !10, i64 128, !10, i64 136, !7, i64 144, !10, i64 152, !10, i64 160, !7, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !7, i64 200, !7, i64 204, !7, i64 208, !7, i64 212, !7, i64 216, !10, i64 224, !7, i64 232, !7, i64 236, !10, i64 240, !10, i64 248, !7, i64 256, !10, i64 264, !7, i64 272, !10, i64 280, !10, i64 288, !7, i64 296, !7, i64 300, !10, i64 304, !7, i64 312, !10, i64 320}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!6, !7, i64 88}
!13 = !{!6, !7, i64 0}
!14 = !{!6, !10, i64 64}
!15 = !{!7, !7, i64 0}
!16 = !{!6, !10, i64 72}
!17 = !{!10, !10, i64 0}
!18 = distinct !{!18, !19, !20, !21}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!"llvm.loop.isvectorized", i32 1}
!21 = !{!"llvm.loop.unroll.runtime.disable"}
!22 = distinct !{!22, !19, !21, !20}
!23 = distinct !{!23, !19}
!24 = distinct !{!24, !19}
!25 = distinct !{!25, !19}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass