; LLVM IR from stivalaa/EstimNetDirected :: src (graph)

; 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.1 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [29 x i8], align 1
@__PRETTY_FUNCTION__.insertEdge = external hidden unnamed_addr constant [43 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [55 x i8], align 1

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

declare ptr @safe_realloc(ptr noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @insertEdge(ptr noundef %0, i32 noundef %1, i32 noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  %7 = load ptr, ptr %4, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct.graph_s, ptr %7, i32 0, i32 1
  %9 = load i32, ptr %8, align 4, !tbaa !11
  %10 = icmp ne i32 %9, 0
  br i1 %10, label %12, label %11

11:                                               ; preds = %3
  br label %13

12:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 1281, ptr noundef @__PRETTY_FUNCTION__.insertEdge) #3
  unreachable

13:                                               ; preds = %11
  %14 = load i32, ptr %5, align 4, !tbaa !9
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.graph_s, ptr %15, i32 0, i32 0
  %17 = load i32, ptr %16, align 8, !tbaa !13
  %18 = icmp ult i32 %14, %17
  br i1 %18, label %19, label %20

19:                                               ; preds = %13
  br label %21

20:                                               ; preds = %13
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 1282, ptr noundef @__PRETTY_FUNCTION__.insertEdge) #3
  unreachable

21:                                               ; preds = %19
  %22 = load i32, ptr %6, align 4, !tbaa !9
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.graph_s, ptr %23, i32 0, i32 0
  %25 = load i32, ptr %24, align 8, !tbaa !13
  %26 = icmp ult i32 %22, %25
  br i1 %26, label %27, label %28

27:                                               ; preds = %21
  br label %29

28:                                               ; preds = %21
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 1283, ptr noundef @__PRETTY_FUNCTION__.insertEdge) #3
  unreachable

29:                                               ; preds = %27
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.graph_s, ptr %30, i32 0, i32 2
  %32 = load i32, ptr %31, align 8, !tbaa !14
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %45

34:                                               ; preds = %29
  %35 = load ptr, ptr %4, 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 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = load i32, ptr %6, align 4, !tbaa !9
  %40 = call i32 @bipartite_node_mode(ptr noundef %38, i32 noundef %39)
  %41 = icmp ne i32 %37, %40
  br i1 %41, label %42, label %43

42:                                               ; preds = %34
  br label %44

43:                                               ; preds = %34
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 1285, ptr noundef @__PRETTY_FUNCTION__.insertEdge) #3
  unreachable

44:                                               ; preds = %42
  br label %45

45:                                               ; preds = %44, %29
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.graph_s, ptr %46, i32 0, i32 9
  %48 = load i32, ptr %47, align 8, !tbaa !15
  %49 = add i32 %48, 1
  store i32 %49, ptr %47, align 8, !tbaa !15
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.graph_s, ptr %50, i32 0, i32 11
  %52 = load ptr, ptr %51, align 8, !tbaa !16
  %53 = load i32, ptr %5, align 4, !tbaa !9
  %54 = zext i32 %53 to i64
  %55 = getelementptr inbounds ptr, ptr %52, i64 %54
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.graph_s, ptr %57, i32 0, i32 10
  %59 = load ptr, ptr %58, align 8, !tbaa !17
  %60 = load i32, ptr %5, align 4, !tbaa !9
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds i32, ptr %59, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !9
  %64 = add i32 %63, 1
  %65 = zext i32 %64 to i64
  %66 = mul i64 %65, 4
  %67 = call ptr @safe_realloc(ptr noundef %56, i64 noundef %66)
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.graph_s, ptr %68, i32 0, i32 11
  %70 = load ptr, ptr %69, align 8, !tbaa !16
  %71 = load i32, ptr %5, align 4, !tbaa !9
  %72 = zext i32 %71 to i64
  %73 = getelementptr inbounds ptr, ptr %70, i64 %72
  store ptr %67, ptr %73, align 8, !tbaa !5
  %74 = load i32, ptr %6, align 4, !tbaa !9
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.graph_s, ptr %75, i32 0, i32 11
  %77 = load ptr, ptr %76, align 8, !tbaa !16
  %78 = load i32, ptr %5, align 4, !tbaa !9
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds ptr, ptr %77, i64 %79
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.graph_s, ptr %82, i32 0, i32 10
  %84 = load ptr, ptr %83, align 8, !tbaa !17
  %85 = load i32, ptr %5, align 4, !tbaa !9
  %86 = zext i32 %85 to i64
  %87 = getelementptr inbounds i32, ptr %84, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !9
  %89 = add i32 %88, 1
  store i32 %89, ptr %87, align 4, !tbaa !9
  %90 = zext i32 %88 to i64
  %91 = getelementptr inbounds i32, ptr %81, i64 %90
  store i32 %74, ptr %91, align 4, !tbaa !9
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.graph_s, ptr %92, i32 0, i32 11
  %94 = load ptr, ptr %93, align 8, !tbaa !16
  %95 = load i32, ptr %6, align 4, !tbaa !9
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds ptr, ptr %94, i64 %96
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.graph_s, ptr %99, i32 0, i32 10
  %101 = load ptr, ptr %100, align 8, !tbaa !17
  %102 = load i32, ptr %6, align 4, !tbaa !9
  %103 = zext i32 %102 to i64
  %104 = getelementptr inbounds i32, ptr %101, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !9
  %106 = add i32 %105, 1
  %107 = zext i32 %106 to i64
  %108 = mul i64 %107, 4
  %109 = call ptr @safe_realloc(ptr noundef %98, i64 noundef %108)
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.graph_s, ptr %110, i32 0, i32 11
  %112 = load ptr, ptr %111, align 8, !tbaa !16
  %113 = load i32, ptr %6, align 4, !tbaa !9
  %114 = zext i32 %113 to i64
  %115 = getelementptr inbounds ptr, ptr %112, i64 %114
  store ptr %109, ptr %115, align 8, !tbaa !5
  %116 = load i32, ptr %5, align 4, !tbaa !9
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.graph_s, ptr %117, i32 0, i32 11
  %119 = load ptr, ptr %118, align 8, !tbaa !16
  %120 = load i32, ptr %6, align 4, !tbaa !9
  %121 = zext i32 %120 to i64
  %122 = getelementptr inbounds ptr, ptr %119, i64 %121
  %123 = load ptr, ptr %122, align 8, !tbaa !5
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.graph_s, ptr %124, i32 0, i32 10
  %126 = load ptr, ptr %125, align 8, !tbaa !17
  %127 = load i32, ptr %6, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  %129 = getelementptr inbounds i32, ptr %126, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !9
  %131 = add i32 %130, 1
  store i32 %131, ptr %129, align 4, !tbaa !9
  %132 = zext i32 %130 to i64
  %133 = getelementptr inbounds i32, ptr %123, i64 %132
  store i32 %116, ptr %133, align 4, !tbaa !9
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.graph_s, ptr %134, i32 0, i32 33
  %136 = load ptr, ptr %135, align 8, !tbaa !18
  %137 = load i32, ptr %5, align 4, !tbaa !9
  %138 = zext i32 %137 to i64
  %139 = getelementptr inbounds i32, ptr %136, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !9
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.graph_s, ptr %141, i32 0, i32 33
  %143 = load ptr, ptr %142, align 8, !tbaa !18
  %144 = load i32, ptr %6, align 4, !tbaa !9
  %145 = zext i32 %144 to i64
  %146 = getelementptr inbounds i32, ptr %143, i64 %145
  %147 = load i32, ptr %146, align 4, !tbaa !9
  %148 = icmp ugt i32 %140, %147
  br i1 %148, label %149, label %177

149:                                              ; preds = %45
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.graph_s, ptr %150, i32 0, i32 33
  %152 = load ptr, ptr %151, align 8, !tbaa !18
  %153 = load i32, ptr %5, align 4, !tbaa !9
  %154 = zext i32 %153 to i64
  %155 = getelementptr inbounds i32, ptr %152, i64 %154
  %156 = load i32, ptr %155, align 4, !tbaa !9
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.graph_s, ptr %157, i32 0, i32 33
  %159 = load ptr, ptr %158, align 8, !tbaa !18
  %160 = load i32, ptr %6, align 4, !tbaa !9
  %161 = zext i32 %160 to i64
  %162 = getelementptr inbounds i32, ptr %159, i64 %161
  %163 = load i32, ptr %162, align 4, !tbaa !9
  %164 = add i32 %163, 1
  %165 = icmp eq i32 %156, %164
  br i1 %165, label %166, label %167

166:                                              ; preds = %149
  br label %168

167:                                              ; preds = %149
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 1301, ptr noundef @__PRETTY_FUNCTION__.insertEdge) #3
  unreachable

168:                                              ; preds = %166
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.graph_s, ptr %169, i32 0, i32 37
  %171 = load ptr, ptr %170, align 8, !tbaa !19
  %172 = load i32, ptr %5, align 4, !tbaa !9
  %173 = zext i32 %172 to i64
  %174 = getelementptr inbounds i32, ptr %171, i64 %173
  %175 = load i32, ptr %174, align 4, !tbaa !9
  %176 = add i32 %175, 1
  store i32 %176, ptr %174, align 4, !tbaa !9
  br label %222

177:                                              ; preds = %45
  %178 = load ptr, ptr %4, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.graph_s, ptr %178, i32 0, i32 33
  %180 = load ptr, ptr %179, align 8, !tbaa !18
  %181 = load i32, ptr %6, align 4, !tbaa !9
  %182 = zext i32 %181 to i64
  %183 = getelementptr inbounds i32, ptr %180, i64 %182
  %184 = load i32, ptr %183, align 4, !tbaa !9
  %185 = load ptr, ptr %4, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.graph_s, ptr %185, i32 0, i32 33
  %187 = load ptr, ptr %186, align 8, !tbaa !18
  %188 = load i32, ptr %5, align 4, !tbaa !9
  %189 = zext i32 %188 to i64
  %190 = getelementptr inbounds i32, ptr %187, i64 %189
  %191 = load i32, ptr %190, align 4, !tbaa !9
  %192 = icmp ugt i32 %184, %191
  br i1 %192, label %193, label %221

193:                                              ; preds = %177
  %194 = load ptr, ptr %4, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.graph_s, ptr %194, i32 0, i32 33
  %196 = load ptr, ptr %195, align 8, !tbaa !18
  %197 = load i32, ptr %6, align 4, !tbaa !9
  %198 = zext i32 %197 to i64
  %199 = getelementptr inbounds i32, ptr %196, i64 %198
  %200 = load i32, ptr %199, align 4, !tbaa !9
  %201 = load ptr, ptr %4, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.graph_s, ptr %201, i32 0, i32 33
  %203 = load ptr, ptr %202, align 8, !tbaa !18
  %204 = load i32, ptr %5, align 4, !tbaa !9
  %205 = zext i32 %204 to i64
  %206 = getelementptr inbounds i32, ptr %203, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !9
  %208 = add i32 %207, 1
  %209 = icmp eq i32 %200, %208
  br i1 %209, label %210, label %211

210:                                              ; preds = %193
  br label %212

211:                                              ; preds = %193
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 1304, ptr noundef @__PRETTY_FUNCTION__.insertEdge) #3
  unreachable

212:                                              ; preds = %210
  %213 = load ptr, ptr %4, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.graph_s, ptr %213, i32 0, i32 37
  %215 = load ptr, ptr %214, align 8, !tbaa !19
  %216 = load i32, ptr %6, align 4, !tbaa !9
  %217 = zext i32 %216 to i64
  %218 = getelementptr inbounds i32, ptr %215, i64 %217
  %219 = load i32, ptr %218, align 4, !tbaa !9
  %220 = add i32 %219, 1
  store i32 %220, ptr %218, align 4, !tbaa !9
  br label %221

221:                                              ; preds = %212, %177
  br label %222

222:                                              ; preds = %221, %168
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @bipartite_node_mode(ptr noundef, i32 noundef) #2

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 = { 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 4}
!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 0}
!14 = !{!12, !10, i64 8}
!15 = !{!12, !10, i64 56}
!16 = !{!12, !6, i64 72}
!17 = !{!12, !6, i64 64}
!18 = !{!12, !6, i64 224}
!19 = !{!12, !6, i64 248}


; 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.1 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [29 x i8], align 1
@__PRETTY_FUNCTION__.insertEdge = external hidden unnamed_addr constant [43 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [55 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 ptr @safe_realloc(ptr noundef, i64 noundef) local_unnamed_addr #1

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

6:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 1281, ptr noundef nonnull @__PRETTY_FUNCTION__.insertEdge) #3
  unreachable

7:                                                ; preds = %3
  %8 = load i32, ptr %0, align 8, !tbaa !11
  %9 = icmp ugt i32 %8, %1
  br i1 %9, label %11, label %10

10:                                               ; preds = %7
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 1282, ptr noundef nonnull @__PRETTY_FUNCTION__.insertEdge) #3
  unreachable

11:                                               ; preds = %7
  %12 = icmp ugt i32 %8, %2
  br i1 %12, label %14, label %13

13:                                               ; preds = %11
  tail call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 1283, ptr noundef nonnull @__PRETTY_FUNCTION__.insertEdge) #3
  unreachable

14:                                               ; preds = %11
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = load i32, ptr %15, align 8, !tbaa !12
  %.not57 = icmp eq i32 %16, 0
  br i1 %.not57, label %21, label %17

17:                                               ; preds = %14
  %18 = tail call i32 @bipartite_node_mode(ptr noundef nonnull %0, i32 noundef %1)
  %19 = tail call i32 @bipartite_node_mode(ptr noundef nonnull %0, i32 noundef %2)
  %.not58 = icmp eq i32 %18, %19
  br i1 %.not58, label %20, label %21

20:                                               ; preds = %17
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.1, i32 noundef 1285, ptr noundef nonnull @__PRETTY_FUNCTION__.insertEdge) #3
  unreachable

21:                                               ; preds = %17, %14
  %22 = getelementptr inbounds i8, ptr %0, i64 56
  %23 = load i32, ptr %22, align 8, !tbaa !13
  %24 = add i32 %23, 1
  store i32 %24, ptr %22, align 8, !tbaa !13
  %25 = getelementptr inbounds i8, ptr %0, i64 72
  %26 = load ptr, ptr %25, align 8, !tbaa !14
  %27 = zext i32 %1 to i64
  %28 = getelementptr inbounds ptr, ptr %26, i64 %27
  %29 = load ptr, ptr %28, align 8, !tbaa !15
  %30 = getelementptr inbounds i8, ptr %0, i64 64
  %31 = load ptr, ptr %30, align 8, !tbaa !16
  %32 = getelementptr inbounds i32, ptr %31, i64 %27
  %33 = load i32, ptr %32, align 4, !tbaa !17
  %34 = add i32 %33, 1
  %35 = zext i32 %34 to i64
  %36 = shl nuw nsw i64 %35, 2
  %37 = tail call ptr @safe_realloc(ptr noundef %29, i64 noundef %36) #4
  %38 = load ptr, ptr %25, align 8, !tbaa !14
  %39 = getelementptr inbounds ptr, ptr %38, i64 %27
  store ptr %37, ptr %39, align 8, !tbaa !15
  %40 = load ptr, ptr %25, align 8, !tbaa !14
  %41 = getelementptr inbounds ptr, ptr %40, i64 %27
  %42 = load ptr, ptr %41, align 8, !tbaa !15
  %43 = load ptr, ptr %30, align 8, !tbaa !16
  %44 = getelementptr inbounds i32, ptr %43, i64 %27
  %45 = load i32, ptr %44, align 4, !tbaa !17
  %46 = add i32 %45, 1
  store i32 %46, ptr %44, align 4, !tbaa !17
  %47 = zext i32 %45 to i64
  %48 = getelementptr inbounds i32, ptr %42, i64 %47
  store i32 %2, ptr %48, align 4, !tbaa !17
  %49 = zext i32 %2 to i64
  %50 = getelementptr inbounds ptr, ptr %40, i64 %49
  %51 = load ptr, ptr %50, align 8, !tbaa !15
  %52 = getelementptr inbounds i32, ptr %43, i64 %49
  %53 = load i32, ptr %52, align 4, !tbaa !17
  %54 = add i32 %53, 1
  %55 = zext i32 %54 to i64
  %56 = shl nuw nsw i64 %55, 2
  %57 = tail call ptr @safe_realloc(ptr noundef %51, i64 noundef %56) #4
  %58 = load ptr, ptr %25, align 8, !tbaa !14
  %59 = getelementptr inbounds ptr, ptr %58, i64 %49
  store ptr %57, ptr %59, align 8, !tbaa !15
  %60 = load ptr, ptr %25, align 8, !tbaa !14
  %61 = getelementptr inbounds ptr, ptr %60, i64 %49
  %62 = load ptr, ptr %61, align 8, !tbaa !15
  %63 = load ptr, ptr %30, align 8, !tbaa !16
  %64 = getelementptr inbounds i32, ptr %63, i64 %49
  %65 = load i32, ptr %64, align 4, !tbaa !17
  %66 = add i32 %65, 1
  store i32 %66, ptr %64, align 4, !tbaa !17
  %67 = zext i32 %65 to i64
  %68 = getelementptr inbounds i32, ptr %62, i64 %67
  store i32 %1, ptr %68, align 4, !tbaa !17
  %69 = getelementptr inbounds i8, ptr %0, i64 224
  %70 = load ptr, ptr %69, align 8, !tbaa !18
  %71 = getelementptr inbounds i32, ptr %70, i64 %27
  %72 = load i32, ptr %71, align 4, !tbaa !17
  %73 = getelementptr inbounds i32, ptr %70, i64 %49
  %74 = load i32, ptr %73, align 4, !tbaa !17
  %75 = icmp ugt i32 %72, %74
  br i1 %75, label %76, label %80

76:                                               ; preds = %21
  %77 = add nuw i32 %74, 1
  %78 = icmp eq i32 %72, %77
  br i1 %78, label %.sink.split, label %79

79:                                               ; preds = %76
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 1301, ptr noundef nonnull @__PRETTY_FUNCTION__.insertEdge) #3
  unreachable

80:                                               ; preds = %21
  %81 = icmp ugt i32 %74, %72
  br i1 %81, label %82, label %91

82:                                               ; preds = %80
  %83 = add nuw i32 %72, 1
  %84 = icmp eq i32 %74, %83
  br i1 %84, label %.sink.split, label %85

85:                                               ; preds = %82
  tail call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 1304, ptr noundef nonnull @__PRETTY_FUNCTION__.insertEdge) #3
  unreachable

.sink.split:                                      ; preds = %82, %76
  %.sink62 = phi i64 [ %27, %76 ], [ %49, %82 ]
  %86 = getelementptr inbounds i8, ptr %0, i64 248
  %87 = load ptr, ptr %86, align 8, !tbaa !19
  %88 = getelementptr inbounds i32, ptr %87, i64 %.sink62
  %89 = load i32, ptr %88, align 4, !tbaa !17
  %90 = add i32 %89, 1
  store i32 %90, ptr %88, align 4, !tbaa !17
  br label %91

91:                                               ; preds = %.sink.split, %80
  ret void
}

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

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 = { noreturn nounwind }
attributes #4 = { 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 4}
!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 0}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !7, i64 56}
!14 = !{!6, !10, i64 72}
!15 = !{!10, !10, i64 0}
!16 = !{!6, !10, i64 64}
!17 = !{!7, !7, i64 0}
!18 = !{!6, !10, i64 224}
!19 = !{!6, !10, i64 248}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass