; LLVM IR from Dev-XYS/Algorithms :: 2-Satisfiability (main)

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

@V = external dso_local global [2010 x %struct.vertex], align 16
@ivc = external dso_local global i32, align 4
@iec = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z8add_edgeii(i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3DFSi(i32 noundef) #1

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca [10 x i8], align 1
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 10, ptr %5) #5
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @ivc, ptr noundef @iec)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %11

11:                                               ; preds = %105, %0
  %12 = load i32, ptr %6, align 4, !tbaa !5
  %13 = load i32, ptr @iec, align 4, !tbaa !5
  %14 = icmp slt i32 %12, %13
  br i1 %14, label %16, label %15

15:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %108

16:                                               ; preds = %11
  %17 = getelementptr inbounds [10 x i8], ptr %5, i64 0, i64 0
  %18 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %17)
  %19 = getelementptr inbounds [10 x i8], ptr %5, i64 0, i64 0
  %20 = load i8, ptr %19, align 1, !tbaa !9
  %21 = sext i8 %20 to i32
  switch i32 %21, label %104 [
    i32 65, label %22
    i32 79, label %44
    i32 88, label %66
  ]

22:                                               ; preds = %16
  %23 = load i32, ptr %4, align 4, !tbaa !5
  %24 = icmp eq i32 %23, 0
  br i1 %24, label %25, label %34

25:                                               ; preds = %22
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = load i32, ptr %3, align 4, !tbaa !5
  %28 = load i32, ptr @ivc, align 4, !tbaa !5
  %29 = add nsw i32 %27, %28
  call void @_Z8add_edgeii(i32 noundef %26, i32 noundef %29)
  %30 = load i32, ptr %3, align 4, !tbaa !5
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = load i32, ptr @ivc, align 4, !tbaa !5
  %33 = add nsw i32 %31, %32
  call void @_Z8add_edgeii(i32 noundef %30, i32 noundef %33)
  br label %43

34:                                               ; preds = %22
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = load i32, ptr @ivc, align 4, !tbaa !5
  %37 = add nsw i32 %35, %36
  %38 = load i32, ptr %2, align 4, !tbaa !5
  call void @_Z8add_edgeii(i32 noundef %37, i32 noundef %38)
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = load i32, ptr @ivc, align 4, !tbaa !5
  %41 = add nsw i32 %39, %40
  %42 = load i32, ptr %3, align 4, !tbaa !5
  call void @_Z8add_edgeii(i32 noundef %41, i32 noundef %42)
  br label %43

43:                                               ; preds = %34, %25
  br label %104

44:                                               ; preds = %16
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %47, label %56

47:                                               ; preds = %44
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = load i32, ptr @ivc, align 4, !tbaa !5
  %51 = add nsw i32 %49, %50
  call void @_Z8add_edgeii(i32 noundef %48, i32 noundef %51)
  %52 = load i32, ptr %3, align 4, !tbaa !5
  %53 = load i32, ptr %3, align 4, !tbaa !5
  %54 = load i32, ptr @ivc, align 4, !tbaa !5
  %55 = add nsw i32 %53, %54
  call void @_Z8add_edgeii(i32 noundef %52, i32 noundef %55)
  br label %65

56:                                               ; preds = %44
  %57 = load i32, ptr %2, align 4, !tbaa !5
  %58 = load i32, ptr @ivc, align 4, !tbaa !5
  %59 = add nsw i32 %57, %58
  %60 = load i32, ptr %3, align 4, !tbaa !5
  call void @_Z8add_edgeii(i32 noundef %59, i32 noundef %60)
  %61 = load i32, ptr %3, align 4, !tbaa !5
  %62 = load i32, ptr @ivc, align 4, !tbaa !5
  %63 = add nsw i32 %61, %62
  %64 = load i32, ptr %2, align 4, !tbaa !5
  call void @_Z8add_edgeii(i32 noundef %63, i32 noundef %64)
  br label %65

65:                                               ; preds = %56, %47
  br label %104

66:                                               ; preds = %16
  %67 = load i32, ptr %4, align 4, !tbaa !5
  %68 = icmp eq i32 %67, 0
  br i1 %68, label %69, label %86

69:                                               ; preds = %66
  %70 = load i32, ptr %2, align 4, !tbaa !5
  %71 = load i32, ptr %3, align 4, !tbaa !5
  call void @_Z8add_edgeii(i32 noundef %70, i32 noundef %71)
  %72 = load i32, ptr %3, align 4, !tbaa !5
  %73 = load i32, ptr %2, align 4, !tbaa !5
  call void @_Z8add_edgeii(i32 noundef %72, i32 noundef %73)
  %74 = load i32, ptr %2, align 4, !tbaa !5
  %75 = load i32, ptr @ivc, align 4, !tbaa !5
  %76 = add nsw i32 %74, %75
  %77 = load i32, ptr %3, align 4, !tbaa !5
  %78 = load i32, ptr @ivc, align 4, !tbaa !5
  %79 = add nsw i32 %77, %78
  call void @_Z8add_edgeii(i32 noundef %76, i32 noundef %79)
  %80 = load i32, ptr %3, align 4, !tbaa !5
  %81 = load i32, ptr @ivc, align 4, !tbaa !5
  %82 = add nsw i32 %80, %81
  %83 = load i32, ptr %2, align 4, !tbaa !5
  %84 = load i32, ptr @ivc, align 4, !tbaa !5
  %85 = add nsw i32 %83, %84
  call void @_Z8add_edgeii(i32 noundef %82, i32 noundef %85)
  br label %103

86:                                               ; preds = %66
  %87 = load i32, ptr %2, align 4, !tbaa !5
  %88 = load i32, ptr %3, align 4, !tbaa !5
  %89 = load i32, ptr @ivc, align 4, !tbaa !5
  %90 = add nsw i32 %88, %89
  call void @_Z8add_edgeii(i32 noundef %87, i32 noundef %90)
  %91 = load i32, ptr %3, align 4, !tbaa !5
  %92 = load i32, ptr %2, align 4, !tbaa !5
  %93 = load i32, ptr @ivc, align 4, !tbaa !5
  %94 = add nsw i32 %92, %93
  call void @_Z8add_edgeii(i32 noundef %91, i32 noundef %94)
  %95 = load i32, ptr %2, align 4, !tbaa !5
  %96 = load i32, ptr @ivc, align 4, !tbaa !5
  %97 = add nsw i32 %95, %96
  %98 = load i32, ptr %3, align 4, !tbaa !5
  call void @_Z8add_edgeii(i32 noundef %97, i32 noundef %98)
  %99 = load i32, ptr %3, align 4, !tbaa !5
  %100 = load i32, ptr @ivc, align 4, !tbaa !5
  %101 = add nsw i32 %99, %100
  %102 = load i32, ptr %2, align 4, !tbaa !5
  call void @_Z8add_edgeii(i32 noundef %101, i32 noundef %102)
  br label %103

103:                                              ; preds = %86, %69
  br label %104

104:                                              ; preds = %103, %65, %43, %16
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %6, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %6, align 4, !tbaa !5
  br label %11, !llvm.loop !10

108:                                              ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %109 = load i32, ptr @ivc, align 4, !tbaa !5
  %110 = mul nsw i32 %109, 2
  %111 = sub nsw i32 %110, 1
  store i32 %111, ptr %7, align 4, !tbaa !5
  br label %112

112:                                              ; preds = %126, %108
  %113 = load i32, ptr %7, align 4, !tbaa !5
  %114 = icmp sge i32 %113, 0
  br i1 %114, label %116, label %115

115:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %129

116:                                              ; preds = %112
  %117 = load i32, ptr %7, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [2010 x %struct.vertex], ptr @V, i64 0, i64 %118
  %120 = getelementptr inbounds %struct.vertex, ptr %119, i32 0, i32 1
  %121 = load i32, ptr %120, align 4, !tbaa !12
  %122 = icmp eq i32 %121, 0
  br i1 %122, label %123, label %125

123:                                              ; preds = %116
  %124 = load i32, ptr %7, align 4, !tbaa !5
  call void @_Z3DFSi(i32 noundef %124)
  br label %125

125:                                              ; preds = %123, %116
  br label %126

126:                                              ; preds = %125
  %127 = load i32, ptr %7, align 4, !tbaa !5
  %128 = add nsw i32 %127, -1
  store i32 %128, ptr %7, align 4, !tbaa !5
  br label %112, !llvm.loop !14

129:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %130

130:                                              ; preds = %152, %129
  %131 = load i32, ptr %8, align 4, !tbaa !5
  %132 = load i32, ptr @ivc, align 4, !tbaa !5
  %133 = icmp slt i32 %131, %132
  br i1 %133, label %135, label %134

134:                                              ; preds = %130
  store i32 9, ptr %9, align 4
  br label %155

135:                                              ; preds = %130
  %136 = load i32, ptr %8, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [2010 x %struct.vertex], ptr @V, i64 0, i64 %137
  %139 = getelementptr inbounds %struct.vertex, ptr %138, i32 0, i32 3
  %140 = load i32, ptr %139, align 4, !tbaa !15
  %141 = load i32, ptr %8, align 4, !tbaa !5
  %142 = load i32, ptr @ivc, align 4, !tbaa !5
  %143 = add nsw i32 %141, %142
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [2010 x %struct.vertex], ptr @V, i64 0, i64 %144
  %146 = getelementptr inbounds %struct.vertex, ptr %145, i32 0, i32 3
  %147 = load i32, ptr %146, align 4, !tbaa !15
  %148 = icmp eq i32 %140, %147
  br i1 %148, label %149, label %151

149:                                              ; preds = %135
  %150 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  br label %155

151:                                              ; preds = %135
  br label %152

152:                                              ; preds = %151
  %153 = load i32, ptr %8, align 4, !tbaa !5
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %8, align 4, !tbaa !5
  br label %130, !llvm.loop !16

155:                                              ; preds = %149, %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %156 = load i32, ptr %9, align 4
  switch i32 %156, label %159 [
    i32 9, label %157
  ]

157:                                              ; preds = %155
  %158 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  br label %159

159:                                              ; preds = %157, %155
  call void @llvm.lifetime.end.p0(i64 10, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %160 = load i32, ptr %1, align 4
  ret i32 %160
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #4

declare i32 @printf(ptr noundef, ...) #4

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress norecurse 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 = { "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 #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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !6, i64 4}
!13 = !{!"_ZTS6vertex", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!14 = distinct !{!14, !11}
!15 = !{!13, !6, i64 12}
!16 = distinct !{!16, !11}


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

%struct.vertex = type { i32, i32, i32, i32 }

@V = external dso_local local_unnamed_addr global [2010 x %struct.vertex], align 16
@ivc = external dso_local global i32, align 4
@iec = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z8add_edgeii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3DFSi(i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca [10 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 10, ptr nonnull %4) #5
  %5 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @ivc, ptr noundef nonnull @iec)
  %6 = load i32, ptr @iec, align 4, !tbaa !5
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %81, %0
  %8 = load i32, ptr @ivc, align 4, !tbaa !5
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.lr.ph21.preheader, label %.critedge

.lr.ph21.preheader:                               ; preds = %._crit_edge
  %10 = shl nuw i32 %8, 1
  %11 = zext i32 %10 to i64
  br label %.lr.ph21

.lr.ph:                                           ; preds = %0, %81
  %.01417 = phi i32 [ %82, %81 ], [ 0, %0 ]
  %12 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %13 = load i8, ptr %4, align 1, !tbaa !9
  switch i8 %13, label %81 [
    i8 65, label %14
    i8 79, label %32
    i8 88, label %48
  ]

14:                                               ; preds = %.lr.ph
  %15 = load i32, ptr %3, align 4, !tbaa !5
  %16 = icmp eq i32 %15, 0
  %17 = load i32, ptr %1, align 4, !tbaa !5
  br i1 %16, label %18, label %26

18:                                               ; preds = %14
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = load i32, ptr @ivc, align 4, !tbaa !5
  %21 = add nsw i32 %20, %19
  call void @_Z8add_edgeii(i32 noundef %17, i32 noundef %21)
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = load i32, ptr %1, align 4, !tbaa !5
  %24 = load i32, ptr @ivc, align 4, !tbaa !5
  %25 = add nsw i32 %24, %23
  call void @_Z8add_edgeii(i32 noundef %22, i32 noundef %25)
  br label %81

26:                                               ; preds = %14
  %27 = load i32, ptr @ivc, align 4, !tbaa !5
  %28 = add nsw i32 %27, %17
  call void @_Z8add_edgeii(i32 noundef %28, i32 noundef %17)
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = load i32, ptr @ivc, align 4, !tbaa !5
  %31 = add nsw i32 %30, %29
  call void @_Z8add_edgeii(i32 noundef %31, i32 noundef %29)
  br label %81

32:                                               ; preds = %.lr.ph
  %33 = load i32, ptr %3, align 4, !tbaa !5
  %34 = icmp eq i32 %33, 0
  %35 = load i32, ptr %1, align 4, !tbaa !5
  %36 = load i32, ptr @ivc, align 4, !tbaa !5
  %37 = add nsw i32 %36, %35
  br i1 %34, label %38, label %42

38:                                               ; preds = %32
  call void @_Z8add_edgeii(i32 noundef %35, i32 noundef %37)
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = load i32, ptr @ivc, align 4, !tbaa !5
  %41 = add nsw i32 %40, %39
  call void @_Z8add_edgeii(i32 noundef %39, i32 noundef %41)
  br label %81

42:                                               ; preds = %32
  %43 = load i32, ptr %2, align 4, !tbaa !5
  call void @_Z8add_edgeii(i32 noundef %37, i32 noundef %43)
  %44 = load i32, ptr %2, align 4, !tbaa !5
  %45 = load i32, ptr @ivc, align 4, !tbaa !5
  %46 = add nsw i32 %45, %44
  %47 = load i32, ptr %1, align 4, !tbaa !5
  call void @_Z8add_edgeii(i32 noundef %46, i32 noundef %47)
  br label %81

48:                                               ; preds = %.lr.ph
  %49 = load i32, ptr %3, align 4, !tbaa !5
  %50 = icmp eq i32 %49, 0
  %51 = load i32, ptr %1, align 4, !tbaa !5
  %52 = load i32, ptr %2, align 4, !tbaa !5
  br i1 %50, label %53, label %66

53:                                               ; preds = %48
  call void @_Z8add_edgeii(i32 noundef %51, i32 noundef %52)
  %54 = load i32, ptr %2, align 4, !tbaa !5
  %55 = load i32, ptr %1, align 4, !tbaa !5
  call void @_Z8add_edgeii(i32 noundef %54, i32 noundef %55)
  %56 = load i32, ptr %1, align 4, !tbaa !5
  %57 = load i32, ptr @ivc, align 4, !tbaa !5
  %58 = add nsw i32 %57, %56
  %59 = load i32, ptr %2, align 4, !tbaa !5
  %60 = add nsw i32 %59, %57
  call void @_Z8add_edgeii(i32 noundef %58, i32 noundef %60)
  %61 = load i32, ptr %2, align 4, !tbaa !5
  %62 = load i32, ptr @ivc, align 4, !tbaa !5
  %63 = add nsw i32 %62, %61
  %64 = load i32, ptr %1, align 4, !tbaa !5
  %65 = add nsw i32 %64, %62
  call void @_Z8add_edgeii(i32 noundef %63, i32 noundef %65)
  br label %81

66:                                               ; preds = %48
  %67 = load i32, ptr @ivc, align 4, !tbaa !5
  %68 = add nsw i32 %67, %52
  call void @_Z8add_edgeii(i32 noundef %51, i32 noundef %68)
  %69 = load i32, ptr %2, align 4, !tbaa !5
  %70 = load i32, ptr %1, align 4, !tbaa !5
  %71 = load i32, ptr @ivc, align 4, !tbaa !5
  %72 = add nsw i32 %71, %70
  call void @_Z8add_edgeii(i32 noundef %69, i32 noundef %72)
  %73 = load i32, ptr %1, align 4, !tbaa !5
  %74 = load i32, ptr @ivc, align 4, !tbaa !5
  %75 = add nsw i32 %74, %73
  %76 = load i32, ptr %2, align 4, !tbaa !5
  call void @_Z8add_edgeii(i32 noundef %75, i32 noundef %76)
  %77 = load i32, ptr %2, align 4, !tbaa !5
  %78 = load i32, ptr @ivc, align 4, !tbaa !5
  %79 = add nsw i32 %78, %77
  %80 = load i32, ptr %1, align 4, !tbaa !5
  call void @_Z8add_edgeii(i32 noundef %79, i32 noundef %80)
  br label %81

81:                                               ; preds = %.lr.ph, %26, %18, %42, %38, %66, %53
  %82 = add nuw nsw i32 %.01417, 1
  %83 = load i32, ptr @iec, align 4, !tbaa !5
  %84 = icmp slt i32 %82, %83
  br i1 %84, label %.lr.ph, label %._crit_edge, !llvm.loop !10

.preheader:                                       ; preds = %91
  %.pre = load i32, ptr @ivc, align 4, !tbaa !5
  %.not22 = icmp sgt i32 %.pre, 0
  br i1 %.not22, label %.lr.ph24.preheader, label %.critedge

.lr.ph24.preheader:                               ; preds = %.preheader
  %85 = zext nneg i32 %.pre to i64
  %wide.trip.count = zext nneg i32 %.pre to i64
  br label %.lr.ph24

.lr.ph21:                                         ; preds = %.lr.ph21.preheader, %91
  %indvars.iv = phi i64 [ %11, %.lr.ph21.preheader ], [ %indvars.iv.next, %91 ]
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %86 = and i64 %indvars.iv.next, 4294967295
  %87 = getelementptr inbounds [2010 x %struct.vertex], ptr @V, i64 0, i64 %86, i32 1
  %88 = load i32, ptr %87, align 4, !tbaa !12
  %89 = icmp eq i32 %88, 0
  br i1 %89, label %90, label %91

90:                                               ; preds = %.lr.ph21
  %indvars = trunc i64 %indvars.iv.next to i32
  call void @_Z3DFSi(i32 noundef %indvars)
  br label %91

91:                                               ; preds = %.lr.ph21, %90
  %92 = trunc nuw i64 %indvars.iv to i32
  %93 = icmp sgt i32 %92, 1
  br i1 %93, label %.lr.ph21, label %.preheader, !llvm.loop !14

94:                                               ; preds = %.lr.ph24
  %indvars.iv.next27 = add nuw nsw i64 %indvars.iv26, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next27, %wide.trip.count
  br i1 %exitcond.not, label %.critedge, label %.lr.ph24, !llvm.loop !15

.lr.ph24:                                         ; preds = %.lr.ph24.preheader, %94
  %indvars.iv26 = phi i64 [ 0, %.lr.ph24.preheader ], [ %indvars.iv.next27, %94 ]
  %95 = getelementptr inbounds [2010 x %struct.vertex], ptr @V, i64 0, i64 %indvars.iv26, i32 3
  %96 = load i32, ptr %95, align 4, !tbaa !16
  %97 = add nuw nsw i64 %indvars.iv26, %85
  %98 = getelementptr inbounds [2010 x %struct.vertex], ptr @V, i64 0, i64 %97, i32 3
  %99 = load i32, ptr %98, align 4, !tbaa !16
  %100 = icmp eq i32 %96, %99
  br i1 %100, label %.critedge, label %94

.critedge:                                        ; preds = %94, %.lr.ph24, %.preheader, %._crit_edge
  %.str.2.sink = phi ptr [ @.str.3, %._crit_edge ], [ @.str.3, %.preheader ], [ @.str.2, %.lr.ph24 ], [ @.str.3, %94 ]
  %101 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2.sink)
  call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret i32 0
}

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress norecurse 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 = { 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 #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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !6, i64 4}
!13 = !{!"_ZTS6vertex", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}
!16 = !{!13, !6, i64 12}


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