; LLVM IR from yourtion/LearningMasteringAlgorithms-C :: Example/bfs (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.Graph_ = type { i32, i32, ptr, ptr, %struct.List_ }
%struct.List_ = type { i32, ptr, ptr, ptr, ptr }
%struct.BfsVertex_ = type { ptr, i32, i32 }
%struct.ListElmt_ = type { ptr, ptr }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@stdout = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %struct.Graph_, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %struct.BfsVertex_, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %struct.List_, align 8
  %11 = alloca ptr, align 8
  %12 = alloca [2 x i8], align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 2, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @graph_init(ptr noundef %6, ptr noundef @match_netid, ptr noundef @destroy_netid)
  %15 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %15, ptr %7, align 8, !tbaa !9
  %16 = icmp eq ptr %15, null
  br i1 %16, label %17, label %18

17:                                               ; preds = %2
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

18:                                               ; preds = %2
  %19 = call noalias ptr @malloc(i64 noundef 2) #6
  %20 = load ptr, ptr %7, align 8, !tbaa !9
  %21 = getelementptr inbounds %struct.BfsVertex_, ptr %20, i32 0, i32 0
  store ptr %19, ptr %21, align 8, !tbaa !11
  %22 = icmp eq ptr %19, null
  br i1 %22, label %23, label %24

23:                                               ; preds = %18
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

24:                                               ; preds = %18
  %25 = load ptr, ptr %7, align 8, !tbaa !9
  %26 = getelementptr inbounds %struct.BfsVertex_, ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  %28 = call ptr @strcpy(ptr noundef %27, ptr noundef @.str) #5
  %29 = load ptr, ptr @stdout, align 8, !tbaa !9
  %30 = load ptr, ptr %7, align 8, !tbaa !9
  %31 = getelementptr inbounds %struct.BfsVertex_, ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef @.str.1, ptr noundef %32) #5
  %34 = load ptr, ptr %7, align 8, !tbaa !9
  %35 = call i32 @graph_ins_vertex(ptr noundef %6, ptr noundef %34)
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %38

37:                                               ; preds = %24
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

38:                                               ; preds = %24
  %39 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %39, ptr %7, align 8, !tbaa !9
  %40 = icmp eq ptr %39, null
  br i1 %40, label %41, label %42

41:                                               ; preds = %38
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

42:                                               ; preds = %38
  %43 = call noalias ptr @malloc(i64 noundef 2) #6
  %44 = load ptr, ptr %7, align 8, !tbaa !9
  %45 = getelementptr inbounds %struct.BfsVertex_, ptr %44, i32 0, i32 0
  store ptr %43, ptr %45, align 8, !tbaa !11
  %46 = icmp eq ptr %43, null
  br i1 %46, label %47, label %48

47:                                               ; preds = %42
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

48:                                               ; preds = %42
  %49 = load ptr, ptr %7, align 8, !tbaa !9
  %50 = getelementptr inbounds %struct.BfsVertex_, ptr %49, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8, !tbaa !11
  %52 = call ptr @strcpy(ptr noundef %51, ptr noundef @.str.2) #5
  %53 = load ptr, ptr @stdout, align 8, !tbaa !9
  %54 = load ptr, ptr %7, align 8, !tbaa !9
  %55 = getelementptr inbounds %struct.BfsVertex_, ptr %54, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8, !tbaa !11
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef @.str.1, ptr noundef %56) #5
  %58 = load ptr, ptr %7, align 8, !tbaa !9
  %59 = call i32 @graph_ins_vertex(ptr noundef %6, ptr noundef %58)
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %62

61:                                               ; preds = %48
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

62:                                               ; preds = %48
  %63 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %63, ptr %7, align 8, !tbaa !9
  %64 = icmp eq ptr %63, null
  br i1 %64, label %65, label %66

65:                                               ; preds = %62
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

66:                                               ; preds = %62
  %67 = call noalias ptr @malloc(i64 noundef 2) #6
  %68 = load ptr, ptr %7, align 8, !tbaa !9
  %69 = getelementptr inbounds %struct.BfsVertex_, ptr %68, i32 0, i32 0
  store ptr %67, ptr %69, align 8, !tbaa !11
  %70 = icmp eq ptr %67, null
  br i1 %70, label %71, label %72

71:                                               ; preds = %66
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

72:                                               ; preds = %66
  %73 = load ptr, ptr %7, align 8, !tbaa !9
  %74 = getelementptr inbounds %struct.BfsVertex_, ptr %73, i32 0, i32 0
  %75 = load ptr, ptr %74, align 8, !tbaa !11
  %76 = call ptr @strcpy(ptr noundef %75, ptr noundef @.str.3) #5
  %77 = load ptr, ptr @stdout, align 8, !tbaa !9
  %78 = load ptr, ptr %7, align 8, !tbaa !9
  %79 = getelementptr inbounds %struct.BfsVertex_, ptr %78, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !11
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef @.str.1, ptr noundef %80) #5
  %82 = load ptr, ptr %7, align 8, !tbaa !9
  %83 = call i32 @graph_ins_vertex(ptr noundef %6, ptr noundef %82)
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %72
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

86:                                               ; preds = %72
  %87 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %87, ptr %7, align 8, !tbaa !9
  %88 = icmp eq ptr %87, null
  br i1 %88, label %89, label %90

89:                                               ; preds = %86
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

90:                                               ; preds = %86
  %91 = call noalias ptr @malloc(i64 noundef 2) #6
  %92 = load ptr, ptr %7, align 8, !tbaa !9
  %93 = getelementptr inbounds %struct.BfsVertex_, ptr %92, i32 0, i32 0
  store ptr %91, ptr %93, align 8, !tbaa !11
  %94 = icmp eq ptr %91, null
  br i1 %94, label %95, label %96

95:                                               ; preds = %90
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

96:                                               ; preds = %90
  %97 = load ptr, ptr %7, align 8, !tbaa !9
  %98 = getelementptr inbounds %struct.BfsVertex_, ptr %97, i32 0, i32 0
  %99 = load ptr, ptr %98, align 8, !tbaa !11
  %100 = call ptr @strcpy(ptr noundef %99, ptr noundef @.str.4) #5
  %101 = load ptr, ptr @stdout, align 8, !tbaa !9
  %102 = load ptr, ptr %7, align 8, !tbaa !9
  %103 = getelementptr inbounds %struct.BfsVertex_, ptr %102, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8, !tbaa !11
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef @.str.1, ptr noundef %104) #5
  %106 = load ptr, ptr %7, align 8, !tbaa !9
  %107 = call i32 @graph_ins_vertex(ptr noundef %6, ptr noundef %106)
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %110

109:                                              ; preds = %96
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

110:                                              ; preds = %96
  %111 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %111, ptr %7, align 8, !tbaa !9
  %112 = icmp eq ptr %111, null
  br i1 %112, label %113, label %114

113:                                              ; preds = %110
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

114:                                              ; preds = %110
  %115 = call noalias ptr @malloc(i64 noundef 2) #6
  %116 = load ptr, ptr %7, align 8, !tbaa !9
  %117 = getelementptr inbounds %struct.BfsVertex_, ptr %116, i32 0, i32 0
  store ptr %115, ptr %117, align 8, !tbaa !11
  %118 = icmp eq ptr %115, null
  br i1 %118, label %119, label %120

119:                                              ; preds = %114
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

120:                                              ; preds = %114
  %121 = load ptr, ptr %7, align 8, !tbaa !9
  %122 = getelementptr inbounds %struct.BfsVertex_, ptr %121, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8, !tbaa !11
  %124 = call ptr @strcpy(ptr noundef %123, ptr noundef @.str.5) #5
  %125 = load ptr, ptr @stdout, align 8, !tbaa !9
  %126 = load ptr, ptr %7, align 8, !tbaa !9
  %127 = getelementptr inbounds %struct.BfsVertex_, ptr %126, i32 0, i32 0
  %128 = load ptr, ptr %127, align 8, !tbaa !11
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %125, ptr noundef @.str.1, ptr noundef %128) #5
  %130 = load ptr, ptr %7, align 8, !tbaa !9
  %131 = call i32 @graph_ins_vertex(ptr noundef %6, ptr noundef %130)
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %133, label %134

133:                                              ; preds = %120
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

134:                                              ; preds = %120
  %135 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %135, ptr %7, align 8, !tbaa !9
  %136 = icmp eq ptr %135, null
  br i1 %136, label %137, label %138

137:                                              ; preds = %134
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

138:                                              ; preds = %134
  %139 = call noalias ptr @malloc(i64 noundef 2) #6
  %140 = load ptr, ptr %7, align 8, !tbaa !9
  %141 = getelementptr inbounds %struct.BfsVertex_, ptr %140, i32 0, i32 0
  store ptr %139, ptr %141, align 8, !tbaa !11
  %142 = icmp eq ptr %139, null
  br i1 %142, label %143, label %144

143:                                              ; preds = %138
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

144:                                              ; preds = %138
  %145 = load ptr, ptr %7, align 8, !tbaa !9
  %146 = getelementptr inbounds %struct.BfsVertex_, ptr %145, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8, !tbaa !11
  %148 = call ptr @strcpy(ptr noundef %147, ptr noundef @.str.6) #5
  %149 = load ptr, ptr @stdout, align 8, !tbaa !9
  %150 = load ptr, ptr %7, align 8, !tbaa !9
  %151 = getelementptr inbounds %struct.BfsVertex_, ptr %150, i32 0, i32 0
  %152 = load ptr, ptr %151, align 8, !tbaa !11
  %153 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %149, ptr noundef @.str.1, ptr noundef %152) #5
  %154 = load ptr, ptr %7, align 8, !tbaa !9
  %155 = call i32 @graph_ins_vertex(ptr noundef %6, ptr noundef %154)
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %157, label %158

157:                                              ; preds = %144
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

158:                                              ; preds = %144
  call void @print_graph(ptr noundef %6)
  %159 = getelementptr inbounds [2 x i8], ptr %12, i64 0, i64 0
  %160 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  store ptr %159, ptr %160, align 8, !tbaa !11
  %161 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %161, ptr %9, align 8, !tbaa !9
  %162 = icmp eq ptr %161, null
  br i1 %162, label %163, label %164

163:                                              ; preds = %158
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

164:                                              ; preds = %158
  %165 = call noalias ptr @malloc(i64 noundef 2) #6
  %166 = load ptr, ptr %9, align 8, !tbaa !9
  %167 = getelementptr inbounds %struct.BfsVertex_, ptr %166, i32 0, i32 0
  store ptr %165, ptr %167, align 8, !tbaa !11
  %168 = icmp eq ptr %165, null
  br i1 %168, label %169, label %170

169:                                              ; preds = %164
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

170:                                              ; preds = %164
  %171 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %172 = load ptr, ptr %171, align 8, !tbaa !11
  %173 = call ptr @strcpy(ptr noundef %172, ptr noundef @.str) #5
  %174 = load ptr, ptr %9, align 8, !tbaa !9
  %175 = getelementptr inbounds %struct.BfsVertex_, ptr %174, i32 0, i32 0
  %176 = load ptr, ptr %175, align 8, !tbaa !11
  %177 = call ptr @strcpy(ptr noundef %176, ptr noundef @.str.2) #5
  %178 = load ptr, ptr @stdout, align 8, !tbaa !9
  %179 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %180 = load ptr, ptr %179, align 8, !tbaa !11
  %181 = load ptr, ptr %9, align 8, !tbaa !9
  %182 = getelementptr inbounds %struct.BfsVertex_, ptr %181, i32 0, i32 0
  %183 = load ptr, ptr %182, align 8, !tbaa !11
  %184 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %178, ptr noundef @.str.7, ptr noundef %180, ptr noundef %183) #5
  %185 = load ptr, ptr %9, align 8, !tbaa !9
  %186 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %8, ptr noundef %185)
  %187 = icmp ne i32 %186, 0
  br i1 %187, label %188, label %189

188:                                              ; preds = %170
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

189:                                              ; preds = %170
  call void @print_graph(ptr noundef %6)
  %190 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %190, ptr %9, align 8, !tbaa !9
  %191 = icmp eq ptr %190, null
  br i1 %191, label %192, label %193

192:                                              ; preds = %189
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

193:                                              ; preds = %189
  %194 = call noalias ptr @malloc(i64 noundef 2) #6
  %195 = load ptr, ptr %9, align 8, !tbaa !9
  %196 = getelementptr inbounds %struct.BfsVertex_, ptr %195, i32 0, i32 0
  store ptr %194, ptr %196, align 8, !tbaa !11
  %197 = icmp eq ptr %194, null
  br i1 %197, label %198, label %199

198:                                              ; preds = %193
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

199:                                              ; preds = %193
  %200 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %201 = load ptr, ptr %200, align 8, !tbaa !11
  %202 = call ptr @strcpy(ptr noundef %201, ptr noundef @.str.2) #5
  %203 = load ptr, ptr %9, align 8, !tbaa !9
  %204 = getelementptr inbounds %struct.BfsVertex_, ptr %203, i32 0, i32 0
  %205 = load ptr, ptr %204, align 8, !tbaa !11
  %206 = call ptr @strcpy(ptr noundef %205, ptr noundef @.str) #5
  %207 = load ptr, ptr @stdout, align 8, !tbaa !9
  %208 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %209 = load ptr, ptr %208, align 8, !tbaa !11
  %210 = load ptr, ptr %9, align 8, !tbaa !9
  %211 = getelementptr inbounds %struct.BfsVertex_, ptr %210, i32 0, i32 0
  %212 = load ptr, ptr %211, align 8, !tbaa !11
  %213 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %207, ptr noundef @.str.7, ptr noundef %209, ptr noundef %212) #5
  %214 = load ptr, ptr %9, align 8, !tbaa !9
  %215 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %8, ptr noundef %214)
  %216 = icmp ne i32 %215, 0
  br i1 %216, label %217, label %218

217:                                              ; preds = %199
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

218:                                              ; preds = %199
  call void @print_graph(ptr noundef %6)
  %219 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %219, ptr %9, align 8, !tbaa !9
  %220 = icmp eq ptr %219, null
  br i1 %220, label %221, label %222

221:                                              ; preds = %218
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

222:                                              ; preds = %218
  %223 = call noalias ptr @malloc(i64 noundef 2) #6
  %224 = load ptr, ptr %9, align 8, !tbaa !9
  %225 = getelementptr inbounds %struct.BfsVertex_, ptr %224, i32 0, i32 0
  store ptr %223, ptr %225, align 8, !tbaa !11
  %226 = icmp eq ptr %223, null
  br i1 %226, label %227, label %228

227:                                              ; preds = %222
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

228:                                              ; preds = %222
  %229 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %230 = load ptr, ptr %229, align 8, !tbaa !11
  %231 = call ptr @strcpy(ptr noundef %230, ptr noundef @.str) #5
  %232 = load ptr, ptr %9, align 8, !tbaa !9
  %233 = getelementptr inbounds %struct.BfsVertex_, ptr %232, i32 0, i32 0
  %234 = load ptr, ptr %233, align 8, !tbaa !11
  %235 = call ptr @strcpy(ptr noundef %234, ptr noundef @.str.3) #5
  %236 = load ptr, ptr @stdout, align 8, !tbaa !9
  %237 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %238 = load ptr, ptr %237, align 8, !tbaa !11
  %239 = load ptr, ptr %9, align 8, !tbaa !9
  %240 = getelementptr inbounds %struct.BfsVertex_, ptr %239, i32 0, i32 0
  %241 = load ptr, ptr %240, align 8, !tbaa !11
  %242 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %236, ptr noundef @.str.7, ptr noundef %238, ptr noundef %241) #5
  %243 = load ptr, ptr %9, align 8, !tbaa !9
  %244 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %8, ptr noundef %243)
  %245 = icmp ne i32 %244, 0
  br i1 %245, label %246, label %247

246:                                              ; preds = %228
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

247:                                              ; preds = %228
  call void @print_graph(ptr noundef %6)
  %248 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %248, ptr %9, align 8, !tbaa !9
  %249 = icmp eq ptr %248, null
  br i1 %249, label %250, label %251

250:                                              ; preds = %247
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

251:                                              ; preds = %247
  %252 = call noalias ptr @malloc(i64 noundef 2) #6
  %253 = load ptr, ptr %9, align 8, !tbaa !9
  %254 = getelementptr inbounds %struct.BfsVertex_, ptr %253, i32 0, i32 0
  store ptr %252, ptr %254, align 8, !tbaa !11
  %255 = icmp eq ptr %252, null
  br i1 %255, label %256, label %257

256:                                              ; preds = %251
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

257:                                              ; preds = %251
  %258 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %259 = load ptr, ptr %258, align 8, !tbaa !11
  %260 = call ptr @strcpy(ptr noundef %259, ptr noundef @.str.3) #5
  %261 = load ptr, ptr %9, align 8, !tbaa !9
  %262 = getelementptr inbounds %struct.BfsVertex_, ptr %261, i32 0, i32 0
  %263 = load ptr, ptr %262, align 8, !tbaa !11
  %264 = call ptr @strcpy(ptr noundef %263, ptr noundef @.str) #5
  %265 = load ptr, ptr @stdout, align 8, !tbaa !9
  %266 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %267 = load ptr, ptr %266, align 8, !tbaa !11
  %268 = load ptr, ptr %9, align 8, !tbaa !9
  %269 = getelementptr inbounds %struct.BfsVertex_, ptr %268, i32 0, i32 0
  %270 = load ptr, ptr %269, align 8, !tbaa !11
  %271 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %265, ptr noundef @.str.7, ptr noundef %267, ptr noundef %270) #5
  %272 = load ptr, ptr %9, align 8, !tbaa !9
  %273 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %8, ptr noundef %272)
  %274 = icmp ne i32 %273, 0
  br i1 %274, label %275, label %276

275:                                              ; preds = %257
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

276:                                              ; preds = %257
  call void @print_graph(ptr noundef %6)
  %277 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %277, ptr %9, align 8, !tbaa !9
  %278 = icmp eq ptr %277, null
  br i1 %278, label %279, label %280

279:                                              ; preds = %276
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

280:                                              ; preds = %276
  %281 = call noalias ptr @malloc(i64 noundef 2) #6
  %282 = load ptr, ptr %9, align 8, !tbaa !9
  %283 = getelementptr inbounds %struct.BfsVertex_, ptr %282, i32 0, i32 0
  store ptr %281, ptr %283, align 8, !tbaa !11
  %284 = icmp eq ptr %281, null
  br i1 %284, label %285, label %286

285:                                              ; preds = %280
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

286:                                              ; preds = %280
  %287 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %288 = load ptr, ptr %287, align 8, !tbaa !11
  %289 = call ptr @strcpy(ptr noundef %288, ptr noundef @.str.2) #5
  %290 = load ptr, ptr %9, align 8, !tbaa !9
  %291 = getelementptr inbounds %struct.BfsVertex_, ptr %290, i32 0, i32 0
  %292 = load ptr, ptr %291, align 8, !tbaa !11
  %293 = call ptr @strcpy(ptr noundef %292, ptr noundef @.str.3) #5
  %294 = load ptr, ptr @stdout, align 8, !tbaa !9
  %295 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %296 = load ptr, ptr %295, align 8, !tbaa !11
  %297 = load ptr, ptr %9, align 8, !tbaa !9
  %298 = getelementptr inbounds %struct.BfsVertex_, ptr %297, i32 0, i32 0
  %299 = load ptr, ptr %298, align 8, !tbaa !11
  %300 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %294, ptr noundef @.str.7, ptr noundef %296, ptr noundef %299) #5
  %301 = load ptr, ptr %9, align 8, !tbaa !9
  %302 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %8, ptr noundef %301)
  %303 = icmp ne i32 %302, 0
  br i1 %303, label %304, label %305

304:                                              ; preds = %286
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

305:                                              ; preds = %286
  call void @print_graph(ptr noundef %6)
  %306 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %306, ptr %9, align 8, !tbaa !9
  %307 = icmp eq ptr %306, null
  br i1 %307, label %308, label %309

308:                                              ; preds = %305
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

309:                                              ; preds = %305
  %310 = call noalias ptr @malloc(i64 noundef 2) #6
  %311 = load ptr, ptr %9, align 8, !tbaa !9
  %312 = getelementptr inbounds %struct.BfsVertex_, ptr %311, i32 0, i32 0
  store ptr %310, ptr %312, align 8, !tbaa !11
  %313 = icmp eq ptr %310, null
  br i1 %313, label %314, label %315

314:                                              ; preds = %309
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

315:                                              ; preds = %309
  %316 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %317 = load ptr, ptr %316, align 8, !tbaa !11
  %318 = call ptr @strcpy(ptr noundef %317, ptr noundef @.str.3) #5
  %319 = load ptr, ptr %9, align 8, !tbaa !9
  %320 = getelementptr inbounds %struct.BfsVertex_, ptr %319, i32 0, i32 0
  %321 = load ptr, ptr %320, align 8, !tbaa !11
  %322 = call ptr @strcpy(ptr noundef %321, ptr noundef @.str.2) #5
  %323 = load ptr, ptr @stdout, align 8, !tbaa !9
  %324 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %325 = load ptr, ptr %324, align 8, !tbaa !11
  %326 = load ptr, ptr %9, align 8, !tbaa !9
  %327 = getelementptr inbounds %struct.BfsVertex_, ptr %326, i32 0, i32 0
  %328 = load ptr, ptr %327, align 8, !tbaa !11
  %329 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %323, ptr noundef @.str.7, ptr noundef %325, ptr noundef %328) #5
  %330 = load ptr, ptr %9, align 8, !tbaa !9
  %331 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %8, ptr noundef %330)
  %332 = icmp ne i32 %331, 0
  br i1 %332, label %333, label %334

333:                                              ; preds = %315
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

334:                                              ; preds = %315
  call void @print_graph(ptr noundef %6)
  %335 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %335, ptr %9, align 8, !tbaa !9
  %336 = icmp eq ptr %335, null
  br i1 %336, label %337, label %338

337:                                              ; preds = %334
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

338:                                              ; preds = %334
  %339 = call noalias ptr @malloc(i64 noundef 2) #6
  %340 = load ptr, ptr %9, align 8, !tbaa !9
  %341 = getelementptr inbounds %struct.BfsVertex_, ptr %340, i32 0, i32 0
  store ptr %339, ptr %341, align 8, !tbaa !11
  %342 = icmp eq ptr %339, null
  br i1 %342, label %343, label %344

343:                                              ; preds = %338
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

344:                                              ; preds = %338
  %345 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %346 = load ptr, ptr %345, align 8, !tbaa !11
  %347 = call ptr @strcpy(ptr noundef %346, ptr noundef @.str.2) #5
  %348 = load ptr, ptr %9, align 8, !tbaa !9
  %349 = getelementptr inbounds %struct.BfsVertex_, ptr %348, i32 0, i32 0
  %350 = load ptr, ptr %349, align 8, !tbaa !11
  %351 = call ptr @strcpy(ptr noundef %350, ptr noundef @.str.4) #5
  %352 = load ptr, ptr @stdout, align 8, !tbaa !9
  %353 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %354 = load ptr, ptr %353, align 8, !tbaa !11
  %355 = load ptr, ptr %9, align 8, !tbaa !9
  %356 = getelementptr inbounds %struct.BfsVertex_, ptr %355, i32 0, i32 0
  %357 = load ptr, ptr %356, align 8, !tbaa !11
  %358 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %352, ptr noundef @.str.7, ptr noundef %354, ptr noundef %357) #5
  %359 = load ptr, ptr %9, align 8, !tbaa !9
  %360 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %8, ptr noundef %359)
  %361 = icmp ne i32 %360, 0
  br i1 %361, label %362, label %363

362:                                              ; preds = %344
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

363:                                              ; preds = %344
  call void @print_graph(ptr noundef %6)
  %364 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %364, ptr %9, align 8, !tbaa !9
  %365 = icmp eq ptr %364, null
  br i1 %365, label %366, label %367

366:                                              ; preds = %363
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

367:                                              ; preds = %363
  %368 = call noalias ptr @malloc(i64 noundef 2) #6
  %369 = load ptr, ptr %9, align 8, !tbaa !9
  %370 = getelementptr inbounds %struct.BfsVertex_, ptr %369, i32 0, i32 0
  store ptr %368, ptr %370, align 8, !tbaa !11
  %371 = icmp eq ptr %368, null
  br i1 %371, label %372, label %373

372:                                              ; preds = %367
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

373:                                              ; preds = %367
  %374 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %375 = load ptr, ptr %374, align 8, !tbaa !11
  %376 = call ptr @strcpy(ptr noundef %375, ptr noundef @.str.4) #5
  %377 = load ptr, ptr %9, align 8, !tbaa !9
  %378 = getelementptr inbounds %struct.BfsVertex_, ptr %377, i32 0, i32 0
  %379 = load ptr, ptr %378, align 8, !tbaa !11
  %380 = call ptr @strcpy(ptr noundef %379, ptr noundef @.str.2) #5
  %381 = load ptr, ptr @stdout, align 8, !tbaa !9
  %382 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %383 = load ptr, ptr %382, align 8, !tbaa !11
  %384 = load ptr, ptr %9, align 8, !tbaa !9
  %385 = getelementptr inbounds %struct.BfsVertex_, ptr %384, i32 0, i32 0
  %386 = load ptr, ptr %385, align 8, !tbaa !11
  %387 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %381, ptr noundef @.str.7, ptr noundef %383, ptr noundef %386) #5
  %388 = load ptr, ptr %9, align 8, !tbaa !9
  %389 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %8, ptr noundef %388)
  %390 = icmp ne i32 %389, 0
  br i1 %390, label %391, label %392

391:                                              ; preds = %373
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

392:                                              ; preds = %373
  call void @print_graph(ptr noundef %6)
  %393 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %393, ptr %9, align 8, !tbaa !9
  %394 = icmp eq ptr %393, null
  br i1 %394, label %395, label %396

395:                                              ; preds = %392
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

396:                                              ; preds = %392
  %397 = call noalias ptr @malloc(i64 noundef 2) #6
  %398 = load ptr, ptr %9, align 8, !tbaa !9
  %399 = getelementptr inbounds %struct.BfsVertex_, ptr %398, i32 0, i32 0
  store ptr %397, ptr %399, align 8, !tbaa !11
  %400 = icmp eq ptr %397, null
  br i1 %400, label %401, label %402

401:                                              ; preds = %396
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

402:                                              ; preds = %396
  %403 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %404 = load ptr, ptr %403, align 8, !tbaa !11
  %405 = call ptr @strcpy(ptr noundef %404, ptr noundef @.str.3) #5
  %406 = load ptr, ptr %9, align 8, !tbaa !9
  %407 = getelementptr inbounds %struct.BfsVertex_, ptr %406, i32 0, i32 0
  %408 = load ptr, ptr %407, align 8, !tbaa !11
  %409 = call ptr @strcpy(ptr noundef %408, ptr noundef @.str.5) #5
  %410 = load ptr, ptr @stdout, align 8, !tbaa !9
  %411 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %412 = load ptr, ptr %411, align 8, !tbaa !11
  %413 = load ptr, ptr %9, align 8, !tbaa !9
  %414 = getelementptr inbounds %struct.BfsVertex_, ptr %413, i32 0, i32 0
  %415 = load ptr, ptr %414, align 8, !tbaa !11
  %416 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %410, ptr noundef @.str.7, ptr noundef %412, ptr noundef %415) #5
  %417 = load ptr, ptr %9, align 8, !tbaa !9
  %418 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %8, ptr noundef %417)
  %419 = icmp ne i32 %418, 0
  br i1 %419, label %420, label %421

420:                                              ; preds = %402
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

421:                                              ; preds = %402
  call void @print_graph(ptr noundef %6)
  %422 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %422, ptr %9, align 8, !tbaa !9
  %423 = icmp eq ptr %422, null
  br i1 %423, label %424, label %425

424:                                              ; preds = %421
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

425:                                              ; preds = %421
  %426 = call noalias ptr @malloc(i64 noundef 2) #6
  %427 = load ptr, ptr %9, align 8, !tbaa !9
  %428 = getelementptr inbounds %struct.BfsVertex_, ptr %427, i32 0, i32 0
  store ptr %426, ptr %428, align 8, !tbaa !11
  %429 = icmp eq ptr %426, null
  br i1 %429, label %430, label %431

430:                                              ; preds = %425
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

431:                                              ; preds = %425
  %432 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %433 = load ptr, ptr %432, align 8, !tbaa !11
  %434 = call ptr @strcpy(ptr noundef %433, ptr noundef @.str.5) #5
  %435 = load ptr, ptr %9, align 8, !tbaa !9
  %436 = getelementptr inbounds %struct.BfsVertex_, ptr %435, i32 0, i32 0
  %437 = load ptr, ptr %436, align 8, !tbaa !11
  %438 = call ptr @strcpy(ptr noundef %437, ptr noundef @.str.3) #5
  %439 = load ptr, ptr @stdout, align 8, !tbaa !9
  %440 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %441 = load ptr, ptr %440, align 8, !tbaa !11
  %442 = load ptr, ptr %9, align 8, !tbaa !9
  %443 = getelementptr inbounds %struct.BfsVertex_, ptr %442, i32 0, i32 0
  %444 = load ptr, ptr %443, align 8, !tbaa !11
  %445 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %439, ptr noundef @.str.7, ptr noundef %441, ptr noundef %444) #5
  %446 = load ptr, ptr %9, align 8, !tbaa !9
  %447 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %8, ptr noundef %446)
  %448 = icmp ne i32 %447, 0
  br i1 %448, label %449, label %450

449:                                              ; preds = %431
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

450:                                              ; preds = %431
  call void @print_graph(ptr noundef %6)
  %451 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %451, ptr %9, align 8, !tbaa !9
  %452 = icmp eq ptr %451, null
  br i1 %452, label %453, label %454

453:                                              ; preds = %450
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

454:                                              ; preds = %450
  %455 = call noalias ptr @malloc(i64 noundef 2) #6
  %456 = load ptr, ptr %9, align 8, !tbaa !9
  %457 = getelementptr inbounds %struct.BfsVertex_, ptr %456, i32 0, i32 0
  store ptr %455, ptr %457, align 8, !tbaa !11
  %458 = icmp eq ptr %455, null
  br i1 %458, label %459, label %460

459:                                              ; preds = %454
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

460:                                              ; preds = %454
  %461 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %462 = load ptr, ptr %461, align 8, !tbaa !11
  %463 = call ptr @strcpy(ptr noundef %462, ptr noundef @.str.4) #5
  %464 = load ptr, ptr %9, align 8, !tbaa !9
  %465 = getelementptr inbounds %struct.BfsVertex_, ptr %464, i32 0, i32 0
  %466 = load ptr, ptr %465, align 8, !tbaa !11
  %467 = call ptr @strcpy(ptr noundef %466, ptr noundef @.str.5) #5
  %468 = load ptr, ptr @stdout, align 8, !tbaa !9
  %469 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %470 = load ptr, ptr %469, align 8, !tbaa !11
  %471 = load ptr, ptr %9, align 8, !tbaa !9
  %472 = getelementptr inbounds %struct.BfsVertex_, ptr %471, i32 0, i32 0
  %473 = load ptr, ptr %472, align 8, !tbaa !11
  %474 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %468, ptr noundef @.str.7, ptr noundef %470, ptr noundef %473) #5
  %475 = load ptr, ptr %9, align 8, !tbaa !9
  %476 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %8, ptr noundef %475)
  %477 = icmp ne i32 %476, 0
  br i1 %477, label %478, label %479

478:                                              ; preds = %460
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

479:                                              ; preds = %460
  call void @print_graph(ptr noundef %6)
  %480 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %480, ptr %9, align 8, !tbaa !9
  %481 = icmp eq ptr %480, null
  br i1 %481, label %482, label %483

482:                                              ; preds = %479
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

483:                                              ; preds = %479
  %484 = call noalias ptr @malloc(i64 noundef 2) #6
  %485 = load ptr, ptr %9, align 8, !tbaa !9
  %486 = getelementptr inbounds %struct.BfsVertex_, ptr %485, i32 0, i32 0
  store ptr %484, ptr %486, align 8, !tbaa !11
  %487 = icmp eq ptr %484, null
  br i1 %487, label %488, label %489

488:                                              ; preds = %483
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

489:                                              ; preds = %483
  %490 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %491 = load ptr, ptr %490, align 8, !tbaa !11
  %492 = call ptr @strcpy(ptr noundef %491, ptr noundef @.str.5) #5
  %493 = load ptr, ptr %9, align 8, !tbaa !9
  %494 = getelementptr inbounds %struct.BfsVertex_, ptr %493, i32 0, i32 0
  %495 = load ptr, ptr %494, align 8, !tbaa !11
  %496 = call ptr @strcpy(ptr noundef %495, ptr noundef @.str.4) #5
  %497 = load ptr, ptr @stdout, align 8, !tbaa !9
  %498 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %499 = load ptr, ptr %498, align 8, !tbaa !11
  %500 = load ptr, ptr %9, align 8, !tbaa !9
  %501 = getelementptr inbounds %struct.BfsVertex_, ptr %500, i32 0, i32 0
  %502 = load ptr, ptr %501, align 8, !tbaa !11
  %503 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %497, ptr noundef @.str.7, ptr noundef %499, ptr noundef %502) #5
  %504 = load ptr, ptr %9, align 8, !tbaa !9
  %505 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %8, ptr noundef %504)
  %506 = icmp ne i32 %505, 0
  br i1 %506, label %507, label %508

507:                                              ; preds = %489
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

508:                                              ; preds = %489
  call void @print_graph(ptr noundef %6)
  %509 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %509, ptr %9, align 8, !tbaa !9
  %510 = icmp eq ptr %509, null
  br i1 %510, label %511, label %512

511:                                              ; preds = %508
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

512:                                              ; preds = %508
  %513 = call noalias ptr @malloc(i64 noundef 2) #6
  %514 = load ptr, ptr %9, align 8, !tbaa !9
  %515 = getelementptr inbounds %struct.BfsVertex_, ptr %514, i32 0, i32 0
  store ptr %513, ptr %515, align 8, !tbaa !11
  %516 = icmp eq ptr %513, null
  br i1 %516, label %517, label %518

517:                                              ; preds = %512
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

518:                                              ; preds = %512
  %519 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %520 = load ptr, ptr %519, align 8, !tbaa !11
  %521 = call ptr @strcpy(ptr noundef %520, ptr noundef @.str.5) #5
  %522 = load ptr, ptr %9, align 8, !tbaa !9
  %523 = getelementptr inbounds %struct.BfsVertex_, ptr %522, i32 0, i32 0
  %524 = load ptr, ptr %523, align 8, !tbaa !11
  %525 = call ptr @strcpy(ptr noundef %524, ptr noundef @.str.6) #5
  %526 = load ptr, ptr @stdout, align 8, !tbaa !9
  %527 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %528 = load ptr, ptr %527, align 8, !tbaa !11
  %529 = load ptr, ptr %9, align 8, !tbaa !9
  %530 = getelementptr inbounds %struct.BfsVertex_, ptr %529, i32 0, i32 0
  %531 = load ptr, ptr %530, align 8, !tbaa !11
  %532 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %526, ptr noundef @.str.7, ptr noundef %528, ptr noundef %531) #5
  %533 = load ptr, ptr %9, align 8, !tbaa !9
  %534 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %8, ptr noundef %533)
  %535 = icmp ne i32 %534, 0
  br i1 %535, label %536, label %537

536:                                              ; preds = %518
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

537:                                              ; preds = %518
  call void @print_graph(ptr noundef %6)
  %538 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %538, ptr %9, align 8, !tbaa !9
  %539 = icmp eq ptr %538, null
  br i1 %539, label %540, label %541

540:                                              ; preds = %537
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

541:                                              ; preds = %537
  %542 = call noalias ptr @malloc(i64 noundef 2) #6
  %543 = load ptr, ptr %9, align 8, !tbaa !9
  %544 = getelementptr inbounds %struct.BfsVertex_, ptr %543, i32 0, i32 0
  store ptr %542, ptr %544, align 8, !tbaa !11
  %545 = icmp eq ptr %542, null
  br i1 %545, label %546, label %547

546:                                              ; preds = %541
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

547:                                              ; preds = %541
  %548 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %549 = load ptr, ptr %548, align 8, !tbaa !11
  %550 = call ptr @strcpy(ptr noundef %549, ptr noundef @.str.6) #5
  %551 = load ptr, ptr %9, align 8, !tbaa !9
  %552 = getelementptr inbounds %struct.BfsVertex_, ptr %551, i32 0, i32 0
  %553 = load ptr, ptr %552, align 8, !tbaa !11
  %554 = call ptr @strcpy(ptr noundef %553, ptr noundef @.str.5) #5
  %555 = load ptr, ptr @stdout, align 8, !tbaa !9
  %556 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %557 = load ptr, ptr %556, align 8, !tbaa !11
  %558 = load ptr, ptr %9, align 8, !tbaa !9
  %559 = getelementptr inbounds %struct.BfsVertex_, ptr %558, i32 0, i32 0
  %560 = load ptr, ptr %559, align 8, !tbaa !11
  %561 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %555, ptr noundef @.str.7, ptr noundef %557, ptr noundef %560) #5
  %562 = load ptr, ptr %9, align 8, !tbaa !9
  %563 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %8, ptr noundef %562)
  %564 = icmp ne i32 %563, 0
  br i1 %564, label %565, label %566

565:                                              ; preds = %547
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

566:                                              ; preds = %547
  call void @print_graph(ptr noundef %6)
  %567 = load ptr, ptr @stdout, align 8, !tbaa !9
  %568 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %567, ptr noundef @.str.8) #5
  %569 = getelementptr inbounds %struct.BfsVertex_, ptr %8, i32 0, i32 0
  %570 = load ptr, ptr %569, align 8, !tbaa !11
  %571 = call ptr @strcpy(ptr noundef %570, ptr noundef @.str) #5
  %572 = call i32 @bfs(ptr noundef %6, ptr noundef %8, ptr noundef %10)
  %573 = icmp ne i32 %572, 0
  br i1 %573, label %574, label %575

574:                                              ; preds = %566
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

575:                                              ; preds = %566
  store i32 0, ptr %13, align 4, !tbaa !5
  %576 = getelementptr inbounds %struct.List_, ptr %10, i32 0, i32 3
  %577 = load ptr, ptr %576, align 8, !tbaa !13
  store ptr %577, ptr %11, align 8, !tbaa !9
  br label %578

578:                                              ; preds = %599, %575
  %579 = load ptr, ptr %11, align 8, !tbaa !9
  %580 = icmp ne ptr %579, null
  br i1 %580, label %581, label %603

581:                                              ; preds = %578
  %582 = load ptr, ptr %11, align 8, !tbaa !9
  %583 = getelementptr inbounds %struct.ListElmt_, ptr %582, i32 0, i32 0
  %584 = load ptr, ptr %583, align 8, !tbaa !15
  store ptr %584, ptr %7, align 8, !tbaa !9
  %585 = load ptr, ptr @stdout, align 8, !tbaa !9
  %586 = load i32, ptr %13, align 4, !tbaa !5
  %587 = load ptr, ptr %7, align 8, !tbaa !9
  %588 = getelementptr inbounds %struct.BfsVertex_, ptr %587, i32 0, i32 0
  %589 = load ptr, ptr %588, align 8, !tbaa !11
  %590 = load ptr, ptr %7, align 8, !tbaa !9
  %591 = getelementptr inbounds %struct.BfsVertex_, ptr %590, i32 0, i32 1
  %592 = load i32, ptr %591, align 8, !tbaa !17
  %593 = load ptr, ptr %7, align 8, !tbaa !9
  %594 = getelementptr inbounds %struct.BfsVertex_, ptr %593, i32 0, i32 2
  %595 = load i32, ptr %594, align 4, !tbaa !18
  %596 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %585, ptr noundef @.str.9, i32 noundef %586, ptr noundef %589, i32 noundef %592, i32 noundef %595) #5
  %597 = load i32, ptr %13, align 4, !tbaa !5
  %598 = add nsw i32 %597, 1
  store i32 %598, ptr %13, align 4, !tbaa !5
  br label %599

599:                                              ; preds = %581
  %600 = load ptr, ptr %11, align 8, !tbaa !9
  %601 = getelementptr inbounds %struct.ListElmt_, ptr %600, i32 0, i32 1
  %602 = load ptr, ptr %601, align 8, !tbaa !19
  store ptr %602, ptr %11, align 8, !tbaa !9
  br label %578, !llvm.loop !20

603:                                              ; preds = %578
  %604 = load ptr, ptr @stdout, align 8, !tbaa !9
  %605 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %604, ptr noundef @.str.10) #5
  call void @list_destroy(ptr noundef %10)
  %606 = load ptr, ptr @stdout, align 8, !tbaa !9
  %607 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %606, ptr noundef @.str.11) #5
  call void @graph_destroy(ptr noundef %6)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %608

608:                                              ; preds = %603, %574, %565, %546, %540, %536, %517, %511, %507, %488, %482, %478, %459, %453, %449, %430, %424, %420, %401, %395, %391, %372, %366, %362, %343, %337, %333, %314, %308, %304, %285, %279, %275, %256, %250, %246, %227, %221, %217, %198, %192, %188, %169, %163, %157, %143, %137, %133, %119, %113, %109, %95, %89, %85, %71, %65, %61, %47, %41, %37, %23, %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %6) #5
  %609 = load i32, ptr %3, align 4
  ret i32 %609
}

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

declare void @graph_init(ptr noundef, ptr noundef, ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare hidden void @destroy_netid(ptr noundef) #0

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #4

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

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

; Function Attrs: nounwind uwtable
declare hidden void @print_graph(ptr noundef) #0

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

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

declare void @list_destroy(ptr noundef) #2

declare void @graph_destroy(ptr noundef) #2

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

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 allocsize(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 "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 }
attributes #6 = { nounwind allocsize(0) }

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"BfsVertex_", !10, i64 0, !6, i64 8, !6, i64 12}
!13 = !{!14, !10, i64 24}
!14 = !{!"List_", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!15 = !{!16, !10, i64 0}
!16 = !{!"ListElmt_", !10, i64 0, !10, i64 8}
!17 = !{!12, !6, i64 8}
!18 = !{!12, !6, i64 12}
!19 = !{!16, !10, i64 8}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}


; 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.Graph_ = type { i32, i32, ptr, ptr, %struct.List_ }
%struct.List_ = type { i32, ptr, ptr, ptr, ptr }
%struct.BfsVertex_ = type { ptr, i32, i32 }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca %struct.Graph_, align 8
  %4 = alloca %struct.BfsVertex_, align 8
  %5 = alloca %struct.List_, align 8
  %6 = alloca [2 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %6) #6
  call void @graph_init(ptr noundef nonnull %3, ptr noundef nonnull @match_netid, ptr noundef nonnull @destroy_netid) #6
  %7 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %8 = icmp eq ptr %7, null
  br i1 %8, label %298, label %9

9:                                                ; preds = %2
  %10 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #7
  store ptr %10, ptr %7, align 8, !tbaa !5
  %11 = icmp eq ptr %10, null
  br i1 %11, label %298, label %12

12:                                               ; preds = %9
  %13 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %10, ptr noundef nonnull dereferenceable(1) @.str) #6
  %14 = load ptr, ptr @stdout, align 8, !tbaa !11
  %15 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef nonnull @.str.1, ptr noundef nonnull %10) #6
  %16 = call i32 @graph_ins_vertex(ptr noundef nonnull %3, ptr noundef nonnull %7) #6
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %17, label %298

17:                                               ; preds = %12
  %18 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %19 = icmp eq ptr %18, null
  br i1 %19, label %298, label %20

20:                                               ; preds = %17
  %21 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #7
  store ptr %21, ptr %18, align 8, !tbaa !5
  %22 = icmp eq ptr %21, null
  br i1 %22, label %298, label %23

23:                                               ; preds = %20
  %24 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %21, ptr noundef nonnull dereferenceable(1) @.str.2) #6
  %25 = load ptr, ptr @stdout, align 8, !tbaa !11
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.1, ptr noundef nonnull %21) #6
  %27 = call i32 @graph_ins_vertex(ptr noundef nonnull %3, ptr noundef nonnull %18) #6
  %.not116 = icmp eq i32 %27, 0
  br i1 %.not116, label %28, label %298

28:                                               ; preds = %23
  %29 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %30 = icmp eq ptr %29, null
  br i1 %30, label %298, label %31

31:                                               ; preds = %28
  %32 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #7
  store ptr %32, ptr %29, align 8, !tbaa !5
  %33 = icmp eq ptr %32, null
  br i1 %33, label %298, label %34

34:                                               ; preds = %31
  %35 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %32, ptr noundef nonnull dereferenceable(1) @.str.3) #6
  %36 = load ptr, ptr @stdout, align 8, !tbaa !11
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.1, ptr noundef nonnull %32) #6
  %38 = call i32 @graph_ins_vertex(ptr noundef nonnull %3, ptr noundef nonnull %29) #6
  %.not117 = icmp eq i32 %38, 0
  br i1 %.not117, label %39, label %298

39:                                               ; preds = %34
  %40 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %41 = icmp eq ptr %40, null
  br i1 %41, label %298, label %42

42:                                               ; preds = %39
  %43 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #7
  store ptr %43, ptr %40, align 8, !tbaa !5
  %44 = icmp eq ptr %43, null
  br i1 %44, label %298, label %45

45:                                               ; preds = %42
  %46 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %43, ptr noundef nonnull dereferenceable(1) @.str.4) #6
  %47 = load ptr, ptr @stdout, align 8, !tbaa !11
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str.1, ptr noundef nonnull %43) #6
  %49 = call i32 @graph_ins_vertex(ptr noundef nonnull %3, ptr noundef nonnull %40) #6
  %.not118 = icmp eq i32 %49, 0
  br i1 %.not118, label %50, label %298

50:                                               ; preds = %45
  %51 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %52 = icmp eq ptr %51, null
  br i1 %52, label %298, label %53

53:                                               ; preds = %50
  %54 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #7
  store ptr %54, ptr %51, align 8, !tbaa !5
  %55 = icmp eq ptr %54, null
  br i1 %55, label %298, label %56

56:                                               ; preds = %53
  %57 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %54, ptr noundef nonnull dereferenceable(1) @.str.5) #6
  %58 = load ptr, ptr @stdout, align 8, !tbaa !11
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef nonnull @.str.1, ptr noundef nonnull %54) #6
  %60 = call i32 @graph_ins_vertex(ptr noundef nonnull %3, ptr noundef nonnull %51) #6
  %.not119 = icmp eq i32 %60, 0
  br i1 %.not119, label %61, label %298

61:                                               ; preds = %56
  %62 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %63 = icmp eq ptr %62, null
  br i1 %63, label %298, label %64

64:                                               ; preds = %61
  %65 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #7
  store ptr %65, ptr %62, align 8, !tbaa !5
  %66 = icmp eq ptr %65, null
  br i1 %66, label %298, label %67

67:                                               ; preds = %64
  %68 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %65, ptr noundef nonnull dereferenceable(1) @.str.6) #6
  %69 = load ptr, ptr @stdout, align 8, !tbaa !11
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef nonnull @.str.1, ptr noundef nonnull %65) #6
  %71 = call i32 @graph_ins_vertex(ptr noundef nonnull %3, ptr noundef nonnull %62) #6
  %.not120 = icmp eq i32 %71, 0
  br i1 %.not120, label %72, label %298

72:                                               ; preds = %67
  call void @print_graph(ptr noundef nonnull %3)
  store ptr %6, ptr %4, align 8, !tbaa !5
  %73 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %74 = icmp eq ptr %73, null
  br i1 %74, label %298, label %75

75:                                               ; preds = %72
  %76 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #7
  store ptr %76, ptr %73, align 8, !tbaa !5
  %77 = icmp eq ptr %76, null
  br i1 %77, label %298, label %78

78:                                               ; preds = %75
  %79 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str) #6
  %80 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %76, ptr noundef nonnull dereferenceable(1) @.str.2) #6
  %81 = load ptr, ptr @stdout, align 8, !tbaa !11
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef nonnull @.str.7, ptr noundef nonnull %6, ptr noundef nonnull %76) #6
  %83 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %73) #6
  %.not121 = icmp eq i32 %83, 0
  br i1 %.not121, label %84, label %298

84:                                               ; preds = %78
  call void @print_graph(ptr noundef nonnull %3)
  %85 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %86 = icmp eq ptr %85, null
  br i1 %86, label %298, label %87

87:                                               ; preds = %84
  %88 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #7
  store ptr %88, ptr %85, align 8, !tbaa !5
  %89 = icmp eq ptr %88, null
  br i1 %89, label %298, label %90

90:                                               ; preds = %87
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %91, ptr noundef nonnull dereferenceable(1) @.str.2) #6
  %93 = load ptr, ptr %85, align 8, !tbaa !5
  %94 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %93, ptr noundef nonnull dereferenceable(1) @.str) #6
  %95 = load ptr, ptr @stdout, align 8, !tbaa !11
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = load ptr, ptr %85, align 8, !tbaa !5
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef nonnull @.str.7, ptr noundef %96, ptr noundef %97) #6
  %99 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %85) #6
  %.not122 = icmp eq i32 %99, 0
  br i1 %.not122, label %100, label %298

100:                                              ; preds = %90
  call void @print_graph(ptr noundef nonnull %3)
  %101 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %102 = icmp eq ptr %101, null
  br i1 %102, label %298, label %103

103:                                              ; preds = %100
  %104 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #7
  store ptr %104, ptr %101, align 8, !tbaa !5
  %105 = icmp eq ptr %104, null
  br i1 %105, label %298, label %106

106:                                              ; preds = %103
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %107, ptr noundef nonnull dereferenceable(1) @.str) #6
  %109 = load ptr, ptr %101, align 8, !tbaa !5
  %110 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %109, ptr noundef nonnull dereferenceable(1) @.str.3) #6
  %111 = load ptr, ptr @stdout, align 8, !tbaa !11
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = load ptr, ptr %101, align 8, !tbaa !5
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %111, ptr noundef nonnull @.str.7, ptr noundef %112, ptr noundef %113) #6
  %115 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %101) #6
  %.not123 = icmp eq i32 %115, 0
  br i1 %.not123, label %116, label %298

116:                                              ; preds = %106
  call void @print_graph(ptr noundef nonnull %3)
  %117 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %118 = icmp eq ptr %117, null
  br i1 %118, label %298, label %119

119:                                              ; preds = %116
  %120 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #7
  store ptr %120, ptr %117, align 8, !tbaa !5
  %121 = icmp eq ptr %120, null
  br i1 %121, label %298, label %122

122:                                              ; preds = %119
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %123, ptr noundef nonnull dereferenceable(1) @.str.3) #6
  %125 = load ptr, ptr %117, align 8, !tbaa !5
  %126 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %125, ptr noundef nonnull dereferenceable(1) @.str) #6
  %127 = load ptr, ptr @stdout, align 8, !tbaa !11
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = load ptr, ptr %117, align 8, !tbaa !5
  %130 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %127, ptr noundef nonnull @.str.7, ptr noundef %128, ptr noundef %129) #6
  %131 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %117) #6
  %.not124 = icmp eq i32 %131, 0
  br i1 %.not124, label %132, label %298

132:                                              ; preds = %122
  call void @print_graph(ptr noundef nonnull %3)
  %133 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %134 = icmp eq ptr %133, null
  br i1 %134, label %298, label %135

135:                                              ; preds = %132
  %136 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #7
  store ptr %136, ptr %133, align 8, !tbaa !5
  %137 = icmp eq ptr %136, null
  br i1 %137, label %298, label %138

138:                                              ; preds = %135
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %139, ptr noundef nonnull dereferenceable(1) @.str.2) #6
  %141 = load ptr, ptr %133, align 8, !tbaa !5
  %142 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %141, ptr noundef nonnull dereferenceable(1) @.str.3) #6
  %143 = load ptr, ptr @stdout, align 8, !tbaa !11
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = load ptr, ptr %133, align 8, !tbaa !5
  %146 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %143, ptr noundef nonnull @.str.7, ptr noundef %144, ptr noundef %145) #6
  %147 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %133) #6
  %.not125 = icmp eq i32 %147, 0
  br i1 %.not125, label %148, label %298

148:                                              ; preds = %138
  call void @print_graph(ptr noundef nonnull %3)
  %149 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %150 = icmp eq ptr %149, null
  br i1 %150, label %298, label %151

151:                                              ; preds = %148
  %152 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #7
  store ptr %152, ptr %149, align 8, !tbaa !5
  %153 = icmp eq ptr %152, null
  br i1 %153, label %298, label %154

154:                                              ; preds = %151
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %155, ptr noundef nonnull dereferenceable(1) @.str.3) #6
  %157 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %152, ptr noundef nonnull dereferenceable(1) @.str.2) #6
  %158 = load ptr, ptr @stdout, align 8, !tbaa !11
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %158, ptr noundef nonnull @.str.7, ptr noundef %159, ptr noundef nonnull %152) #6
  %161 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %149) #6
  %.not126 = icmp eq i32 %161, 0
  br i1 %.not126, label %162, label %298

162:                                              ; preds = %154
  call void @print_graph(ptr noundef nonnull %3)
  %163 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %164 = icmp eq ptr %163, null
  br i1 %164, label %298, label %165

165:                                              ; preds = %162
  %166 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #7
  store ptr %166, ptr %163, align 8, !tbaa !5
  %167 = icmp eq ptr %166, null
  br i1 %167, label %298, label %168

168:                                              ; preds = %165
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %169, ptr noundef nonnull dereferenceable(1) @.str.2) #6
  %171 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %166, ptr noundef nonnull dereferenceable(1) @.str.4) #6
  %172 = load ptr, ptr @stdout, align 8, !tbaa !11
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  %174 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %172, ptr noundef nonnull @.str.7, ptr noundef %173, ptr noundef nonnull %166) #6
  %175 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %163) #6
  %.not127 = icmp eq i32 %175, 0
  br i1 %.not127, label %176, label %298

176:                                              ; preds = %168
  call void @print_graph(ptr noundef nonnull %3)
  %177 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %178 = icmp eq ptr %177, null
  br i1 %178, label %298, label %179

179:                                              ; preds = %176
  %180 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #7
  store ptr %180, ptr %177, align 8, !tbaa !5
  %181 = icmp eq ptr %180, null
  br i1 %181, label %298, label %182

182:                                              ; preds = %179
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %183, ptr noundef nonnull dereferenceable(1) @.str.4) #6
  %185 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %180, ptr noundef nonnull dereferenceable(1) @.str.2) #6
  %186 = load ptr, ptr @stdout, align 8, !tbaa !11
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %186, ptr noundef nonnull @.str.7, ptr noundef %187, ptr noundef nonnull %180) #6
  %189 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %177) #6
  %.not128 = icmp eq i32 %189, 0
  br i1 %.not128, label %190, label %298

190:                                              ; preds = %182
  call void @print_graph(ptr noundef nonnull %3)
  %191 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %192 = icmp eq ptr %191, null
  br i1 %192, label %298, label %193

193:                                              ; preds = %190
  %194 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #7
  store ptr %194, ptr %191, align 8, !tbaa !5
  %195 = icmp eq ptr %194, null
  br i1 %195, label %298, label %196

196:                                              ; preds = %193
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  %198 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %197, ptr noundef nonnull dereferenceable(1) @.str.3) #6
  %199 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %194, ptr noundef nonnull dereferenceable(1) @.str.5) #6
  %200 = load ptr, ptr @stdout, align 8, !tbaa !11
  %201 = load ptr, ptr %4, align 8, !tbaa !5
  %202 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %200, ptr noundef nonnull @.str.7, ptr noundef %201, ptr noundef nonnull %194) #6
  %203 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %191) #6
  %.not129 = icmp eq i32 %203, 0
  br i1 %.not129, label %204, label %298

204:                                              ; preds = %196
  call void @print_graph(ptr noundef nonnull %3)
  %205 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %206 = icmp eq ptr %205, null
  br i1 %206, label %298, label %207

207:                                              ; preds = %204
  %208 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #7
  store ptr %208, ptr %205, align 8, !tbaa !5
  %209 = icmp eq ptr %208, null
  br i1 %209, label %298, label %210

210:                                              ; preds = %207
  %211 = load ptr, ptr %4, align 8, !tbaa !5
  %212 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %211, ptr noundef nonnull dereferenceable(1) @.str.5) #6
  %213 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %208, ptr noundef nonnull dereferenceable(1) @.str.3) #6
  %214 = load ptr, ptr @stdout, align 8, !tbaa !11
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %214, ptr noundef nonnull @.str.7, ptr noundef %215, ptr noundef nonnull %208) #6
  %217 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %205) #6
  %.not130 = icmp eq i32 %217, 0
  br i1 %.not130, label %218, label %298

218:                                              ; preds = %210
  call void @print_graph(ptr noundef nonnull %3)
  %219 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %220 = icmp eq ptr %219, null
  br i1 %220, label %298, label %221

221:                                              ; preds = %218
  %222 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #7
  store ptr %222, ptr %219, align 8, !tbaa !5
  %223 = icmp eq ptr %222, null
  br i1 %223, label %298, label %224

224:                                              ; preds = %221
  %225 = load ptr, ptr %4, align 8, !tbaa !5
  %226 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %225, ptr noundef nonnull dereferenceable(1) @.str.4) #6
  %227 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %222, ptr noundef nonnull dereferenceable(1) @.str.5) #6
  %228 = load ptr, ptr @stdout, align 8, !tbaa !11
  %229 = load ptr, ptr %4, align 8, !tbaa !5
  %230 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %228, ptr noundef nonnull @.str.7, ptr noundef %229, ptr noundef nonnull %222) #6
  %231 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %219) #6
  %.not131 = icmp eq i32 %231, 0
  br i1 %.not131, label %232, label %298

232:                                              ; preds = %224
  call void @print_graph(ptr noundef nonnull %3)
  %233 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %234 = icmp eq ptr %233, null
  br i1 %234, label %298, label %235

235:                                              ; preds = %232
  %236 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #7
  store ptr %236, ptr %233, align 8, !tbaa !5
  %237 = icmp eq ptr %236, null
  br i1 %237, label %298, label %238

238:                                              ; preds = %235
  %239 = load ptr, ptr %4, align 8, !tbaa !5
  %240 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %239, ptr noundef nonnull dereferenceable(1) @.str.5) #6
  %241 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %236, ptr noundef nonnull dereferenceable(1) @.str.4) #6
  %242 = load ptr, ptr @stdout, align 8, !tbaa !11
  %243 = load ptr, ptr %4, align 8, !tbaa !5
  %244 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %242, ptr noundef nonnull @.str.7, ptr noundef %243, ptr noundef nonnull %236) #6
  %245 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %233) #6
  %.not132 = icmp eq i32 %245, 0
  br i1 %.not132, label %246, label %298

246:                                              ; preds = %238
  call void @print_graph(ptr noundef nonnull %3)
  %247 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %248 = icmp eq ptr %247, null
  br i1 %248, label %298, label %249

249:                                              ; preds = %246
  %250 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #7
  store ptr %250, ptr %247, align 8, !tbaa !5
  %251 = icmp eq ptr %250, null
  br i1 %251, label %298, label %252

252:                                              ; preds = %249
  %253 = load ptr, ptr %4, align 8, !tbaa !5
  %254 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %253, ptr noundef nonnull dereferenceable(1) @.str.5) #6
  %255 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %250, ptr noundef nonnull dereferenceable(1) @.str.6) #6
  %256 = load ptr, ptr @stdout, align 8, !tbaa !11
  %257 = load ptr, ptr %4, align 8, !tbaa !5
  %258 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %256, ptr noundef nonnull @.str.7, ptr noundef %257, ptr noundef nonnull %250) #6
  %259 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %247) #6
  %.not133 = icmp eq i32 %259, 0
  br i1 %.not133, label %260, label %298

260:                                              ; preds = %252
  call void @print_graph(ptr noundef nonnull %3)
  %261 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %262 = icmp eq ptr %261, null
  br i1 %262, label %298, label %263

263:                                              ; preds = %260
  %264 = call noalias dereferenceable_or_null(2) ptr @malloc(i64 noundef 2) #7
  store ptr %264, ptr %261, align 8, !tbaa !5
  %265 = icmp eq ptr %264, null
  br i1 %265, label %298, label %266

266:                                              ; preds = %263
  %267 = load ptr, ptr %4, align 8, !tbaa !5
  %268 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %267, ptr noundef nonnull dereferenceable(1) @.str.6) #6
  %269 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %264, ptr noundef nonnull dereferenceable(1) @.str.5) #6
  %270 = load ptr, ptr @stdout, align 8, !tbaa !11
  %271 = load ptr, ptr %4, align 8, !tbaa !5
  %272 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %270, ptr noundef nonnull @.str.7, ptr noundef %271, ptr noundef nonnull %264) #6
  %273 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %261) #6
  %.not134 = icmp eq i32 %273, 0
  br i1 %.not134, label %274, label %298

274:                                              ; preds = %266
  call void @print_graph(ptr noundef nonnull %3)
  %275 = load ptr, ptr @stdout, align 8, !tbaa !11
  %276 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %275, ptr noundef nonnull @.str.8) #6
  %277 = load ptr, ptr %4, align 8, !tbaa !5
  %278 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %277, ptr noundef nonnull dereferenceable(1) @.str) #6
  %279 = call i32 @bfs(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5) #6
  %.not135 = icmp eq i32 %279, 0
  br i1 %.not135, label %280, label %298

280:                                              ; preds = %274
  %281 = getelementptr inbounds i8, ptr %5, i64 24
  %282 = load ptr, ptr %281, align 8, !tbaa !12
  %.not136137 = icmp eq ptr %282, null
  br i1 %.not136137, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %280, %.lr.ph
  %.0139 = phi i32 [ %291, %.lr.ph ], [ 0, %280 ]
  %.088138 = phi ptr [ %293, %.lr.ph ], [ %282, %280 ]
  %283 = load ptr, ptr %.088138, align 8, !tbaa !14
  %284 = load ptr, ptr @stdout, align 8, !tbaa !11
  %285 = load ptr, ptr %283, align 8, !tbaa !5
  %286 = getelementptr inbounds i8, ptr %283, i64 8
  %287 = load i32, ptr %286, align 8, !tbaa !16
  %288 = getelementptr inbounds i8, ptr %283, i64 12
  %289 = load i32, ptr %288, align 4, !tbaa !17
  %290 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %284, ptr noundef nonnull @.str.9, i32 noundef %.0139, ptr noundef %285, i32 noundef %287, i32 noundef %289) #6
  %291 = add nuw nsw i32 %.0139, 1
  %292 = getelementptr inbounds i8, ptr %.088138, i64 8
  %293 = load ptr, ptr %292, align 8, !tbaa !18
  %.not136 = icmp eq ptr %293, null
  br i1 %.not136, label %._crit_edge, label %.lr.ph, !llvm.loop !19

._crit_edge:                                      ; preds = %.lr.ph, %280
  %294 = load ptr, ptr @stdout, align 8, !tbaa !11
  %295 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %294, ptr noundef nonnull @.str.10) #6
  call void @list_destroy(ptr noundef nonnull %5) #6
  %296 = load ptr, ptr @stdout, align 8, !tbaa !11
  %297 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %296, ptr noundef nonnull @.str.11) #6
  call void @graph_destroy(ptr noundef nonnull %3) #6
  br label %298

298:                                              ; preds = %274, %266, %263, %260, %252, %249, %246, %238, %235, %232, %224, %221, %218, %210, %207, %204, %196, %193, %190, %182, %179, %176, %168, %165, %162, %154, %151, %148, %138, %135, %132, %122, %119, %116, %106, %103, %100, %90, %87, %84, %78, %75, %72, %67, %64, %61, %56, %53, %50, %45, %42, %39, %34, %31, %28, %23, %20, %17, %12, %9, %2, %._crit_edge
  %.089 = phi i32 [ 0, %._crit_edge ], [ 1, %2 ], [ 1, %9 ], [ 1, %12 ], [ 1, %17 ], [ 1, %20 ], [ 1, %23 ], [ 1, %28 ], [ 1, %31 ], [ 1, %34 ], [ 1, %39 ], [ 1, %42 ], [ 1, %45 ], [ 1, %50 ], [ 1, %53 ], [ 1, %56 ], [ 1, %61 ], [ 1, %64 ], [ 1, %67 ], [ 1, %72 ], [ 1, %75 ], [ 1, %78 ], [ 1, %84 ], [ 1, %87 ], [ 1, %90 ], [ 1, %100 ], [ 1, %103 ], [ 1, %106 ], [ 1, %116 ], [ 1, %119 ], [ 1, %122 ], [ 1, %132 ], [ 1, %135 ], [ 1, %138 ], [ 1, %148 ], [ 1, %151 ], [ 1, %154 ], [ 1, %162 ], [ 1, %165 ], [ 1, %168 ], [ 1, %176 ], [ 1, %179 ], [ 1, %182 ], [ 1, %190 ], [ 1, %193 ], [ 1, %196 ], [ 1, %204 ], [ 1, %207 ], [ 1, %210 ], [ 1, %218 ], [ 1, %221 ], [ 1, %224 ], [ 1, %232 ], [ 1, %235 ], [ 1, %238 ], [ 1, %246 ], [ 1, %249 ], [ 1, %252 ], [ 1, %260 ], [ 1, %263 ], [ 1, %266 ], [ 1, %274 ]
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #6
  ret i32 %.089
}

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

declare void @graph_init(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare hidden void @destroy_netid(ptr noundef) #0

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #4

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

declare i32 @graph_ins_vertex(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @print_graph(ptr noundef) local_unnamed_addr #0

declare i32 @graph_ins_edge(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @bfs(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @list_destroy(ptr noundef) local_unnamed_addr #2

declare void @graph_destroy(ptr noundef) local_unnamed_addr #2

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

attributes #0 = { 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 = { 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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

!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 0}
!6 = !{!"BfsVertex_", !7, i64 0, !10, i64 8, !10, i64 12}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !7, i64 24}
!13 = !{!"List_", !10, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!14 = !{!15, !7, i64 0}
!15 = !{!"ListElmt_", !7, i64 0, !7, i64 8}
!16 = !{!6, !10, i64 8}
!17 = !{!6, !10, i64 12}
!18 = !{!15, !7, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass