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

@.str = external hidden unnamed_addr constant [2 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 [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.14 = 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.DfsVertex_, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %struct.List_, align 8
  %11 = alloca ptr, align 8
  %12 = alloca [11 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 11, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @graph_init(ptr noundef %6, ptr noundef @match_task, ptr noundef @destroy_task)
  %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 %529

18:                                               ; preds = %2
  %19 = call noalias ptr @malloc(i64 noundef 11) #6
  %20 = load ptr, ptr %7, align 8, !tbaa !9
  %21 = getelementptr inbounds %struct.DfsVertex_, 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 %529

24:                                               ; preds = %18
  %25 = load ptr, ptr %7, align 8, !tbaa !9
  %26 = getelementptr inbounds %struct.DfsVertex_, 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.DfsVertex_, 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 %529

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 %529

42:                                               ; preds = %38
  %43 = call noalias ptr @malloc(i64 noundef 11) #6
  %44 = load ptr, ptr %7, align 8, !tbaa !9
  %45 = getelementptr inbounds %struct.DfsVertex_, 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 %529

48:                                               ; preds = %42
  %49 = load ptr, ptr %7, align 8, !tbaa !9
  %50 = getelementptr inbounds %struct.DfsVertex_, 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.DfsVertex_, 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 %529

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 %529

66:                                               ; preds = %62
  %67 = call noalias ptr @malloc(i64 noundef 11) #6
  %68 = load ptr, ptr %7, align 8, !tbaa !9
  %69 = getelementptr inbounds %struct.DfsVertex_, 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 %529

72:                                               ; preds = %66
  %73 = load ptr, ptr %7, align 8, !tbaa !9
  %74 = getelementptr inbounds %struct.DfsVertex_, 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.DfsVertex_, 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 %529

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 %529

90:                                               ; preds = %86
  %91 = call noalias ptr @malloc(i64 noundef 11) #6
  %92 = load ptr, ptr %7, align 8, !tbaa !9
  %93 = getelementptr inbounds %struct.DfsVertex_, 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 %529

96:                                               ; preds = %90
  %97 = load ptr, ptr %7, align 8, !tbaa !9
  %98 = getelementptr inbounds %struct.DfsVertex_, 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.DfsVertex_, 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 %529

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 %529

114:                                              ; preds = %110
  %115 = call noalias ptr @malloc(i64 noundef 11) #6
  %116 = load ptr, ptr %7, align 8, !tbaa !9
  %117 = getelementptr inbounds %struct.DfsVertex_, 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 %529

120:                                              ; preds = %114
  %121 = load ptr, ptr %7, align 8, !tbaa !9
  %122 = getelementptr inbounds %struct.DfsVertex_, 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.DfsVertex_, 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 %529

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 %529

138:                                              ; preds = %134
  %139 = call noalias ptr @malloc(i64 noundef 11) #6
  %140 = load ptr, ptr %7, align 8, !tbaa !9
  %141 = getelementptr inbounds %struct.DfsVertex_, 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 %529

144:                                              ; preds = %138
  %145 = load ptr, ptr %7, align 8, !tbaa !9
  %146 = getelementptr inbounds %struct.DfsVertex_, 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.DfsVertex_, 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 %529

158:                                              ; preds = %144
  %159 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %159, ptr %7, align 8, !tbaa !9
  %160 = icmp eq ptr %159, null
  br i1 %160, label %161, label %162

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

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

167:                                              ; preds = %162
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

168:                                              ; preds = %162
  %169 = load ptr, ptr %7, align 8, !tbaa !9
  %170 = getelementptr inbounds %struct.DfsVertex_, ptr %169, i32 0, i32 0
  %171 = load ptr, ptr %170, align 8, !tbaa !11
  %172 = call ptr @strcpy(ptr noundef %171, ptr noundef @.str.7) #5
  %173 = load ptr, ptr @stdout, align 8, !tbaa !9
  %174 = load ptr, ptr %7, align 8, !tbaa !9
  %175 = getelementptr inbounds %struct.DfsVertex_, ptr %174, i32 0, i32 0
  %176 = load ptr, ptr %175, align 8, !tbaa !11
  %177 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %173, ptr noundef @.str.1, ptr noundef %176) #5
  %178 = load ptr, ptr %7, align 8, !tbaa !9
  %179 = call i32 @graph_ins_vertex(ptr noundef %6, ptr noundef %178)
  %180 = icmp ne i32 %179, 0
  br i1 %180, label %181, label %182

181:                                              ; preds = %168
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

182:                                              ; preds = %168
  %183 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %183, ptr %7, align 8, !tbaa !9
  %184 = icmp eq ptr %183, null
  br i1 %184, label %185, label %186

185:                                              ; preds = %182
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

186:                                              ; preds = %182
  %187 = call noalias ptr @malloc(i64 noundef 11) #6
  %188 = load ptr, ptr %7, align 8, !tbaa !9
  %189 = getelementptr inbounds %struct.DfsVertex_, ptr %188, i32 0, i32 0
  store ptr %187, ptr %189, align 8, !tbaa !11
  %190 = icmp eq ptr %187, null
  br i1 %190, label %191, label %192

191:                                              ; preds = %186
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

192:                                              ; preds = %186
  %193 = load ptr, ptr %7, align 8, !tbaa !9
  %194 = getelementptr inbounds %struct.DfsVertex_, ptr %193, i32 0, i32 0
  %195 = load ptr, ptr %194, align 8, !tbaa !11
  %196 = call ptr @strcpy(ptr noundef %195, ptr noundef @.str.8) #5
  %197 = load ptr, ptr @stdout, align 8, !tbaa !9
  %198 = load ptr, ptr %7, align 8, !tbaa !9
  %199 = getelementptr inbounds %struct.DfsVertex_, ptr %198, i32 0, i32 0
  %200 = load ptr, ptr %199, align 8, !tbaa !11
  %201 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %197, ptr noundef @.str.1, ptr noundef %200) #5
  %202 = load ptr, ptr %7, align 8, !tbaa !9
  %203 = call i32 @graph_ins_vertex(ptr noundef %6, ptr noundef %202)
  %204 = icmp ne i32 %203, 0
  br i1 %204, label %205, label %206

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

206:                                              ; preds = %192
  %207 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %207, ptr %7, align 8, !tbaa !9
  %208 = icmp eq ptr %207, null
  br i1 %208, label %209, label %210

209:                                              ; preds = %206
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

210:                                              ; preds = %206
  %211 = call noalias ptr @malloc(i64 noundef 11) #6
  %212 = load ptr, ptr %7, align 8, !tbaa !9
  %213 = getelementptr inbounds %struct.DfsVertex_, ptr %212, i32 0, i32 0
  store ptr %211, ptr %213, align 8, !tbaa !11
  %214 = icmp eq ptr %211, null
  br i1 %214, label %215, label %216

215:                                              ; preds = %210
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

216:                                              ; preds = %210
  %217 = load ptr, ptr %7, align 8, !tbaa !9
  %218 = getelementptr inbounds %struct.DfsVertex_, ptr %217, i32 0, i32 0
  %219 = load ptr, ptr %218, align 8, !tbaa !11
  %220 = call ptr @strcpy(ptr noundef %219, ptr noundef @.str.9) #5
  %221 = load ptr, ptr @stdout, align 8, !tbaa !9
  %222 = load ptr, ptr %7, align 8, !tbaa !9
  %223 = getelementptr inbounds %struct.DfsVertex_, ptr %222, i32 0, i32 0
  %224 = load ptr, ptr %223, align 8, !tbaa !11
  %225 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %221, ptr noundef @.str.1, ptr noundef %224) #5
  %226 = load ptr, ptr %7, align 8, !tbaa !9
  %227 = call i32 @graph_ins_vertex(ptr noundef %6, ptr noundef %226)
  %228 = icmp ne i32 %227, 0
  br i1 %228, label %229, label %230

229:                                              ; preds = %216
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

230:                                              ; preds = %216
  call void @print_graph(ptr noundef %6)
  %231 = getelementptr inbounds [11 x i8], ptr %12, i64 0, i64 0
  %232 = getelementptr inbounds %struct.DfsVertex_, ptr %8, i32 0, i32 0
  store ptr %231, ptr %232, align 8, !tbaa !11
  %233 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %233, ptr %9, align 8, !tbaa !9
  %234 = icmp eq ptr %233, null
  br i1 %234, label %235, label %236

235:                                              ; preds = %230
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

236:                                              ; preds = %230
  %237 = call noalias ptr @malloc(i64 noundef 11) #6
  %238 = load ptr, ptr %9, align 8, !tbaa !9
  %239 = getelementptr inbounds %struct.DfsVertex_, ptr %238, i32 0, i32 0
  store ptr %237, ptr %239, align 8, !tbaa !11
  %240 = icmp eq ptr %237, null
  br i1 %240, label %241, label %242

241:                                              ; preds = %236
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

242:                                              ; preds = %236
  %243 = getelementptr inbounds %struct.DfsVertex_, ptr %8, i32 0, i32 0
  %244 = load ptr, ptr %243, align 8, !tbaa !11
  %245 = call ptr @strcpy(ptr noundef %244, ptr noundef @.str) #5
  %246 = load ptr, ptr %9, align 8, !tbaa !9
  %247 = getelementptr inbounds %struct.DfsVertex_, ptr %246, i32 0, i32 0
  %248 = load ptr, ptr %247, align 8, !tbaa !11
  %249 = call ptr @strcpy(ptr noundef %248, ptr noundef @.str.2) #5
  %250 = load ptr, ptr @stdout, align 8, !tbaa !9
  %251 = getelementptr inbounds %struct.DfsVertex_, ptr %8, i32 0, i32 0
  %252 = load ptr, ptr %251, align 8, !tbaa !11
  %253 = load ptr, ptr %9, align 8, !tbaa !9
  %254 = getelementptr inbounds %struct.DfsVertex_, ptr %253, i32 0, i32 0
  %255 = load ptr, ptr %254, align 8, !tbaa !11
  %256 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %250, ptr noundef @.str.10, ptr noundef %252, ptr noundef %255) #5
  %257 = load ptr, ptr %9, align 8, !tbaa !9
  %258 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %8, ptr noundef %257)
  %259 = icmp ne i32 %258, 0
  br i1 %259, label %260, label %261

260:                                              ; preds = %242
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

261:                                              ; preds = %242
  call void @print_graph(ptr noundef %6)
  %262 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %262, ptr %9, align 8, !tbaa !9
  %263 = icmp eq ptr %262, null
  br i1 %263, label %264, label %265

264:                                              ; preds = %261
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

265:                                              ; preds = %261
  %266 = call noalias ptr @malloc(i64 noundef 11) #6
  %267 = load ptr, ptr %9, align 8, !tbaa !9
  %268 = getelementptr inbounds %struct.DfsVertex_, ptr %267, i32 0, i32 0
  store ptr %266, ptr %268, align 8, !tbaa !11
  %269 = icmp eq ptr %266, null
  br i1 %269, label %270, label %271

270:                                              ; preds = %265
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

271:                                              ; preds = %265
  %272 = getelementptr inbounds %struct.DfsVertex_, ptr %8, i32 0, i32 0
  %273 = load ptr, ptr %272, align 8, !tbaa !11
  %274 = call ptr @strcpy(ptr noundef %273, ptr noundef @.str) #5
  %275 = load ptr, ptr %9, align 8, !tbaa !9
  %276 = getelementptr inbounds %struct.DfsVertex_, ptr %275, i32 0, i32 0
  %277 = load ptr, ptr %276, align 8, !tbaa !11
  %278 = call ptr @strcpy(ptr noundef %277, ptr noundef @.str.3) #5
  %279 = load ptr, ptr @stdout, align 8, !tbaa !9
  %280 = getelementptr inbounds %struct.DfsVertex_, ptr %8, i32 0, i32 0
  %281 = load ptr, ptr %280, align 8, !tbaa !11
  %282 = load ptr, ptr %9, align 8, !tbaa !9
  %283 = getelementptr inbounds %struct.DfsVertex_, ptr %282, i32 0, i32 0
  %284 = load ptr, ptr %283, align 8, !tbaa !11
  %285 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %279, ptr noundef @.str.10, ptr noundef %281, ptr noundef %284) #5
  %286 = load ptr, ptr %9, align 8, !tbaa !9
  %287 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %8, ptr noundef %286)
  %288 = icmp ne i32 %287, 0
  br i1 %288, label %289, label %290

289:                                              ; preds = %271
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

290:                                              ; preds = %271
  call void @print_graph(ptr noundef %6)
  %291 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %291, ptr %9, align 8, !tbaa !9
  %292 = icmp eq ptr %291, null
  br i1 %292, label %293, label %294

293:                                              ; preds = %290
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

294:                                              ; preds = %290
  %295 = call noalias ptr @malloc(i64 noundef 11) #6
  %296 = load ptr, ptr %9, align 8, !tbaa !9
  %297 = getelementptr inbounds %struct.DfsVertex_, ptr %296, i32 0, i32 0
  store ptr %295, ptr %297, align 8, !tbaa !11
  %298 = icmp eq ptr %295, null
  br i1 %298, label %299, label %300

299:                                              ; preds = %294
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

300:                                              ; preds = %294
  %301 = getelementptr inbounds %struct.DfsVertex_, ptr %8, i32 0, i32 0
  %302 = load ptr, ptr %301, align 8, !tbaa !11
  %303 = call ptr @strcpy(ptr noundef %302, ptr noundef @.str.2) #5
  %304 = load ptr, ptr %9, align 8, !tbaa !9
  %305 = getelementptr inbounds %struct.DfsVertex_, ptr %304, i32 0, i32 0
  %306 = load ptr, ptr %305, align 8, !tbaa !11
  %307 = call ptr @strcpy(ptr noundef %306, ptr noundef @.str.9) #5
  %308 = load ptr, ptr @stdout, align 8, !tbaa !9
  %309 = getelementptr inbounds %struct.DfsVertex_, ptr %8, i32 0, i32 0
  %310 = load ptr, ptr %309, align 8, !tbaa !11
  %311 = load ptr, ptr %9, align 8, !tbaa !9
  %312 = getelementptr inbounds %struct.DfsVertex_, ptr %311, i32 0, i32 0
  %313 = load ptr, ptr %312, align 8, !tbaa !11
  %314 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %308, ptr noundef @.str.10, ptr noundef %310, ptr noundef %313) #5
  %315 = load ptr, ptr %9, align 8, !tbaa !9
  %316 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %8, ptr noundef %315)
  %317 = icmp ne i32 %316, 0
  br i1 %317, label %318, label %319

318:                                              ; preds = %300
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

319:                                              ; preds = %300
  call void @print_graph(ptr noundef %6)
  %320 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %320, ptr %9, align 8, !tbaa !9
  %321 = icmp eq ptr %320, null
  br i1 %321, label %322, label %323

322:                                              ; preds = %319
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

323:                                              ; preds = %319
  %324 = call noalias ptr @malloc(i64 noundef 11) #6
  %325 = load ptr, ptr %9, align 8, !tbaa !9
  %326 = getelementptr inbounds %struct.DfsVertex_, ptr %325, i32 0, i32 0
  store ptr %324, ptr %326, align 8, !tbaa !11
  %327 = icmp eq ptr %324, null
  br i1 %327, label %328, label %329

328:                                              ; preds = %323
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

329:                                              ; preds = %323
  %330 = getelementptr inbounds %struct.DfsVertex_, ptr %8, i32 0, i32 0
  %331 = load ptr, ptr %330, align 8, !tbaa !11
  %332 = call ptr @strcpy(ptr noundef %331, ptr noundef @.str.3) #5
  %333 = load ptr, ptr %9, align 8, !tbaa !9
  %334 = getelementptr inbounds %struct.DfsVertex_, ptr %333, i32 0, i32 0
  %335 = load ptr, ptr %334, align 8, !tbaa !11
  %336 = call ptr @strcpy(ptr noundef %335, ptr noundef @.str.9) #5
  %337 = load ptr, ptr @stdout, align 8, !tbaa !9
  %338 = getelementptr inbounds %struct.DfsVertex_, ptr %8, i32 0, i32 0
  %339 = load ptr, ptr %338, align 8, !tbaa !11
  %340 = load ptr, ptr %9, align 8, !tbaa !9
  %341 = getelementptr inbounds %struct.DfsVertex_, ptr %340, i32 0, i32 0
  %342 = load ptr, ptr %341, align 8, !tbaa !11
  %343 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %337, ptr noundef @.str.10, ptr noundef %339, ptr noundef %342) #5
  %344 = load ptr, ptr %9, align 8, !tbaa !9
  %345 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %8, ptr noundef %344)
  %346 = icmp ne i32 %345, 0
  br i1 %346, label %347, label %348

347:                                              ; preds = %329
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

348:                                              ; preds = %329
  call void @print_graph(ptr noundef %6)
  %349 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %349, ptr %9, align 8, !tbaa !9
  %350 = icmp eq ptr %349, null
  br i1 %350, label %351, label %352

351:                                              ; preds = %348
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

352:                                              ; preds = %348
  %353 = call noalias ptr @malloc(i64 noundef 11) #6
  %354 = load ptr, ptr %9, align 8, !tbaa !9
  %355 = getelementptr inbounds %struct.DfsVertex_, ptr %354, i32 0, i32 0
  store ptr %353, ptr %355, align 8, !tbaa !11
  %356 = icmp eq ptr %353, null
  br i1 %356, label %357, label %358

357:                                              ; preds = %352
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

358:                                              ; preds = %352
  %359 = getelementptr inbounds %struct.DfsVertex_, ptr %8, i32 0, i32 0
  %360 = load ptr, ptr %359, align 8, !tbaa !11
  %361 = call ptr @strcpy(ptr noundef %360, ptr noundef @.str.5) #5
  %362 = load ptr, ptr %9, align 8, !tbaa !9
  %363 = getelementptr inbounds %struct.DfsVertex_, ptr %362, i32 0, i32 0
  %364 = load ptr, ptr %363, align 8, !tbaa !11
  %365 = call ptr @strcpy(ptr noundef %364, ptr noundef @.str.6) #5
  %366 = load ptr, ptr @stdout, align 8, !tbaa !9
  %367 = getelementptr inbounds %struct.DfsVertex_, ptr %8, i32 0, i32 0
  %368 = load ptr, ptr %367, align 8, !tbaa !11
  %369 = load ptr, ptr %9, align 8, !tbaa !9
  %370 = getelementptr inbounds %struct.DfsVertex_, ptr %369, i32 0, i32 0
  %371 = load ptr, ptr %370, align 8, !tbaa !11
  %372 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %366, ptr noundef @.str.10, ptr noundef %368, ptr noundef %371) #5
  %373 = load ptr, ptr %9, align 8, !tbaa !9
  %374 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %8, ptr noundef %373)
  %375 = icmp ne i32 %374, 0
  br i1 %375, label %376, label %377

376:                                              ; preds = %358
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

377:                                              ; preds = %358
  call void @print_graph(ptr noundef %6)
  %378 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %378, ptr %9, align 8, !tbaa !9
  %379 = icmp eq ptr %378, null
  br i1 %379, label %380, label %381

380:                                              ; preds = %377
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

381:                                              ; preds = %377
  %382 = call noalias ptr @malloc(i64 noundef 11) #6
  %383 = load ptr, ptr %9, align 8, !tbaa !9
  %384 = getelementptr inbounds %struct.DfsVertex_, ptr %383, i32 0, i32 0
  store ptr %382, ptr %384, align 8, !tbaa !11
  %385 = icmp eq ptr %382, null
  br i1 %385, label %386, label %387

386:                                              ; preds = %381
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

387:                                              ; preds = %381
  %388 = getelementptr inbounds %struct.DfsVertex_, ptr %8, i32 0, i32 0
  %389 = load ptr, ptr %388, align 8, !tbaa !11
  %390 = call ptr @strcpy(ptr noundef %389, ptr noundef @.str.5) #5
  %391 = load ptr, ptr %9, align 8, !tbaa !9
  %392 = getelementptr inbounds %struct.DfsVertex_, ptr %391, i32 0, i32 0
  %393 = load ptr, ptr %392, align 8, !tbaa !11
  %394 = call ptr @strcpy(ptr noundef %393, ptr noundef @.str.8) #5
  %395 = load ptr, ptr @stdout, align 8, !tbaa !9
  %396 = getelementptr inbounds %struct.DfsVertex_, ptr %8, i32 0, i32 0
  %397 = load ptr, ptr %396, align 8, !tbaa !11
  %398 = load ptr, ptr %9, align 8, !tbaa !9
  %399 = getelementptr inbounds %struct.DfsVertex_, ptr %398, i32 0, i32 0
  %400 = load ptr, ptr %399, align 8, !tbaa !11
  %401 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %395, ptr noundef @.str.10, ptr noundef %397, ptr noundef %400) #5
  %402 = load ptr, ptr %9, align 8, !tbaa !9
  %403 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %8, ptr noundef %402)
  %404 = icmp ne i32 %403, 0
  br i1 %404, label %405, label %406

405:                                              ; preds = %387
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

406:                                              ; preds = %387
  call void @print_graph(ptr noundef %6)
  %407 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %407, ptr %9, align 8, !tbaa !9
  %408 = icmp eq ptr %407, null
  br i1 %408, label %409, label %410

409:                                              ; preds = %406
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

410:                                              ; preds = %406
  %411 = call noalias ptr @malloc(i64 noundef 11) #6
  %412 = load ptr, ptr %9, align 8, !tbaa !9
  %413 = getelementptr inbounds %struct.DfsVertex_, ptr %412, i32 0, i32 0
  store ptr %411, ptr %413, align 8, !tbaa !11
  %414 = icmp eq ptr %411, null
  br i1 %414, label %415, label %416

415:                                              ; preds = %410
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

416:                                              ; preds = %410
  %417 = getelementptr inbounds %struct.DfsVertex_, ptr %8, i32 0, i32 0
  %418 = load ptr, ptr %417, align 8, !tbaa !11
  %419 = call ptr @strcpy(ptr noundef %418, ptr noundef @.str.6) #5
  %420 = load ptr, ptr %9, align 8, !tbaa !9
  %421 = getelementptr inbounds %struct.DfsVertex_, ptr %420, i32 0, i32 0
  %422 = load ptr, ptr %421, align 8, !tbaa !11
  %423 = call ptr @strcpy(ptr noundef %422, ptr noundef @.str.3) #5
  %424 = load ptr, ptr @stdout, align 8, !tbaa !9
  %425 = getelementptr inbounds %struct.DfsVertex_, ptr %8, i32 0, i32 0
  %426 = load ptr, ptr %425, align 8, !tbaa !11
  %427 = load ptr, ptr %9, align 8, !tbaa !9
  %428 = getelementptr inbounds %struct.DfsVertex_, ptr %427, i32 0, i32 0
  %429 = load ptr, ptr %428, align 8, !tbaa !11
  %430 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %424, ptr noundef @.str.10, ptr noundef %426, ptr noundef %429) #5
  %431 = load ptr, ptr %9, align 8, !tbaa !9
  %432 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %8, ptr noundef %431)
  %433 = icmp ne i32 %432, 0
  br i1 %433, label %434, label %435

434:                                              ; preds = %416
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

435:                                              ; preds = %416
  call void @print_graph(ptr noundef %6)
  %436 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %436, ptr %9, align 8, !tbaa !9
  %437 = icmp eq ptr %436, null
  br i1 %437, label %438, label %439

438:                                              ; preds = %435
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

439:                                              ; preds = %435
  %440 = call noalias ptr @malloc(i64 noundef 11) #6
  %441 = load ptr, ptr %9, align 8, !tbaa !9
  %442 = getelementptr inbounds %struct.DfsVertex_, ptr %441, i32 0, i32 0
  store ptr %440, ptr %442, align 8, !tbaa !11
  %443 = icmp eq ptr %440, null
  br i1 %443, label %444, label %445

444:                                              ; preds = %439
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

445:                                              ; preds = %439
  %446 = getelementptr inbounds %struct.DfsVertex_, ptr %8, i32 0, i32 0
  %447 = load ptr, ptr %446, align 8, !tbaa !11
  %448 = call ptr @strcpy(ptr noundef %447, ptr noundef @.str.6) #5
  %449 = load ptr, ptr %9, align 8, !tbaa !9
  %450 = getelementptr inbounds %struct.DfsVertex_, ptr %449, i32 0, i32 0
  %451 = load ptr, ptr %450, align 8, !tbaa !11
  %452 = call ptr @strcpy(ptr noundef %451, ptr noundef @.str.8) #5
  %453 = load ptr, ptr @stdout, align 8, !tbaa !9
  %454 = getelementptr inbounds %struct.DfsVertex_, ptr %8, i32 0, i32 0
  %455 = load ptr, ptr %454, align 8, !tbaa !11
  %456 = load ptr, ptr %9, align 8, !tbaa !9
  %457 = getelementptr inbounds %struct.DfsVertex_, ptr %456, i32 0, i32 0
  %458 = load ptr, ptr %457, align 8, !tbaa !11
  %459 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %453, ptr noundef @.str.10, ptr noundef %455, ptr noundef %458) #5
  %460 = load ptr, ptr %9, align 8, !tbaa !9
  %461 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %8, ptr noundef %460)
  %462 = icmp ne i32 %461, 0
  br i1 %462, label %463, label %464

463:                                              ; preds = %445
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

464:                                              ; preds = %445
  call void @print_graph(ptr noundef %6)
  %465 = call noalias ptr @malloc(i64 noundef 16) #6
  store ptr %465, ptr %9, align 8, !tbaa !9
  %466 = icmp eq ptr %465, null
  br i1 %466, label %467, label %468

467:                                              ; preds = %464
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

468:                                              ; preds = %464
  %469 = call noalias ptr @malloc(i64 noundef 11) #6
  %470 = load ptr, ptr %9, align 8, !tbaa !9
  %471 = getelementptr inbounds %struct.DfsVertex_, ptr %470, i32 0, i32 0
  store ptr %469, ptr %471, align 8, !tbaa !11
  %472 = icmp eq ptr %469, null
  br i1 %472, label %473, label %474

473:                                              ; preds = %468
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

474:                                              ; preds = %468
  %475 = getelementptr inbounds %struct.DfsVertex_, ptr %8, i32 0, i32 0
  %476 = load ptr, ptr %475, align 8, !tbaa !11
  %477 = call ptr @strcpy(ptr noundef %476, ptr noundef @.str.7) #5
  %478 = load ptr, ptr %9, align 8, !tbaa !9
  %479 = getelementptr inbounds %struct.DfsVertex_, ptr %478, i32 0, i32 0
  %480 = load ptr, ptr %479, align 8, !tbaa !11
  %481 = call ptr @strcpy(ptr noundef %480, ptr noundef @.str.8) #5
  %482 = load ptr, ptr @stdout, align 8, !tbaa !9
  %483 = getelementptr inbounds %struct.DfsVertex_, ptr %8, i32 0, i32 0
  %484 = load ptr, ptr %483, align 8, !tbaa !11
  %485 = load ptr, ptr %9, align 8, !tbaa !9
  %486 = getelementptr inbounds %struct.DfsVertex_, ptr %485, i32 0, i32 0
  %487 = load ptr, ptr %486, align 8, !tbaa !11
  %488 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %482, ptr noundef @.str.10, ptr noundef %484, ptr noundef %487) #5
  %489 = load ptr, ptr %9, align 8, !tbaa !9
  %490 = call i32 @graph_ins_edge(ptr noundef %6, ptr noundef %8, ptr noundef %489)
  %491 = icmp ne i32 %490, 0
  br i1 %491, label %492, label %493

492:                                              ; preds = %474
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

493:                                              ; preds = %474
  call void @print_graph(ptr noundef %6)
  %494 = load ptr, ptr @stdout, align 8, !tbaa !9
  %495 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %494, ptr noundef @.str.11) #5
  %496 = call i32 @dfs(ptr noundef %6, ptr noundef %10)
  %497 = icmp ne i32 %496, 0
  br i1 %497, label %498, label %499

498:                                              ; preds = %493
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

499:                                              ; preds = %493
  store i32 0, ptr %13, align 4, !tbaa !5
  %500 = getelementptr inbounds %struct.List_, ptr %10, i32 0, i32 3
  %501 = load ptr, ptr %500, align 8, !tbaa !13
  store ptr %501, ptr %11, align 8, !tbaa !9
  br label %502

502:                                              ; preds = %520, %499
  %503 = load ptr, ptr %11, align 8, !tbaa !9
  %504 = icmp ne ptr %503, null
  br i1 %504, label %505, label %524

505:                                              ; preds = %502
  %506 = load ptr, ptr %11, align 8, !tbaa !9
  %507 = getelementptr inbounds %struct.ListElmt_, ptr %506, i32 0, i32 0
  %508 = load ptr, ptr %507, align 8, !tbaa !15
  store ptr %508, ptr %7, align 8, !tbaa !9
  %509 = load ptr, ptr @stdout, align 8, !tbaa !9
  %510 = load i32, ptr %13, align 4, !tbaa !5
  %511 = load ptr, ptr %7, align 8, !tbaa !9
  %512 = getelementptr inbounds %struct.DfsVertex_, ptr %511, i32 0, i32 0
  %513 = load ptr, ptr %512, align 8, !tbaa !11
  %514 = load ptr, ptr %7, align 8, !tbaa !9
  %515 = getelementptr inbounds %struct.DfsVertex_, ptr %514, i32 0, i32 1
  %516 = load i32, ptr %515, align 8, !tbaa !17
  %517 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %509, ptr noundef @.str.12, i32 noundef %510, ptr noundef %513, i32 noundef %516) #5
  %518 = load i32, ptr %13, align 4, !tbaa !5
  %519 = add nsw i32 %518, 1
  store i32 %519, ptr %13, align 4, !tbaa !5
  br label %520

520:                                              ; preds = %505
  %521 = load ptr, ptr %11, align 8, !tbaa !9
  %522 = getelementptr inbounds %struct.ListElmt_, ptr %521, i32 0, i32 1
  %523 = load ptr, ptr %522, align 8, !tbaa !18
  store ptr %523, ptr %11, align 8, !tbaa !9
  br label %502, !llvm.loop !19

524:                                              ; preds = %502
  %525 = load ptr, ptr @stdout, align 8, !tbaa !9
  %526 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %525, ptr noundef @.str.13) #5
  call void @list_destroy(ptr noundef %10)
  %527 = load ptr, ptr @stdout, align 8, !tbaa !9
  %528 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %527, ptr noundef @.str.14) #5
  call void @graph_destroy(ptr noundef %6)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %529

529:                                              ; preds = %524, %498, %492, %473, %467, %463, %444, %438, %434, %415, %409, %405, %386, %380, %376, %357, %351, %347, %328, %322, %318, %299, %293, %289, %270, %264, %260, %241, %235, %229, %215, %209, %205, %191, %185, %181, %167, %161, %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 11, 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
  %530 = load i32, ptr %3, align 4
  ret i32 %530
}

; 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_task(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @destroy_task(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 @dfs(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 = !{!"DfsVertex_", !10, i64 0, !6, i64 8}
!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 = !{!16, !10, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"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.DfsVertex_ = type { ptr, i32 }

@.str = external hidden unnamed_addr constant [2 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 [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.14 = 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.DfsVertex_, align 8
  %5 = alloca %struct.List_, align 8
  %6 = alloca [11 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 11, ptr nonnull %6) #6
  call void @graph_init(ptr noundef nonnull %3, ptr noundef nonnull @match_task, ptr noundef nonnull @destroy_task) #6
  %7 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %8 = icmp eq ptr %7, null
  br i1 %8, label %249, label %9

9:                                                ; preds = %2
  %10 = call noalias dereferenceable_or_null(11) ptr @malloc(i64 noundef 11) #7
  store ptr %10, ptr %7, align 8, !tbaa !5
  %11 = icmp eq ptr %10, null
  br i1 %11, label %249, 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 %249

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 %249, label %20

20:                                               ; preds = %17
  %21 = call noalias dereferenceable_or_null(11) ptr @malloc(i64 noundef 11) #7
  store ptr %21, ptr %18, align 8, !tbaa !5
  %22 = icmp eq ptr %21, null
  br i1 %22, label %249, 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
  %.not108 = icmp eq i32 %27, 0
  br i1 %.not108, label %28, label %249

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 %249, label %31

31:                                               ; preds = %28
  %32 = call noalias dereferenceable_or_null(11) ptr @malloc(i64 noundef 11) #7
  store ptr %32, ptr %29, align 8, !tbaa !5
  %33 = icmp eq ptr %32, null
  br i1 %33, label %249, 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
  %.not109 = icmp eq i32 %38, 0
  br i1 %.not109, label %39, label %249

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 %249, label %42

42:                                               ; preds = %39
  %43 = call noalias dereferenceable_or_null(11) ptr @malloc(i64 noundef 11) #7
  store ptr %43, ptr %40, align 8, !tbaa !5
  %44 = icmp eq ptr %43, null
  br i1 %44, label %249, 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
  %.not110 = icmp eq i32 %49, 0
  br i1 %.not110, label %50, label %249

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 %249, label %53

53:                                               ; preds = %50
  %54 = call noalias dereferenceable_or_null(11) ptr @malloc(i64 noundef 11) #7
  store ptr %54, ptr %51, align 8, !tbaa !5
  %55 = icmp eq ptr %54, null
  br i1 %55, label %249, 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
  %.not111 = icmp eq i32 %60, 0
  br i1 %.not111, label %61, label %249

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 %249, label %64

64:                                               ; preds = %61
  %65 = call noalias dereferenceable_or_null(11) ptr @malloc(i64 noundef 11) #7
  store ptr %65, ptr %62, align 8, !tbaa !5
  %66 = icmp eq ptr %65, null
  br i1 %66, label %249, 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
  %.not112 = icmp eq i32 %71, 0
  br i1 %.not112, label %72, label %249

72:                                               ; preds = %67
  %73 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %74 = icmp eq ptr %73, null
  br i1 %74, label %249, label %75

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

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

83:                                               ; preds = %78
  %84 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %85 = icmp eq ptr %84, null
  br i1 %85, label %249, label %86

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

89:                                               ; preds = %86
  %90 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %87, ptr noundef nonnull dereferenceable(1) @.str.8) #6
  %91 = load ptr, ptr @stdout, align 8, !tbaa !11
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.1, ptr noundef nonnull %87) #6
  %93 = call i32 @graph_ins_vertex(ptr noundef nonnull %3, ptr noundef nonnull %84) #6
  %.not114 = icmp eq i32 %93, 0
  br i1 %.not114, label %94, label %249

94:                                               ; preds = %89
  %95 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %96 = icmp eq ptr %95, null
  br i1 %96, label %249, label %97

97:                                               ; preds = %94
  %98 = call noalias dereferenceable_or_null(11) ptr @malloc(i64 noundef 11) #7
  store ptr %98, ptr %95, align 8, !tbaa !5
  %99 = icmp eq ptr %98, null
  br i1 %99, label %249, label %100

100:                                              ; preds = %97
  %101 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %98, ptr noundef nonnull dereferenceable(1) @.str.9) #6
  %102 = load ptr, ptr @stdout, align 8, !tbaa !11
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef nonnull @.str.1, ptr noundef nonnull %98) #6
  %104 = call i32 @graph_ins_vertex(ptr noundef nonnull %3, ptr noundef nonnull %95) #6
  %.not115 = icmp eq i32 %104, 0
  br i1 %.not115, label %105, label %249

105:                                              ; preds = %100
  call void @print_graph(ptr noundef nonnull %3)
  store ptr %6, ptr %4, align 8, !tbaa !5
  %106 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %107 = icmp eq ptr %106, null
  br i1 %107, label %249, label %108

108:                                              ; preds = %105
  %109 = call noalias dereferenceable_or_null(11) ptr @malloc(i64 noundef 11) #7
  store ptr %109, ptr %106, align 8, !tbaa !5
  %110 = icmp eq ptr %109, null
  br i1 %110, label %249, label %111

111:                                              ; preds = %108
  %112 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str) #6
  %113 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %109, ptr noundef nonnull dereferenceable(1) @.str.2) #6
  %114 = load ptr, ptr @stdout, align 8, !tbaa !11
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %114, ptr noundef nonnull @.str.10, ptr noundef nonnull %6, ptr noundef nonnull %109) #6
  %116 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %106) #6
  %.not116 = icmp eq i32 %116, 0
  br i1 %.not116, label %117, label %249

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

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

123:                                              ; preds = %120
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %124, ptr noundef nonnull dereferenceable(1) @.str) #6
  %126 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %121, ptr noundef nonnull dereferenceable(1) @.str.3) #6
  %127 = load ptr, ptr @stdout, align 8, !tbaa !11
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %127, ptr noundef nonnull @.str.10, ptr noundef %128, ptr noundef nonnull %121) #6
  %130 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %118) #6
  %.not117 = icmp eq i32 %130, 0
  br i1 %.not117, label %131, label %249

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

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

137:                                              ; preds = %134
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %138, ptr noundef nonnull dereferenceable(1) @.str.2) #6
  %140 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %135, ptr noundef nonnull dereferenceable(1) @.str.9) #6
  %141 = load ptr, ptr @stdout, align 8, !tbaa !11
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %141, ptr noundef nonnull @.str.10, ptr noundef %142, ptr noundef nonnull %135) #6
  %144 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %132) #6
  %.not118 = icmp eq i32 %144, 0
  br i1 %.not118, label %145, label %249

145:                                              ; preds = %137
  call void @print_graph(ptr noundef nonnull %3)
  %146 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %147 = icmp eq ptr %146, null
  br i1 %147, label %249, label %148

148:                                              ; preds = %145
  %149 = call noalias dereferenceable_or_null(11) ptr @malloc(i64 noundef 11) #7
  store ptr %149, ptr %146, align 8, !tbaa !5
  %150 = icmp eq ptr %149, null
  br i1 %150, label %249, label %151

151:                                              ; preds = %148
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %152, ptr noundef nonnull dereferenceable(1) @.str.3) #6
  %154 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %149, ptr noundef nonnull dereferenceable(1) @.str.9) #6
  %155 = load ptr, ptr @stdout, align 8, !tbaa !11
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %155, ptr noundef nonnull @.str.10, ptr noundef %156, ptr noundef nonnull %149) #6
  %158 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %146) #6
  %.not119 = icmp eq i32 %158, 0
  br i1 %.not119, label %159, label %249

159:                                              ; preds = %151
  call void @print_graph(ptr noundef nonnull %3)
  %160 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %161 = icmp eq ptr %160, null
  br i1 %161, label %249, label %162

162:                                              ; preds = %159
  %163 = call noalias dereferenceable_or_null(11) ptr @malloc(i64 noundef 11) #7
  store ptr %163, ptr %160, align 8, !tbaa !5
  %164 = icmp eq ptr %163, null
  br i1 %164, label %249, label %165

165:                                              ; preds = %162
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %166, ptr noundef nonnull dereferenceable(1) @.str.5) #6
  %168 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %163, ptr noundef nonnull dereferenceable(1) @.str.6) #6
  %169 = load ptr, ptr @stdout, align 8, !tbaa !11
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %169, ptr noundef nonnull @.str.10, ptr noundef %170, ptr noundef nonnull %163) #6
  %172 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %160) #6
  %.not120 = icmp eq i32 %172, 0
  br i1 %.not120, label %173, label %249

173:                                              ; preds = %165
  call void @print_graph(ptr noundef nonnull %3)
  %174 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %175 = icmp eq ptr %174, null
  br i1 %175, label %249, label %176

176:                                              ; preds = %173
  %177 = call noalias dereferenceable_or_null(11) ptr @malloc(i64 noundef 11) #7
  store ptr %177, ptr %174, align 8, !tbaa !5
  %178 = icmp eq ptr %177, null
  br i1 %178, label %249, label %179

179:                                              ; preds = %176
  %180 = load ptr, ptr %4, align 8, !tbaa !5
  %181 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %180, ptr noundef nonnull dereferenceable(1) @.str.5) #6
  %182 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %177, ptr noundef nonnull dereferenceable(1) @.str.8) #6
  %183 = load ptr, ptr @stdout, align 8, !tbaa !11
  %184 = load ptr, ptr %4, align 8, !tbaa !5
  %185 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %183, ptr noundef nonnull @.str.10, ptr noundef %184, ptr noundef nonnull %177) #6
  %186 = call i32 @graph_ins_edge(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %174) #6
  %.not121 = icmp eq i32 %186, 0
  br i1 %.not121, label %187, label %249

187:                                              ; preds = %179
  call void @print_graph(ptr noundef nonnull %3)
  %188 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %189 = icmp eq ptr %188, null
  br i1 %189, label %249, label %190

190:                                              ; preds = %187
  %191 = call noalias dereferenceable_or_null(11) ptr @malloc(i64 noundef 11) #7
  store ptr %191, ptr %188, align 8, !tbaa !5
  %192 = icmp eq ptr %191, null
  br i1 %192, label %249, label %193

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

201:                                              ; preds = %193
  call void @print_graph(ptr noundef nonnull %3)
  %202 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %203 = icmp eq ptr %202, null
  br i1 %203, label %249, label %204

204:                                              ; preds = %201
  %205 = call noalias dereferenceable_or_null(11) ptr @malloc(i64 noundef 11) #7
  store ptr %205, ptr %202, align 8, !tbaa !5
  %206 = icmp eq ptr %205, null
  br i1 %206, label %249, label %207

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

215:                                              ; preds = %207
  call void @print_graph(ptr noundef nonnull %3)
  %216 = call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %217 = icmp eq ptr %216, null
  br i1 %217, label %249, label %218

218:                                              ; preds = %215
  %219 = call noalias dereferenceable_or_null(11) ptr @malloc(i64 noundef 11) #7
  store ptr %219, ptr %216, align 8, !tbaa !5
  %220 = icmp eq ptr %219, null
  br i1 %220, label %249, label %221

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

229:                                              ; preds = %221
  call void @print_graph(ptr noundef nonnull %3)
  %230 = load ptr, ptr @stdout, align 8, !tbaa !11
  %231 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %230, ptr noundef nonnull @.str.11) #6
  %232 = call i32 @dfs(ptr noundef nonnull %3, ptr noundef nonnull %5) #6
  %.not125 = icmp eq i32 %232, 0
  br i1 %.not125, label %233, label %249

233:                                              ; preds = %229
  %234 = getelementptr inbounds i8, ptr %5, i64 24
  %235 = load ptr, ptr %234, align 8, !tbaa !12
  %.not126127 = icmp eq ptr %235, null
  br i1 %.not126127, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %233, %.lr.ph
  %.0129 = phi i32 [ %242, %.lr.ph ], [ 0, %233 ]
  %.079128 = phi ptr [ %244, %.lr.ph ], [ %235, %233 ]
  %236 = load ptr, ptr %.079128, align 8, !tbaa !14
  %237 = load ptr, ptr @stdout, align 8, !tbaa !11
  %238 = load ptr, ptr %236, align 8, !tbaa !5
  %239 = getelementptr inbounds i8, ptr %236, i64 8
  %240 = load i32, ptr %239, align 8, !tbaa !16
  %241 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %237, ptr noundef nonnull @.str.12, i32 noundef %.0129, ptr noundef %238, i32 noundef %240) #6
  %242 = add nuw nsw i32 %.0129, 1
  %243 = getelementptr inbounds i8, ptr %.079128, i64 8
  %244 = load ptr, ptr %243, align 8, !tbaa !17
  %.not126 = icmp eq ptr %244, null
  br i1 %.not126, label %._crit_edge, label %.lr.ph, !llvm.loop !18

._crit_edge:                                      ; preds = %.lr.ph, %233
  %245 = load ptr, ptr @stdout, align 8, !tbaa !11
  %246 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %245, ptr noundef nonnull @.str.13) #6
  call void @list_destroy(ptr noundef nonnull %5) #6
  %247 = load ptr, ptr @stdout, align 8, !tbaa !11
  %248 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %247, ptr noundef nonnull @.str.14) #6
  call void @graph_destroy(ptr noundef nonnull %3) #6
  br label %249

249:                                              ; preds = %229, %221, %218, %215, %207, %204, %201, %193, %190, %187, %179, %176, %173, %165, %162, %159, %151, %148, %145, %137, %134, %131, %123, %120, %117, %111, %108, %105, %100, %97, %94, %89, %86, %83, %78, %75, %72, %67, %64, %61, %56, %53, %50, %45, %42, %39, %34, %31, %28, %23, %20, %17, %12, %9, %2, %._crit_edge
  %.080 = 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, %83 ], [ 1, %86 ], [ 1, %89 ], [ 1, %94 ], [ 1, %97 ], [ 1, %100 ], [ 1, %105 ], [ 1, %108 ], [ 1, %111 ], [ 1, %117 ], [ 1, %120 ], [ 1, %123 ], [ 1, %131 ], [ 1, %134 ], [ 1, %137 ], [ 1, %145 ], [ 1, %148 ], [ 1, %151 ], [ 1, %159 ], [ 1, %162 ], [ 1, %165 ], [ 1, %173 ], [ 1, %176 ], [ 1, %179 ], [ 1, %187 ], [ 1, %190 ], [ 1, %193 ], [ 1, %201 ], [ 1, %204 ], [ 1, %207 ], [ 1, %215 ], [ 1, %218 ], [ 1, %221 ], [ 1, %229 ]
  call void @llvm.lifetime.end.p0(i64 11, 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 %.080
}

; 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_task(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @destroy_task(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 @dfs(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 = !{!"DfsVertex_", !7, i64 0, !10, i64 8}
!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 = !{!15, !7, i64 8}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


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