; 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.66 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [30 x i8], align 1
@__PRETTY_FUNCTION__.write_graph_arclist_to_file = external hidden unnamed_addr constant [58 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [22 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

; 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 i32 @isArc(ptr noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

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

12:                                               ; preds = %2
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.graph_s, ptr %14, i32 0, i32 0
  %16 = load i32, ptr %15, align 8, !tbaa !13
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.graph_s, ptr %17, i32 0, i32 13
  %19 = load i32, ptr %18, align 8, !tbaa !14
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef @.str.66, i32 noundef %16, i32 noundef %19) #4
  br label %27

21:                                               ; preds = %2
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %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 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef @.str.67, i32 noundef %25) #4
  br label %27

27:                                               ; preds = %21, %12
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %39, %27
  %29 = load i32, ptr %5, align 4, !tbaa !9
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.graph_s, ptr %30, i32 0, i32 0
  %32 = load i32, ptr %31, align 8, !tbaa !13
  %33 = icmp ult i32 %29, %32
  br i1 %33, label %34, label %42

34:                                               ; preds = %28
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = load i32, ptr %5, align 4, !tbaa !9
  %37 = add i32 %36, 1
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef @.str.68, i32 noundef %37) #4
  br label %39

39:                                               ; preds = %34
  %40 = load i32, ptr %5, align 4, !tbaa !9
  %41 = add i32 %40, 1
  store i32 %41, ptr %5, align 4, !tbaa !9
  br label %28, !llvm.loop !15

42:                                               ; preds = %28
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.graph_s, ptr %43, i32 0, i32 1
  %45 = load i32, ptr %44, align 4, !tbaa !17
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %120

47:                                               ; preds = %42
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef @.str.69) #4
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %108, %47
  %51 = load i32, ptr %5, align 4, !tbaa !9
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.graph_s, ptr %52, i32 0, i32 0
  %54 = load i32, ptr %53, align 8, !tbaa !13
  %55 = icmp ult i32 %51, %54
  br i1 %55, label %56, label %111

56:                                               ; preds = %50
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %104, %56
  %58 = load i32, ptr %6, align 4, !tbaa !9
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.graph_s, ptr %59, i32 0, i32 4
  %61 = load ptr, ptr %60, align 8, !tbaa !18
  %62 = load i32, ptr %5, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds i32, ptr %61, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !9
  %66 = icmp ult i32 %58, %65
  br i1 %66, label %67, label %107

67:                                               ; preds = %57
  %68 = load i32, ptr %7, align 4, !tbaa !9
  %69 = add i32 %68, 1
  store i32 %69, ptr %7, align 4, !tbaa !9
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = load i32, ptr %5, align 4, !tbaa !9
  %72 = add i32 %71, 1
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.graph_s, ptr %73, i32 0, i32 5
  %75 = load ptr, ptr %74, align 8, !tbaa !19
  %76 = load i32, ptr %5, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds ptr, ptr %75, i64 %77
  %79 = load ptr, ptr %78, align 8, !tbaa !5
  %80 = load i32, ptr %6, align 4, !tbaa !9
  %81 = zext i32 %80 to i64
  %82 = getelementptr inbounds i32, ptr %79, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !9
  %84 = add i32 %83, 1
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef @.str.70, i32 noundef %72, i32 noundef %84) #4
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = load i32, ptr %5, align 4, !tbaa !9
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.graph_s, ptr %88, i32 0, i32 5
  %90 = load ptr, ptr %89, align 8, !tbaa !19
  %91 = load i32, ptr %5, align 4, !tbaa !9
  %92 = zext i32 %91 to i64
  %93 = getelementptr inbounds ptr, ptr %90, i64 %92
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = load i32, ptr %6, align 4, !tbaa !9
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds i32, ptr %94, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !9
  %99 = call i32 @isArc(ptr noundef %86, i32 noundef %87, i32 noundef %98)
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %102

101:                                              ; preds = %67
  br label %103

102:                                              ; preds = %67
  call void @__assert_fail(ptr noundef @.str.71, ptr noundef @.str.1, i32 noundef 2277, ptr noundef @__PRETTY_FUNCTION__.write_graph_arclist_to_file) #5
  unreachable

103:                                              ; preds = %101
  br label %104

104:                                              ; preds = %103
  %105 = load i32, ptr %6, align 4, !tbaa !9
  %106 = add i32 %105, 1
  store i32 %106, ptr %6, align 4, !tbaa !9
  br label %57, !llvm.loop !20

107:                                              ; preds = %57
  br label %108

108:                                              ; preds = %107
  %109 = load i32, ptr %5, align 4, !tbaa !9
  %110 = add i32 %109, 1
  store i32 %110, ptr %5, align 4, !tbaa !9
  br label %50, !llvm.loop !21

111:                                              ; preds = %50
  %112 = load i32, ptr %7, align 4, !tbaa !9
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.graph_s, ptr %113, i32 0, i32 3
  %115 = load i32, ptr %114, align 4, !tbaa !22
  %116 = icmp eq i32 %112, %115
  br i1 %116, label %117, label %118

117:                                              ; preds = %111
  br label %119

118:                                              ; preds = %111
  call void @__assert_fail(ptr noundef @.str.72, ptr noundef @.str.1, i32 noundef 2280, ptr noundef @__PRETTY_FUNCTION__.write_graph_arclist_to_file) #5
  unreachable

119:                                              ; preds = %117
  br label %190

120:                                              ; preds = %42
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %121, ptr noundef @.str.73) #4
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %123

123:                                              ; preds = %178, %120
  %124 = load i32, ptr %5, align 4, !tbaa !9
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.graph_s, ptr %125, i32 0, i32 0
  %127 = load i32, ptr %126, align 8, !tbaa !13
  %128 = icmp ult i32 %124, %127
  br i1 %128, label %129, label %181

129:                                              ; preds = %123
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %130

130:                                              ; preds = %174, %129
  %131 = load i32, ptr %6, align 4, !tbaa !9
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.graph_s, ptr %132, i32 0, i32 10
  %134 = load ptr, ptr %133, align 8, !tbaa !23
  %135 = load i32, ptr %5, align 4, !tbaa !9
  %136 = zext i32 %135 to i64
  %137 = getelementptr inbounds i32, ptr %134, i64 %136
  %138 = load i32, ptr %137, align 4, !tbaa !9
  %139 = icmp ult i32 %131, %138
  br i1 %139, label %140, label %177

140:                                              ; preds = %130
  %141 = load i32, ptr %5, align 4, !tbaa !9
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.graph_s, ptr %142, i32 0, i32 11
  %144 = load ptr, ptr %143, align 8, !tbaa !24
  %145 = load i32, ptr %5, align 4, !tbaa !9
  %146 = zext i32 %145 to i64
  %147 = getelementptr inbounds ptr, ptr %144, i64 %146
  %148 = load ptr, ptr %147, align 8, !tbaa !5
  %149 = load i32, ptr %6, align 4, !tbaa !9
  %150 = zext i32 %149 to i64
  %151 = getelementptr inbounds i32, ptr %148, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !9
  %153 = icmp ule i32 %141, %152
  br i1 %153, label %154, label %173

154:                                              ; preds = %140
  %155 = load i32, ptr %7, align 4, !tbaa !9
  %156 = add i32 %155, 1
  store i32 %156, ptr %7, align 4, !tbaa !9
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = load i32, ptr %5, align 4, !tbaa !9
  %159 = add i32 %158, 1
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.graph_s, ptr %160, i32 0, i32 11
  %162 = load ptr, ptr %161, align 8, !tbaa !24
  %163 = load i32, ptr %5, align 4, !tbaa !9
  %164 = zext i32 %163 to i64
  %165 = getelementptr inbounds ptr, ptr %162, i64 %164
  %166 = load ptr, ptr %165, align 8, !tbaa !5
  %167 = load i32, ptr %6, align 4, !tbaa !9
  %168 = zext i32 %167 to i64
  %169 = getelementptr inbounds i32, ptr %166, i64 %168
  %170 = load i32, ptr %169, align 4, !tbaa !9
  %171 = add i32 %170, 1
  %172 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %157, ptr noundef @.str.70, i32 noundef %159, i32 noundef %171) #4
  br label %173

173:                                              ; preds = %154, %140
  br label %174

174:                                              ; preds = %173
  %175 = load i32, ptr %6, align 4, !tbaa !9
  %176 = add i32 %175, 1
  store i32 %176, ptr %6, align 4, !tbaa !9
  br label %130, !llvm.loop !25

177:                                              ; preds = %130
  br label %178

178:                                              ; preds = %177
  %179 = load i32, ptr %5, align 4, !tbaa !9
  %180 = add i32 %179, 1
  store i32 %180, ptr %5, align 4, !tbaa !9
  br label %123, !llvm.loop !26

181:                                              ; preds = %123
  %182 = load i32, ptr %7, align 4, !tbaa !9
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.graph_s, ptr %183, i32 0, i32 9
  %185 = load i32, ptr %184, align 8, !tbaa !27
  %186 = icmp eq i32 %182, %185
  br i1 %186, label %187, label %188

187:                                              ; preds = %181
  br label %189

188:                                              ; preds = %181
  call void @__assert_fail(ptr noundef @.str.74, ptr noundef @.str.1, i32 noundef 2292, ptr noundef @__PRETTY_FUNCTION__.write_graph_arclist_to_file) #5
  unreachable

189:                                              ; preds = %187
  br label %190

190:                                              ; preds = %189, %119
  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 void
}

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 = { 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 = { 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 #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 0}
!14 = !{!12, !10, i64 88}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!12, !10, i64 4}
!18 = !{!12, !6, i64 16}
!19 = !{!12, !6, i64 24}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}
!22 = !{!12, !10, i64 12}
!23 = !{!12, !6, i64 64}
!24 = !{!12, !6, i64 72}
!25 = distinct !{!25, !16}
!26 = distinct !{!26, !16}
!27 = !{!12, !10, i64 56}


; 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.66 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [30 x i8], align 1
@__PRETTY_FUNCTION__.write_graph_arclist_to_file = external hidden unnamed_addr constant [58 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [22 x i8], align 1

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %1, i64 88
  %8 = load i32, ptr %7, align 8, !tbaa !12
  %9 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.66, i32 noundef %5, i32 noundef %8) #3
  br label %12

10:                                               ; preds = %2
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.67, i32 noundef %5) #3
  br label %12

12:                                               ; preds = %10, %6
  %13 = load i32, ptr %1, align 8, !tbaa !11
  %.not82 = icmp eq i32 %13, 0
  br i1 %.not82, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %12, %.lr.ph
  %.05464 = phi i32 [ %14, %.lr.ph ], [ 0, %12 ]
  %14 = add nuw i32 %.05464, 1
  %15 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.68, i32 noundef %14) #3
  %16 = load i32, ptr %1, align 8, !tbaa !11
  %17 = icmp ult i32 %14, %16
  br i1 %17, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %12
  %18 = getelementptr inbounds i8, ptr %1, i64 4
  %19 = load i32, ptr %18, align 4, !tbaa !15
  %.not58 = icmp eq i32 %19, 0
  br i1 %.not58, label %61, label %20

20:                                               ; preds = %._crit_edge
  %21 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.69) #3
  %22 = load i32, ptr %1, align 8, !tbaa !11
  %.not83 = icmp eq i32 %22, 0
  br i1 %.not83, label %._crit_edge71, label %.preheader61.lr.ph

.preheader61.lr.ph:                               ; preds = %20
  %23 = getelementptr inbounds i8, ptr %1, i64 16
  %24 = getelementptr inbounds i8, ptr %1, i64 24
  %.pre = load ptr, ptr %23, align 8, !tbaa !16
  br label %.preheader61

.preheader61:                                     ; preds = %.preheader61.lr.ph, %._crit_edge68
  %25 = phi i32 [ %22, %.preheader61.lr.ph ], [ %53, %._crit_edge68 ]
  %26 = phi ptr [ %.pre, %.preheader61.lr.ph ], [ %54, %._crit_edge68 ]
  %indvars.iv88 = phi i64 [ 0, %.preheader61.lr.ph ], [ %.pre102, %._crit_edge68 ]
  %.070 = phi i32 [ 0, %.preheader61.lr.ph ], [ %.1.lcssa, %._crit_edge68 ]
  %27 = getelementptr inbounds i32, ptr %26, i64 %indvars.iv88
  %28 = load i32, ptr %27, align 4, !tbaa !17
  %.not84 = icmp eq i32 %28, 0
  %.pre102 = add nuw nsw i64 %indvars.iv88, 1
  br i1 %.not84, label %._crit_edge68, label %.lr.ph67

.lr.ph67:                                         ; preds = %.preheader61
  %29 = trunc nuw i64 %.pre102 to i32
  %30 = trunc nuw i64 %indvars.iv88 to i32
  br label %31

31:                                               ; preds = %.lr.ph67, %46
  %indvars.iv = phi i64 [ 0, %.lr.ph67 ], [ %indvars.iv.next, %46 ]
  %.166 = phi i32 [ %.070, %.lr.ph67 ], [ %47, %46 ]
  %32 = load ptr, ptr %24, align 8, !tbaa !18
  %33 = getelementptr inbounds ptr, ptr %32, i64 %indvars.iv88
  %34 = load ptr, ptr %33, align 8, !tbaa !19
  %35 = getelementptr inbounds i32, ptr %34, i64 %indvars.iv
  %36 = load i32, ptr %35, align 4, !tbaa !17
  %37 = add i32 %36, 1
  %38 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.70, i32 noundef %29, i32 noundef %37) #3
  %39 = load ptr, ptr %24, align 8, !tbaa !18
  %40 = getelementptr inbounds ptr, ptr %39, i64 %indvars.iv88
  %41 = load ptr, ptr %40, align 8, !tbaa !19
  %42 = getelementptr inbounds i32, ptr %41, i64 %indvars.iv
  %43 = load i32, ptr %42, align 4, !tbaa !17
  %44 = tail call i32 @isArc(ptr noundef nonnull %1, i32 noundef %30, i32 noundef %43)
  %.not60 = icmp eq i32 %44, 0
  br i1 %.not60, label %45, label %46

45:                                               ; preds = %31
  tail call void @__assert_fail(ptr noundef nonnull @.str.71, ptr noundef nonnull @.str.1, i32 noundef 2277, ptr noundef nonnull @__PRETTY_FUNCTION__.write_graph_arclist_to_file) #4
  unreachable

46:                                               ; preds = %31
  %47 = add i32 %.166, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %48 = load ptr, ptr %23, align 8, !tbaa !16
  %49 = getelementptr inbounds i32, ptr %48, i64 %indvars.iv88
  %50 = load i32, ptr %49, align 4, !tbaa !17
  %51 = zext i32 %50 to i64
  %52 = icmp ult i64 %indvars.iv.next, %51
  br i1 %52, label %31, label %._crit_edge68.loopexit, !llvm.loop !20

._crit_edge68.loopexit:                           ; preds = %46
  %.pre97 = load i32, ptr %1, align 8, !tbaa !11
  br label %._crit_edge68

._crit_edge68:                                    ; preds = %.preheader61, %._crit_edge68.loopexit
  %53 = phi i32 [ %.pre97, %._crit_edge68.loopexit ], [ %25, %.preheader61 ]
  %54 = phi ptr [ %48, %._crit_edge68.loopexit ], [ %26, %.preheader61 ]
  %.1.lcssa = phi i32 [ %47, %._crit_edge68.loopexit ], [ %.070, %.preheader61 ]
  %55 = zext i32 %53 to i64
  %56 = icmp ult i64 %.pre102, %55
  br i1 %56, label %.preheader61, label %._crit_edge71, !llvm.loop !21

._crit_edge71:                                    ; preds = %._crit_edge68, %20
  %.0.lcssa = phi i32 [ 0, %20 ], [ %.1.lcssa, %._crit_edge68 ]
  %57 = getelementptr inbounds i8, ptr %1, i64 12
  %58 = load i32, ptr %57, align 4, !tbaa !22
  %59 = icmp eq i32 %.0.lcssa, %58
  br i1 %59, label %99, label %60

60:                                               ; preds = %._crit_edge71
  tail call void @__assert_fail(ptr noundef nonnull @.str.72, ptr noundef nonnull @.str.1, i32 noundef 2280, ptr noundef nonnull @__PRETTY_FUNCTION__.write_graph_arclist_to_file) #4
  unreachable

61:                                               ; preds = %._crit_edge
  %62 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.73) #3
  %63 = load i32, ptr %1, align 8, !tbaa !11
  %.not85 = icmp eq i32 %63, 0
  br i1 %.not85, label %._crit_edge80, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %61
  %64 = getelementptr inbounds i8, ptr %1, i64 64
  %65 = getelementptr inbounds i8, ptr %1, i64 72
  %.pre98 = load ptr, ptr %64, align 8, !tbaa !23
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge76
  %66 = phi i32 [ %63, %.preheader.lr.ph ], [ %90, %._crit_edge76 ]
  %67 = phi ptr [ %.pre98, %.preheader.lr.ph ], [ %91, %._crit_edge76 ]
  %68 = phi ptr [ %.pre98, %.preheader.lr.ph ], [ %92, %._crit_edge76 ]
  %indvars.iv94 = phi i64 [ 0, %.preheader.lr.ph ], [ %.pre101, %._crit_edge76 ]
  %.279 = phi i32 [ 0, %.preheader.lr.ph ], [ %.3.lcssa, %._crit_edge76 ]
  %69 = getelementptr inbounds i32, ptr %68, i64 %indvars.iv94
  %70 = load i32, ptr %69, align 4, !tbaa !17
  %.not86 = icmp eq i32 %70, 0
  %.pre101 = add nuw nsw i64 %indvars.iv94, 1
  br i1 %.not86, label %._crit_edge76, label %.lr.ph75

.lr.ph75:                                         ; preds = %.preheader
  %71 = trunc nuw i64 %.pre101 to i32
  br label %72

72:                                               ; preds = %.lr.ph75, %84
  %73 = phi ptr [ %67, %.lr.ph75 ], [ %85, %84 ]
  %indvars.iv91 = phi i64 [ 0, %.lr.ph75 ], [ %indvars.iv.next92, %84 ]
  %.374 = phi i32 [ %.279, %.lr.ph75 ], [ %.4, %84 ]
  %74 = load ptr, ptr %65, align 8, !tbaa !24
  %75 = getelementptr inbounds ptr, ptr %74, i64 %indvars.iv94
  %76 = load ptr, ptr %75, align 8, !tbaa !19
  %77 = getelementptr inbounds i32, ptr %76, i64 %indvars.iv91
  %78 = load i32, ptr %77, align 4, !tbaa !17
  %79 = zext i32 %78 to i64
  %.not59 = icmp ugt i64 %indvars.iv94, %79
  br i1 %.not59, label %84, label %80

80:                                               ; preds = %72
  %81 = add i32 %.374, 1
  %82 = add i32 %78, 1
  %83 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.70, i32 noundef %71, i32 noundef %82) #3
  %.pre99 = load ptr, ptr %64, align 8, !tbaa !23
  br label %84

84:                                               ; preds = %72, %80
  %85 = phi ptr [ %.pre99, %80 ], [ %73, %72 ]
  %.4 = phi i32 [ %81, %80 ], [ %.374, %72 ]
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %86 = getelementptr inbounds i32, ptr %85, i64 %indvars.iv94
  %87 = load i32, ptr %86, align 4, !tbaa !17
  %88 = zext i32 %87 to i64
  %89 = icmp ult i64 %indvars.iv.next92, %88
  br i1 %89, label %72, label %._crit_edge76.loopexit, !llvm.loop !25

._crit_edge76.loopexit:                           ; preds = %84
  %.pre100 = load i32, ptr %1, align 8, !tbaa !11
  br label %._crit_edge76

._crit_edge76:                                    ; preds = %.preheader, %._crit_edge76.loopexit
  %90 = phi i32 [ %.pre100, %._crit_edge76.loopexit ], [ %66, %.preheader ]
  %91 = phi ptr [ %85, %._crit_edge76.loopexit ], [ %67, %.preheader ]
  %92 = phi ptr [ %85, %._crit_edge76.loopexit ], [ %68, %.preheader ]
  %.3.lcssa = phi i32 [ %.4, %._crit_edge76.loopexit ], [ %.279, %.preheader ]
  %93 = zext i32 %90 to i64
  %94 = icmp ult i64 %.pre101, %93
  br i1 %94, label %.preheader, label %._crit_edge80, !llvm.loop !26

._crit_edge80:                                    ; preds = %._crit_edge76, %61
  %.2.lcssa = phi i32 [ 0, %61 ], [ %.3.lcssa, %._crit_edge76 ]
  %95 = getelementptr inbounds i8, ptr %1, i64 56
  %96 = load i32, ptr %95, align 8, !tbaa !27
  %97 = icmp eq i32 %.2.lcssa, %96
  br i1 %97, label %99, label %98

98:                                               ; preds = %._crit_edge80
  tail call void @__assert_fail(ptr noundef nonnull @.str.74, ptr noundef nonnull @.str.1, i32 noundef 2292, ptr noundef nonnull @__PRETTY_FUNCTION__.write_graph_arclist_to_file) #4
  unreachable

99:                                               ; preds = %._crit_edge80, %._crit_edge71
  ret void
}

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 = { 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 = { nofree 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 #3 = { nounwind }
attributes #4 = { 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, !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 0}
!12 = !{!6, !7, i64 88}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!6, !7, i64 4}
!16 = !{!6, !10, i64 16}
!17 = !{!7, !7, i64 0}
!18 = !{!6, !10, i64 24}
!19 = !{!10, !10, i64 0}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = !{!6, !7, i64 12}
!23 = !{!6, !10, i64 64}
!24 = !{!6, !10, i64 72}
!25 = distinct !{!25, !14}
!26 = distinct !{!26, !14}
!27 = !{!6, !7, i64 56}


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